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