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