1
14
15 package com.liferay.portlet.messageboards.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20 import com.liferay.portal.kernel.util.ReferenceRegistry;
21
22 import com.liferay.portlet.messageboards.model.MBMessage;
23
24 import java.util.List;
25
26
39 public class MBMessageUtil {
40
43 public static void clearCache() {
44 getPersistence().clearCache();
45 }
46
47
50 public static void clearCache(MBMessage mbMessage) {
51 getPersistence().clearCache(mbMessage);
52 }
53
54
57 public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().countWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66 throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery);
68 }
69
70
73 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74 int start, int end) throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static MBMessage remove(MBMessage mbMessage)
82 throws SystemException {
83 return getPersistence().remove(mbMessage);
84 }
85
86
89 public static MBMessage update(MBMessage mbMessage, boolean merge)
90 throws SystemException {
91 return getPersistence().update(mbMessage, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.messageboards.model.MBMessage mbMessage) {
96 getPersistence().cacheResult(mbMessage);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> mbMessages) {
101 getPersistence().cacheResult(mbMessages);
102 }
103
104 public static com.liferay.portlet.messageboards.model.MBMessage create(
105 long messageId) {
106 return getPersistence().create(messageId);
107 }
108
109 public static com.liferay.portlet.messageboards.model.MBMessage remove(
110 long messageId)
111 throws com.liferay.portal.SystemException,
112 com.liferay.portlet.messageboards.NoSuchMessageException {
113 return getPersistence().remove(messageId);
114 }
115
116
119 public static com.liferay.portlet.messageboards.model.MBMessage update(
120 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().update(mbMessage);
123 }
124
125 public static com.liferay.portlet.messageboards.model.MBMessage updateImpl(
126 com.liferay.portlet.messageboards.model.MBMessage mbMessage,
127 boolean merge) throws com.liferay.portal.SystemException {
128 return getPersistence().updateImpl(mbMessage, merge);
129 }
130
131 public static com.liferay.portlet.messageboards.model.MBMessage findByPrimaryKey(
132 long messageId)
133 throws com.liferay.portal.SystemException,
134 com.liferay.portlet.messageboards.NoSuchMessageException {
135 return getPersistence().findByPrimaryKey(messageId);
136 }
137
138 public static com.liferay.portlet.messageboards.model.MBMessage fetchByPrimaryKey(
139 long messageId) throws com.liferay.portal.SystemException {
140 return getPersistence().fetchByPrimaryKey(messageId);
141 }
142
143 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
144 java.lang.String uuid) throws com.liferay.portal.SystemException {
145 return getPersistence().findByUuid(uuid);
146 }
147
148 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
149 java.lang.String uuid, int start, int end)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findByUuid(uuid, start, end);
152 }
153
154 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
155 java.lang.String uuid, int start, int end,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.SystemException {
158 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
159 }
160
161 public static com.liferay.portlet.messageboards.model.MBMessage findByUuid_First(
162 java.lang.String uuid,
163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164 throws com.liferay.portal.SystemException,
165 com.liferay.portlet.messageboards.NoSuchMessageException {
166 return getPersistence().findByUuid_First(uuid, orderByComparator);
167 }
168
169 public static com.liferay.portlet.messageboards.model.MBMessage findByUuid_Last(
170 java.lang.String uuid,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.SystemException,
173 com.liferay.portlet.messageboards.NoSuchMessageException {
174 return getPersistence().findByUuid_Last(uuid, orderByComparator);
175 }
176
177 public static com.liferay.portlet.messageboards.model.MBMessage[] findByUuid_PrevAndNext(
178 long messageId, java.lang.String uuid,
179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180 throws com.liferay.portal.SystemException,
181 com.liferay.portlet.messageboards.NoSuchMessageException {
182 return getPersistence()
183 .findByUuid_PrevAndNext(messageId, uuid, orderByComparator);
184 }
185
186 public static com.liferay.portlet.messageboards.model.MBMessage findByUUID_G(
187 java.lang.String uuid, long groupId)
188 throws com.liferay.portal.SystemException,
189 com.liferay.portlet.messageboards.NoSuchMessageException {
190 return getPersistence().findByUUID_G(uuid, groupId);
191 }
192
193 public static com.liferay.portlet.messageboards.model.MBMessage fetchByUUID_G(
194 java.lang.String uuid, long groupId)
195 throws com.liferay.portal.SystemException {
196 return getPersistence().fetchByUUID_G(uuid, groupId);
197 }
198
199 public static com.liferay.portlet.messageboards.model.MBMessage fetchByUUID_G(
200 java.lang.String uuid, long groupId, boolean retrieveFromCache)
201 throws com.liferay.portal.SystemException {
202 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
203 }
204
205 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
206 long companyId) throws com.liferay.portal.SystemException {
207 return getPersistence().findByCompanyId(companyId);
208 }
209
210 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
211 long companyId, int start, int end)
212 throws com.liferay.portal.SystemException {
213 return getPersistence().findByCompanyId(companyId, start, end);
214 }
215
216 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
217 long companyId, int start, int end,
218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219 throws com.liferay.portal.SystemException {
220 return getPersistence()
221 .findByCompanyId(companyId, start, end, orderByComparator);
222 }
223
224 public static com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_First(
225 long companyId,
226 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227 throws com.liferay.portal.SystemException,
228 com.liferay.portlet.messageboards.NoSuchMessageException {
229 return getPersistence()
230 .findByCompanyId_First(companyId, orderByComparator);
231 }
232
233 public static com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_Last(
234 long companyId,
235 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
236 throws com.liferay.portal.SystemException,
237 com.liferay.portlet.messageboards.NoSuchMessageException {
238 return getPersistence()
239 .findByCompanyId_Last(companyId, orderByComparator);
240 }
241
242 public static com.liferay.portlet.messageboards.model.MBMessage[] findByCompanyId_PrevAndNext(
243 long messageId, long companyId,
244 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245 throws com.liferay.portal.SystemException,
246 com.liferay.portlet.messageboards.NoSuchMessageException {
247 return getPersistence()
248 .findByCompanyId_PrevAndNext(messageId, companyId,
249 orderByComparator);
250 }
251
252 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
253 long groupId) throws com.liferay.portal.SystemException {
254 return getPersistence().findByGroupId(groupId);
255 }
256
257 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
258 long groupId, int start, int end)
259 throws com.liferay.portal.SystemException {
260 return getPersistence().findByGroupId(groupId, start, end);
261 }
262
263 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
264 long groupId, int start, int end,
265 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
266 throws com.liferay.portal.SystemException {
267 return getPersistence()
268 .findByGroupId(groupId, start, end, orderByComparator);
269 }
270
271 public static com.liferay.portlet.messageboards.model.MBMessage findByGroupId_First(
272 long groupId,
273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274 throws com.liferay.portal.SystemException,
275 com.liferay.portlet.messageboards.NoSuchMessageException {
276 return getPersistence().findByGroupId_First(groupId, orderByComparator);
277 }
278
279 public static com.liferay.portlet.messageboards.model.MBMessage findByGroupId_Last(
280 long groupId,
281 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
282 throws com.liferay.portal.SystemException,
283 com.liferay.portlet.messageboards.NoSuchMessageException {
284 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
285 }
286
287 public static com.liferay.portlet.messageboards.model.MBMessage[] findByGroupId_PrevAndNext(
288 long messageId, long groupId,
289 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290 throws com.liferay.portal.SystemException,
291 com.liferay.portlet.messageboards.NoSuchMessageException {
292 return getPersistence()
293 .findByGroupId_PrevAndNext(messageId, groupId,
294 orderByComparator);
295 }
296
297 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
298 long categoryId) throws com.liferay.portal.SystemException {
299 return getPersistence().findByCategoryId(categoryId);
300 }
301
302 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
303 long categoryId, int start, int end)
304 throws com.liferay.portal.SystemException {
305 return getPersistence().findByCategoryId(categoryId, start, end);
306 }
307
308 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
309 long categoryId, int start, int end,
310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311 throws com.liferay.portal.SystemException {
312 return getPersistence()
313 .findByCategoryId(categoryId, start, end, orderByComparator);
314 }
315
316 public static com.liferay.portlet.messageboards.model.MBMessage findByCategoryId_First(
317 long categoryId,
318 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
319 throws com.liferay.portal.SystemException,
320 com.liferay.portlet.messageboards.NoSuchMessageException {
321 return getPersistence()
322 .findByCategoryId_First(categoryId, orderByComparator);
323 }
324
325 public static com.liferay.portlet.messageboards.model.MBMessage findByCategoryId_Last(
326 long categoryId,
327 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
328 throws com.liferay.portal.SystemException,
329 com.liferay.portlet.messageboards.NoSuchMessageException {
330 return getPersistence()
331 .findByCategoryId_Last(categoryId, orderByComparator);
332 }
333
334 public static com.liferay.portlet.messageboards.model.MBMessage[] findByCategoryId_PrevAndNext(
335 long messageId, long categoryId,
336 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
337 throws com.liferay.portal.SystemException,
338 com.liferay.portlet.messageboards.NoSuchMessageException {
339 return getPersistence()
340 .findByCategoryId_PrevAndNext(messageId, categoryId,
341 orderByComparator);
342 }
343
344 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
345 long threadId) throws com.liferay.portal.SystemException {
346 return getPersistence().findByThreadId(threadId);
347 }
348
349 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
350 long threadId, int start, int end)
351 throws com.liferay.portal.SystemException {
352 return getPersistence().findByThreadId(threadId, start, end);
353 }
354
355 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
356 long threadId, int start, int end,
357 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
358 throws com.liferay.portal.SystemException {
359 return getPersistence()
360 .findByThreadId(threadId, start, end, orderByComparator);
361 }
362
363 public static com.liferay.portlet.messageboards.model.MBMessage findByThreadId_First(
364 long threadId,
365 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366 throws com.liferay.portal.SystemException,
367 com.liferay.portlet.messageboards.NoSuchMessageException {
368 return getPersistence().findByThreadId_First(threadId, orderByComparator);
369 }
370
371 public static com.liferay.portlet.messageboards.model.MBMessage findByThreadId_Last(
372 long threadId,
373 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
374 throws com.liferay.portal.SystemException,
375 com.liferay.portlet.messageboards.NoSuchMessageException {
376 return getPersistence().findByThreadId_Last(threadId, orderByComparator);
377 }
378
379 public static com.liferay.portlet.messageboards.model.MBMessage[] findByThreadId_PrevAndNext(
380 long messageId, long threadId,
381 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
382 throws com.liferay.portal.SystemException,
383 com.liferay.portlet.messageboards.NoSuchMessageException {
384 return getPersistence()
385 .findByThreadId_PrevAndNext(messageId, threadId,
386 orderByComparator);
387 }
388
389 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies(
390 long threadId) throws com.liferay.portal.SystemException {
391 return getPersistence().findByThreadReplies(threadId);
392 }
393
394 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies(
395 long threadId, int start, int end)
396 throws com.liferay.portal.SystemException {
397 return getPersistence().findByThreadReplies(threadId, start, end);
398 }
399
400 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies(
401 long threadId, int start, int end,
402 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
403 throws com.liferay.portal.SystemException {
404 return getPersistence()
405 .findByThreadReplies(threadId, start, end, orderByComparator);
406 }
407
408 public static com.liferay.portlet.messageboards.model.MBMessage findByThreadReplies_First(
409 long threadId,
410 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
411 throws com.liferay.portal.SystemException,
412 com.liferay.portlet.messageboards.NoSuchMessageException {
413 return getPersistence()
414 .findByThreadReplies_First(threadId, orderByComparator);
415 }
416
417 public static com.liferay.portlet.messageboards.model.MBMessage findByThreadReplies_Last(
418 long threadId,
419 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
420 throws com.liferay.portal.SystemException,
421 com.liferay.portlet.messageboards.NoSuchMessageException {
422 return getPersistence()
423 .findByThreadReplies_Last(threadId, orderByComparator);
424 }
425
426 public static com.liferay.portlet.messageboards.model.MBMessage[] findByThreadReplies_PrevAndNext(
427 long messageId, long threadId,
428 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
429 throws com.liferay.portal.SystemException,
430 com.liferay.portlet.messageboards.NoSuchMessageException {
431 return getPersistence()
432 .findByThreadReplies_PrevAndNext(messageId, threadId,
433 orderByComparator);
434 }
435
436 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
437 long groupId, long userId) throws com.liferay.portal.SystemException {
438 return getPersistence().findByG_U(groupId, userId);
439 }
440
441 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
442 long groupId, long userId, int start, int end)
443 throws com.liferay.portal.SystemException {
444 return getPersistence().findByG_U(groupId, userId, start, end);
445 }
446
447 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
448 long groupId, long userId, int start, int end,
449 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
450 throws com.liferay.portal.SystemException {
451 return getPersistence()
452 .findByG_U(groupId, userId, start, end, orderByComparator);
453 }
454
455 public static com.liferay.portlet.messageboards.model.MBMessage findByG_U_First(
456 long groupId, long userId,
457 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
458 throws com.liferay.portal.SystemException,
459 com.liferay.portlet.messageboards.NoSuchMessageException {
460 return getPersistence()
461 .findByG_U_First(groupId, userId, orderByComparator);
462 }
463
464 public static com.liferay.portlet.messageboards.model.MBMessage findByG_U_Last(
465 long groupId, long userId,
466 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
467 throws com.liferay.portal.SystemException,
468 com.liferay.portlet.messageboards.NoSuchMessageException {
469 return getPersistence()
470 .findByG_U_Last(groupId, userId, orderByComparator);
471 }
472
473 public static com.liferay.portlet.messageboards.model.MBMessage[] findByG_U_PrevAndNext(
474 long messageId, long groupId, long userId,
475 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
476 throws com.liferay.portal.SystemException,
477 com.liferay.portlet.messageboards.NoSuchMessageException {
478 return getPersistence()
479 .findByG_U_PrevAndNext(messageId, groupId, userId,
480 orderByComparator);
481 }
482
483 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
484 long classNameId, long classPK)
485 throws com.liferay.portal.SystemException {
486 return getPersistence().findByC_C(classNameId, classPK);
487 }
488
489 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
490 long classNameId, long classPK, int start, int end)
491 throws com.liferay.portal.SystemException {
492 return getPersistence().findByC_C(classNameId, classPK, start, end);
493 }
494
495 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
496 long classNameId, long classPK, int start, int end,
497 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
498 throws com.liferay.portal.SystemException {
499 return getPersistence()
500 .findByC_C(classNameId, classPK, start, end,
501 orderByComparator);
502 }
503
504 public static com.liferay.portlet.messageboards.model.MBMessage findByC_C_First(
505 long classNameId, long classPK,
506 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
507 throws com.liferay.portal.SystemException,
508 com.liferay.portlet.messageboards.NoSuchMessageException {
509 return getPersistence()
510 .findByC_C_First(classNameId, classPK, orderByComparator);
511 }
512
513 public static com.liferay.portlet.messageboards.model.MBMessage findByC_C_Last(
514 long classNameId, long classPK,
515 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
516 throws com.liferay.portal.SystemException,
517 com.liferay.portlet.messageboards.NoSuchMessageException {
518 return getPersistence()
519 .findByC_C_Last(classNameId, classPK, orderByComparator);
520 }
521
522 public static com.liferay.portlet.messageboards.model.MBMessage[] findByC_C_PrevAndNext(
523 long messageId, long classNameId, long classPK,
524 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
525 throws com.liferay.portal.SystemException,
526 com.liferay.portlet.messageboards.NoSuchMessageException {
527 return getPersistence()
528 .findByC_C_PrevAndNext(messageId, classNameId, classPK,
529 orderByComparator);
530 }
531
532 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
533 long categoryId, long threadId)
534 throws com.liferay.portal.SystemException {
535 return getPersistence().findByC_T(categoryId, threadId);
536 }
537
538 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
539 long categoryId, long threadId, int start, int end)
540 throws com.liferay.portal.SystemException {
541 return getPersistence().findByC_T(categoryId, threadId, start, end);
542 }
543
544 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
545 long categoryId, long threadId, int start, int end,
546 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
547 throws com.liferay.portal.SystemException {
548 return getPersistence()
549 .findByC_T(categoryId, threadId, start, end,
550 orderByComparator);
551 }
552
553 public static com.liferay.portlet.messageboards.model.MBMessage findByC_T_First(
554 long categoryId, long threadId,
555 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
556 throws com.liferay.portal.SystemException,
557 com.liferay.portlet.messageboards.NoSuchMessageException {
558 return getPersistence()
559 .findByC_T_First(categoryId, threadId, orderByComparator);
560 }
561
562 public static com.liferay.portlet.messageboards.model.MBMessage findByC_T_Last(
563 long categoryId, long threadId,
564 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
565 throws com.liferay.portal.SystemException,
566 com.liferay.portlet.messageboards.NoSuchMessageException {
567 return getPersistence()
568 .findByC_T_Last(categoryId, threadId, orderByComparator);
569 }
570
571 public static com.liferay.portlet.messageboards.model.MBMessage[] findByC_T_PrevAndNext(
572 long messageId, long categoryId, long threadId,
573 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
574 throws com.liferay.portal.SystemException,
575 com.liferay.portlet.messageboards.NoSuchMessageException {
576 return getPersistence()
577 .findByC_T_PrevAndNext(messageId, categoryId, threadId,
578 orderByComparator);
579 }
580
581 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
582 long threadId, long parentMessageId)
583 throws com.liferay.portal.SystemException {
584 return getPersistence().findByT_P(threadId, parentMessageId);
585 }
586
587 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
588 long threadId, long parentMessageId, int start, int end)
589 throws com.liferay.portal.SystemException {
590 return getPersistence().findByT_P(threadId, parentMessageId, start, end);
591 }
592
593 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
594 long threadId, long parentMessageId, int start, int end,
595 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
596 throws com.liferay.portal.SystemException {
597 return getPersistence()
598 .findByT_P(threadId, parentMessageId, start, end,
599 orderByComparator);
600 }
601
602 public static com.liferay.portlet.messageboards.model.MBMessage findByT_P_First(
603 long threadId, long parentMessageId,
604 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
605 throws com.liferay.portal.SystemException,
606 com.liferay.portlet.messageboards.NoSuchMessageException {
607 return getPersistence()
608 .findByT_P_First(threadId, parentMessageId, orderByComparator);
609 }
610
611 public static com.liferay.portlet.messageboards.model.MBMessage findByT_P_Last(
612 long threadId, long parentMessageId,
613 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
614 throws com.liferay.portal.SystemException,
615 com.liferay.portlet.messageboards.NoSuchMessageException {
616 return getPersistence()
617 .findByT_P_Last(threadId, parentMessageId, orderByComparator);
618 }
619
620 public static com.liferay.portlet.messageboards.model.MBMessage[] findByT_P_PrevAndNext(
621 long messageId, long threadId, long parentMessageId,
622 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
623 throws com.liferay.portal.SystemException,
624 com.liferay.portlet.messageboards.NoSuchMessageException {
625 return getPersistence()
626 .findByT_P_PrevAndNext(messageId, threadId, parentMessageId,
627 orderByComparator);
628 }
629
630 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll()
631 throws com.liferay.portal.SystemException {
632 return getPersistence().findAll();
633 }
634
635 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
636 int start, int end) throws com.liferay.portal.SystemException {
637 return getPersistence().findAll(start, end);
638 }
639
640 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
641 int start, int end,
642 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
643 throws com.liferay.portal.SystemException {
644 return getPersistence().findAll(start, end, orderByComparator);
645 }
646
647 public static void removeByUuid(java.lang.String uuid)
648 throws com.liferay.portal.SystemException {
649 getPersistence().removeByUuid(uuid);
650 }
651
652 public static void removeByUUID_G(java.lang.String uuid, long groupId)
653 throws com.liferay.portal.SystemException,
654 com.liferay.portlet.messageboards.NoSuchMessageException {
655 getPersistence().removeByUUID_G(uuid, groupId);
656 }
657
658 public static void removeByCompanyId(long companyId)
659 throws com.liferay.portal.SystemException {
660 getPersistence().removeByCompanyId(companyId);
661 }
662
663 public static void removeByGroupId(long groupId)
664 throws com.liferay.portal.SystemException {
665 getPersistence().removeByGroupId(groupId);
666 }
667
668 public static void removeByCategoryId(long categoryId)
669 throws com.liferay.portal.SystemException {
670 getPersistence().removeByCategoryId(categoryId);
671 }
672
673 public static void removeByThreadId(long threadId)
674 throws com.liferay.portal.SystemException {
675 getPersistence().removeByThreadId(threadId);
676 }
677
678 public static void removeByThreadReplies(long threadId)
679 throws com.liferay.portal.SystemException {
680 getPersistence().removeByThreadReplies(threadId);
681 }
682
683 public static void removeByG_U(long groupId, long userId)
684 throws com.liferay.portal.SystemException {
685 getPersistence().removeByG_U(groupId, userId);
686 }
687
688 public static void removeByC_C(long classNameId, long classPK)
689 throws com.liferay.portal.SystemException {
690 getPersistence().removeByC_C(classNameId, classPK);
691 }
692
693 public static void removeByC_T(long categoryId, long threadId)
694 throws com.liferay.portal.SystemException {
695 getPersistence().removeByC_T(categoryId, threadId);
696 }
697
698 public static void removeByT_P(long threadId, long parentMessageId)
699 throws com.liferay.portal.SystemException {
700 getPersistence().removeByT_P(threadId, parentMessageId);
701 }
702
703 public static void removeAll() throws com.liferay.portal.SystemException {
704 getPersistence().removeAll();
705 }
706
707 public static int countByUuid(java.lang.String uuid)
708 throws com.liferay.portal.SystemException {
709 return getPersistence().countByUuid(uuid);
710 }
711
712 public static int countByUUID_G(java.lang.String uuid, long groupId)
713 throws com.liferay.portal.SystemException {
714 return getPersistence().countByUUID_G(uuid, groupId);
715 }
716
717 public static int countByCompanyId(long companyId)
718 throws com.liferay.portal.SystemException {
719 return getPersistence().countByCompanyId(companyId);
720 }
721
722 public static int countByGroupId(long groupId)
723 throws com.liferay.portal.SystemException {
724 return getPersistence().countByGroupId(groupId);
725 }
726
727 public static int countByCategoryId(long categoryId)
728 throws com.liferay.portal.SystemException {
729 return getPersistence().countByCategoryId(categoryId);
730 }
731
732 public static int countByThreadId(long threadId)
733 throws com.liferay.portal.SystemException {
734 return getPersistence().countByThreadId(threadId);
735 }
736
737 public static int countByThreadReplies(long threadId)
738 throws com.liferay.portal.SystemException {
739 return getPersistence().countByThreadReplies(threadId);
740 }
741
742 public static int countByG_U(long groupId, long userId)
743 throws com.liferay.portal.SystemException {
744 return getPersistence().countByG_U(groupId, userId);
745 }
746
747 public static int countByC_C(long classNameId, long classPK)
748 throws com.liferay.portal.SystemException {
749 return getPersistence().countByC_C(classNameId, classPK);
750 }
751
752 public static int countByC_T(long categoryId, long threadId)
753 throws com.liferay.portal.SystemException {
754 return getPersistence().countByC_T(categoryId, threadId);
755 }
756
757 public static int countByT_P(long threadId, long parentMessageId)
758 throws com.liferay.portal.SystemException {
759 return getPersistence().countByT_P(threadId, parentMessageId);
760 }
761
762 public static int countAll() throws com.liferay.portal.SystemException {
763 return getPersistence().countAll();
764 }
765
766 public static MBMessagePersistence getPersistence() {
767 if (_persistence == null) {
768 _persistence = (MBMessagePersistence)PortalBeanLocatorUtil.locate(MBMessagePersistence.class.getName());
769
770 ReferenceRegistry.registerReference(MBMessageUtil.class,
771 "_persistence");
772 }
773
774 return _persistence;
775 }
776
777 public void setPersistence(MBMessagePersistence persistence) {
778 _persistence = persistence;
779
780 ReferenceRegistry.registerReference(MBMessageUtil.class, "_persistence");
781 }
782
783 private static MBMessagePersistence _persistence;
784 }