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