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