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#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.kernel.exception.SystemException,
96              com.liferay.portlet.messageboards.NoSuchMessageException {
97          return getPersistence().remove(messageId);
98      }
99  
100     public static com.liferay.portlet.messageboards.model.MBMessage updateImpl(
101         com.liferay.portlet.messageboards.model.MBMessage mbMessage,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(mbMessage, merge);
105     }
106 
107     public static com.liferay.portlet.messageboards.model.MBMessage findByPrimaryKey(
108         long messageId)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.messageboards.NoSuchMessageException {
111         return getPersistence().findByPrimaryKey(messageId);
112     }
113 
114     public static com.liferay.portlet.messageboards.model.MBMessage fetchByPrimaryKey(
115         long messageId)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getPersistence().fetchByPrimaryKey(messageId);
118     }
119 
120     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
121         java.lang.String uuid)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return getPersistence().findByUuid(uuid);
124     }
125 
126     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
127         java.lang.String uuid, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         return getPersistence().findByUuid(uuid, start, end);
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         com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence().findByUuid(uuid, start, end, obc);
137     }
138 
139     public static com.liferay.portlet.messageboards.model.MBMessage findByUuid_First(
140         java.lang.String uuid,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.kernel.exception.SystemException,
143             com.liferay.portlet.messageboards.NoSuchMessageException {
144         return getPersistence().findByUuid_First(uuid, obc);
145     }
146 
147     public static com.liferay.portlet.messageboards.model.MBMessage findByUuid_Last(
148         java.lang.String uuid,
149         com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.kernel.exception.SystemException,
151             com.liferay.portlet.messageboards.NoSuchMessageException {
152         return getPersistence().findByUuid_Last(uuid, obc);
153     }
154 
155     public static com.liferay.portlet.messageboards.model.MBMessage[] findByUuid_PrevAndNext(
156         long messageId, java.lang.String uuid,
157         com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.kernel.exception.SystemException,
159             com.liferay.portlet.messageboards.NoSuchMessageException {
160         return getPersistence().findByUuid_PrevAndNext(messageId, uuid, obc);
161     }
162 
163     public static com.liferay.portlet.messageboards.model.MBMessage findByUUID_G(
164         java.lang.String uuid, long groupId)
165         throws com.liferay.portal.kernel.exception.SystemException,
166             com.liferay.portlet.messageboards.NoSuchMessageException {
167         return getPersistence().findByUUID_G(uuid, groupId);
168     }
169 
170     public static com.liferay.portlet.messageboards.model.MBMessage fetchByUUID_G(
171         java.lang.String uuid, long groupId)
172         throws com.liferay.portal.kernel.exception.SystemException {
173         return getPersistence().fetchByUUID_G(uuid, groupId);
174     }
175 
176     public static com.liferay.portlet.messageboards.model.MBMessage fetchByUUID_G(
177         java.lang.String uuid, long groupId, boolean retrieveFromCache)
178         throws com.liferay.portal.kernel.exception.SystemException {
179         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
180     }
181 
182     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
183         long groupId)
184         throws com.liferay.portal.kernel.exception.SystemException {
185         return getPersistence().findByGroupId(groupId);
186     }
187 
188     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
189         long groupId, int start, int end)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return getPersistence().findByGroupId(groupId, start, end);
192     }
193 
194     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
195         long groupId, int start, int end,
196         com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.kernel.exception.SystemException {
198         return getPersistence().findByGroupId(groupId, start, end, obc);
199     }
200 
201     public static com.liferay.portlet.messageboards.model.MBMessage findByGroupId_First(
202         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
203         throws com.liferay.portal.kernel.exception.SystemException,
204             com.liferay.portlet.messageboards.NoSuchMessageException {
205         return getPersistence().findByGroupId_First(groupId, obc);
206     }
207 
208     public static com.liferay.portlet.messageboards.model.MBMessage findByGroupId_Last(
209         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
210         throws com.liferay.portal.kernel.exception.SystemException,
211             com.liferay.portlet.messageboards.NoSuchMessageException {
212         return getPersistence().findByGroupId_Last(groupId, obc);
213     }
214 
215     public static com.liferay.portlet.messageboards.model.MBMessage[] findByGroupId_PrevAndNext(
216         long messageId, long groupId,
217         com.liferay.portal.kernel.util.OrderByComparator obc)
218         throws com.liferay.portal.kernel.exception.SystemException,
219             com.liferay.portlet.messageboards.NoSuchMessageException {
220         return getPersistence()
221                    .findByGroupId_PrevAndNext(messageId, groupId, obc);
222     }
223 
224     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
225         long companyId)
226         throws com.liferay.portal.kernel.exception.SystemException {
227         return getPersistence().findByCompanyId(companyId);
228     }
229 
230     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
231         long companyId, int start, int end)
232         throws com.liferay.portal.kernel.exception.SystemException {
233         return getPersistence().findByCompanyId(companyId, start, end);
234     }
235 
236     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
237         long companyId, int start, int end,
238         com.liferay.portal.kernel.util.OrderByComparator obc)
239         throws com.liferay.portal.kernel.exception.SystemException {
240         return getPersistence().findByCompanyId(companyId, start, end, obc);
241     }
242 
243     public static com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_First(
244         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
245         throws com.liferay.portal.kernel.exception.SystemException,
246             com.liferay.portlet.messageboards.NoSuchMessageException {
247         return getPersistence().findByCompanyId_First(companyId, obc);
248     }
249 
250     public static com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_Last(
251         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
252         throws com.liferay.portal.kernel.exception.SystemException,
253             com.liferay.portlet.messageboards.NoSuchMessageException {
254         return getPersistence().findByCompanyId_Last(companyId, obc);
255     }
256 
257     public static com.liferay.portlet.messageboards.model.MBMessage[] findByCompanyId_PrevAndNext(
258         long messageId, long companyId,
259         com.liferay.portal.kernel.util.OrderByComparator obc)
260         throws com.liferay.portal.kernel.exception.SystemException,
261             com.liferay.portlet.messageboards.NoSuchMessageException {
262         return getPersistence()
263                    .findByCompanyId_PrevAndNext(messageId, companyId, obc);
264     }
265 
266     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
267         long threadId)
268         throws com.liferay.portal.kernel.exception.SystemException {
269         return getPersistence().findByThreadId(threadId);
270     }
271 
272     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
273         long threadId, int start, int end)
274         throws com.liferay.portal.kernel.exception.SystemException {
275         return getPersistence().findByThreadId(threadId, start, end);
276     }
277 
278     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
279         long threadId, int start, int end,
280         com.liferay.portal.kernel.util.OrderByComparator obc)
281         throws com.liferay.portal.kernel.exception.SystemException {
282         return getPersistence().findByThreadId(threadId, start, end, obc);
283     }
284 
285     public static com.liferay.portlet.messageboards.model.MBMessage findByThreadId_First(
286         long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
287         throws com.liferay.portal.kernel.exception.SystemException,
288             com.liferay.portlet.messageboards.NoSuchMessageException {
289         return getPersistence().findByThreadId_First(threadId, obc);
290     }
291 
292     public static com.liferay.portlet.messageboards.model.MBMessage findByThreadId_Last(
293         long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
294         throws com.liferay.portal.kernel.exception.SystemException,
295             com.liferay.portlet.messageboards.NoSuchMessageException {
296         return getPersistence().findByThreadId_Last(threadId, obc);
297     }
298 
299     public static com.liferay.portlet.messageboards.model.MBMessage[] findByThreadId_PrevAndNext(
300         long messageId, long threadId,
301         com.liferay.portal.kernel.util.OrderByComparator obc)
302         throws com.liferay.portal.kernel.exception.SystemException,
303             com.liferay.portlet.messageboards.NoSuchMessageException {
304         return getPersistence()
305                    .findByThreadId_PrevAndNext(messageId, threadId, obc);
306     }
307 
308     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies(
309         long threadId)
310         throws com.liferay.portal.kernel.exception.SystemException {
311         return getPersistence().findByThreadReplies(threadId);
312     }
313 
314     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies(
315         long threadId, int start, int end)
316         throws com.liferay.portal.kernel.exception.SystemException {
317         return getPersistence().findByThreadReplies(threadId, start, end);
318     }
319 
320     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies(
321         long threadId, int start, int end,
322         com.liferay.portal.kernel.util.OrderByComparator obc)
323         throws com.liferay.portal.kernel.exception.SystemException {
324         return getPersistence().findByThreadReplies(threadId, start, end, obc);
325     }
326 
327     public static com.liferay.portlet.messageboards.model.MBMessage findByThreadReplies_First(
328         long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
329         throws com.liferay.portal.kernel.exception.SystemException,
330             com.liferay.portlet.messageboards.NoSuchMessageException {
331         return getPersistence().findByThreadReplies_First(threadId, obc);
332     }
333 
334     public static com.liferay.portlet.messageboards.model.MBMessage findByThreadReplies_Last(
335         long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
336         throws com.liferay.portal.kernel.exception.SystemException,
337             com.liferay.portlet.messageboards.NoSuchMessageException {
338         return getPersistence().findByThreadReplies_Last(threadId, obc);
339     }
340 
341     public static com.liferay.portlet.messageboards.model.MBMessage[] findByThreadReplies_PrevAndNext(
342         long messageId, long threadId,
343         com.liferay.portal.kernel.util.OrderByComparator obc)
344         throws com.liferay.portal.kernel.exception.SystemException,
345             com.liferay.portlet.messageboards.NoSuchMessageException {
346         return getPersistence()
347                    .findByThreadReplies_PrevAndNext(messageId, threadId, obc);
348     }
349 
350     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
351         long groupId, long userId)
352         throws com.liferay.portal.kernel.exception.SystemException {
353         return getPersistence().findByG_U(groupId, userId);
354     }
355 
356     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
357         long groupId, long userId, int start, int end)
358         throws com.liferay.portal.kernel.exception.SystemException {
359         return getPersistence().findByG_U(groupId, userId, start, end);
360     }
361 
362     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
363         long groupId, long userId, int start, int end,
364         com.liferay.portal.kernel.util.OrderByComparator obc)
365         throws com.liferay.portal.kernel.exception.SystemException {
366         return getPersistence().findByG_U(groupId, userId, start, end, obc);
367     }
368 
369     public static com.liferay.portlet.messageboards.model.MBMessage findByG_U_First(
370         long groupId, long userId,
371         com.liferay.portal.kernel.util.OrderByComparator obc)
372         throws com.liferay.portal.kernel.exception.SystemException,
373             com.liferay.portlet.messageboards.NoSuchMessageException {
374         return getPersistence().findByG_U_First(groupId, userId, obc);
375     }
376 
377     public static com.liferay.portlet.messageboards.model.MBMessage findByG_U_Last(
378         long groupId, long userId,
379         com.liferay.portal.kernel.util.OrderByComparator obc)
380         throws com.liferay.portal.kernel.exception.SystemException,
381             com.liferay.portlet.messageboards.NoSuchMessageException {
382         return getPersistence().findByG_U_Last(groupId, userId, obc);
383     }
384 
385     public static com.liferay.portlet.messageboards.model.MBMessage[] findByG_U_PrevAndNext(
386         long messageId, long groupId, long userId,
387         com.liferay.portal.kernel.util.OrderByComparator obc)
388         throws com.liferay.portal.kernel.exception.SystemException,
389             com.liferay.portlet.messageboards.NoSuchMessageException {
390         return getPersistence()
391                    .findByG_U_PrevAndNext(messageId, groupId, userId, obc);
392     }
393 
394     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C(
395         long groupId, long categoryId)
396         throws com.liferay.portal.kernel.exception.SystemException {
397         return getPersistence().findByG_C(groupId, categoryId);
398     }
399 
400     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C(
401         long groupId, long categoryId, int start, int end)
402         throws com.liferay.portal.kernel.exception.SystemException {
403         return getPersistence().findByG_C(groupId, categoryId, start, end);
404     }
405 
406     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C(
407         long groupId, long categoryId, int start, int end,
408         com.liferay.portal.kernel.util.OrderByComparator obc)
409         throws com.liferay.portal.kernel.exception.SystemException {
410         return getPersistence().findByG_C(groupId, categoryId, start, end, obc);
411     }
412 
413     public static com.liferay.portlet.messageboards.model.MBMessage findByG_C_First(
414         long groupId, long categoryId,
415         com.liferay.portal.kernel.util.OrderByComparator obc)
416         throws com.liferay.portal.kernel.exception.SystemException,
417             com.liferay.portlet.messageboards.NoSuchMessageException {
418         return getPersistence().findByG_C_First(groupId, categoryId, obc);
419     }
420 
421     public static com.liferay.portlet.messageboards.model.MBMessage findByG_C_Last(
422         long groupId, long categoryId,
423         com.liferay.portal.kernel.util.OrderByComparator obc)
424         throws com.liferay.portal.kernel.exception.SystemException,
425             com.liferay.portlet.messageboards.NoSuchMessageException {
426         return getPersistence().findByG_C_Last(groupId, categoryId, obc);
427     }
428 
429     public static com.liferay.portlet.messageboards.model.MBMessage[] findByG_C_PrevAndNext(
430         long messageId, long groupId, long categoryId,
431         com.liferay.portal.kernel.util.OrderByComparator obc)
432         throws com.liferay.portal.kernel.exception.SystemException,
433             com.liferay.portlet.messageboards.NoSuchMessageException {
434         return getPersistence()
435                    .findByG_C_PrevAndNext(messageId, groupId, categoryId, obc);
436     }
437 
438     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_S(
439         long groupId, int status)
440         throws com.liferay.portal.kernel.exception.SystemException {
441         return getPersistence().findByG_S(groupId, status);
442     }
443 
444     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_S(
445         long groupId, int status, int start, int end)
446         throws com.liferay.portal.kernel.exception.SystemException {
447         return getPersistence().findByG_S(groupId, status, start, end);
448     }
449 
450     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_S(
451         long groupId, int status, int start, int end,
452         com.liferay.portal.kernel.util.OrderByComparator obc)
453         throws com.liferay.portal.kernel.exception.SystemException {
454         return getPersistence().findByG_S(groupId, status, start, end, obc);
455     }
456 
457     public static com.liferay.portlet.messageboards.model.MBMessage findByG_S_First(
458         long groupId, int status,
459         com.liferay.portal.kernel.util.OrderByComparator obc)
460         throws com.liferay.portal.kernel.exception.SystemException,
461             com.liferay.portlet.messageboards.NoSuchMessageException {
462         return getPersistence().findByG_S_First(groupId, status, obc);
463     }
464 
465     public static com.liferay.portlet.messageboards.model.MBMessage findByG_S_Last(
466         long groupId, int status,
467         com.liferay.portal.kernel.util.OrderByComparator obc)
468         throws com.liferay.portal.kernel.exception.SystemException,
469             com.liferay.portlet.messageboards.NoSuchMessageException {
470         return getPersistence().findByG_S_Last(groupId, status, obc);
471     }
472 
473     public static com.liferay.portlet.messageboards.model.MBMessage[] findByG_S_PrevAndNext(
474         long messageId, long groupId, int status,
475         com.liferay.portal.kernel.util.OrderByComparator obc)
476         throws com.liferay.portal.kernel.exception.SystemException,
477             com.liferay.portlet.messageboards.NoSuchMessageException {
478         return getPersistence()
479                    .findByG_S_PrevAndNext(messageId, groupId, status, obc);
480     }
481 
482     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_S(
483         long companyId, int status)
484         throws com.liferay.portal.kernel.exception.SystemException {
485         return getPersistence().findByC_S(companyId, status);
486     }
487 
488     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_S(
489         long companyId, int status, int start, int end)
490         throws com.liferay.portal.kernel.exception.SystemException {
491         return getPersistence().findByC_S(companyId, status, start, end);
492     }
493 
494     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_S(
495         long companyId, int status, int start, int end,
496         com.liferay.portal.kernel.util.OrderByComparator obc)
497         throws com.liferay.portal.kernel.exception.SystemException {
498         return getPersistence().findByC_S(companyId, status, start, end, obc);
499     }
500 
501     public static com.liferay.portlet.messageboards.model.MBMessage findByC_S_First(
502         long companyId, int status,
503         com.liferay.portal.kernel.util.OrderByComparator obc)
504         throws com.liferay.portal.kernel.exception.SystemException,
505             com.liferay.portlet.messageboards.NoSuchMessageException {
506         return getPersistence().findByC_S_First(companyId, status, obc);
507     }
508 
509     public static com.liferay.portlet.messageboards.model.MBMessage findByC_S_Last(
510         long companyId, int status,
511         com.liferay.portal.kernel.util.OrderByComparator obc)
512         throws com.liferay.portal.kernel.exception.SystemException,
513             com.liferay.portlet.messageboards.NoSuchMessageException {
514         return getPersistence().findByC_S_Last(companyId, status, obc);
515     }
516 
517     public static com.liferay.portlet.messageboards.model.MBMessage[] findByC_S_PrevAndNext(
518         long messageId, long companyId, int status,
519         com.liferay.portal.kernel.util.OrderByComparator obc)
520         throws com.liferay.portal.kernel.exception.SystemException,
521             com.liferay.portlet.messageboards.NoSuchMessageException {
522         return getPersistence()
523                    .findByC_S_PrevAndNext(messageId, companyId, status, obc);
524     }
525 
526     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
527         long classNameId, long classPK)
528         throws com.liferay.portal.kernel.exception.SystemException {
529         return getPersistence().findByC_C(classNameId, classPK);
530     }
531 
532     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
533         long classNameId, long classPK, int start, int end)
534         throws com.liferay.portal.kernel.exception.SystemException {
535         return getPersistence().findByC_C(classNameId, classPK, start, end);
536     }
537 
538     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
539         long classNameId, long classPK, int start, int end,
540         com.liferay.portal.kernel.util.OrderByComparator obc)
541         throws com.liferay.portal.kernel.exception.SystemException {
542         return getPersistence().findByC_C(classNameId, classPK, start, end, obc);
543     }
544 
545     public static com.liferay.portlet.messageboards.model.MBMessage findByC_C_First(
546         long classNameId, long classPK,
547         com.liferay.portal.kernel.util.OrderByComparator obc)
548         throws com.liferay.portal.kernel.exception.SystemException,
549             com.liferay.portlet.messageboards.NoSuchMessageException {
550         return getPersistence().findByC_C_First(classNameId, classPK, obc);
551     }
552 
553     public static com.liferay.portlet.messageboards.model.MBMessage findByC_C_Last(
554         long classNameId, long classPK,
555         com.liferay.portal.kernel.util.OrderByComparator obc)
556         throws com.liferay.portal.kernel.exception.SystemException,
557             com.liferay.portlet.messageboards.NoSuchMessageException {
558         return getPersistence().findByC_C_Last(classNameId, classPK, obc);
559     }
560 
561     public static com.liferay.portlet.messageboards.model.MBMessage[] findByC_C_PrevAndNext(
562         long messageId, long classNameId, long classPK,
563         com.liferay.portal.kernel.util.OrderByComparator obc)
564         throws com.liferay.portal.kernel.exception.SystemException,
565             com.liferay.portlet.messageboards.NoSuchMessageException {
566         return getPersistence()
567                    .findByC_C_PrevAndNext(messageId, classNameId, classPK, obc);
568     }
569 
570     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
571         long threadId, long parentMessageId)
572         throws com.liferay.portal.kernel.exception.SystemException {
573         return getPersistence().findByT_P(threadId, parentMessageId);
574     }
575 
576     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
577         long threadId, long parentMessageId, int start, int end)
578         throws com.liferay.portal.kernel.exception.SystemException {
579         return getPersistence().findByT_P(threadId, parentMessageId, start, end);
580     }
581 
582     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
583         long threadId, long parentMessageId, int start, int end,
584         com.liferay.portal.kernel.util.OrderByComparator obc)
585         throws com.liferay.portal.kernel.exception.SystemException {
586         return getPersistence()
587                    .findByT_P(threadId, parentMessageId, start, end, obc);
588     }
589 
590     public static com.liferay.portlet.messageboards.model.MBMessage findByT_P_First(
591         long threadId, long parentMessageId,
592         com.liferay.portal.kernel.util.OrderByComparator obc)
593         throws com.liferay.portal.kernel.exception.SystemException,
594             com.liferay.portlet.messageboards.NoSuchMessageException {
595         return getPersistence().findByT_P_First(threadId, parentMessageId, obc);
596     }
597 
598     public static com.liferay.portlet.messageboards.model.MBMessage findByT_P_Last(
599         long threadId, long parentMessageId,
600         com.liferay.portal.kernel.util.OrderByComparator obc)
601         throws com.liferay.portal.kernel.exception.SystemException,
602             com.liferay.portlet.messageboards.NoSuchMessageException {
603         return getPersistence().findByT_P_Last(threadId, parentMessageId, obc);
604     }
605 
606     public static com.liferay.portlet.messageboards.model.MBMessage[] findByT_P_PrevAndNext(
607         long messageId, long threadId, long parentMessageId,
608         com.liferay.portal.kernel.util.OrderByComparator obc)
609         throws com.liferay.portal.kernel.exception.SystemException,
610             com.liferay.portlet.messageboards.NoSuchMessageException {
611         return getPersistence()
612                    .findByT_P_PrevAndNext(messageId, threadId, parentMessageId,
613             obc);
614     }
615 
616     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_S(
617         long threadId, int status)
618         throws com.liferay.portal.kernel.exception.SystemException {
619         return getPersistence().findByT_S(threadId, status);
620     }
621 
622     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_S(
623         long threadId, int status, int start, int end)
624         throws com.liferay.portal.kernel.exception.SystemException {
625         return getPersistence().findByT_S(threadId, status, start, end);
626     }
627 
628     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_S(
629         long threadId, int status, int start, int end,
630         com.liferay.portal.kernel.util.OrderByComparator obc)
631         throws com.liferay.portal.kernel.exception.SystemException {
632         return getPersistence().findByT_S(threadId, status, start, end, obc);
633     }
634 
635     public static com.liferay.portlet.messageboards.model.MBMessage findByT_S_First(
636         long threadId, int status,
637         com.liferay.portal.kernel.util.OrderByComparator obc)
638         throws com.liferay.portal.kernel.exception.SystemException,
639             com.liferay.portlet.messageboards.NoSuchMessageException {
640         return getPersistence().findByT_S_First(threadId, status, obc);
641     }
642 
643     public static com.liferay.portlet.messageboards.model.MBMessage findByT_S_Last(
644         long threadId, int status,
645         com.liferay.portal.kernel.util.OrderByComparator obc)
646         throws com.liferay.portal.kernel.exception.SystemException,
647             com.liferay.portlet.messageboards.NoSuchMessageException {
648         return getPersistence().findByT_S_Last(threadId, status, obc);
649     }
650 
651     public static com.liferay.portlet.messageboards.model.MBMessage[] findByT_S_PrevAndNext(
652         long messageId, long threadId, int status,
653         com.liferay.portal.kernel.util.OrderByComparator obc)
654         throws com.liferay.portal.kernel.exception.SystemException,
655             com.liferay.portlet.messageboards.NoSuchMessageException {
656         return getPersistence()
657                    .findByT_S_PrevAndNext(messageId, threadId, status, obc);
658     }
659 
660     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByTR_S(
661         long threadId, int status)
662         throws com.liferay.portal.kernel.exception.SystemException {
663         return getPersistence().findByTR_S(threadId, status);
664     }
665 
666     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByTR_S(
667         long threadId, int status, int start, int end)
668         throws com.liferay.portal.kernel.exception.SystemException {
669         return getPersistence().findByTR_S(threadId, status, start, end);
670     }
671 
672     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByTR_S(
673         long threadId, int status, int start, int end,
674         com.liferay.portal.kernel.util.OrderByComparator obc)
675         throws com.liferay.portal.kernel.exception.SystemException {
676         return getPersistence().findByTR_S(threadId, status, start, end, obc);
677     }
678 
679     public static com.liferay.portlet.messageboards.model.MBMessage findByTR_S_First(
680         long threadId, int status,
681         com.liferay.portal.kernel.util.OrderByComparator obc)
682         throws com.liferay.portal.kernel.exception.SystemException,
683             com.liferay.portlet.messageboards.NoSuchMessageException {
684         return getPersistence().findByTR_S_First(threadId, status, obc);
685     }
686 
687     public static com.liferay.portlet.messageboards.model.MBMessage findByTR_S_Last(
688         long threadId, int status,
689         com.liferay.portal.kernel.util.OrderByComparator obc)
690         throws com.liferay.portal.kernel.exception.SystemException,
691             com.liferay.portlet.messageboards.NoSuchMessageException {
692         return getPersistence().findByTR_S_Last(threadId, status, obc);
693     }
694 
695     public static com.liferay.portlet.messageboards.model.MBMessage[] findByTR_S_PrevAndNext(
696         long messageId, long threadId, int status,
697         com.liferay.portal.kernel.util.OrderByComparator obc)
698         throws com.liferay.portal.kernel.exception.SystemException,
699             com.liferay.portlet.messageboards.NoSuchMessageException {
700         return getPersistence()
701                    .findByTR_S_PrevAndNext(messageId, threadId, status, obc);
702     }
703 
704     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U_S(
705         long groupId, long userId, int status)
706         throws com.liferay.portal.kernel.exception.SystemException {
707         return getPersistence().findByG_U_S(groupId, userId, status);
708     }
709 
710     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U_S(
711         long groupId, long userId, int status, int start, int end)
712         throws com.liferay.portal.kernel.exception.SystemException {
713         return getPersistence().findByG_U_S(groupId, userId, status, start, end);
714     }
715 
716     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U_S(
717         long groupId, long userId, int status, int start, int end,
718         com.liferay.portal.kernel.util.OrderByComparator obc)
719         throws com.liferay.portal.kernel.exception.SystemException {
720         return getPersistence()
721                    .findByG_U_S(groupId, userId, status, start, end, obc);
722     }
723 
724     public static com.liferay.portlet.messageboards.model.MBMessage findByG_U_S_First(
725         long groupId, long userId, int status,
726         com.liferay.portal.kernel.util.OrderByComparator obc)
727         throws com.liferay.portal.kernel.exception.SystemException,
728             com.liferay.portlet.messageboards.NoSuchMessageException {
729         return getPersistence().findByG_U_S_First(groupId, userId, status, obc);
730     }
731 
732     public static com.liferay.portlet.messageboards.model.MBMessage findByG_U_S_Last(
733         long groupId, long userId, int status,
734         com.liferay.portal.kernel.util.OrderByComparator obc)
735         throws com.liferay.portal.kernel.exception.SystemException,
736             com.liferay.portlet.messageboards.NoSuchMessageException {
737         return getPersistence().findByG_U_S_Last(groupId, userId, status, obc);
738     }
739 
740     public static com.liferay.portlet.messageboards.model.MBMessage[] findByG_U_S_PrevAndNext(
741         long messageId, long groupId, long userId, int status,
742         com.liferay.portal.kernel.util.OrderByComparator obc)
743         throws com.liferay.portal.kernel.exception.SystemException,
744             com.liferay.portlet.messageboards.NoSuchMessageException {
745         return getPersistence()
746                    .findByG_U_S_PrevAndNext(messageId, groupId, userId, status,
747             obc);
748     }
749 
750     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T(
751         long groupId, long categoryId, long threadId)
752         throws com.liferay.portal.kernel.exception.SystemException {
753         return getPersistence().findByG_C_T(groupId, categoryId, threadId);
754     }
755 
756     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T(
757         long groupId, long categoryId, long threadId, int start, int end)
758         throws com.liferay.portal.kernel.exception.SystemException {
759         return getPersistence()
760                    .findByG_C_T(groupId, categoryId, threadId, start, end);
761     }
762 
763     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T(
764         long groupId, long categoryId, long threadId, int start, int end,
765         com.liferay.portal.kernel.util.OrderByComparator obc)
766         throws com.liferay.portal.kernel.exception.SystemException {
767         return getPersistence()
768                    .findByG_C_T(groupId, categoryId, threadId, start, end, obc);
769     }
770 
771     public static com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_First(
772         long groupId, long categoryId, long threadId,
773         com.liferay.portal.kernel.util.OrderByComparator obc)
774         throws com.liferay.portal.kernel.exception.SystemException,
775             com.liferay.portlet.messageboards.NoSuchMessageException {
776         return getPersistence()
777                    .findByG_C_T_First(groupId, categoryId, threadId, obc);
778     }
779 
780     public static com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_Last(
781         long groupId, long categoryId, long threadId,
782         com.liferay.portal.kernel.util.OrderByComparator obc)
783         throws com.liferay.portal.kernel.exception.SystemException,
784             com.liferay.portlet.messageboards.NoSuchMessageException {
785         return getPersistence()
786                    .findByG_C_T_Last(groupId, categoryId, threadId, obc);
787     }
788 
789     public static com.liferay.portlet.messageboards.model.MBMessage[] findByG_C_T_PrevAndNext(
790         long messageId, long groupId, long categoryId, long threadId,
791         com.liferay.portal.kernel.util.OrderByComparator obc)
792         throws com.liferay.portal.kernel.exception.SystemException,
793             com.liferay.portlet.messageboards.NoSuchMessageException {
794         return getPersistence()
795                    .findByG_C_T_PrevAndNext(messageId, groupId, categoryId,
796             threadId, obc);
797     }
798 
799     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_S(
800         long groupId, long categoryId, int status)
801         throws com.liferay.portal.kernel.exception.SystemException {
802         return getPersistence().findByG_C_S(groupId, categoryId, status);
803     }
804 
805     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_S(
806         long groupId, long categoryId, int status, int start, int end)
807         throws com.liferay.portal.kernel.exception.SystemException {
808         return getPersistence()
809                    .findByG_C_S(groupId, categoryId, status, start, end);
810     }
811 
812     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_S(
813         long groupId, long categoryId, int status, int start, int end,
814         com.liferay.portal.kernel.util.OrderByComparator obc)
815         throws com.liferay.portal.kernel.exception.SystemException {
816         return getPersistence()
817                    .findByG_C_S(groupId, categoryId, status, start, end, obc);
818     }
819 
820     public static com.liferay.portlet.messageboards.model.MBMessage findByG_C_S_First(
821         long groupId, long categoryId, int status,
822         com.liferay.portal.kernel.util.OrderByComparator obc)
823         throws com.liferay.portal.kernel.exception.SystemException,
824             com.liferay.portlet.messageboards.NoSuchMessageException {
825         return getPersistence()
826                    .findByG_C_S_First(groupId, categoryId, status, obc);
827     }
828 
829     public static com.liferay.portlet.messageboards.model.MBMessage findByG_C_S_Last(
830         long groupId, long categoryId, int status,
831         com.liferay.portal.kernel.util.OrderByComparator obc)
832         throws com.liferay.portal.kernel.exception.SystemException,
833             com.liferay.portlet.messageboards.NoSuchMessageException {
834         return getPersistence()
835                    .findByG_C_S_Last(groupId, categoryId, status, obc);
836     }
837 
838     public static com.liferay.portlet.messageboards.model.MBMessage[] findByG_C_S_PrevAndNext(
839         long messageId, long groupId, long categoryId, int status,
840         com.liferay.portal.kernel.util.OrderByComparator obc)
841         throws com.liferay.portal.kernel.exception.SystemException,
842             com.liferay.portlet.messageboards.NoSuchMessageException {
843         return getPersistence()
844                    .findByG_C_S_PrevAndNext(messageId, groupId, categoryId,
845             status, obc);
846     }
847 
848     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C_S(
849         long classNameId, long classPK, int status)
850         throws com.liferay.portal.kernel.exception.SystemException {
851         return getPersistence().findByC_C_S(classNameId, classPK, status);
852     }
853 
854     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C_S(
855         long classNameId, long classPK, int status, int start, int end)
856         throws com.liferay.portal.kernel.exception.SystemException {
857         return getPersistence()
858                    .findByC_C_S(classNameId, classPK, status, start, end);
859     }
860 
861     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C_S(
862         long classNameId, long classPK, int status, int start, int end,
863         com.liferay.portal.kernel.util.OrderByComparator obc)
864         throws com.liferay.portal.kernel.exception.SystemException {
865         return getPersistence()
866                    .findByC_C_S(classNameId, classPK, status, start, end, obc);
867     }
868 
869     public static com.liferay.portlet.messageboards.model.MBMessage findByC_C_S_First(
870         long classNameId, long classPK, int status,
871         com.liferay.portal.kernel.util.OrderByComparator obc)
872         throws com.liferay.portal.kernel.exception.SystemException,
873             com.liferay.portlet.messageboards.NoSuchMessageException {
874         return getPersistence()
875                    .findByC_C_S_First(classNameId, classPK, status, obc);
876     }
877 
878     public static com.liferay.portlet.messageboards.model.MBMessage findByC_C_S_Last(
879         long classNameId, long classPK, int status,
880         com.liferay.portal.kernel.util.OrderByComparator obc)
881         throws com.liferay.portal.kernel.exception.SystemException,
882             com.liferay.portlet.messageboards.NoSuchMessageException {
883         return getPersistence()
884                    .findByC_C_S_Last(classNameId, classPK, status, obc);
885     }
886 
887     public static com.liferay.portlet.messageboards.model.MBMessage[] findByC_C_S_PrevAndNext(
888         long messageId, long classNameId, long classPK, int status,
889         com.liferay.portal.kernel.util.OrderByComparator obc)
890         throws com.liferay.portal.kernel.exception.SystemException,
891             com.liferay.portlet.messageboards.NoSuchMessageException {
892         return getPersistence()
893                    .findByC_C_S_PrevAndNext(messageId, classNameId, classPK,
894             status, obc);
895     }
896 
897     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T_S(
898         long groupId, long categoryId, long threadId, int status)
899         throws com.liferay.portal.kernel.exception.SystemException {
900         return getPersistence()
901                    .findByG_C_T_S(groupId, categoryId, threadId, status);
902     }
903 
904     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T_S(
905         long groupId, long categoryId, long threadId, int status, int start,
906         int end) throws com.liferay.portal.kernel.exception.SystemException {
907         return getPersistence()
908                    .findByG_C_T_S(groupId, categoryId, threadId, status, start,
909             end);
910     }
911 
912     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T_S(
913         long groupId, long categoryId, long threadId, int status, int start,
914         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
915         throws com.liferay.portal.kernel.exception.SystemException {
916         return getPersistence()
917                    .findByG_C_T_S(groupId, categoryId, threadId, status, start,
918             end, obc);
919     }
920 
921     public static com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_S_First(
922         long groupId, long categoryId, long threadId, int status,
923         com.liferay.portal.kernel.util.OrderByComparator obc)
924         throws com.liferay.portal.kernel.exception.SystemException,
925             com.liferay.portlet.messageboards.NoSuchMessageException {
926         return getPersistence()
927                    .findByG_C_T_S_First(groupId, categoryId, threadId, status,
928             obc);
929     }
930 
931     public static com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_S_Last(
932         long groupId, long categoryId, long threadId, int status,
933         com.liferay.portal.kernel.util.OrderByComparator obc)
934         throws com.liferay.portal.kernel.exception.SystemException,
935             com.liferay.portlet.messageboards.NoSuchMessageException {
936         return getPersistence()
937                    .findByG_C_T_S_Last(groupId, categoryId, threadId, status,
938             obc);
939     }
940 
941     public static com.liferay.portlet.messageboards.model.MBMessage[] findByG_C_T_S_PrevAndNext(
942         long messageId, long groupId, long categoryId, long threadId,
943         int status, com.liferay.portal.kernel.util.OrderByComparator obc)
944         throws com.liferay.portal.kernel.exception.SystemException,
945             com.liferay.portlet.messageboards.NoSuchMessageException {
946         return getPersistence()
947                    .findByG_C_T_S_PrevAndNext(messageId, groupId, categoryId,
948             threadId, status, obc);
949     }
950 
951     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll()
952         throws com.liferay.portal.kernel.exception.SystemException {
953         return getPersistence().findAll();
954     }
955 
956     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
957         int start, int end)
958         throws com.liferay.portal.kernel.exception.SystemException {
959         return getPersistence().findAll(start, end);
960     }
961 
962     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
963         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
964         throws com.liferay.portal.kernel.exception.SystemException {
965         return getPersistence().findAll(start, end, obc);
966     }
967 
968     public static void removeByUuid(java.lang.String uuid)
969         throws com.liferay.portal.kernel.exception.SystemException {
970         getPersistence().removeByUuid(uuid);
971     }
972 
973     public static void removeByUUID_G(java.lang.String uuid, long groupId)
974         throws com.liferay.portal.kernel.exception.SystemException,
975             com.liferay.portlet.messageboards.NoSuchMessageException {
976         getPersistence().removeByUUID_G(uuid, groupId);
977     }
978 
979     public static void removeByGroupId(long groupId)
980         throws com.liferay.portal.kernel.exception.SystemException {
981         getPersistence().removeByGroupId(groupId);
982     }
983 
984     public static void removeByCompanyId(long companyId)
985         throws com.liferay.portal.kernel.exception.SystemException {
986         getPersistence().removeByCompanyId(companyId);
987     }
988 
989     public static void removeByThreadId(long threadId)
990         throws com.liferay.portal.kernel.exception.SystemException {
991         getPersistence().removeByThreadId(threadId);
992     }
993 
994     public static void removeByThreadReplies(long threadId)
995         throws com.liferay.portal.kernel.exception.SystemException {
996         getPersistence().removeByThreadReplies(threadId);
997     }
998 
999     public static void removeByG_U(long groupId, long userId)
1000        throws com.liferay.portal.kernel.exception.SystemException {
1001        getPersistence().removeByG_U(groupId, userId);
1002    }
1003
1004    public static void removeByG_C(long groupId, long categoryId)
1005        throws com.liferay.portal.kernel.exception.SystemException {
1006        getPersistence().removeByG_C(groupId, categoryId);
1007    }
1008
1009    public static void removeByG_S(long groupId, int status)
1010        throws com.liferay.portal.kernel.exception.SystemException {
1011        getPersistence().removeByG_S(groupId, status);
1012    }
1013
1014    public static void removeByC_S(long companyId, int status)
1015        throws com.liferay.portal.kernel.exception.SystemException {
1016        getPersistence().removeByC_S(companyId, status);
1017    }
1018
1019    public static void removeByC_C(long classNameId, long classPK)
1020        throws com.liferay.portal.kernel.exception.SystemException {
1021        getPersistence().removeByC_C(classNameId, classPK);
1022    }
1023
1024    public static void removeByT_P(long threadId, long parentMessageId)
1025        throws com.liferay.portal.kernel.exception.SystemException {
1026        getPersistence().removeByT_P(threadId, parentMessageId);
1027    }
1028
1029    public static void removeByT_S(long threadId, int status)
1030        throws com.liferay.portal.kernel.exception.SystemException {
1031        getPersistence().removeByT_S(threadId, status);
1032    }
1033
1034    public static void removeByTR_S(long threadId, int status)
1035        throws com.liferay.portal.kernel.exception.SystemException {
1036        getPersistence().removeByTR_S(threadId, status);
1037    }
1038
1039    public static void removeByG_U_S(long groupId, long userId, int status)
1040        throws com.liferay.portal.kernel.exception.SystemException {
1041        getPersistence().removeByG_U_S(groupId, userId, status);
1042    }
1043
1044    public static void removeByG_C_T(long groupId, long categoryId,
1045        long threadId)
1046        throws com.liferay.portal.kernel.exception.SystemException {
1047        getPersistence().removeByG_C_T(groupId, categoryId, threadId);
1048    }
1049
1050    public static void removeByG_C_S(long groupId, long categoryId, int status)
1051        throws com.liferay.portal.kernel.exception.SystemException {
1052        getPersistence().removeByG_C_S(groupId, categoryId, status);
1053    }
1054
1055    public static void removeByC_C_S(long classNameId, long classPK, int status)
1056        throws com.liferay.portal.kernel.exception.SystemException {
1057        getPersistence().removeByC_C_S(classNameId, classPK, status);
1058    }
1059
1060    public static void removeByG_C_T_S(long groupId, long categoryId,
1061        long threadId, int status)
1062        throws com.liferay.portal.kernel.exception.SystemException {
1063        getPersistence().removeByG_C_T_S(groupId, categoryId, threadId, status);
1064    }
1065
1066    public static void removeAll()
1067        throws com.liferay.portal.kernel.exception.SystemException {
1068        getPersistence().removeAll();
1069    }
1070
1071    public static int countByUuid(java.lang.String uuid)
1072        throws com.liferay.portal.kernel.exception.SystemException {
1073        return getPersistence().countByUuid(uuid);
1074    }
1075
1076    public static int countByUUID_G(java.lang.String uuid, long groupId)
1077        throws com.liferay.portal.kernel.exception.SystemException {
1078        return getPersistence().countByUUID_G(uuid, groupId);
1079    }
1080
1081    public static int countByGroupId(long groupId)
1082        throws com.liferay.portal.kernel.exception.SystemException {
1083        return getPersistence().countByGroupId(groupId);
1084    }
1085
1086    public static int countByCompanyId(long companyId)
1087        throws com.liferay.portal.kernel.exception.SystemException {
1088        return getPersistence().countByCompanyId(companyId);
1089    }
1090
1091    public static int countByThreadId(long threadId)
1092        throws com.liferay.portal.kernel.exception.SystemException {
1093        return getPersistence().countByThreadId(threadId);
1094    }
1095
1096    public static int countByThreadReplies(long threadId)
1097        throws com.liferay.portal.kernel.exception.SystemException {
1098        return getPersistence().countByThreadReplies(threadId);
1099    }
1100
1101    public static int countByG_U(long groupId, long userId)
1102        throws com.liferay.portal.kernel.exception.SystemException {
1103        return getPersistence().countByG_U(groupId, userId);
1104    }
1105
1106    public static int countByG_C(long groupId, long categoryId)
1107        throws com.liferay.portal.kernel.exception.SystemException {
1108        return getPersistence().countByG_C(groupId, categoryId);
1109    }
1110
1111    public static int countByG_S(long groupId, int status)
1112        throws com.liferay.portal.kernel.exception.SystemException {
1113        return getPersistence().countByG_S(groupId, status);
1114    }
1115
1116    public static int countByC_S(long companyId, int status)
1117        throws com.liferay.portal.kernel.exception.SystemException {
1118        return getPersistence().countByC_S(companyId, status);
1119    }
1120
1121    public static int countByC_C(long classNameId, long classPK)
1122        throws com.liferay.portal.kernel.exception.SystemException {
1123        return getPersistence().countByC_C(classNameId, classPK);
1124    }
1125
1126    public static int countByT_P(long threadId, long parentMessageId)
1127        throws com.liferay.portal.kernel.exception.SystemException {
1128        return getPersistence().countByT_P(threadId, parentMessageId);
1129    }
1130
1131    public static int countByT_S(long threadId, int status)
1132        throws com.liferay.portal.kernel.exception.SystemException {
1133        return getPersistence().countByT_S(threadId, status);
1134    }
1135
1136    public static int countByTR_S(long threadId, int status)
1137        throws com.liferay.portal.kernel.exception.SystemException {
1138        return getPersistence().countByTR_S(threadId, status);
1139    }
1140
1141    public static int countByG_U_S(long groupId, long userId, int status)
1142        throws com.liferay.portal.kernel.exception.SystemException {
1143        return getPersistence().countByG_U_S(groupId, userId, status);
1144    }
1145
1146    public static int countByG_C_T(long groupId, long categoryId, long threadId)
1147        throws com.liferay.portal.kernel.exception.SystemException {
1148        return getPersistence().countByG_C_T(groupId, categoryId, threadId);
1149    }
1150
1151    public static int countByG_C_S(long groupId, long categoryId, int status)
1152        throws com.liferay.portal.kernel.exception.SystemException {
1153        return getPersistence().countByG_C_S(groupId, categoryId, status);
1154    }
1155
1156    public static int countByC_C_S(long classNameId, long classPK, int status)
1157        throws com.liferay.portal.kernel.exception.SystemException {
1158        return getPersistence().countByC_C_S(classNameId, classPK, status);
1159    }
1160
1161    public static int countByG_C_T_S(long groupId, long categoryId,
1162        long threadId, int status)
1163        throws com.liferay.portal.kernel.exception.SystemException {
1164        return getPersistence()
1165                   .countByG_C_T_S(groupId, categoryId, threadId, status);
1166    }
1167
1168    public static int countAll()
1169        throws com.liferay.portal.kernel.exception.SystemException {
1170        return getPersistence().countAll();
1171    }
1172
1173    public static MBMessagePersistence getPersistence() {
1174        if (_persistence == null) {
1175            _persistence = (MBMessagePersistence)PortalBeanLocatorUtil.locate(MBMessagePersistence.class.getName());
1176        }
1177
1178        return _persistence;
1179    }
1180
1181    public void setPersistence(MBMessagePersistence persistence) {
1182        _persistence = persistence;
1183    }
1184
1185    private static MBMessagePersistence _persistence;
1186}