1
22
23 package com.liferay.portlet.social.service.persistence;
24
25
31 public class SocialActivityUtil {
32 public static void cacheResult(
33 com.liferay.portlet.social.model.SocialActivity socialActivity) {
34 getPersistence().cacheResult(socialActivity);
35 }
36
37 public static void cacheResult(
38 java.util.List<com.liferay.portlet.social.model.SocialActivity> socialActivities) {
39 getPersistence().cacheResult(socialActivities);
40 }
41
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46 public static com.liferay.portlet.social.model.SocialActivity create(
47 long activityId) {
48 return getPersistence().create(activityId);
49 }
50
51 public static com.liferay.portlet.social.model.SocialActivity remove(
52 long activityId)
53 throws com.liferay.portal.SystemException,
54 com.liferay.portlet.social.NoSuchActivityException {
55 return getPersistence().remove(activityId);
56 }
57
58 public static com.liferay.portlet.social.model.SocialActivity remove(
59 com.liferay.portlet.social.model.SocialActivity socialActivity)
60 throws com.liferay.portal.SystemException {
61 return getPersistence().remove(socialActivity);
62 }
63
64
67 public static com.liferay.portlet.social.model.SocialActivity update(
68 com.liferay.portlet.social.model.SocialActivity socialActivity)
69 throws com.liferay.portal.SystemException {
70 return getPersistence().update(socialActivity);
71 }
72
73
86 public static com.liferay.portlet.social.model.SocialActivity update(
87 com.liferay.portlet.social.model.SocialActivity socialActivity,
88 boolean merge) throws com.liferay.portal.SystemException {
89 return getPersistence().update(socialActivity, merge);
90 }
91
92 public static com.liferay.portlet.social.model.SocialActivity updateImpl(
93 com.liferay.portlet.social.model.SocialActivity socialActivity,
94 boolean merge) throws com.liferay.portal.SystemException {
95 return getPersistence().updateImpl(socialActivity, merge);
96 }
97
98 public static com.liferay.portlet.social.model.SocialActivity findByPrimaryKey(
99 long activityId)
100 throws com.liferay.portal.SystemException,
101 com.liferay.portlet.social.NoSuchActivityException {
102 return getPersistence().findByPrimaryKey(activityId);
103 }
104
105 public static com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey(
106 long activityId) throws com.liferay.portal.SystemException {
107 return getPersistence().fetchByPrimaryKey(activityId);
108 }
109
110 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
111 long groupId) throws com.liferay.portal.SystemException {
112 return getPersistence().findByGroupId(groupId);
113 }
114
115 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
116 long groupId, int start, int end)
117 throws com.liferay.portal.SystemException {
118 return getPersistence().findByGroupId(groupId, start, end);
119 }
120
121 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
122 long groupId, int start, int end,
123 com.liferay.portal.kernel.util.OrderByComparator obc)
124 throws com.liferay.portal.SystemException {
125 return getPersistence().findByGroupId(groupId, start, end, obc);
126 }
127
128 public static com.liferay.portlet.social.model.SocialActivity findByGroupId_First(
129 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
130 throws com.liferay.portal.SystemException,
131 com.liferay.portlet.social.NoSuchActivityException {
132 return getPersistence().findByGroupId_First(groupId, obc);
133 }
134
135 public static com.liferay.portlet.social.model.SocialActivity findByGroupId_Last(
136 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portlet.social.NoSuchActivityException {
139 return getPersistence().findByGroupId_Last(groupId, obc);
140 }
141
142 public static com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext(
143 long activityId, long groupId,
144 com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.SystemException,
146 com.liferay.portlet.social.NoSuchActivityException {
147 return getPersistence()
148 .findByGroupId_PrevAndNext(activityId, groupId, obc);
149 }
150
151 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> 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.SocialActivity> 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.SocialActivity> 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.SocialActivity findByCompanyId_First(
170 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
171 throws com.liferay.portal.SystemException,
172 com.liferay.portlet.social.NoSuchActivityException {
173 return getPersistence().findByCompanyId_First(companyId, obc);
174 }
175
176 public static com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last(
177 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
178 throws com.liferay.portal.SystemException,
179 com.liferay.portlet.social.NoSuchActivityException {
180 return getPersistence().findByCompanyId_Last(companyId, obc);
181 }
182
183 public static com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext(
184 long activityId, long companyId,
185 com.liferay.portal.kernel.util.OrderByComparator obc)
186 throws com.liferay.portal.SystemException,
187 com.liferay.portlet.social.NoSuchActivityException {
188 return getPersistence()
189 .findByCompanyId_PrevAndNext(activityId, companyId, obc);
190 }
191
192 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> 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.SocialActivity> 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.SocialActivity> 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.SocialActivity findByUserId_First(
211 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
212 throws com.liferay.portal.SystemException,
213 com.liferay.portlet.social.NoSuchActivityException {
214 return getPersistence().findByUserId_First(userId, obc);
215 }
216
217 public static com.liferay.portlet.social.model.SocialActivity findByUserId_Last(
218 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
219 throws com.liferay.portal.SystemException,
220 com.liferay.portlet.social.NoSuchActivityException {
221 return getPersistence().findByUserId_Last(userId, obc);
222 }
223
224 public static com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext(
225 long activityId, long userId,
226 com.liferay.portal.kernel.util.OrderByComparator obc)
227 throws com.liferay.portal.SystemException,
228 com.liferay.portlet.social.NoSuchActivityException {
229 return getPersistence().findByUserId_PrevAndNext(activityId, userId, obc);
230 }
231
232 public static com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId(
233 long mirrorActivityId)
234 throws com.liferay.portal.SystemException,
235 com.liferay.portlet.social.NoSuchActivityException {
236 return getPersistence().findByMirrorActivityId(mirrorActivityId);
237 }
238
239 public static com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
240 long mirrorActivityId) throws com.liferay.portal.SystemException {
241 return getPersistence().fetchByMirrorActivityId(mirrorActivityId);
242 }
243
244 public static com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
245 long mirrorActivityId, boolean retrieveFromCache)
246 throws com.liferay.portal.SystemException {
247 return getPersistence()
248 .fetchByMirrorActivityId(mirrorActivityId, retrieveFromCache);
249 }
250
251 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
252 long classNameId) throws com.liferay.portal.SystemException {
253 return getPersistence().findByClassNameId(classNameId);
254 }
255
256 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
257 long classNameId, int start, int end)
258 throws com.liferay.portal.SystemException {
259 return getPersistence().findByClassNameId(classNameId, start, end);
260 }
261
262 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
263 long classNameId, int start, int end,
264 com.liferay.portal.kernel.util.OrderByComparator obc)
265 throws com.liferay.portal.SystemException {
266 return getPersistence().findByClassNameId(classNameId, start, end, obc);
267 }
268
269 public static com.liferay.portlet.social.model.SocialActivity findByClassNameId_First(
270 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
271 throws com.liferay.portal.SystemException,
272 com.liferay.portlet.social.NoSuchActivityException {
273 return getPersistence().findByClassNameId_First(classNameId, obc);
274 }
275
276 public static com.liferay.portlet.social.model.SocialActivity findByClassNameId_Last(
277 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
278 throws com.liferay.portal.SystemException,
279 com.liferay.portlet.social.NoSuchActivityException {
280 return getPersistence().findByClassNameId_Last(classNameId, obc);
281 }
282
283 public static com.liferay.portlet.social.model.SocialActivity[] findByClassNameId_PrevAndNext(
284 long activityId, long classNameId,
285 com.liferay.portal.kernel.util.OrderByComparator obc)
286 throws com.liferay.portal.SystemException,
287 com.liferay.portlet.social.NoSuchActivityException {
288 return getPersistence()
289 .findByClassNameId_PrevAndNext(activityId, classNameId, obc);
290 }
291
292 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
293 long receiverUserId) throws com.liferay.portal.SystemException {
294 return getPersistence().findByReceiverUserId(receiverUserId);
295 }
296
297 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
298 long receiverUserId, int start, int end)
299 throws com.liferay.portal.SystemException {
300 return getPersistence().findByReceiverUserId(receiverUserId, start, end);
301 }
302
303 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
304 long receiverUserId, int start, int end,
305 com.liferay.portal.kernel.util.OrderByComparator obc)
306 throws com.liferay.portal.SystemException {
307 return getPersistence()
308 .findByReceiverUserId(receiverUserId, start, end, obc);
309 }
310
311 public static com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_First(
312 long receiverUserId,
313 com.liferay.portal.kernel.util.OrderByComparator obc)
314 throws com.liferay.portal.SystemException,
315 com.liferay.portlet.social.NoSuchActivityException {
316 return getPersistence().findByReceiverUserId_First(receiverUserId, obc);
317 }
318
319 public static com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_Last(
320 long receiverUserId,
321 com.liferay.portal.kernel.util.OrderByComparator obc)
322 throws com.liferay.portal.SystemException,
323 com.liferay.portlet.social.NoSuchActivityException {
324 return getPersistence().findByReceiverUserId_Last(receiverUserId, obc);
325 }
326
327 public static com.liferay.portlet.social.model.SocialActivity[] findByReceiverUserId_PrevAndNext(
328 long activityId, long receiverUserId,
329 com.liferay.portal.kernel.util.OrderByComparator obc)
330 throws com.liferay.portal.SystemException,
331 com.liferay.portlet.social.NoSuchActivityException {
332 return getPersistence()
333 .findByReceiverUserId_PrevAndNext(activityId,
334 receiverUserId, obc);
335 }
336
337 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
338 long classNameId, long classPK)
339 throws com.liferay.portal.SystemException {
340 return getPersistence().findByC_C(classNameId, classPK);
341 }
342
343 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
344 long classNameId, long classPK, int start, int end)
345 throws com.liferay.portal.SystemException {
346 return getPersistence().findByC_C(classNameId, classPK, start, end);
347 }
348
349 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
350 long classNameId, long classPK, int start, int end,
351 com.liferay.portal.kernel.util.OrderByComparator obc)
352 throws com.liferay.portal.SystemException {
353 return getPersistence().findByC_C(classNameId, classPK, start, end, obc);
354 }
355
356 public static com.liferay.portlet.social.model.SocialActivity findByC_C_First(
357 long classNameId, long classPK,
358 com.liferay.portal.kernel.util.OrderByComparator obc)
359 throws com.liferay.portal.SystemException,
360 com.liferay.portlet.social.NoSuchActivityException {
361 return getPersistence().findByC_C_First(classNameId, classPK, obc);
362 }
363
364 public static com.liferay.portlet.social.model.SocialActivity findByC_C_Last(
365 long classNameId, long classPK,
366 com.liferay.portal.kernel.util.OrderByComparator obc)
367 throws com.liferay.portal.SystemException,
368 com.liferay.portlet.social.NoSuchActivityException {
369 return getPersistence().findByC_C_Last(classNameId, classPK, obc);
370 }
371
372 public static com.liferay.portlet.social.model.SocialActivity[] findByC_C_PrevAndNext(
373 long activityId, long classNameId, long classPK,
374 com.liferay.portal.kernel.util.OrderByComparator obc)
375 throws com.liferay.portal.SystemException,
376 com.liferay.portlet.social.NoSuchActivityException {
377 return getPersistence()
378 .findByC_C_PrevAndNext(activityId, classNameId, classPK, obc);
379 }
380
381 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
382 long mirrorActivityId, long classNameId, long classPK)
383 throws com.liferay.portal.SystemException {
384 return getPersistence()
385 .findByM_C_C(mirrorActivityId, classNameId, classPK);
386 }
387
388 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
389 long mirrorActivityId, long classNameId, long classPK, int start,
390 int end) throws com.liferay.portal.SystemException {
391 return getPersistence()
392 .findByM_C_C(mirrorActivityId, classNameId, classPK, start,
393 end);
394 }
395
396 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
397 long mirrorActivityId, long classNameId, long classPK, int start,
398 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
399 throws com.liferay.portal.SystemException {
400 return getPersistence()
401 .findByM_C_C(mirrorActivityId, classNameId, classPK, start,
402 end, obc);
403 }
404
405 public static com.liferay.portlet.social.model.SocialActivity findByM_C_C_First(
406 long mirrorActivityId, long classNameId, long classPK,
407 com.liferay.portal.kernel.util.OrderByComparator obc)
408 throws com.liferay.portal.SystemException,
409 com.liferay.portlet.social.NoSuchActivityException {
410 return getPersistence()
411 .findByM_C_C_First(mirrorActivityId, classNameId, classPK,
412 obc);
413 }
414
415 public static com.liferay.portlet.social.model.SocialActivity findByM_C_C_Last(
416 long mirrorActivityId, long classNameId, long classPK,
417 com.liferay.portal.kernel.util.OrderByComparator obc)
418 throws com.liferay.portal.SystemException,
419 com.liferay.portlet.social.NoSuchActivityException {
420 return getPersistence()
421 .findByM_C_C_Last(mirrorActivityId, classNameId, classPK, obc);
422 }
423
424 public static com.liferay.portlet.social.model.SocialActivity[] findByM_C_C_PrevAndNext(
425 long activityId, long mirrorActivityId, long classNameId, long classPK,
426 com.liferay.portal.kernel.util.OrderByComparator obc)
427 throws com.liferay.portal.SystemException,
428 com.liferay.portlet.social.NoSuchActivityException {
429 return getPersistence()
430 .findByM_C_C_PrevAndNext(activityId, mirrorActivityId,
431 classNameId, classPK, obc);
432 }
433
434 public static com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R(
435 long groupId, long userId, long createDate, long classNameId,
436 long classPK, int type, long receiverUserId)
437 throws com.liferay.portal.SystemException,
438 com.liferay.portlet.social.NoSuchActivityException {
439 return getPersistence()
440 .findByG_U_CD_C_C_T_R(groupId, userId, createDate,
441 classNameId, classPK, type, receiverUserId);
442 }
443
444 public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
445 long groupId, long userId, long createDate, long classNameId,
446 long classPK, int type, long receiverUserId)
447 throws com.liferay.portal.SystemException {
448 return getPersistence()
449 .fetchByG_U_CD_C_C_T_R(groupId, userId, createDate,
450 classNameId, classPK, type, receiverUserId);
451 }
452
453 public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
454 long groupId, long userId, long createDate, long classNameId,
455 long classPK, int type, long receiverUserId, boolean retrieveFromCache)
456 throws com.liferay.portal.SystemException {
457 return getPersistence()
458 .fetchByG_U_CD_C_C_T_R(groupId, userId, createDate,
459 classNameId, classPK, type, receiverUserId, retrieveFromCache);
460 }
461
462 public static java.util.List<Object> findWithDynamicQuery(
463 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
464 throws com.liferay.portal.SystemException {
465 return getPersistence().findWithDynamicQuery(dynamicQuery);
466 }
467
468 public static java.util.List<Object> findWithDynamicQuery(
469 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
470 int end) throws com.liferay.portal.SystemException {
471 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
472 }
473
474 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll()
475 throws com.liferay.portal.SystemException {
476 return getPersistence().findAll();
477 }
478
479 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
480 int start, int end) throws com.liferay.portal.SystemException {
481 return getPersistence().findAll(start, end);
482 }
483
484 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
485 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
486 throws com.liferay.portal.SystemException {
487 return getPersistence().findAll(start, end, obc);
488 }
489
490 public static void removeByGroupId(long groupId)
491 throws com.liferay.portal.SystemException {
492 getPersistence().removeByGroupId(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 removeByMirrorActivityId(long mirrorActivityId)
506 throws com.liferay.portal.SystemException,
507 com.liferay.portlet.social.NoSuchActivityException {
508 getPersistence().removeByMirrorActivityId(mirrorActivityId);
509 }
510
511 public static void removeByClassNameId(long classNameId)
512 throws com.liferay.portal.SystemException {
513 getPersistence().removeByClassNameId(classNameId);
514 }
515
516 public static void removeByReceiverUserId(long receiverUserId)
517 throws com.liferay.portal.SystemException {
518 getPersistence().removeByReceiverUserId(receiverUserId);
519 }
520
521 public static void removeByC_C(long classNameId, long classPK)
522 throws com.liferay.portal.SystemException {
523 getPersistence().removeByC_C(classNameId, classPK);
524 }
525
526 public static void removeByM_C_C(long mirrorActivityId, long classNameId,
527 long classPK) throws com.liferay.portal.SystemException {
528 getPersistence().removeByM_C_C(mirrorActivityId, classNameId, classPK);
529 }
530
531 public static void removeByG_U_CD_C_C_T_R(long groupId, long userId,
532 long createDate, long classNameId, long classPK, int type,
533 long receiverUserId)
534 throws com.liferay.portal.SystemException,
535 com.liferay.portlet.social.NoSuchActivityException {
536 getPersistence()
537 .removeByG_U_CD_C_C_T_R(groupId, userId, createDate, classNameId,
538 classPK, type, receiverUserId);
539 }
540
541 public static void removeAll() throws com.liferay.portal.SystemException {
542 getPersistence().removeAll();
543 }
544
545 public static int countByGroupId(long groupId)
546 throws com.liferay.portal.SystemException {
547 return getPersistence().countByGroupId(groupId);
548 }
549
550 public static int countByCompanyId(long companyId)
551 throws com.liferay.portal.SystemException {
552 return getPersistence().countByCompanyId(companyId);
553 }
554
555 public static int countByUserId(long userId)
556 throws com.liferay.portal.SystemException {
557 return getPersistence().countByUserId(userId);
558 }
559
560 public static int countByMirrorActivityId(long mirrorActivityId)
561 throws com.liferay.portal.SystemException {
562 return getPersistence().countByMirrorActivityId(mirrorActivityId);
563 }
564
565 public static int countByClassNameId(long classNameId)
566 throws com.liferay.portal.SystemException {
567 return getPersistence().countByClassNameId(classNameId);
568 }
569
570 public static int countByReceiverUserId(long receiverUserId)
571 throws com.liferay.portal.SystemException {
572 return getPersistence().countByReceiverUserId(receiverUserId);
573 }
574
575 public static int countByC_C(long classNameId, long classPK)
576 throws com.liferay.portal.SystemException {
577 return getPersistence().countByC_C(classNameId, classPK);
578 }
579
580 public static int countByM_C_C(long mirrorActivityId, long classNameId,
581 long classPK) throws com.liferay.portal.SystemException {
582 return getPersistence()
583 .countByM_C_C(mirrorActivityId, classNameId, classPK);
584 }
585
586 public static int countByG_U_CD_C_C_T_R(long groupId, long userId,
587 long createDate, long classNameId, long classPK, int type,
588 long receiverUserId) throws com.liferay.portal.SystemException {
589 return getPersistence()
590 .countByG_U_CD_C_C_T_R(groupId, userId, createDate,
591 classNameId, classPK, type, receiverUserId);
592 }
593
594 public static int countAll() throws com.liferay.portal.SystemException {
595 return getPersistence().countAll();
596 }
597
598 public static SocialActivityPersistence getPersistence() {
599 return _persistence;
600 }
601
602 public void setPersistence(SocialActivityPersistence persistence) {
603 _persistence = persistence;
604 }
605
606 private static SocialActivityPersistence _persistence;
607 }