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