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