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