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