1
14
15 package com.liferay.portlet.social.service.persistence;
16
17 import com.liferay.portal.service.persistence.BasePersistence;
18
19 import com.liferay.portlet.social.model.SocialRequest;
20
21
34 public interface SocialRequestPersistence extends BasePersistence<SocialRequest> {
35 public void cacheResult(
36 com.liferay.portlet.social.model.SocialRequest socialRequest);
37
38 public void cacheResult(
39 java.util.List<com.liferay.portlet.social.model.SocialRequest> socialRequests);
40
41 public com.liferay.portlet.social.model.SocialRequest create(long requestId);
42
43 public com.liferay.portlet.social.model.SocialRequest remove(long requestId)
44 throws com.liferay.portal.SystemException,
45 com.liferay.portlet.social.NoSuchRequestException;
46
47
50 public com.liferay.portlet.social.model.SocialRequest update(
51 com.liferay.portlet.social.model.SocialRequest socialRequest)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.social.model.SocialRequest updateImpl(
55 com.liferay.portlet.social.model.SocialRequest socialRequest,
56 boolean merge) throws com.liferay.portal.SystemException;
57
58 public com.liferay.portlet.social.model.SocialRequest findByPrimaryKey(
59 long requestId)
60 throws com.liferay.portal.SystemException,
61 com.liferay.portlet.social.NoSuchRequestException;
62
63 public com.liferay.portlet.social.model.SocialRequest fetchByPrimaryKey(
64 long requestId) throws com.liferay.portal.SystemException;
65
66 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
67 java.lang.String uuid) throws com.liferay.portal.SystemException;
68
69 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
70 java.lang.String uuid, int start, int end)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
74 java.lang.String uuid, int start, int end,
75 com.liferay.portal.kernel.util.OrderByComparator obc)
76 throws com.liferay.portal.SystemException;
77
78 public com.liferay.portlet.social.model.SocialRequest findByUuid_First(
79 java.lang.String uuid,
80 com.liferay.portal.kernel.util.OrderByComparator obc)
81 throws com.liferay.portal.SystemException,
82 com.liferay.portlet.social.NoSuchRequestException;
83
84 public com.liferay.portlet.social.model.SocialRequest findByUuid_Last(
85 java.lang.String uuid,
86 com.liferay.portal.kernel.util.OrderByComparator obc)
87 throws com.liferay.portal.SystemException,
88 com.liferay.portlet.social.NoSuchRequestException;
89
90 public com.liferay.portlet.social.model.SocialRequest[] findByUuid_PrevAndNext(
91 long requestId, java.lang.String uuid,
92 com.liferay.portal.kernel.util.OrderByComparator obc)
93 throws com.liferay.portal.SystemException,
94 com.liferay.portlet.social.NoSuchRequestException;
95
96 public com.liferay.portlet.social.model.SocialRequest findByUUID_G(
97 java.lang.String uuid, long groupId)
98 throws com.liferay.portal.SystemException,
99 com.liferay.portlet.social.NoSuchRequestException;
100
101 public com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
102 java.lang.String uuid, long groupId)
103 throws com.liferay.portal.SystemException;
104
105 public com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
106 java.lang.String uuid, long groupId, boolean retrieveFromCache)
107 throws com.liferay.portal.SystemException;
108
109 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
110 long companyId) throws com.liferay.portal.SystemException;
111
112 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
113 long companyId, int start, int end)
114 throws com.liferay.portal.SystemException;
115
116 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
117 long companyId, int start, int end,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.SystemException;
120
121 public com.liferay.portlet.social.model.SocialRequest findByCompanyId_First(
122 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portlet.social.NoSuchRequestException;
125
126 public com.liferay.portlet.social.model.SocialRequest findByCompanyId_Last(
127 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
128 throws com.liferay.portal.SystemException,
129 com.liferay.portlet.social.NoSuchRequestException;
130
131 public com.liferay.portlet.social.model.SocialRequest[] findByCompanyId_PrevAndNext(
132 long requestId, long companyId,
133 com.liferay.portal.kernel.util.OrderByComparator obc)
134 throws com.liferay.portal.SystemException,
135 com.liferay.portlet.social.NoSuchRequestException;
136
137 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
138 long userId) throws com.liferay.portal.SystemException;
139
140 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
141 long userId, int start, int end)
142 throws com.liferay.portal.SystemException;
143
144 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
145 long userId, int start, int end,
146 com.liferay.portal.kernel.util.OrderByComparator obc)
147 throws com.liferay.portal.SystemException;
148
149 public com.liferay.portlet.social.model.SocialRequest findByUserId_First(
150 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.SystemException,
152 com.liferay.portlet.social.NoSuchRequestException;
153
154 public com.liferay.portlet.social.model.SocialRequest findByUserId_Last(
155 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.SystemException,
157 com.liferay.portlet.social.NoSuchRequestException;
158
159 public com.liferay.portlet.social.model.SocialRequest[] findByUserId_PrevAndNext(
160 long requestId, long userId,
161 com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.SystemException,
163 com.liferay.portlet.social.NoSuchRequestException;
164
165 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
166 long receiverUserId) throws com.liferay.portal.SystemException;
167
168 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
169 long receiverUserId, int start, int end)
170 throws com.liferay.portal.SystemException;
171
172 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
173 long receiverUserId, int start, int end,
174 com.liferay.portal.kernel.util.OrderByComparator obc)
175 throws com.liferay.portal.SystemException;
176
177 public com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_First(
178 long receiverUserId,
179 com.liferay.portal.kernel.util.OrderByComparator obc)
180 throws com.liferay.portal.SystemException,
181 com.liferay.portlet.social.NoSuchRequestException;
182
183 public com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_Last(
184 long receiverUserId,
185 com.liferay.portal.kernel.util.OrderByComparator obc)
186 throws com.liferay.portal.SystemException,
187 com.liferay.portlet.social.NoSuchRequestException;
188
189 public com.liferay.portlet.social.model.SocialRequest[] findByReceiverUserId_PrevAndNext(
190 long requestId, long receiverUserId,
191 com.liferay.portal.kernel.util.OrderByComparator obc)
192 throws com.liferay.portal.SystemException,
193 com.liferay.portlet.social.NoSuchRequestException;
194
195 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
196 long userId, int status) throws com.liferay.portal.SystemException;
197
198 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
199 long userId, int status, int start, int end)
200 throws com.liferay.portal.SystemException;
201
202 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
203 long userId, int status, int start, int end,
204 com.liferay.portal.kernel.util.OrderByComparator obc)
205 throws com.liferay.portal.SystemException;
206
207 public com.liferay.portlet.social.model.SocialRequest findByU_S_First(
208 long userId, int status,
209 com.liferay.portal.kernel.util.OrderByComparator obc)
210 throws com.liferay.portal.SystemException,
211 com.liferay.portlet.social.NoSuchRequestException;
212
213 public com.liferay.portlet.social.model.SocialRequest findByU_S_Last(
214 long userId, int status,
215 com.liferay.portal.kernel.util.OrderByComparator obc)
216 throws com.liferay.portal.SystemException,
217 com.liferay.portlet.social.NoSuchRequestException;
218
219 public com.liferay.portlet.social.model.SocialRequest[] findByU_S_PrevAndNext(
220 long requestId, long userId, int status,
221 com.liferay.portal.kernel.util.OrderByComparator obc)
222 throws com.liferay.portal.SystemException,
223 com.liferay.portlet.social.NoSuchRequestException;
224
225 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
226 long receiverUserId, int status)
227 throws com.liferay.portal.SystemException;
228
229 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
230 long receiverUserId, int status, int start, int end)
231 throws com.liferay.portal.SystemException;
232
233 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
234 long receiverUserId, int status, int start, int end,
235 com.liferay.portal.kernel.util.OrderByComparator obc)
236 throws com.liferay.portal.SystemException;
237
238 public com.liferay.portlet.social.model.SocialRequest findByR_S_First(
239 long receiverUserId, int status,
240 com.liferay.portal.kernel.util.OrderByComparator obc)
241 throws com.liferay.portal.SystemException,
242 com.liferay.portlet.social.NoSuchRequestException;
243
244 public com.liferay.portlet.social.model.SocialRequest findByR_S_Last(
245 long receiverUserId, int status,
246 com.liferay.portal.kernel.util.OrderByComparator obc)
247 throws com.liferay.portal.SystemException,
248 com.liferay.portlet.social.NoSuchRequestException;
249
250 public com.liferay.portlet.social.model.SocialRequest[] findByR_S_PrevAndNext(
251 long requestId, long receiverUserId, int status,
252 com.liferay.portal.kernel.util.OrderByComparator obc)
253 throws com.liferay.portal.SystemException,
254 com.liferay.portlet.social.NoSuchRequestException;
255
256 public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_R(
257 long userId, long classNameId, long classPK, int type,
258 long receiverUserId)
259 throws com.liferay.portal.SystemException,
260 com.liferay.portlet.social.NoSuchRequestException;
261
262 public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
263 long userId, long classNameId, long classPK, int type,
264 long receiverUserId) throws com.liferay.portal.SystemException;
265
266 public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
267 long userId, long classNameId, long classPK, int type,
268 long receiverUserId, boolean retrieveFromCache)
269 throws com.liferay.portal.SystemException;
270
271 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
272 long userId, long classNameId, long classPK, int type, int status)
273 throws com.liferay.portal.SystemException;
274
275 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
276 long userId, long classNameId, long classPK, int type, int status,
277 int start, int end) throws com.liferay.portal.SystemException;
278
279 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
280 long userId, long classNameId, long classPK, int type, int status,
281 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
282 throws com.liferay.portal.SystemException;
283
284 public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_First(
285 long userId, long classNameId, long classPK, int type, int status,
286 com.liferay.portal.kernel.util.OrderByComparator obc)
287 throws com.liferay.portal.SystemException,
288 com.liferay.portlet.social.NoSuchRequestException;
289
290 public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_Last(
291 long userId, long classNameId, long classPK, int type, int status,
292 com.liferay.portal.kernel.util.OrderByComparator obc)
293 throws com.liferay.portal.SystemException,
294 com.liferay.portlet.social.NoSuchRequestException;
295
296 public com.liferay.portlet.social.model.SocialRequest[] findByU_C_C_T_S_PrevAndNext(
297 long requestId, long userId, long classNameId, long classPK, int type,
298 int status, com.liferay.portal.kernel.util.OrderByComparator obc)
299 throws com.liferay.portal.SystemException,
300 com.liferay.portlet.social.NoSuchRequestException;
301
302 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
303 long classNameId, long classPK, int type, long receiverUserId,
304 int status) throws com.liferay.portal.SystemException;
305
306 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
307 long classNameId, long classPK, int type, long receiverUserId,
308 int status, int start, int end)
309 throws com.liferay.portal.SystemException;
310
311 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
312 long classNameId, long classPK, int type, long receiverUserId,
313 int status, int start, int end,
314 com.liferay.portal.kernel.util.OrderByComparator obc)
315 throws com.liferay.portal.SystemException;
316
317 public com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_First(
318 long classNameId, long classPK, int type, long receiverUserId,
319 int status, com.liferay.portal.kernel.util.OrderByComparator obc)
320 throws com.liferay.portal.SystemException,
321 com.liferay.portlet.social.NoSuchRequestException;
322
323 public com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_Last(
324 long classNameId, long classPK, int type, long receiverUserId,
325 int status, com.liferay.portal.kernel.util.OrderByComparator obc)
326 throws com.liferay.portal.SystemException,
327 com.liferay.portlet.social.NoSuchRequestException;
328
329 public com.liferay.portlet.social.model.SocialRequest[] findByC_C_T_R_S_PrevAndNext(
330 long requestId, long classNameId, long classPK, int type,
331 long receiverUserId, int status,
332 com.liferay.portal.kernel.util.OrderByComparator obc)
333 throws com.liferay.portal.SystemException,
334 com.liferay.portlet.social.NoSuchRequestException;
335
336 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll()
337 throws com.liferay.portal.SystemException;
338
339 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
340 int start, int end) throws com.liferay.portal.SystemException;
341
342 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
343 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
344 throws com.liferay.portal.SystemException;
345
346 public void removeByUuid(java.lang.String uuid)
347 throws com.liferay.portal.SystemException;
348
349 public void removeByUUID_G(java.lang.String uuid, long groupId)
350 throws com.liferay.portal.SystemException,
351 com.liferay.portlet.social.NoSuchRequestException;
352
353 public void removeByCompanyId(long companyId)
354 throws com.liferay.portal.SystemException;
355
356 public void removeByUserId(long userId)
357 throws com.liferay.portal.SystemException;
358
359 public void removeByReceiverUserId(long receiverUserId)
360 throws com.liferay.portal.SystemException;
361
362 public void removeByU_S(long userId, int status)
363 throws com.liferay.portal.SystemException;
364
365 public void removeByR_S(long receiverUserId, int status)
366 throws com.liferay.portal.SystemException;
367
368 public void removeByU_C_C_T_R(long userId, long classNameId, long classPK,
369 int type, long receiverUserId)
370 throws com.liferay.portal.SystemException,
371 com.liferay.portlet.social.NoSuchRequestException;
372
373 public void removeByU_C_C_T_S(long userId, long classNameId, long classPK,
374 int type, int status) throws com.liferay.portal.SystemException;
375
376 public void removeByC_C_T_R_S(long classNameId, long classPK, int type,
377 long receiverUserId, int status)
378 throws com.liferay.portal.SystemException;
379
380 public void removeAll() throws com.liferay.portal.SystemException;
381
382 public int countByUuid(java.lang.String uuid)
383 throws com.liferay.portal.SystemException;
384
385 public int countByUUID_G(java.lang.String uuid, long groupId)
386 throws com.liferay.portal.SystemException;
387
388 public int countByCompanyId(long companyId)
389 throws com.liferay.portal.SystemException;
390
391 public int countByUserId(long userId)
392 throws com.liferay.portal.SystemException;
393
394 public int countByReceiverUserId(long receiverUserId)
395 throws com.liferay.portal.SystemException;
396
397 public int countByU_S(long userId, int status)
398 throws com.liferay.portal.SystemException;
399
400 public int countByR_S(long receiverUserId, int status)
401 throws com.liferay.portal.SystemException;
402
403 public int countByU_C_C_T_R(long userId, long classNameId, long classPK,
404 int type, long receiverUserId)
405 throws com.liferay.portal.SystemException;
406
407 public int countByU_C_C_T_S(long userId, long classNameId, long classPK,
408 int type, int status) throws com.liferay.portal.SystemException;
409
410 public int countByC_C_T_R_S(long classNameId, long classPK, int type,
411 long receiverUserId, int status)
412 throws com.liferay.portal.SystemException;
413
414 public int countAll() throws com.liferay.portal.SystemException;
415 }