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