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