1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.messageboards.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
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#clearCache(MBMessage)
48       */
49      public static void clearCache(MBMessage mbMessage) {
50          getPersistence().clearCache(mbMessage);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
55       */
56      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().countWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
63       */
64      public static List<MBMessage> findWithDynamicQuery(
65          DynamicQuery dynamicQuery) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
71       */
72      public static List<MBMessage> findWithDynamicQuery(
73          DynamicQuery dynamicQuery, int start, int end)
74          throws SystemException {
75          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
80       */
81      public static MBMessage remove(MBMessage mbMessage)
82          throws SystemException {
83          return getPersistence().remove(mbMessage);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static MBMessage update(MBMessage mbMessage, boolean merge)
90          throws SystemException {
91          return getPersistence().update(mbMessage, merge);
92      }
93  
94      public static void cacheResult(
95          com.liferay.portlet.messageboards.model.MBMessage mbMessage) {
96          getPersistence().cacheResult(mbMessage);
97      }
98  
99      public static void cacheResult(
100         java.util.List<com.liferay.portlet.messageboards.model.MBMessage> mbMessages) {
101         getPersistence().cacheResult(mbMessages);
102     }
103 
104     public static com.liferay.portlet.messageboards.model.MBMessage create(
105         long messageId) {
106         return getPersistence().create(messageId);
107     }
108 
109     public static com.liferay.portlet.messageboards.model.MBMessage remove(
110         long messageId)
111         throws com.liferay.portal.kernel.exception.SystemException,
112             com.liferay.portlet.messageboards.NoSuchMessageException {
113         return getPersistence().remove(messageId);
114     }
115 
116     public static com.liferay.portlet.messageboards.model.MBMessage updateImpl(
117         com.liferay.portlet.messageboards.model.MBMessage mbMessage,
118         boolean merge)
119         throws com.liferay.portal.kernel.exception.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.kernel.exception.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)
132         throws com.liferay.portal.kernel.exception.SystemException {
133         return getPersistence().fetchByPrimaryKey(messageId);
134     }
135 
136     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
137         java.lang.String uuid)
138         throws com.liferay.portal.kernel.exception.SystemException {
139         return getPersistence().findByUuid(uuid);
140     }
141 
142     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
143         java.lang.String uuid, int start, int end)
144         throws com.liferay.portal.kernel.exception.SystemException {
145         return getPersistence().findByUuid(uuid, start, end);
146     }
147 
148     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
149         java.lang.String uuid, int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException {
152         return getPersistence().findByUuid(uuid, start, end, orderByComparator);
153     }
154 
155     public static com.liferay.portlet.messageboards.model.MBMessage findByUuid_First(
156         java.lang.String uuid,
157         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158         throws com.liferay.portal.kernel.exception.SystemException,
159             com.liferay.portlet.messageboards.NoSuchMessageException {
160         return getPersistence().findByUuid_First(uuid, orderByComparator);
161     }
162 
163     public static com.liferay.portlet.messageboards.model.MBMessage findByUuid_Last(
164         java.lang.String uuid,
165         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166         throws com.liferay.portal.kernel.exception.SystemException,
167             com.liferay.portlet.messageboards.NoSuchMessageException {
168         return getPersistence().findByUuid_Last(uuid, orderByComparator);
169     }
170 
171     public static com.liferay.portlet.messageboards.model.MBMessage[] findByUuid_PrevAndNext(
172         long messageId, java.lang.String uuid,
173         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174         throws com.liferay.portal.kernel.exception.SystemException,
175             com.liferay.portlet.messageboards.NoSuchMessageException {
176         return getPersistence()
177                    .findByUuid_PrevAndNext(messageId, uuid, orderByComparator);
178     }
179 
180     public static com.liferay.portlet.messageboards.model.MBMessage findByUUID_G(
181         java.lang.String uuid, long groupId)
182         throws com.liferay.portal.kernel.exception.SystemException,
183             com.liferay.portlet.messageboards.NoSuchMessageException {
184         return getPersistence().findByUUID_G(uuid, groupId);
185     }
186 
187     public static com.liferay.portlet.messageboards.model.MBMessage fetchByUUID_G(
188         java.lang.String uuid, long groupId)
189         throws com.liferay.portal.kernel.exception.SystemException {
190         return getPersistence().fetchByUUID_G(uuid, groupId);
191     }
192 
193     public static com.liferay.portlet.messageboards.model.MBMessage fetchByUUID_G(
194         java.lang.String uuid, long groupId, boolean retrieveFromCache)
195         throws com.liferay.portal.kernel.exception.SystemException {
196         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
197     }
198 
199     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
200         long groupId)
201         throws com.liferay.portal.kernel.exception.SystemException {
202         return getPersistence().findByGroupId(groupId);
203     }
204 
205     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
206         long groupId, int start, int end)
207         throws com.liferay.portal.kernel.exception.SystemException {
208         return getPersistence().findByGroupId(groupId, start, end);
209     }
210 
211     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
212         long groupId, int start, int end,
213         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214         throws com.liferay.portal.kernel.exception.SystemException {
215         return getPersistence()
216                    .findByGroupId(groupId, start, end, orderByComparator);
217     }
218 
219     public static com.liferay.portlet.messageboards.model.MBMessage findByGroupId_First(
220         long groupId,
221         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222         throws com.liferay.portal.kernel.exception.SystemException,
223             com.liferay.portlet.messageboards.NoSuchMessageException {
224         return getPersistence().findByGroupId_First(groupId, orderByComparator);
225     }
226 
227     public static com.liferay.portlet.messageboards.model.MBMessage findByGroupId_Last(
228         long groupId,
229         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
230         throws com.liferay.portal.kernel.exception.SystemException,
231             com.liferay.portlet.messageboards.NoSuchMessageException {
232         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
233     }
234 
235     public static com.liferay.portlet.messageboards.model.MBMessage[] findByGroupId_PrevAndNext(
236         long messageId, long groupId,
237         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
238         throws com.liferay.portal.kernel.exception.SystemException,
239             com.liferay.portlet.messageboards.NoSuchMessageException {
240         return getPersistence()
241                    .findByGroupId_PrevAndNext(messageId, groupId,
242             orderByComparator);
243     }
244 
245     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByGroupId(
246         long groupId)
247         throws com.liferay.portal.kernel.exception.SystemException {
248         return getPersistence().filterFindByGroupId(groupId);
249     }
250 
251     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByGroupId(
252         long groupId, int start, int end)
253         throws com.liferay.portal.kernel.exception.SystemException {
254         return getPersistence().filterFindByGroupId(groupId, start, end);
255     }
256 
257     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByGroupId(
258         long groupId, int start, int end,
259         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
260         throws com.liferay.portal.kernel.exception.SystemException {
261         return getPersistence()
262                    .filterFindByGroupId(groupId, start, end, orderByComparator);
263     }
264 
265     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
266         long companyId)
267         throws com.liferay.portal.kernel.exception.SystemException {
268         return getPersistence().findByCompanyId(companyId);
269     }
270 
271     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
272         long companyId, int start, int end)
273         throws com.liferay.portal.kernel.exception.SystemException {
274         return getPersistence().findByCompanyId(companyId, start, end);
275     }
276 
277     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
278         long companyId, int start, int end,
279         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
280         throws com.liferay.portal.kernel.exception.SystemException {
281         return getPersistence()
282                    .findByCompanyId(companyId, start, end, orderByComparator);
283     }
284 
285     public static com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_First(
286         long companyId,
287         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
288         throws com.liferay.portal.kernel.exception.SystemException,
289             com.liferay.portlet.messageboards.NoSuchMessageException {
290         return getPersistence()
291                    .findByCompanyId_First(companyId, orderByComparator);
292     }
293 
294     public static com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_Last(
295         long companyId,
296         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
297         throws com.liferay.portal.kernel.exception.SystemException,
298             com.liferay.portlet.messageboards.NoSuchMessageException {
299         return getPersistence()
300                    .findByCompanyId_Last(companyId, orderByComparator);
301     }
302 
303     public static com.liferay.portlet.messageboards.model.MBMessage[] findByCompanyId_PrevAndNext(
304         long messageId, long companyId,
305         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
306         throws com.liferay.portal.kernel.exception.SystemException,
307             com.liferay.portlet.messageboards.NoSuchMessageException {
308         return getPersistence()
309                    .findByCompanyId_PrevAndNext(messageId, companyId,
310             orderByComparator);
311     }
312 
313     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
314         long threadId)
315         throws com.liferay.portal.kernel.exception.SystemException {
316         return getPersistence().findByThreadId(threadId);
317     }
318 
319     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
320         long threadId, int start, int end)
321         throws com.liferay.portal.kernel.exception.SystemException {
322         return getPersistence().findByThreadId(threadId, start, end);
323     }
324 
325     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
326         long threadId, int start, int end,
327         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
328         throws com.liferay.portal.kernel.exception.SystemException {
329         return getPersistence()
330                    .findByThreadId(threadId, start, end, orderByComparator);
331     }
332 
333     public static com.liferay.portlet.messageboards.model.MBMessage findByThreadId_First(
334         long threadId,
335         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
336         throws com.liferay.portal.kernel.exception.SystemException,
337             com.liferay.portlet.messageboards.NoSuchMessageException {
338         return getPersistence().findByThreadId_First(threadId, orderByComparator);
339     }
340 
341     public static com.liferay.portlet.messageboards.model.MBMessage findByThreadId_Last(
342         long threadId,
343         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
344         throws com.liferay.portal.kernel.exception.SystemException,
345             com.liferay.portlet.messageboards.NoSuchMessageException {
346         return getPersistence().findByThreadId_Last(threadId, orderByComparator);
347     }
348 
349     public static com.liferay.portlet.messageboards.model.MBMessage[] findByThreadId_PrevAndNext(
350         long messageId, long threadId,
351         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
352         throws com.liferay.portal.kernel.exception.SystemException,
353             com.liferay.portlet.messageboards.NoSuchMessageException {
354         return getPersistence()
355                    .findByThreadId_PrevAndNext(messageId, threadId,
356             orderByComparator);
357     }
358 
359     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies(
360         long threadId)
361         throws com.liferay.portal.kernel.exception.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.kernel.exception.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 orderByComparator)
374         throws com.liferay.portal.kernel.exception.SystemException {
375         return getPersistence()
376                    .findByThreadReplies(threadId, start, end, orderByComparator);
377     }
378 
379     public static com.liferay.portlet.messageboards.model.MBMessage findByThreadReplies_First(
380         long threadId,
381         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
382         throws com.liferay.portal.kernel.exception.SystemException,
383             com.liferay.portlet.messageboards.NoSuchMessageException {
384         return getPersistence()
385                    .findByThreadReplies_First(threadId, orderByComparator);
386     }
387 
388     public static com.liferay.portlet.messageboards.model.MBMessage findByThreadReplies_Last(
389         long threadId,
390         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
391         throws com.liferay.portal.kernel.exception.SystemException,
392             com.liferay.portlet.messageboards.NoSuchMessageException {
393         return getPersistence()
394                    .findByThreadReplies_Last(threadId, orderByComparator);
395     }
396 
397     public static com.liferay.portlet.messageboards.model.MBMessage[] findByThreadReplies_PrevAndNext(
398         long messageId, long threadId,
399         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
400         throws com.liferay.portal.kernel.exception.SystemException,
401             com.liferay.portlet.messageboards.NoSuchMessageException {
402         return getPersistence()
403                    .findByThreadReplies_PrevAndNext(messageId, threadId,
404             orderByComparator);
405     }
406 
407     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUserId(
408         long userId) throws com.liferay.portal.kernel.exception.SystemException {
409         return getPersistence().findByUserId(userId);
410     }
411 
412     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUserId(
413         long userId, int start, int end)
414         throws com.liferay.portal.kernel.exception.SystemException {
415         return getPersistence().findByUserId(userId, start, end);
416     }
417 
418     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUserId(
419         long userId, int start, int end,
420         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
421         throws com.liferay.portal.kernel.exception.SystemException {
422         return getPersistence()
423                    .findByUserId(userId, start, end, orderByComparator);
424     }
425 
426     public static com.liferay.portlet.messageboards.model.MBMessage findByUserId_First(
427         long userId,
428         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
429         throws com.liferay.portal.kernel.exception.SystemException,
430             com.liferay.portlet.messageboards.NoSuchMessageException {
431         return getPersistence().findByUserId_First(userId, orderByComparator);
432     }
433 
434     public static com.liferay.portlet.messageboards.model.MBMessage findByUserId_Last(
435         long userId,
436         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
437         throws com.liferay.portal.kernel.exception.SystemException,
438             com.liferay.portlet.messageboards.NoSuchMessageException {
439         return getPersistence().findByUserId_Last(userId, orderByComparator);
440     }
441 
442     public static com.liferay.portlet.messageboards.model.MBMessage[] findByUserId_PrevAndNext(
443         long messageId, long userId,
444         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
445         throws com.liferay.portal.kernel.exception.SystemException,
446             com.liferay.portlet.messageboards.NoSuchMessageException {
447         return getPersistence()
448                    .findByUserId_PrevAndNext(messageId, userId,
449             orderByComparator);
450     }
451 
452     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
453         long groupId, long userId)
454         throws com.liferay.portal.kernel.exception.SystemException {
455         return getPersistence().findByG_U(groupId, userId);
456     }
457 
458     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
459         long groupId, long userId, int start, int end)
460         throws com.liferay.portal.kernel.exception.SystemException {
461         return getPersistence().findByG_U(groupId, userId, start, end);
462     }
463 
464     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
465         long groupId, long userId, int start, int end,
466         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
467         throws com.liferay.portal.kernel.exception.SystemException {
468         return getPersistence()
469                    .findByG_U(groupId, userId, start, end, orderByComparator);
470     }
471 
472     public static com.liferay.portlet.messageboards.model.MBMessage findByG_U_First(
473         long groupId, long userId,
474         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
475         throws com.liferay.portal.kernel.exception.SystemException,
476             com.liferay.portlet.messageboards.NoSuchMessageException {
477         return getPersistence()
478                    .findByG_U_First(groupId, userId, orderByComparator);
479     }
480 
481     public static com.liferay.portlet.messageboards.model.MBMessage findByG_U_Last(
482         long groupId, long userId,
483         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
484         throws com.liferay.portal.kernel.exception.SystemException,
485             com.liferay.portlet.messageboards.NoSuchMessageException {
486         return getPersistence()
487                    .findByG_U_Last(groupId, userId, orderByComparator);
488     }
489 
490     public static com.liferay.portlet.messageboards.model.MBMessage[] findByG_U_PrevAndNext(
491         long messageId, long groupId, long userId,
492         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
493         throws com.liferay.portal.kernel.exception.SystemException,
494             com.liferay.portlet.messageboards.NoSuchMessageException {
495         return getPersistence()
496                    .findByG_U_PrevAndNext(messageId, groupId, userId,
497             orderByComparator);
498     }
499 
500     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_U(
501         long groupId, long userId)
502         throws com.liferay.portal.kernel.exception.SystemException {
503         return getPersistence().filterFindByG_U(groupId, userId);
504     }
505 
506     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_U(
507         long groupId, long userId, int start, int end)
508         throws com.liferay.portal.kernel.exception.SystemException {
509         return getPersistence().filterFindByG_U(groupId, userId, start, end);
510     }
511 
512     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_U(
513         long groupId, long userId, int start, int end,
514         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
515         throws com.liferay.portal.kernel.exception.SystemException {
516         return getPersistence()
517                    .filterFindByG_U(groupId, userId, start, end,
518             orderByComparator);
519     }
520 
521     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C(
522         long groupId, long categoryId)
523         throws com.liferay.portal.kernel.exception.SystemException {
524         return getPersistence().findByG_C(groupId, categoryId);
525     }
526 
527     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C(
528         long groupId, long categoryId, int start, int end)
529         throws com.liferay.portal.kernel.exception.SystemException {
530         return getPersistence().findByG_C(groupId, categoryId, start, end);
531     }
532 
533     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C(
534         long groupId, long categoryId, int start, int end,
535         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
536         throws com.liferay.portal.kernel.exception.SystemException {
537         return getPersistence()
538                    .findByG_C(groupId, categoryId, start, end, orderByComparator);
539     }
540 
541     public static com.liferay.portlet.messageboards.model.MBMessage findByG_C_First(
542         long groupId, long categoryId,
543         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
544         throws com.liferay.portal.kernel.exception.SystemException,
545             com.liferay.portlet.messageboards.NoSuchMessageException {
546         return getPersistence()
547                    .findByG_C_First(groupId, categoryId, orderByComparator);
548     }
549 
550     public static com.liferay.portlet.messageboards.model.MBMessage findByG_C_Last(
551         long groupId, long categoryId,
552         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
553         throws com.liferay.portal.kernel.exception.SystemException,
554             com.liferay.portlet.messageboards.NoSuchMessageException {
555         return getPersistence()
556                    .findByG_C_Last(groupId, categoryId, orderByComparator);
557     }
558 
559     public static com.liferay.portlet.messageboards.model.MBMessage[] findByG_C_PrevAndNext(
560         long messageId, long groupId, long categoryId,
561         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
562         throws com.liferay.portal.kernel.exception.SystemException,
563             com.liferay.portlet.messageboards.NoSuchMessageException {
564         return getPersistence()
565                    .findByG_C_PrevAndNext(messageId, groupId, categoryId,
566             orderByComparator);
567     }
568 
569     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C(
570         long groupId, long categoryId)
571         throws com.liferay.portal.kernel.exception.SystemException {
572         return getPersistence().filterFindByG_C(groupId, categoryId);
573     }
574 
575     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C(
576         long groupId, long categoryId, int start, int end)
577         throws com.liferay.portal.kernel.exception.SystemException {
578         return getPersistence().filterFindByG_C(groupId, categoryId, start, end);
579     }
580 
581     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C(
582         long groupId, long categoryId, int start, int end,
583         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
584         throws com.liferay.portal.kernel.exception.SystemException {
585         return getPersistence()
586                    .filterFindByG_C(groupId, categoryId, start, end,
587             orderByComparator);
588     }
589 
590     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_S(
591         long groupId, int status)
592         throws com.liferay.portal.kernel.exception.SystemException {
593         return getPersistence().findByG_S(groupId, status);
594     }
595 
596     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_S(
597         long groupId, int status, int start, int end)
598         throws com.liferay.portal.kernel.exception.SystemException {
599         return getPersistence().findByG_S(groupId, status, start, end);
600     }
601 
602     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_S(
603         long groupId, int status, int start, int end,
604         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
605         throws com.liferay.portal.kernel.exception.SystemException {
606         return getPersistence()
607                    .findByG_S(groupId, status, start, end, orderByComparator);
608     }
609 
610     public static com.liferay.portlet.messageboards.model.MBMessage findByG_S_First(
611         long groupId, int status,
612         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
613         throws com.liferay.portal.kernel.exception.SystemException,
614             com.liferay.portlet.messageboards.NoSuchMessageException {
615         return getPersistence()
616                    .findByG_S_First(groupId, status, orderByComparator);
617     }
618 
619     public static com.liferay.portlet.messageboards.model.MBMessage findByG_S_Last(
620         long groupId, int status,
621         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
622         throws com.liferay.portal.kernel.exception.SystemException,
623             com.liferay.portlet.messageboards.NoSuchMessageException {
624         return getPersistence()
625                    .findByG_S_Last(groupId, status, orderByComparator);
626     }
627 
628     public static com.liferay.portlet.messageboards.model.MBMessage[] findByG_S_PrevAndNext(
629         long messageId, long groupId, int status,
630         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
631         throws com.liferay.portal.kernel.exception.SystemException,
632             com.liferay.portlet.messageboards.NoSuchMessageException {
633         return getPersistence()
634                    .findByG_S_PrevAndNext(messageId, groupId, status,
635             orderByComparator);
636     }
637 
638     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_S(
639         long groupId, int status)
640         throws com.liferay.portal.kernel.exception.SystemException {
641         return getPersistence().filterFindByG_S(groupId, status);
642     }
643 
644     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_S(
645         long groupId, int status, int start, int end)
646         throws com.liferay.portal.kernel.exception.SystemException {
647         return getPersistence().filterFindByG_S(groupId, status, start, end);
648     }
649 
650     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_S(
651         long groupId, int status, int start, int end,
652         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
653         throws com.liferay.portal.kernel.exception.SystemException {
654         return getPersistence()
655                    .filterFindByG_S(groupId, status, start, end,
656             orderByComparator);
657     }
658 
659     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_S(
660         long companyId, int status)
661         throws com.liferay.portal.kernel.exception.SystemException {
662         return getPersistence().findByC_S(companyId, status);
663     }
664 
665     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_S(
666         long companyId, int status, int start, int end)
667         throws com.liferay.portal.kernel.exception.SystemException {
668         return getPersistence().findByC_S(companyId, status, start, end);
669     }
670 
671     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_S(
672         long companyId, int status, int start, int end,
673         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
674         throws com.liferay.portal.kernel.exception.SystemException {
675         return getPersistence()
676                    .findByC_S(companyId, status, start, end, orderByComparator);
677     }
678 
679     public static com.liferay.portlet.messageboards.model.MBMessage findByC_S_First(
680         long companyId, int status,
681         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
682         throws com.liferay.portal.kernel.exception.SystemException,
683             com.liferay.portlet.messageboards.NoSuchMessageException {
684         return getPersistence()
685                    .findByC_S_First(companyId, status, orderByComparator);
686     }
687 
688     public static com.liferay.portlet.messageboards.model.MBMessage findByC_S_Last(
689         long companyId, int status,
690         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
691         throws com.liferay.portal.kernel.exception.SystemException,
692             com.liferay.portlet.messageboards.NoSuchMessageException {
693         return getPersistence()
694                    .findByC_S_Last(companyId, status, orderByComparator);
695     }
696 
697     public static com.liferay.portlet.messageboards.model.MBMessage[] findByC_S_PrevAndNext(
698         long messageId, long companyId, int status,
699         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
700         throws com.liferay.portal.kernel.exception.SystemException,
701             com.liferay.portlet.messageboards.NoSuchMessageException {
702         return getPersistence()
703                    .findByC_S_PrevAndNext(messageId, companyId, status,
704             orderByComparator);
705     }
706 
707     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
708         long classNameId, long classPK)
709         throws com.liferay.portal.kernel.exception.SystemException {
710         return getPersistence().findByC_C(classNameId, classPK);
711     }
712 
713     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
714         long classNameId, long classPK, int start, int end)
715         throws com.liferay.portal.kernel.exception.SystemException {
716         return getPersistence().findByC_C(classNameId, classPK, start, end);
717     }
718 
719     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
720         long classNameId, long classPK, int start, int end,
721         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
722         throws com.liferay.portal.kernel.exception.SystemException {
723         return getPersistence()
724                    .findByC_C(classNameId, classPK, start, end,
725             orderByComparator);
726     }
727 
728     public static com.liferay.portlet.messageboards.model.MBMessage findByC_C_First(
729         long classNameId, long classPK,
730         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
731         throws com.liferay.portal.kernel.exception.SystemException,
732             com.liferay.portlet.messageboards.NoSuchMessageException {
733         return getPersistence()
734                    .findByC_C_First(classNameId, classPK, orderByComparator);
735     }
736 
737     public static com.liferay.portlet.messageboards.model.MBMessage findByC_C_Last(
738         long classNameId, long classPK,
739         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
740         throws com.liferay.portal.kernel.exception.SystemException,
741             com.liferay.portlet.messageboards.NoSuchMessageException {
742         return getPersistence()
743                    .findByC_C_Last(classNameId, classPK, orderByComparator);
744     }
745 
746     public static com.liferay.portlet.messageboards.model.MBMessage[] findByC_C_PrevAndNext(
747         long messageId, long classNameId, long classPK,
748         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
749         throws com.liferay.portal.kernel.exception.SystemException,
750             com.liferay.portlet.messageboards.NoSuchMessageException {
751         return getPersistence()
752                    .findByC_C_PrevAndNext(messageId, classNameId, classPK,
753             orderByComparator);
754     }
755 
756     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
757         long threadId, long parentMessageId)
758         throws com.liferay.portal.kernel.exception.SystemException {
759         return getPersistence().findByT_P(threadId, parentMessageId);
760     }
761 
762     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
763         long threadId, long parentMessageId, int start, int end)
764         throws com.liferay.portal.kernel.exception.SystemException {
765         return getPersistence().findByT_P(threadId, parentMessageId, start, end);
766     }
767 
768     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
769         long threadId, long parentMessageId, int start, int end,
770         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
771         throws com.liferay.portal.kernel.exception.SystemException {
772         return getPersistence()
773                    .findByT_P(threadId, parentMessageId, start, end,
774             orderByComparator);
775     }
776 
777     public static com.liferay.portlet.messageboards.model.MBMessage findByT_P_First(
778         long threadId, long parentMessageId,
779         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
780         throws com.liferay.portal.kernel.exception.SystemException,
781             com.liferay.portlet.messageboards.NoSuchMessageException {
782         return getPersistence()
783                    .findByT_P_First(threadId, parentMessageId, orderByComparator);
784     }
785 
786     public static com.liferay.portlet.messageboards.model.MBMessage findByT_P_Last(
787         long threadId, long parentMessageId,
788         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
789         throws com.liferay.portal.kernel.exception.SystemException,
790             com.liferay.portlet.messageboards.NoSuchMessageException {
791         return getPersistence()
792                    .findByT_P_Last(threadId, parentMessageId, orderByComparator);
793     }
794 
795     public static com.liferay.portlet.messageboards.model.MBMessage[] findByT_P_PrevAndNext(
796         long messageId, long threadId, long parentMessageId,
797         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
798         throws com.liferay.portal.kernel.exception.SystemException,
799             com.liferay.portlet.messageboards.NoSuchMessageException {
800         return getPersistence()
801                    .findByT_P_PrevAndNext(messageId, threadId, parentMessageId,
802             orderByComparator);
803     }
804 
805     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_S(
806         long threadId, int status)
807         throws com.liferay.portal.kernel.exception.SystemException {
808         return getPersistence().findByT_S(threadId, status);
809     }
810 
811     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_S(
812         long threadId, int status, int start, int end)
813         throws com.liferay.portal.kernel.exception.SystemException {
814         return getPersistence().findByT_S(threadId, status, start, end);
815     }
816 
817     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_S(
818         long threadId, int status, int start, int end,
819         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
820         throws com.liferay.portal.kernel.exception.SystemException {
821         return getPersistence()
822                    .findByT_S(threadId, status, start, end, orderByComparator);
823     }
824 
825     public static com.liferay.portlet.messageboards.model.MBMessage findByT_S_First(
826         long threadId, int status,
827         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
828         throws com.liferay.portal.kernel.exception.SystemException,
829             com.liferay.portlet.messageboards.NoSuchMessageException {
830         return getPersistence()
831                    .findByT_S_First(threadId, status, orderByComparator);
832     }
833 
834     public static com.liferay.portlet.messageboards.model.MBMessage findByT_S_Last(
835         long threadId, int status,
836         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
837         throws com.liferay.portal.kernel.exception.SystemException,
838             com.liferay.portlet.messageboards.NoSuchMessageException {
839         return getPersistence()
840                    .findByT_S_Last(threadId, status, orderByComparator);
841     }
842 
843     public static com.liferay.portlet.messageboards.model.MBMessage[] findByT_S_PrevAndNext(
844         long messageId, long threadId, int status,
845         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
846         throws com.liferay.portal.kernel.exception.SystemException,
847             com.liferay.portlet.messageboards.NoSuchMessageException {
848         return getPersistence()
849                    .findByT_S_PrevAndNext(messageId, threadId, status,
850             orderByComparator);
851     }
852 
853     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByTR_S(
854         long threadId, int status)
855         throws com.liferay.portal.kernel.exception.SystemException {
856         return getPersistence().findByTR_S(threadId, status);
857     }
858 
859     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByTR_S(
860         long threadId, int status, int start, int end)
861         throws com.liferay.portal.kernel.exception.SystemException {
862         return getPersistence().findByTR_S(threadId, status, start, end);
863     }
864 
865     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByTR_S(
866         long threadId, int status, int start, int end,
867         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
868         throws com.liferay.portal.kernel.exception.SystemException {
869         return getPersistence()
870                    .findByTR_S(threadId, status, start, end, orderByComparator);
871     }
872 
873     public static com.liferay.portlet.messageboards.model.MBMessage findByTR_S_First(
874         long threadId, int status,
875         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
876         throws com.liferay.portal.kernel.exception.SystemException,
877             com.liferay.portlet.messageboards.NoSuchMessageException {
878         return getPersistence()
879                    .findByTR_S_First(threadId, status, orderByComparator);
880     }
881 
882     public static com.liferay.portlet.messageboards.model.MBMessage findByTR_S_Last(
883         long threadId, int status,
884         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
885         throws com.liferay.portal.kernel.exception.SystemException,
886             com.liferay.portlet.messageboards.NoSuchMessageException {
887         return getPersistence()
888                    .findByTR_S_Last(threadId, status, orderByComparator);
889     }
890 
891     public static com.liferay.portlet.messageboards.model.MBMessage[] findByTR_S_PrevAndNext(
892         long messageId, long threadId, int status,
893         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
894         throws com.liferay.portal.kernel.exception.SystemException,
895             com.liferay.portlet.messageboards.NoSuchMessageException {
896         return getPersistence()
897                    .findByTR_S_PrevAndNext(messageId, threadId, status,
898             orderByComparator);
899     }
900 
901     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U_S(
902         long groupId, long userId, int status)
903         throws com.liferay.portal.kernel.exception.SystemException {
904         return getPersistence().findByG_U_S(groupId, userId, status);
905     }
906 
907     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U_S(
908         long groupId, long userId, int status, int start, int end)
909         throws com.liferay.portal.kernel.exception.SystemException {
910         return getPersistence().findByG_U_S(groupId, userId, status, start, end);
911     }
912 
913     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U_S(
914         long groupId, long userId, int status, int start, int end,
915         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
916         throws com.liferay.portal.kernel.exception.SystemException {
917         return getPersistence()
918                    .findByG_U_S(groupId, userId, status, start, end,
919             orderByComparator);
920     }
921 
922     public static com.liferay.portlet.messageboards.model.MBMessage findByG_U_S_First(
923         long groupId, long userId, int status,
924         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
925         throws com.liferay.portal.kernel.exception.SystemException,
926             com.liferay.portlet.messageboards.NoSuchMessageException {
927         return getPersistence()
928                    .findByG_U_S_First(groupId, userId, status, orderByComparator);
929     }
930 
931     public static com.liferay.portlet.messageboards.model.MBMessage findByG_U_S_Last(
932         long groupId, long userId, int status,
933         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
934         throws com.liferay.portal.kernel.exception.SystemException,
935             com.liferay.portlet.messageboards.NoSuchMessageException {
936         return getPersistence()
937                    .findByG_U_S_Last(groupId, userId, status, orderByComparator);
938     }
939 
940     public static com.liferay.portlet.messageboards.model.MBMessage[] findByG_U_S_PrevAndNext(
941         long messageId, long groupId, long userId, int status,
942         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
943         throws com.liferay.portal.kernel.exception.SystemException,
944             com.liferay.portlet.messageboards.NoSuchMessageException {
945         return getPersistence()
946                    .findByG_U_S_PrevAndNext(messageId, groupId, userId, status,
947             orderByComparator);
948     }
949 
950     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_U_S(
951         long groupId, long userId, int status)
952         throws com.liferay.portal.kernel.exception.SystemException {
953         return getPersistence().filterFindByG_U_S(groupId, userId, status);
954     }
955 
956     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_U_S(
957         long groupId, long userId, int status, int start, int end)
958         throws com.liferay.portal.kernel.exception.SystemException {
959         return getPersistence()
960                    .filterFindByG_U_S(groupId, userId, status, start, end);
961     }
962 
963     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_U_S(
964         long groupId, long userId, int status, int start, int end,
965         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
966         throws com.liferay.portal.kernel.exception.SystemException {
967         return getPersistence()
968                    .filterFindByG_U_S(groupId, userId, status, start, end,
969             orderByComparator);
970     }
971 
972     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T(
973         long groupId, long categoryId, long threadId)
974         throws com.liferay.portal.kernel.exception.SystemException {
975         return getPersistence().findByG_C_T(groupId, categoryId, threadId);
976     }
977 
978     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T(
979         long groupId, long categoryId, long threadId, int start, int end)
980         throws com.liferay.portal.kernel.exception.SystemException {
981         return getPersistence()
982                    .findByG_C_T(groupId, categoryId, threadId, start, end);
983     }
984 
985     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T(
986         long groupId, long categoryId, long threadId, int start, int end,
987         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
988         throws com.liferay.portal.kernel.exception.SystemException {
989         return getPersistence()
990                    .findByG_C_T(groupId, categoryId, threadId, start, end,
991             orderByComparator);
992     }
993 
994     public static com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_First(
995         long groupId, long categoryId, long threadId,
996         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
997         throws com.liferay.portal.kernel.exception.SystemException,
998             com.liferay.portlet.messageboards.NoSuchMessageException {
999         return getPersistence()
1000                   .findByG_C_T_First(groupId, categoryId, threadId,
1001            orderByComparator);
1002    }
1003
1004    public static com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_Last(
1005        long groupId, long categoryId, long threadId,
1006        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1007        throws com.liferay.portal.kernel.exception.SystemException,
1008            com.liferay.portlet.messageboards.NoSuchMessageException {
1009        return getPersistence()
1010                   .findByG_C_T_Last(groupId, categoryId, threadId,
1011            orderByComparator);
1012    }
1013
1014    public static com.liferay.portlet.messageboards.model.MBMessage[] findByG_C_T_PrevAndNext(
1015        long messageId, long groupId, long categoryId, long threadId,
1016        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1017        throws com.liferay.portal.kernel.exception.SystemException,
1018            com.liferay.portlet.messageboards.NoSuchMessageException {
1019        return getPersistence()
1020                   .findByG_C_T_PrevAndNext(messageId, groupId, categoryId,
1021            threadId, orderByComparator);
1022    }
1023
1024    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T(
1025        long groupId, long categoryId, long threadId)
1026        throws com.liferay.portal.kernel.exception.SystemException {
1027        return getPersistence().filterFindByG_C_T(groupId, categoryId, threadId);
1028    }
1029
1030    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T(
1031        long groupId, long categoryId, long threadId, int start, int end)
1032        throws com.liferay.portal.kernel.exception.SystemException {
1033        return getPersistence()
1034                   .filterFindByG_C_T(groupId, categoryId, threadId, start, end);
1035    }
1036
1037    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T(
1038        long groupId, long categoryId, long threadId, int start, int end,
1039        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1040        throws com.liferay.portal.kernel.exception.SystemException {
1041        return getPersistence()
1042                   .filterFindByG_C_T(groupId, categoryId, threadId, start,
1043            end, orderByComparator);
1044    }
1045
1046    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_S(
1047        long groupId, long categoryId, int status)
1048        throws com.liferay.portal.kernel.exception.SystemException {
1049        return getPersistence().findByG_C_S(groupId, categoryId, status);
1050    }
1051
1052    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_S(
1053        long groupId, long categoryId, int status, int start, int end)
1054        throws com.liferay.portal.kernel.exception.SystemException {
1055        return getPersistence()
1056                   .findByG_C_S(groupId, categoryId, status, start, end);
1057    }
1058
1059    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_S(
1060        long groupId, long categoryId, int status, int start, int end,
1061        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1062        throws com.liferay.portal.kernel.exception.SystemException {
1063        return getPersistence()
1064                   .findByG_C_S(groupId, categoryId, status, start, end,
1065            orderByComparator);
1066    }
1067
1068    public static com.liferay.portlet.messageboards.model.MBMessage findByG_C_S_First(
1069        long groupId, long categoryId, int status,
1070        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1071        throws com.liferay.portal.kernel.exception.SystemException,
1072            com.liferay.portlet.messageboards.NoSuchMessageException {
1073        return getPersistence()
1074                   .findByG_C_S_First(groupId, categoryId, status,
1075            orderByComparator);
1076    }
1077
1078    public static com.liferay.portlet.messageboards.model.MBMessage findByG_C_S_Last(
1079        long groupId, long categoryId, int status,
1080        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1081        throws com.liferay.portal.kernel.exception.SystemException,
1082            com.liferay.portlet.messageboards.NoSuchMessageException {
1083        return getPersistence()
1084                   .findByG_C_S_Last(groupId, categoryId, status,
1085            orderByComparator);
1086    }
1087
1088    public static com.liferay.portlet.messageboards.model.MBMessage[] findByG_C_S_PrevAndNext(
1089        long messageId, long groupId, long categoryId, int status,
1090        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1091        throws com.liferay.portal.kernel.exception.SystemException,
1092            com.liferay.portlet.messageboards.NoSuchMessageException {
1093        return getPersistence()
1094                   .findByG_C_S_PrevAndNext(messageId, groupId, categoryId,
1095            status, orderByComparator);
1096    }
1097
1098    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_S(
1099        long groupId, long categoryId, int status)
1100        throws com.liferay.portal.kernel.exception.SystemException {
1101        return getPersistence().filterFindByG_C_S(groupId, categoryId, status);
1102    }
1103
1104    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_S(
1105        long groupId, long categoryId, int status, int start, int end)
1106        throws com.liferay.portal.kernel.exception.SystemException {
1107        return getPersistence()
1108                   .filterFindByG_C_S(groupId, categoryId, status, start, end);
1109    }
1110
1111    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_S(
1112        long groupId, long categoryId, int status, int start, int end,
1113        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1114        throws com.liferay.portal.kernel.exception.SystemException {
1115        return getPersistence()
1116                   .filterFindByG_C_S(groupId, categoryId, status, start, end,
1117            orderByComparator);
1118    }
1119
1120    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C_S(
1121        long classNameId, long classPK, int status)
1122        throws com.liferay.portal.kernel.exception.SystemException {
1123        return getPersistence().findByC_C_S(classNameId, classPK, status);
1124    }
1125
1126    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C_S(
1127        long classNameId, long classPK, int status, int start, int end)
1128        throws com.liferay.portal.kernel.exception.SystemException {
1129        return getPersistence()
1130                   .findByC_C_S(classNameId, classPK, status, start, end);
1131    }
1132
1133    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C_S(
1134        long classNameId, long classPK, int status, int start, int end,
1135        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1136        throws com.liferay.portal.kernel.exception.SystemException {
1137        return getPersistence()
1138                   .findByC_C_S(classNameId, classPK, status, start, end,
1139            orderByComparator);
1140    }
1141
1142    public static com.liferay.portlet.messageboards.model.MBMessage findByC_C_S_First(
1143        long classNameId, long classPK, int status,
1144        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1145        throws com.liferay.portal.kernel.exception.SystemException,
1146            com.liferay.portlet.messageboards.NoSuchMessageException {
1147        return getPersistence()
1148                   .findByC_C_S_First(classNameId, classPK, status,
1149            orderByComparator);
1150    }
1151
1152    public static com.liferay.portlet.messageboards.model.MBMessage findByC_C_S_Last(
1153        long classNameId, long classPK, int status,
1154        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1155        throws com.liferay.portal.kernel.exception.SystemException,
1156            com.liferay.portlet.messageboards.NoSuchMessageException {
1157        return getPersistence()
1158                   .findByC_C_S_Last(classNameId, classPK, status,
1159            orderByComparator);
1160    }
1161
1162    public static com.liferay.portlet.messageboards.model.MBMessage[] findByC_C_S_PrevAndNext(
1163        long messageId, long classNameId, long classPK, int status,
1164        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1165        throws com.liferay.portal.kernel.exception.SystemException,
1166            com.liferay.portlet.messageboards.NoSuchMessageException {
1167        return getPersistence()
1168                   .findByC_C_S_PrevAndNext(messageId, classNameId, classPK,
1169            status, orderByComparator);
1170    }
1171
1172    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T_S(
1173        long groupId, long categoryId, long threadId, int status)
1174        throws com.liferay.portal.kernel.exception.SystemException {
1175        return getPersistence()
1176                   .findByG_C_T_S(groupId, categoryId, threadId, status);
1177    }
1178
1179    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T_S(
1180        long groupId, long categoryId, long threadId, int status, int start,
1181        int end) throws com.liferay.portal.kernel.exception.SystemException {
1182        return getPersistence()
1183                   .findByG_C_T_S(groupId, categoryId, threadId, status, start,
1184            end);
1185    }
1186
1187    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T_S(
1188        long groupId, long categoryId, long threadId, int status, int start,
1189        int end,
1190        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1191        throws com.liferay.portal.kernel.exception.SystemException {
1192        return getPersistence()
1193                   .findByG_C_T_S(groupId, categoryId, threadId, status, start,
1194            end, orderByComparator);
1195    }
1196
1197    public static com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_S_First(
1198        long groupId, long categoryId, long threadId, int status,
1199        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1200        throws com.liferay.portal.kernel.exception.SystemException,
1201            com.liferay.portlet.messageboards.NoSuchMessageException {
1202        return getPersistence()
1203                   .findByG_C_T_S_First(groupId, categoryId, threadId, status,
1204            orderByComparator);
1205    }
1206
1207    public static com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_S_Last(
1208        long groupId, long categoryId, long threadId, int status,
1209        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1210        throws com.liferay.portal.kernel.exception.SystemException,
1211            com.liferay.portlet.messageboards.NoSuchMessageException {
1212        return getPersistence()
1213                   .findByG_C_T_S_Last(groupId, categoryId, threadId, status,
1214            orderByComparator);
1215    }
1216
1217    public static com.liferay.portlet.messageboards.model.MBMessage[] findByG_C_T_S_PrevAndNext(
1218        long messageId, long groupId, long categoryId, long threadId,
1219        int status,
1220        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1221        throws com.liferay.portal.kernel.exception.SystemException,
1222            com.liferay.portlet.messageboards.NoSuchMessageException {
1223        return getPersistence()
1224                   .findByG_C_T_S_PrevAndNext(messageId, groupId, categoryId,
1225            threadId, status, orderByComparator);
1226    }
1227
1228    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T_S(
1229        long groupId, long categoryId, long threadId, int status)
1230        throws com.liferay.portal.kernel.exception.SystemException {
1231        return getPersistence()
1232                   .filterFindByG_C_T_S(groupId, categoryId, threadId, status);
1233    }
1234
1235    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T_S(
1236        long groupId, long categoryId, long threadId, int status, int start,
1237        int end) throws com.liferay.portal.kernel.exception.SystemException {
1238        return getPersistence()
1239                   .filterFindByG_C_T_S(groupId, categoryId, threadId, status,
1240            start, end);
1241    }
1242
1243    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T_S(
1244        long groupId, long categoryId, long threadId, int status, int start,
1245        int end,
1246        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1247        throws com.liferay.portal.kernel.exception.SystemException {
1248        return getPersistence()
1249                   .filterFindByG_C_T_S(groupId, categoryId, threadId, status,
1250            start, end, orderByComparator);
1251    }
1252
1253    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll()
1254        throws com.liferay.portal.kernel.exception.SystemException {
1255        return getPersistence().findAll();
1256    }
1257
1258    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
1259        int start, int end)
1260        throws com.liferay.portal.kernel.exception.SystemException {
1261        return getPersistence().findAll(start, end);
1262    }
1263
1264    public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
1265        int start, int end,
1266        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1267        throws com.liferay.portal.kernel.exception.SystemException {
1268        return getPersistence().findAll(start, end, orderByComparator);
1269    }
1270
1271    public static void removeByUuid(java.lang.String uuid)
1272        throws com.liferay.portal.kernel.exception.SystemException {
1273        getPersistence().removeByUuid(uuid);
1274    }
1275
1276    public static void removeByUUID_G(java.lang.String uuid, long groupId)
1277        throws com.liferay.portal.kernel.exception.SystemException,
1278            com.liferay.portlet.messageboards.NoSuchMessageException {
1279        getPersistence().removeByUUID_G(uuid, groupId);
1280    }
1281
1282    public static void removeByGroupId(long groupId)
1283        throws com.liferay.portal.kernel.exception.SystemException {
1284        getPersistence().removeByGroupId(groupId);
1285    }
1286
1287    public static void removeByCompanyId(long companyId)
1288        throws com.liferay.portal.kernel.exception.SystemException {
1289        getPersistence().removeByCompanyId(companyId);
1290    }
1291
1292    public static void removeByThreadId(long threadId)
1293        throws com.liferay.portal.kernel.exception.SystemException {
1294        getPersistence().removeByThreadId(threadId);
1295    }
1296
1297    public static void removeByThreadReplies(long threadId)
1298        throws com.liferay.portal.kernel.exception.SystemException {
1299        getPersistence().removeByThreadReplies(threadId);
1300    }
1301
1302    public static void removeByUserId(long userId)
1303        throws com.liferay.portal.kernel.exception.SystemException {
1304        getPersistence().removeByUserId(userId);
1305    }
1306
1307    public static void removeByG_U(long groupId, long userId)
1308        throws com.liferay.portal.kernel.exception.SystemException {
1309        getPersistence().removeByG_U(groupId, userId);
1310    }
1311
1312    public static void removeByG_C(long groupId, long categoryId)
1313        throws com.liferay.portal.kernel.exception.SystemException {
1314        getPersistence().removeByG_C(groupId, categoryId);
1315    }
1316
1317    public static void removeByG_S(long groupId, int status)
1318        throws com.liferay.portal.kernel.exception.SystemException {
1319        getPersistence().removeByG_S(groupId, status);
1320    }
1321
1322    public static void removeByC_S(long companyId, int status)
1323        throws com.liferay.portal.kernel.exception.SystemException {
1324        getPersistence().removeByC_S(companyId, status);
1325    }
1326
1327    public static void removeByC_C(long classNameId, long classPK)
1328        throws com.liferay.portal.kernel.exception.SystemException {
1329        getPersistence().removeByC_C(classNameId, classPK);
1330    }
1331
1332    public static void removeByT_P(long threadId, long parentMessageId)
1333        throws com.liferay.portal.kernel.exception.SystemException {
1334        getPersistence().removeByT_P(threadId, parentMessageId);
1335    }
1336
1337    public static void removeByT_S(long threadId, int status)
1338        throws com.liferay.portal.kernel.exception.SystemException {
1339        getPersistence().removeByT_S(threadId, status);
1340    }
1341
1342    public static void removeByTR_S(long threadId, int status)
1343        throws com.liferay.portal.kernel.exception.SystemException {
1344        getPersistence().removeByTR_S(threadId, status);
1345    }
1346
1347    public static void removeByG_U_S(long groupId, long userId, int status)
1348        throws com.liferay.portal.kernel.exception.SystemException {
1349        getPersistence().removeByG_U_S(groupId, userId, status);
1350    }
1351
1352    public static void removeByG_C_T(long groupId, long categoryId,
1353        long threadId)
1354        throws com.liferay.portal.kernel.exception.SystemException {
1355        getPersistence().removeByG_C_T(groupId, categoryId, threadId);
1356    }
1357
1358    public static void removeByG_C_S(long groupId, long categoryId, int status)
1359        throws com.liferay.portal.kernel.exception.SystemException {
1360        getPersistence().removeByG_C_S(groupId, categoryId, status);
1361    }
1362
1363    public static void removeByC_C_S(long classNameId, long classPK, int status)
1364        throws com.liferay.portal.kernel.exception.SystemException {
1365        getPersistence().removeByC_C_S(classNameId, classPK, status);
1366    }
1367
1368    public static void removeByG_C_T_S(long groupId, long categoryId,
1369        long threadId, int status)
1370        throws com.liferay.portal.kernel.exception.SystemException {
1371        getPersistence().removeByG_C_T_S(groupId, categoryId, threadId, status);
1372    }
1373
1374    public static void removeAll()
1375        throws com.liferay.portal.kernel.exception.SystemException {
1376        getPersistence().removeAll();
1377    }
1378
1379    public static int countByUuid(java.lang.String uuid)
1380        throws com.liferay.portal.kernel.exception.SystemException {
1381        return getPersistence().countByUuid(uuid);
1382    }
1383
1384    public static int countByUUID_G(java.lang.String uuid, long groupId)
1385        throws com.liferay.portal.kernel.exception.SystemException {
1386        return getPersistence().countByUUID_G(uuid, groupId);
1387    }
1388
1389    public static int countByGroupId(long groupId)
1390        throws com.liferay.portal.kernel.exception.SystemException {
1391        return getPersistence().countByGroupId(groupId);
1392    }
1393
1394    public static int filterCountByGroupId(long groupId)
1395        throws com.liferay.portal.kernel.exception.SystemException {
1396        return getPersistence().filterCountByGroupId(groupId);
1397    }
1398
1399    public static int countByCompanyId(long companyId)
1400        throws com.liferay.portal.kernel.exception.SystemException {
1401        return getPersistence().countByCompanyId(companyId);
1402    }
1403
1404    public static int countByThreadId(long threadId)
1405        throws com.liferay.portal.kernel.exception.SystemException {
1406        return getPersistence().countByThreadId(threadId);
1407    }
1408
1409    public static int countByThreadReplies(long threadId)
1410        throws com.liferay.portal.kernel.exception.SystemException {
1411        return getPersistence().countByThreadReplies(threadId);
1412    }
1413
1414    public static int countByUserId(long userId)
1415        throws com.liferay.portal.kernel.exception.SystemException {
1416        return getPersistence().countByUserId(userId);
1417    }
1418
1419    public static int countByG_U(long groupId, long userId)
1420        throws com.liferay.portal.kernel.exception.SystemException {
1421        return getPersistence().countByG_U(groupId, userId);
1422    }
1423
1424    public static int filterCountByG_U(long groupId, long userId)
1425        throws com.liferay.portal.kernel.exception.SystemException {
1426        return getPersistence().filterCountByG_U(groupId, userId);
1427    }
1428
1429    public static int countByG_C(long groupId, long categoryId)
1430        throws com.liferay.portal.kernel.exception.SystemException {
1431        return getPersistence().countByG_C(groupId, categoryId);
1432    }
1433
1434    public static int filterCountByG_C(long groupId, long categoryId)
1435        throws com.liferay.portal.kernel.exception.SystemException {
1436        return getPersistence().filterCountByG_C(groupId, categoryId);
1437    }
1438
1439    public static int countByG_S(long groupId, int status)
1440        throws com.liferay.portal.kernel.exception.SystemException {
1441        return getPersistence().countByG_S(groupId, status);
1442    }
1443
1444    public static int filterCountByG_S(long groupId, int status)
1445        throws com.liferay.portal.kernel.exception.SystemException {
1446        return getPersistence().filterCountByG_S(groupId, status);
1447    }
1448
1449    public static int countByC_S(long companyId, int status)
1450        throws com.liferay.portal.kernel.exception.SystemException {
1451        return getPersistence().countByC_S(companyId, status);
1452    }
1453
1454    public static int countByC_C(long classNameId, long classPK)
1455        throws com.liferay.portal.kernel.exception.SystemException {
1456        return getPersistence().countByC_C(classNameId, classPK);
1457    }
1458
1459    public static int countByT_P(long threadId, long parentMessageId)
1460        throws com.liferay.portal.kernel.exception.SystemException {
1461        return getPersistence().countByT_P(threadId, parentMessageId);
1462    }
1463
1464    public static int countByT_S(long threadId, int status)
1465        throws com.liferay.portal.kernel.exception.SystemException {
1466        return getPersistence().countByT_S(threadId, status);
1467    }
1468
1469    public static int countByTR_S(long threadId, int status)
1470        throws com.liferay.portal.kernel.exception.SystemException {
1471        return getPersistence().countByTR_S(threadId, status);
1472    }
1473
1474    public static int countByG_U_S(long groupId, long userId, int status)
1475        throws com.liferay.portal.kernel.exception.SystemException {
1476        return getPersistence().countByG_U_S(groupId, userId, status);
1477    }
1478
1479    public static int filterCountByG_U_S(long groupId, long userId, int status)
1480        throws com.liferay.portal.kernel.exception.SystemException {
1481        return getPersistence().filterCountByG_U_S(groupId, userId, status);
1482    }
1483
1484    public static int countByG_C_T(long groupId, long categoryId, long threadId)
1485        throws com.liferay.portal.kernel.exception.SystemException {
1486        return getPersistence().countByG_C_T(groupId, categoryId, threadId);
1487    }
1488
1489    public static int filterCountByG_C_T(long groupId, long categoryId,
1490        long threadId)
1491        throws com.liferay.portal.kernel.exception.SystemException {
1492        return getPersistence().filterCountByG_C_T(groupId, categoryId, threadId);
1493    }
1494
1495    public static int countByG_C_S(long groupId, long categoryId, int status)
1496        throws com.liferay.portal.kernel.exception.SystemException {
1497        return getPersistence().countByG_C_S(groupId, categoryId, status);
1498    }
1499
1500    public static int filterCountByG_C_S(long groupId, long categoryId,
1501        int status) throws com.liferay.portal.kernel.exception.SystemException {
1502        return getPersistence().filterCountByG_C_S(groupId, categoryId, status);
1503    }
1504
1505    public static int countByC_C_S(long classNameId, long classPK, int status)
1506        throws com.liferay.portal.kernel.exception.SystemException {
1507        return getPersistence().countByC_C_S(classNameId, classPK, status);
1508    }
1509
1510    public static int countByG_C_T_S(long groupId, long categoryId,
1511        long threadId, int status)
1512        throws com.liferay.portal.kernel.exception.SystemException {
1513        return getPersistence()
1514                   .countByG_C_T_S(groupId, categoryId, threadId, status);
1515    }
1516
1517    public static int filterCountByG_C_T_S(long groupId, long categoryId,
1518        long threadId, int status)
1519        throws com.liferay.portal.kernel.exception.SystemException {
1520        return getPersistence()
1521                   .filterCountByG_C_T_S(groupId, categoryId, threadId, status);
1522    }
1523
1524    public static int countAll()
1525        throws com.liferay.portal.kernel.exception.SystemException {
1526        return getPersistence().countAll();
1527    }
1528
1529    public static MBMessagePersistence getPersistence() {
1530        if (_persistence == null) {
1531            _persistence = (MBMessagePersistence)PortalBeanLocatorUtil.locate(MBMessagePersistence.class.getName());
1532        }
1533
1534        return _persistence;
1535    }
1536
1537    public void setPersistence(MBMessagePersistence persistence) {
1538        _persistence = persistence;
1539    }
1540
1541    private static MBMessagePersistence _persistence;
1542}