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