1
14
15 package com.liferay.portlet.social.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20
21 import com.liferay.portlet.social.model.SocialRequest;
22
23 import java.util.List;
24
25
38 public class SocialRequestUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(SocialRequest socialRequest) {
50 getPersistence().clearCache(socialRequest);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<SocialRequest> findWithDynamicQuery(
65 DynamicQuery dynamicQuery) throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<SocialRequest> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static SocialRequest remove(SocialRequest socialRequest)
82 throws SystemException {
83 return getPersistence().remove(socialRequest);
84 }
85
86
89 public static SocialRequest update(SocialRequest socialRequest,
90 boolean merge) throws SystemException {
91 return getPersistence().update(socialRequest, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.social.model.SocialRequest socialRequest) {
96 getPersistence().cacheResult(socialRequest);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.social.model.SocialRequest> socialRequests) {
101 getPersistence().cacheResult(socialRequests);
102 }
103
104 public static com.liferay.portlet.social.model.SocialRequest create(
105 long requestId) {
106 return getPersistence().create(requestId);
107 }
108
109 public static com.liferay.portlet.social.model.SocialRequest remove(
110 long requestId)
111 throws com.liferay.portal.kernel.exception.SystemException,
112 com.liferay.portlet.social.NoSuchRequestException {
113 return getPersistence().remove(requestId);
114 }
115
116 public static com.liferay.portlet.social.model.SocialRequest updateImpl(
117 com.liferay.portlet.social.model.SocialRequest socialRequest,
118 boolean merge)
119 throws com.liferay.portal.kernel.exception.SystemException {
120 return getPersistence().updateImpl(socialRequest, merge);
121 }
122
123 public static com.liferay.portlet.social.model.SocialRequest findByPrimaryKey(
124 long requestId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.social.NoSuchRequestException {
127 return getPersistence().findByPrimaryKey(requestId);
128 }
129
130 public static com.liferay.portlet.social.model.SocialRequest fetchByPrimaryKey(
131 long requestId)
132 throws com.liferay.portal.kernel.exception.SystemException {
133 return getPersistence().fetchByPrimaryKey(requestId);
134 }
135
136 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
137 java.lang.String uuid)
138 throws com.liferay.portal.kernel.exception.SystemException {
139 return getPersistence().findByUuid(uuid);
140 }
141
142 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
143 java.lang.String uuid, int start, int end)
144 throws com.liferay.portal.kernel.exception.SystemException {
145 return getPersistence().findByUuid(uuid, start, end);
146 }
147
148 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
149 java.lang.String uuid, int start, int end,
150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
153 }
154
155 public static com.liferay.portlet.social.model.SocialRequest findByUuid_First(
156 java.lang.String uuid,
157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158 throws com.liferay.portal.kernel.exception.SystemException,
159 com.liferay.portlet.social.NoSuchRequestException {
160 return getPersistence().findByUuid_First(uuid, orderByComparator);
161 }
162
163 public static com.liferay.portlet.social.model.SocialRequest findByUuid_Last(
164 java.lang.String uuid,
165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166 throws com.liferay.portal.kernel.exception.SystemException,
167 com.liferay.portlet.social.NoSuchRequestException {
168 return getPersistence().findByUuid_Last(uuid, orderByComparator);
169 }
170
171 public static com.liferay.portlet.social.model.SocialRequest[] findByUuid_PrevAndNext(
172 long requestId, java.lang.String uuid,
173 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174 throws com.liferay.portal.kernel.exception.SystemException,
175 com.liferay.portlet.social.NoSuchRequestException {
176 return getPersistence()
177 .findByUuid_PrevAndNext(requestId, uuid, orderByComparator);
178 }
179
180 public static com.liferay.portlet.social.model.SocialRequest findByUUID_G(
181 java.lang.String uuid, long groupId)
182 throws com.liferay.portal.kernel.exception.SystemException,
183 com.liferay.portlet.social.NoSuchRequestException {
184 return getPersistence().findByUUID_G(uuid, groupId);
185 }
186
187 public static com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
188 java.lang.String uuid, long groupId)
189 throws com.liferay.portal.kernel.exception.SystemException {
190 return getPersistence().fetchByUUID_G(uuid, groupId);
191 }
192
193 public static com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
194 java.lang.String uuid, long groupId, boolean retrieveFromCache)
195 throws com.liferay.portal.kernel.exception.SystemException {
196 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
197 }
198
199 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
200 long companyId)
201 throws com.liferay.portal.kernel.exception.SystemException {
202 return getPersistence().findByCompanyId(companyId);
203 }
204
205 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
206 long companyId, int start, int end)
207 throws com.liferay.portal.kernel.exception.SystemException {
208 return getPersistence().findByCompanyId(companyId, start, end);
209 }
210
211 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
212 long companyId, int start, int end,
213 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getPersistence()
216 .findByCompanyId(companyId, start, end, orderByComparator);
217 }
218
219 public static com.liferay.portlet.social.model.SocialRequest findByCompanyId_First(
220 long companyId,
221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222 throws com.liferay.portal.kernel.exception.SystemException,
223 com.liferay.portlet.social.NoSuchRequestException {
224 return getPersistence()
225 .findByCompanyId_First(companyId, orderByComparator);
226 }
227
228 public static com.liferay.portlet.social.model.SocialRequest findByCompanyId_Last(
229 long companyId,
230 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
231 throws com.liferay.portal.kernel.exception.SystemException,
232 com.liferay.portlet.social.NoSuchRequestException {
233 return getPersistence()
234 .findByCompanyId_Last(companyId, orderByComparator);
235 }
236
237 public static com.liferay.portlet.social.model.SocialRequest[] findByCompanyId_PrevAndNext(
238 long requestId, long companyId,
239 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
240 throws com.liferay.portal.kernel.exception.SystemException,
241 com.liferay.portlet.social.NoSuchRequestException {
242 return getPersistence()
243 .findByCompanyId_PrevAndNext(requestId, companyId,
244 orderByComparator);
245 }
246
247 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
248 long userId) throws com.liferay.portal.kernel.exception.SystemException {
249 return getPersistence().findByUserId(userId);
250 }
251
252 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
253 long userId, int start, int end)
254 throws com.liferay.portal.kernel.exception.SystemException {
255 return getPersistence().findByUserId(userId, start, end);
256 }
257
258 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
259 long userId, int start, int end,
260 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
261 throws com.liferay.portal.kernel.exception.SystemException {
262 return getPersistence()
263 .findByUserId(userId, start, end, orderByComparator);
264 }
265
266 public static com.liferay.portlet.social.model.SocialRequest findByUserId_First(
267 long userId,
268 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
269 throws com.liferay.portal.kernel.exception.SystemException,
270 com.liferay.portlet.social.NoSuchRequestException {
271 return getPersistence().findByUserId_First(userId, orderByComparator);
272 }
273
274 public static com.liferay.portlet.social.model.SocialRequest findByUserId_Last(
275 long userId,
276 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
277 throws com.liferay.portal.kernel.exception.SystemException,
278 com.liferay.portlet.social.NoSuchRequestException {
279 return getPersistence().findByUserId_Last(userId, orderByComparator);
280 }
281
282 public static com.liferay.portlet.social.model.SocialRequest[] findByUserId_PrevAndNext(
283 long requestId, long userId,
284 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
285 throws com.liferay.portal.kernel.exception.SystemException,
286 com.liferay.portlet.social.NoSuchRequestException {
287 return getPersistence()
288 .findByUserId_PrevAndNext(requestId, userId,
289 orderByComparator);
290 }
291
292 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
293 long receiverUserId)
294 throws com.liferay.portal.kernel.exception.SystemException {
295 return getPersistence().findByReceiverUserId(receiverUserId);
296 }
297
298 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
299 long receiverUserId, int start, int end)
300 throws com.liferay.portal.kernel.exception.SystemException {
301 return getPersistence().findByReceiverUserId(receiverUserId, start, end);
302 }
303
304 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
305 long receiverUserId, int start, int end,
306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307 throws com.liferay.portal.kernel.exception.SystemException {
308 return getPersistence()
309 .findByReceiverUserId(receiverUserId, start, end,
310 orderByComparator);
311 }
312
313 public static com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_First(
314 long receiverUserId,
315 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
316 throws com.liferay.portal.kernel.exception.SystemException,
317 com.liferay.portlet.social.NoSuchRequestException {
318 return getPersistence()
319 .findByReceiverUserId_First(receiverUserId, orderByComparator);
320 }
321
322 public static com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_Last(
323 long receiverUserId,
324 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
325 throws com.liferay.portal.kernel.exception.SystemException,
326 com.liferay.portlet.social.NoSuchRequestException {
327 return getPersistence()
328 .findByReceiverUserId_Last(receiverUserId, orderByComparator);
329 }
330
331 public static com.liferay.portlet.social.model.SocialRequest[] findByReceiverUserId_PrevAndNext(
332 long requestId, long receiverUserId,
333 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
334 throws com.liferay.portal.kernel.exception.SystemException,
335 com.liferay.portlet.social.NoSuchRequestException {
336 return getPersistence()
337 .findByReceiverUserId_PrevAndNext(requestId, receiverUserId,
338 orderByComparator);
339 }
340
341 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
342 long userId, int status)
343 throws com.liferay.portal.kernel.exception.SystemException {
344 return getPersistence().findByU_S(userId, status);
345 }
346
347 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
348 long userId, int status, int start, int end)
349 throws com.liferay.portal.kernel.exception.SystemException {
350 return getPersistence().findByU_S(userId, status, start, end);
351 }
352
353 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
354 long userId, int status, int start, int end,
355 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
356 throws com.liferay.portal.kernel.exception.SystemException {
357 return getPersistence()
358 .findByU_S(userId, status, start, end, orderByComparator);
359 }
360
361 public static com.liferay.portlet.social.model.SocialRequest findByU_S_First(
362 long userId, int status,
363 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
364 throws com.liferay.portal.kernel.exception.SystemException,
365 com.liferay.portlet.social.NoSuchRequestException {
366 return getPersistence()
367 .findByU_S_First(userId, status, orderByComparator);
368 }
369
370 public static com.liferay.portlet.social.model.SocialRequest findByU_S_Last(
371 long userId, int status,
372 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
373 throws com.liferay.portal.kernel.exception.SystemException,
374 com.liferay.portlet.social.NoSuchRequestException {
375 return getPersistence().findByU_S_Last(userId, status, orderByComparator);
376 }
377
378 public static com.liferay.portlet.social.model.SocialRequest[] findByU_S_PrevAndNext(
379 long requestId, long userId, int status,
380 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381 throws com.liferay.portal.kernel.exception.SystemException,
382 com.liferay.portlet.social.NoSuchRequestException {
383 return getPersistence()
384 .findByU_S_PrevAndNext(requestId, userId, status,
385 orderByComparator);
386 }
387
388 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
389 long receiverUserId, int status)
390 throws com.liferay.portal.kernel.exception.SystemException {
391 return getPersistence().findByR_S(receiverUserId, status);
392 }
393
394 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
395 long receiverUserId, int status, int start, int end)
396 throws com.liferay.portal.kernel.exception.SystemException {
397 return getPersistence().findByR_S(receiverUserId, status, start, end);
398 }
399
400 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
401 long receiverUserId, int status, int start, int end,
402 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
403 throws com.liferay.portal.kernel.exception.SystemException {
404 return getPersistence()
405 .findByR_S(receiverUserId, status, start, end,
406 orderByComparator);
407 }
408
409 public static com.liferay.portlet.social.model.SocialRequest findByR_S_First(
410 long receiverUserId, int status,
411 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
412 throws com.liferay.portal.kernel.exception.SystemException,
413 com.liferay.portlet.social.NoSuchRequestException {
414 return getPersistence()
415 .findByR_S_First(receiverUserId, status, orderByComparator);
416 }
417
418 public static com.liferay.portlet.social.model.SocialRequest findByR_S_Last(
419 long receiverUserId, int status,
420 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
421 throws com.liferay.portal.kernel.exception.SystemException,
422 com.liferay.portlet.social.NoSuchRequestException {
423 return getPersistence()
424 .findByR_S_Last(receiverUserId, status, orderByComparator);
425 }
426
427 public static com.liferay.portlet.social.model.SocialRequest[] findByR_S_PrevAndNext(
428 long requestId, long receiverUserId, int status,
429 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
430 throws com.liferay.portal.kernel.exception.SystemException,
431 com.liferay.portlet.social.NoSuchRequestException {
432 return getPersistence()
433 .findByR_S_PrevAndNext(requestId, receiverUserId, status,
434 orderByComparator);
435 }
436
437 public static com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_R(
438 long userId, long classNameId, long classPK, int type,
439 long receiverUserId)
440 throws com.liferay.portal.kernel.exception.SystemException,
441 com.liferay.portlet.social.NoSuchRequestException {
442 return getPersistence()
443 .findByU_C_C_T_R(userId, classNameId, classPK, type,
444 receiverUserId);
445 }
446
447 public static com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
448 long userId, long classNameId, long classPK, int type,
449 long receiverUserId)
450 throws com.liferay.portal.kernel.exception.SystemException {
451 return getPersistence()
452 .fetchByU_C_C_T_R(userId, classNameId, classPK, type,
453 receiverUserId);
454 }
455
456 public static com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
457 long userId, long classNameId, long classPK, int type,
458 long receiverUserId, boolean retrieveFromCache)
459 throws com.liferay.portal.kernel.exception.SystemException {
460 return getPersistence()
461 .fetchByU_C_C_T_R(userId, classNameId, classPK, type,
462 receiverUserId, retrieveFromCache);
463 }
464
465 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
466 long userId, long classNameId, long classPK, int type, int status)
467 throws com.liferay.portal.kernel.exception.SystemException {
468 return getPersistence()
469 .findByU_C_C_T_S(userId, classNameId, classPK, type, status);
470 }
471
472 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
473 long userId, long classNameId, long classPK, int type, int status,
474 int start, int end)
475 throws com.liferay.portal.kernel.exception.SystemException {
476 return getPersistence()
477 .findByU_C_C_T_S(userId, classNameId, classPK, type, status,
478 start, end);
479 }
480
481 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
482 long userId, long classNameId, long classPK, int type, int status,
483 int start, int end,
484 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
485 throws com.liferay.portal.kernel.exception.SystemException {
486 return getPersistence()
487 .findByU_C_C_T_S(userId, classNameId, classPK, type, status,
488 start, end, orderByComparator);
489 }
490
491 public static com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_First(
492 long userId, long classNameId, long classPK, int type, int status,
493 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
494 throws com.liferay.portal.kernel.exception.SystemException,
495 com.liferay.portlet.social.NoSuchRequestException {
496 return getPersistence()
497 .findByU_C_C_T_S_First(userId, classNameId, classPK, type,
498 status, orderByComparator);
499 }
500
501 public static com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_Last(
502 long userId, long classNameId, long classPK, int type, int status,
503 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
504 throws com.liferay.portal.kernel.exception.SystemException,
505 com.liferay.portlet.social.NoSuchRequestException {
506 return getPersistence()
507 .findByU_C_C_T_S_Last(userId, classNameId, classPK, type,
508 status, orderByComparator);
509 }
510
511 public static com.liferay.portlet.social.model.SocialRequest[] findByU_C_C_T_S_PrevAndNext(
512 long requestId, long userId, long classNameId, long classPK, int type,
513 int status,
514 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
515 throws com.liferay.portal.kernel.exception.SystemException,
516 com.liferay.portlet.social.NoSuchRequestException {
517 return getPersistence()
518 .findByU_C_C_T_S_PrevAndNext(requestId, userId, classNameId,
519 classPK, type, status, orderByComparator);
520 }
521
522 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
523 long classNameId, long classPK, int type, long receiverUserId,
524 int status) throws com.liferay.portal.kernel.exception.SystemException {
525 return getPersistence()
526 .findByC_C_T_R_S(classNameId, classPK, type, receiverUserId,
527 status);
528 }
529
530 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
531 long classNameId, long classPK, int type, long receiverUserId,
532 int status, int start, int end)
533 throws com.liferay.portal.kernel.exception.SystemException {
534 return getPersistence()
535 .findByC_C_T_R_S(classNameId, classPK, type, receiverUserId,
536 status, start, end);
537 }
538
539 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
540 long classNameId, long classPK, int type, long receiverUserId,
541 int status, int start, int end,
542 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
543 throws com.liferay.portal.kernel.exception.SystemException {
544 return getPersistence()
545 .findByC_C_T_R_S(classNameId, classPK, type, receiverUserId,
546 status, start, end, orderByComparator);
547 }
548
549 public static com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_First(
550 long classNameId, long classPK, int type, long receiverUserId,
551 int status,
552 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
553 throws com.liferay.portal.kernel.exception.SystemException,
554 com.liferay.portlet.social.NoSuchRequestException {
555 return getPersistence()
556 .findByC_C_T_R_S_First(classNameId, classPK, type,
557 receiverUserId, status, orderByComparator);
558 }
559
560 public static com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_Last(
561 long classNameId, long classPK, int type, long receiverUserId,
562 int status,
563 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
564 throws com.liferay.portal.kernel.exception.SystemException,
565 com.liferay.portlet.social.NoSuchRequestException {
566 return getPersistence()
567 .findByC_C_T_R_S_Last(classNameId, classPK, type,
568 receiverUserId, status, orderByComparator);
569 }
570
571 public static com.liferay.portlet.social.model.SocialRequest[] findByC_C_T_R_S_PrevAndNext(
572 long requestId, long classNameId, long classPK, int type,
573 long receiverUserId, int status,
574 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
575 throws com.liferay.portal.kernel.exception.SystemException,
576 com.liferay.portlet.social.NoSuchRequestException {
577 return getPersistence()
578 .findByC_C_T_R_S_PrevAndNext(requestId, classNameId,
579 classPK, type, receiverUserId, status, orderByComparator);
580 }
581
582 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll()
583 throws com.liferay.portal.kernel.exception.SystemException {
584 return getPersistence().findAll();
585 }
586
587 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
588 int start, int end)
589 throws com.liferay.portal.kernel.exception.SystemException {
590 return getPersistence().findAll(start, end);
591 }
592
593 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
594 int start, int end,
595 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
596 throws com.liferay.portal.kernel.exception.SystemException {
597 return getPersistence().findAll(start, end, orderByComparator);
598 }
599
600 public static void removeByUuid(java.lang.String uuid)
601 throws com.liferay.portal.kernel.exception.SystemException {
602 getPersistence().removeByUuid(uuid);
603 }
604
605 public static void removeByUUID_G(java.lang.String uuid, long groupId)
606 throws com.liferay.portal.kernel.exception.SystemException,
607 com.liferay.portlet.social.NoSuchRequestException {
608 getPersistence().removeByUUID_G(uuid, groupId);
609 }
610
611 public static void removeByCompanyId(long companyId)
612 throws com.liferay.portal.kernel.exception.SystemException {
613 getPersistence().removeByCompanyId(companyId);
614 }
615
616 public static void removeByUserId(long userId)
617 throws com.liferay.portal.kernel.exception.SystemException {
618 getPersistence().removeByUserId(userId);
619 }
620
621 public static void removeByReceiverUserId(long receiverUserId)
622 throws com.liferay.portal.kernel.exception.SystemException {
623 getPersistence().removeByReceiverUserId(receiverUserId);
624 }
625
626 public static void removeByU_S(long userId, int status)
627 throws com.liferay.portal.kernel.exception.SystemException {
628 getPersistence().removeByU_S(userId, status);
629 }
630
631 public static void removeByR_S(long receiverUserId, int status)
632 throws com.liferay.portal.kernel.exception.SystemException {
633 getPersistence().removeByR_S(receiverUserId, status);
634 }
635
636 public static void removeByU_C_C_T_R(long userId, long classNameId,
637 long classPK, int type, long receiverUserId)
638 throws com.liferay.portal.kernel.exception.SystemException,
639 com.liferay.portlet.social.NoSuchRequestException {
640 getPersistence()
641 .removeByU_C_C_T_R(userId, classNameId, classPK, type,
642 receiverUserId);
643 }
644
645 public static void removeByU_C_C_T_S(long userId, long classNameId,
646 long classPK, int type, int status)
647 throws com.liferay.portal.kernel.exception.SystemException {
648 getPersistence()
649 .removeByU_C_C_T_S(userId, classNameId, classPK, type, status);
650 }
651
652 public static void removeByC_C_T_R_S(long classNameId, long classPK,
653 int type, long receiverUserId, int status)
654 throws com.liferay.portal.kernel.exception.SystemException {
655 getPersistence()
656 .removeByC_C_T_R_S(classNameId, classPK, type, receiverUserId,
657 status);
658 }
659
660 public static void removeAll()
661 throws com.liferay.portal.kernel.exception.SystemException {
662 getPersistence().removeAll();
663 }
664
665 public static int countByUuid(java.lang.String uuid)
666 throws com.liferay.portal.kernel.exception.SystemException {
667 return getPersistence().countByUuid(uuid);
668 }
669
670 public static int countByUUID_G(java.lang.String uuid, long groupId)
671 throws com.liferay.portal.kernel.exception.SystemException {
672 return getPersistence().countByUUID_G(uuid, groupId);
673 }
674
675 public static int countByCompanyId(long companyId)
676 throws com.liferay.portal.kernel.exception.SystemException {
677 return getPersistence().countByCompanyId(companyId);
678 }
679
680 public static int countByUserId(long userId)
681 throws com.liferay.portal.kernel.exception.SystemException {
682 return getPersistence().countByUserId(userId);
683 }
684
685 public static int countByReceiverUserId(long receiverUserId)
686 throws com.liferay.portal.kernel.exception.SystemException {
687 return getPersistence().countByReceiverUserId(receiverUserId);
688 }
689
690 public static int countByU_S(long userId, int status)
691 throws com.liferay.portal.kernel.exception.SystemException {
692 return getPersistence().countByU_S(userId, status);
693 }
694
695 public static int countByR_S(long receiverUserId, int status)
696 throws com.liferay.portal.kernel.exception.SystemException {
697 return getPersistence().countByR_S(receiverUserId, status);
698 }
699
700 public static int countByU_C_C_T_R(long userId, long classNameId,
701 long classPK, int type, long receiverUserId)
702 throws com.liferay.portal.kernel.exception.SystemException {
703 return getPersistence()
704 .countByU_C_C_T_R(userId, classNameId, classPK, type,
705 receiverUserId);
706 }
707
708 public static int countByU_C_C_T_S(long userId, long classNameId,
709 long classPK, int type, int status)
710 throws com.liferay.portal.kernel.exception.SystemException {
711 return getPersistence()
712 .countByU_C_C_T_S(userId, classNameId, classPK, type, status);
713 }
714
715 public static int countByC_C_T_R_S(long classNameId, long classPK,
716 int type, long receiverUserId, int status)
717 throws com.liferay.portal.kernel.exception.SystemException {
718 return getPersistence()
719 .countByC_C_T_R_S(classNameId, classPK, type,
720 receiverUserId, status);
721 }
722
723 public static int countAll()
724 throws com.liferay.portal.kernel.exception.SystemException {
725 return getPersistence().countAll();
726 }
727
728 public static SocialRequestPersistence getPersistence() {
729 if (_persistence == null) {
730 _persistence = (SocialRequestPersistence)PortalBeanLocatorUtil.locate(SocialRequestPersistence.class.getName());
731 }
732
733 return _persistence;
734 }
735
736 public void setPersistence(SocialRequestPersistence persistence) {
737 _persistence = persistence;
738 }
739
740 private static SocialRequestPersistence _persistence;
741 }