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