1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.messageboards.service.persistence;
24  
25  /**
26   * <a href="MBMessageUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class MBMessageUtil {
32      public static void cacheResult(
33          com.liferay.portlet.messageboards.model.MBMessage mbMessage) {
34          getPersistence().cacheResult(mbMessage);
35      }
36  
37      public static void cacheResult(
38          java.util.List<com.liferay.portlet.messageboards.model.MBMessage> mbMessages) {
39          getPersistence().cacheResult(mbMessages);
40      }
41  
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      public static com.liferay.portlet.messageboards.model.MBMessage create(
47          long messageId) {
48          return getPersistence().create(messageId);
49      }
50  
51      public static com.liferay.portlet.messageboards.model.MBMessage remove(
52          long messageId)
53          throws com.liferay.portal.SystemException,
54              com.liferay.portlet.messageboards.NoSuchMessageException {
55          return getPersistence().remove(messageId);
56      }
57  
58      public static com.liferay.portlet.messageboards.model.MBMessage remove(
59          com.liferay.portlet.messageboards.model.MBMessage mbMessage)
60          throws com.liferay.portal.SystemException {
61          return getPersistence().remove(mbMessage);
62      }
63  
64      /**
65       * @deprecated Use <code>update(MBMessage mbMessage, boolean merge)</code>.
66       */
67      public static com.liferay.portlet.messageboards.model.MBMessage update(
68          com.liferay.portlet.messageboards.model.MBMessage mbMessage)
69          throws com.liferay.portal.SystemException {
70          return getPersistence().update(mbMessage);
71      }
72  
73      /**
74       * Add, update, or merge, the entity. This method also calls the model
75       * listeners to trigger the proper events associated with adding, deleting,
76       * or updating an entity.
77       *
78       * @param        mbMessage the entity to add, update, or merge
79       * @param        merge boolean value for whether to merge the entity. The
80       *                default value is false. Setting merge to true is more
81       *                expensive and should only be true when mbMessage is
82       *                transient. See LEP-5473 for a detailed discussion of this
83       *                method.
84       * @return        true if the portlet can be displayed via Ajax
85       */
86      public static com.liferay.portlet.messageboards.model.MBMessage update(
87          com.liferay.portlet.messageboards.model.MBMessage mbMessage,
88          boolean merge) throws com.liferay.portal.SystemException {
89          return getPersistence().update(mbMessage, merge);
90      }
91  
92      public static com.liferay.portlet.messageboards.model.MBMessage updateImpl(
93          com.liferay.portlet.messageboards.model.MBMessage mbMessage,
94          boolean merge) throws com.liferay.portal.SystemException {
95          return getPersistence().updateImpl(mbMessage, merge);
96      }
97  
98      public static com.liferay.portlet.messageboards.model.MBMessage findByPrimaryKey(
99          long messageId)
100         throws com.liferay.portal.SystemException,
101             com.liferay.portlet.messageboards.NoSuchMessageException {
102         return getPersistence().findByPrimaryKey(messageId);
103     }
104 
105     public static com.liferay.portlet.messageboards.model.MBMessage fetchByPrimaryKey(
106         long messageId) throws com.liferay.portal.SystemException {
107         return getPersistence().fetchByPrimaryKey(messageId);
108     }
109 
110     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
111         java.lang.String uuid) throws com.liferay.portal.SystemException {
112         return getPersistence().findByUuid(uuid);
113     }
114 
115     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
116         java.lang.String uuid, int start, int end)
117         throws com.liferay.portal.SystemException {
118         return getPersistence().findByUuid(uuid, start, end);
119     }
120 
121     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
122         java.lang.String uuid, int start, int end,
123         com.liferay.portal.kernel.util.OrderByComparator obc)
124         throws com.liferay.portal.SystemException {
125         return getPersistence().findByUuid(uuid, start, end, obc);
126     }
127 
128     public static com.liferay.portlet.messageboards.model.MBMessage findByUuid_First(
129         java.lang.String uuid,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException,
132             com.liferay.portlet.messageboards.NoSuchMessageException {
133         return getPersistence().findByUuid_First(uuid, obc);
134     }
135 
136     public static com.liferay.portlet.messageboards.model.MBMessage findByUuid_Last(
137         java.lang.String uuid,
138         com.liferay.portal.kernel.util.OrderByComparator obc)
139         throws com.liferay.portal.SystemException,
140             com.liferay.portlet.messageboards.NoSuchMessageException {
141         return getPersistence().findByUuid_Last(uuid, obc);
142     }
143 
144     public static com.liferay.portlet.messageboards.model.MBMessage[] findByUuid_PrevAndNext(
145         long messageId, java.lang.String uuid,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.messageboards.NoSuchMessageException {
149         return getPersistence().findByUuid_PrevAndNext(messageId, uuid, obc);
150     }
151 
152     public static com.liferay.portlet.messageboards.model.MBMessage findByUUID_G(
153         java.lang.String uuid, long groupId)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.messageboards.NoSuchMessageException {
156         return getPersistence().findByUUID_G(uuid, groupId);
157     }
158 
159     public static com.liferay.portlet.messageboards.model.MBMessage fetchByUUID_G(
160         java.lang.String uuid, long groupId)
161         throws com.liferay.portal.SystemException {
162         return getPersistence().fetchByUUID_G(uuid, groupId);
163     }
164 
165     public static com.liferay.portlet.messageboards.model.MBMessage fetchByUUID_G(
166         java.lang.String uuid, long groupId, boolean retrieveFromCache)
167         throws com.liferay.portal.SystemException {
168         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
169     }
170 
171     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
172         long companyId) throws com.liferay.portal.SystemException {
173         return getPersistence().findByCompanyId(companyId);
174     }
175 
176     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
177         long companyId, int start, int end)
178         throws com.liferay.portal.SystemException {
179         return getPersistence().findByCompanyId(companyId, start, end);
180     }
181 
182     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
183         long companyId, int start, int end,
184         com.liferay.portal.kernel.util.OrderByComparator obc)
185         throws com.liferay.portal.SystemException {
186         return getPersistence().findByCompanyId(companyId, start, end, obc);
187     }
188 
189     public static com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_First(
190         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.SystemException,
192             com.liferay.portlet.messageboards.NoSuchMessageException {
193         return getPersistence().findByCompanyId_First(companyId, obc);
194     }
195 
196     public static com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_Last(
197         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.SystemException,
199             com.liferay.portlet.messageboards.NoSuchMessageException {
200         return getPersistence().findByCompanyId_Last(companyId, obc);
201     }
202 
203     public static com.liferay.portlet.messageboards.model.MBMessage[] findByCompanyId_PrevAndNext(
204         long messageId, long companyId,
205         com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.SystemException,
207             com.liferay.portlet.messageboards.NoSuchMessageException {
208         return getPersistence()
209                    .findByCompanyId_PrevAndNext(messageId, companyId, obc);
210     }
211 
212     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
213         long groupId) throws com.liferay.portal.SystemException {
214         return getPersistence().findByGroupId(groupId);
215     }
216 
217     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
218         long groupId, int start, int end)
219         throws com.liferay.portal.SystemException {
220         return getPersistence().findByGroupId(groupId, start, end);
221     }
222 
223     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
224         long groupId, int start, int end,
225         com.liferay.portal.kernel.util.OrderByComparator obc)
226         throws com.liferay.portal.SystemException {
227         return getPersistence().findByGroupId(groupId, start, end, obc);
228     }
229 
230     public static com.liferay.portlet.messageboards.model.MBMessage findByGroupId_First(
231         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.SystemException,
233             com.liferay.portlet.messageboards.NoSuchMessageException {
234         return getPersistence().findByGroupId_First(groupId, obc);
235     }
236 
237     public static com.liferay.portlet.messageboards.model.MBMessage findByGroupId_Last(
238         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
239         throws com.liferay.portal.SystemException,
240             com.liferay.portlet.messageboards.NoSuchMessageException {
241         return getPersistence().findByGroupId_Last(groupId, obc);
242     }
243 
244     public static com.liferay.portlet.messageboards.model.MBMessage[] findByGroupId_PrevAndNext(
245         long messageId, long groupId,
246         com.liferay.portal.kernel.util.OrderByComparator obc)
247         throws com.liferay.portal.SystemException,
248             com.liferay.portlet.messageboards.NoSuchMessageException {
249         return getPersistence()
250                    .findByGroupId_PrevAndNext(messageId, groupId, obc);
251     }
252 
253     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
254         long categoryId) throws com.liferay.portal.SystemException {
255         return getPersistence().findByCategoryId(categoryId);
256     }
257 
258     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
259         long categoryId, int start, int end)
260         throws com.liferay.portal.SystemException {
261         return getPersistence().findByCategoryId(categoryId, start, end);
262     }
263 
264     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
265         long categoryId, int start, int end,
266         com.liferay.portal.kernel.util.OrderByComparator obc)
267         throws com.liferay.portal.SystemException {
268         return getPersistence().findByCategoryId(categoryId, start, end, obc);
269     }
270 
271     public static com.liferay.portlet.messageboards.model.MBMessage findByCategoryId_First(
272         long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
273         throws com.liferay.portal.SystemException,
274             com.liferay.portlet.messageboards.NoSuchMessageException {
275         return getPersistence().findByCategoryId_First(categoryId, obc);
276     }
277 
278     public static com.liferay.portlet.messageboards.model.MBMessage findByCategoryId_Last(
279         long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
280         throws com.liferay.portal.SystemException,
281             com.liferay.portlet.messageboards.NoSuchMessageException {
282         return getPersistence().findByCategoryId_Last(categoryId, obc);
283     }
284 
285     public static com.liferay.portlet.messageboards.model.MBMessage[] findByCategoryId_PrevAndNext(
286         long messageId, long categoryId,
287         com.liferay.portal.kernel.util.OrderByComparator obc)
288         throws com.liferay.portal.SystemException,
289             com.liferay.portlet.messageboards.NoSuchMessageException {
290         return getPersistence()
291                    .findByCategoryId_PrevAndNext(messageId, categoryId, obc);
292     }
293 
294     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
295         long threadId) throws com.liferay.portal.SystemException {
296         return getPersistence().findByThreadId(threadId);
297     }
298 
299     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
300         long threadId, int start, int end)
301         throws com.liferay.portal.SystemException {
302         return getPersistence().findByThreadId(threadId, start, end);
303     }
304 
305     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
306         long threadId, int start, int end,
307         com.liferay.portal.kernel.util.OrderByComparator obc)
308         throws com.liferay.portal.SystemException {
309         return getPersistence().findByThreadId(threadId, start, end, obc);
310     }
311 
312     public static com.liferay.portlet.messageboards.model.MBMessage findByThreadId_First(
313         long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
314         throws com.liferay.portal.SystemException,
315             com.liferay.portlet.messageboards.NoSuchMessageException {
316         return getPersistence().findByThreadId_First(threadId, obc);
317     }
318 
319     public static com.liferay.portlet.messageboards.model.MBMessage findByThreadId_Last(
320         long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
321         throws com.liferay.portal.SystemException,
322             com.liferay.portlet.messageboards.NoSuchMessageException {
323         return getPersistence().findByThreadId_Last(threadId, obc);
324     }
325 
326     public static com.liferay.portlet.messageboards.model.MBMessage[] findByThreadId_PrevAndNext(
327         long messageId, long threadId,
328         com.liferay.portal.kernel.util.OrderByComparator obc)
329         throws com.liferay.portal.SystemException,
330             com.liferay.portlet.messageboards.NoSuchMessageException {
331         return getPersistence()
332                    .findByThreadId_PrevAndNext(messageId, threadId, obc);
333     }
334 
335     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies(
336         long threadId) throws com.liferay.portal.SystemException {
337         return getPersistence().findByThreadReplies(threadId);
338     }
339 
340     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies(
341         long threadId, int start, int end)
342         throws com.liferay.portal.SystemException {
343         return getPersistence().findByThreadReplies(threadId, start, end);
344     }
345 
346     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies(
347         long threadId, int start, int end,
348         com.liferay.portal.kernel.util.OrderByComparator obc)
349         throws com.liferay.portal.SystemException {
350         return getPersistence().findByThreadReplies(threadId, start, end, obc);
351     }
352 
353     public static com.liferay.portlet.messageboards.model.MBMessage findByThreadReplies_First(
354         long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
355         throws com.liferay.portal.SystemException,
356             com.liferay.portlet.messageboards.NoSuchMessageException {
357         return getPersistence().findByThreadReplies_First(threadId, obc);
358     }
359 
360     public static com.liferay.portlet.messageboards.model.MBMessage findByThreadReplies_Last(
361         long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
362         throws com.liferay.portal.SystemException,
363             com.liferay.portlet.messageboards.NoSuchMessageException {
364         return getPersistence().findByThreadReplies_Last(threadId, obc);
365     }
366 
367     public static com.liferay.portlet.messageboards.model.MBMessage[] findByThreadReplies_PrevAndNext(
368         long messageId, long threadId,
369         com.liferay.portal.kernel.util.OrderByComparator obc)
370         throws com.liferay.portal.SystemException,
371             com.liferay.portlet.messageboards.NoSuchMessageException {
372         return getPersistence()
373                    .findByThreadReplies_PrevAndNext(messageId, threadId, obc);
374     }
375 
376     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
377         long groupId, long userId) throws com.liferay.portal.SystemException {
378         return getPersistence().findByG_U(groupId, userId);
379     }
380 
381     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
382         long groupId, long userId, int start, int end)
383         throws com.liferay.portal.SystemException {
384         return getPersistence().findByG_U(groupId, userId, start, end);
385     }
386 
387     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
388         long groupId, long userId, int start, int end,
389         com.liferay.portal.kernel.util.OrderByComparator obc)
390         throws com.liferay.portal.SystemException {
391         return getPersistence().findByG_U(groupId, userId, start, end, obc);
392     }
393 
394     public static com.liferay.portlet.messageboards.model.MBMessage findByG_U_First(
395         long groupId, long userId,
396         com.liferay.portal.kernel.util.OrderByComparator obc)
397         throws com.liferay.portal.SystemException,
398             com.liferay.portlet.messageboards.NoSuchMessageException {
399         return getPersistence().findByG_U_First(groupId, userId, obc);
400     }
401 
402     public static com.liferay.portlet.messageboards.model.MBMessage findByG_U_Last(
403         long groupId, long userId,
404         com.liferay.portal.kernel.util.OrderByComparator obc)
405         throws com.liferay.portal.SystemException,
406             com.liferay.portlet.messageboards.NoSuchMessageException {
407         return getPersistence().findByG_U_Last(groupId, userId, obc);
408     }
409 
410     public static com.liferay.portlet.messageboards.model.MBMessage[] findByG_U_PrevAndNext(
411         long messageId, long groupId, long userId,
412         com.liferay.portal.kernel.util.OrderByComparator obc)
413         throws com.liferay.portal.SystemException,
414             com.liferay.portlet.messageboards.NoSuchMessageException {
415         return getPersistence()
416                    .findByG_U_PrevAndNext(messageId, groupId, userId, obc);
417     }
418 
419     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
420         long classNameId, long classPK)
421         throws com.liferay.portal.SystemException {
422         return getPersistence().findByC_C(classNameId, classPK);
423     }
424 
425     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
426         long classNameId, long classPK, int start, int end)
427         throws com.liferay.portal.SystemException {
428         return getPersistence().findByC_C(classNameId, classPK, start, end);
429     }
430 
431     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
432         long classNameId, long classPK, int start, int end,
433         com.liferay.portal.kernel.util.OrderByComparator obc)
434         throws com.liferay.portal.SystemException {
435         return getPersistence().findByC_C(classNameId, classPK, start, end, obc);
436     }
437 
438     public static com.liferay.portlet.messageboards.model.MBMessage findByC_C_First(
439         long classNameId, long classPK,
440         com.liferay.portal.kernel.util.OrderByComparator obc)
441         throws com.liferay.portal.SystemException,
442             com.liferay.portlet.messageboards.NoSuchMessageException {
443         return getPersistence().findByC_C_First(classNameId, classPK, obc);
444     }
445 
446     public static com.liferay.portlet.messageboards.model.MBMessage findByC_C_Last(
447         long classNameId, long classPK,
448         com.liferay.portal.kernel.util.OrderByComparator obc)
449         throws com.liferay.portal.SystemException,
450             com.liferay.portlet.messageboards.NoSuchMessageException {
451         return getPersistence().findByC_C_Last(classNameId, classPK, obc);
452     }
453 
454     public static com.liferay.portlet.messageboards.model.MBMessage[] findByC_C_PrevAndNext(
455         long messageId, long classNameId, long classPK,
456         com.liferay.portal.kernel.util.OrderByComparator obc)
457         throws com.liferay.portal.SystemException,
458             com.liferay.portlet.messageboards.NoSuchMessageException {
459         return getPersistence()
460                    .findByC_C_PrevAndNext(messageId, classNameId, classPK, obc);
461     }
462 
463     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
464         long categoryId, long threadId)
465         throws com.liferay.portal.SystemException {
466         return getPersistence().findByC_T(categoryId, threadId);
467     }
468 
469     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
470         long categoryId, long threadId, int start, int end)
471         throws com.liferay.portal.SystemException {
472         return getPersistence().findByC_T(categoryId, threadId, start, end);
473     }
474 
475     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
476         long categoryId, long threadId, int start, int end,
477         com.liferay.portal.kernel.util.OrderByComparator obc)
478         throws com.liferay.portal.SystemException {
479         return getPersistence().findByC_T(categoryId, threadId, start, end, obc);
480     }
481 
482     public static com.liferay.portlet.messageboards.model.MBMessage findByC_T_First(
483         long categoryId, long threadId,
484         com.liferay.portal.kernel.util.OrderByComparator obc)
485         throws com.liferay.portal.SystemException,
486             com.liferay.portlet.messageboards.NoSuchMessageException {
487         return getPersistence().findByC_T_First(categoryId, threadId, obc);
488     }
489 
490     public static com.liferay.portlet.messageboards.model.MBMessage findByC_T_Last(
491         long categoryId, long threadId,
492         com.liferay.portal.kernel.util.OrderByComparator obc)
493         throws com.liferay.portal.SystemException,
494             com.liferay.portlet.messageboards.NoSuchMessageException {
495         return getPersistence().findByC_T_Last(categoryId, threadId, obc);
496     }
497 
498     public static com.liferay.portlet.messageboards.model.MBMessage[] findByC_T_PrevAndNext(
499         long messageId, long categoryId, long threadId,
500         com.liferay.portal.kernel.util.OrderByComparator obc)
501         throws com.liferay.portal.SystemException,
502             com.liferay.portlet.messageboards.NoSuchMessageException {
503         return getPersistence()
504                    .findByC_T_PrevAndNext(messageId, categoryId, threadId, obc);
505     }
506 
507     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
508         long threadId, long parentMessageId)
509         throws com.liferay.portal.SystemException {
510         return getPersistence().findByT_P(threadId, parentMessageId);
511     }
512 
513     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
514         long threadId, long parentMessageId, int start, int end)
515         throws com.liferay.portal.SystemException {
516         return getPersistence().findByT_P(threadId, parentMessageId, start, end);
517     }
518 
519     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
520         long threadId, long parentMessageId, int start, int end,
521         com.liferay.portal.kernel.util.OrderByComparator obc)
522         throws com.liferay.portal.SystemException {
523         return getPersistence()
524                    .findByT_P(threadId, parentMessageId, start, end, obc);
525     }
526 
527     public static com.liferay.portlet.messageboards.model.MBMessage findByT_P_First(
528         long threadId, long parentMessageId,
529         com.liferay.portal.kernel.util.OrderByComparator obc)
530         throws com.liferay.portal.SystemException,
531             com.liferay.portlet.messageboards.NoSuchMessageException {
532         return getPersistence().findByT_P_First(threadId, parentMessageId, obc);
533     }
534 
535     public static com.liferay.portlet.messageboards.model.MBMessage findByT_P_Last(
536         long threadId, long parentMessageId,
537         com.liferay.portal.kernel.util.OrderByComparator obc)
538         throws com.liferay.portal.SystemException,
539             com.liferay.portlet.messageboards.NoSuchMessageException {
540         return getPersistence().findByT_P_Last(threadId, parentMessageId, obc);
541     }
542 
543     public static com.liferay.portlet.messageboards.model.MBMessage[] findByT_P_PrevAndNext(
544         long messageId, long threadId, long parentMessageId,
545         com.liferay.portal.kernel.util.OrderByComparator obc)
546         throws com.liferay.portal.SystemException,
547             com.liferay.portlet.messageboards.NoSuchMessageException {
548         return getPersistence()
549                    .findByT_P_PrevAndNext(messageId, threadId, parentMessageId,
550             obc);
551     }
552 
553     public static java.util.List<Object> findWithDynamicQuery(
554         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
555         throws com.liferay.portal.SystemException {
556         return getPersistence().findWithDynamicQuery(dynamicQuery);
557     }
558 
559     public static java.util.List<Object> findWithDynamicQuery(
560         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
561         int end) throws com.liferay.portal.SystemException {
562         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
563     }
564 
565     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll()
566         throws com.liferay.portal.SystemException {
567         return getPersistence().findAll();
568     }
569 
570     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
571         int start, int end) throws com.liferay.portal.SystemException {
572         return getPersistence().findAll(start, end);
573     }
574 
575     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
576         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
577         throws com.liferay.portal.SystemException {
578         return getPersistence().findAll(start, end, obc);
579     }
580 
581     public static void removeByUuid(java.lang.String uuid)
582         throws com.liferay.portal.SystemException {
583         getPersistence().removeByUuid(uuid);
584     }
585 
586     public static void removeByUUID_G(java.lang.String uuid, long groupId)
587         throws com.liferay.portal.SystemException,
588             com.liferay.portlet.messageboards.NoSuchMessageException {
589         getPersistence().removeByUUID_G(uuid, groupId);
590     }
591 
592     public static void removeByCompanyId(long companyId)
593         throws com.liferay.portal.SystemException {
594         getPersistence().removeByCompanyId(companyId);
595     }
596 
597     public static void removeByGroupId(long groupId)
598         throws com.liferay.portal.SystemException {
599         getPersistence().removeByGroupId(groupId);
600     }
601 
602     public static void removeByCategoryId(long categoryId)
603         throws com.liferay.portal.SystemException {
604         getPersistence().removeByCategoryId(categoryId);
605     }
606 
607     public static void removeByThreadId(long threadId)
608         throws com.liferay.portal.SystemException {
609         getPersistence().removeByThreadId(threadId);
610     }
611 
612     public static void removeByThreadReplies(long threadId)
613         throws com.liferay.portal.SystemException {
614         getPersistence().removeByThreadReplies(threadId);
615     }
616 
617     public static void removeByG_U(long groupId, long userId)
618         throws com.liferay.portal.SystemException {
619         getPersistence().removeByG_U(groupId, userId);
620     }
621 
622     public static void removeByC_C(long classNameId, long classPK)
623         throws com.liferay.portal.SystemException {
624         getPersistence().removeByC_C(classNameId, classPK);
625     }
626 
627     public static void removeByC_T(long categoryId, long threadId)
628         throws com.liferay.portal.SystemException {
629         getPersistence().removeByC_T(categoryId, threadId);
630     }
631 
632     public static void removeByT_P(long threadId, long parentMessageId)
633         throws com.liferay.portal.SystemException {
634         getPersistence().removeByT_P(threadId, parentMessageId);
635     }
636 
637     public static void removeAll() throws com.liferay.portal.SystemException {
638         getPersistence().removeAll();
639     }
640 
641     public static int countByUuid(java.lang.String uuid)
642         throws com.liferay.portal.SystemException {
643         return getPersistence().countByUuid(uuid);
644     }
645 
646     public static int countByUUID_G(java.lang.String uuid, long groupId)
647         throws com.liferay.portal.SystemException {
648         return getPersistence().countByUUID_G(uuid, groupId);
649     }
650 
651     public static int countByCompanyId(long companyId)
652         throws com.liferay.portal.SystemException {
653         return getPersistence().countByCompanyId(companyId);
654     }
655 
656     public static int countByGroupId(long groupId)
657         throws com.liferay.portal.SystemException {
658         return getPersistence().countByGroupId(groupId);
659     }
660 
661     public static int countByCategoryId(long categoryId)
662         throws com.liferay.portal.SystemException {
663         return getPersistence().countByCategoryId(categoryId);
664     }
665 
666     public static int countByThreadId(long threadId)
667         throws com.liferay.portal.SystemException {
668         return getPersistence().countByThreadId(threadId);
669     }
670 
671     public static int countByThreadReplies(long threadId)
672         throws com.liferay.portal.SystemException {
673         return getPersistence().countByThreadReplies(threadId);
674     }
675 
676     public static int countByG_U(long groupId, long userId)
677         throws com.liferay.portal.SystemException {
678         return getPersistence().countByG_U(groupId, userId);
679     }
680 
681     public static int countByC_C(long classNameId, long classPK)
682         throws com.liferay.portal.SystemException {
683         return getPersistence().countByC_C(classNameId, classPK);
684     }
685 
686     public static int countByC_T(long categoryId, long threadId)
687         throws com.liferay.portal.SystemException {
688         return getPersistence().countByC_T(categoryId, threadId);
689     }
690 
691     public static int countByT_P(long threadId, long parentMessageId)
692         throws com.liferay.portal.SystemException {
693         return getPersistence().countByT_P(threadId, parentMessageId);
694     }
695 
696     public static int countAll() throws com.liferay.portal.SystemException {
697         return getPersistence().countAll();
698     }
699 
700     public static MBMessagePersistence getPersistence() {
701         return _persistence;
702     }
703 
704     public void setPersistence(MBMessagePersistence persistence) {
705         _persistence = persistence;
706     }
707 
708     private static MBMessagePersistence _persistence;
709 }