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.MBMessageFlag;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="MBMessageFlagUtil.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       MBMessageFlagPersistence
35   * @see       MBMessageFlagPersistenceImpl
36   * @generated
37   */
38  public class MBMessageFlagUtil {
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 MBMessageFlag remove(MBMessageFlag mbMessageFlag)
66          throws SystemException {
67          return getPersistence().remove(mbMessageFlag);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static MBMessageFlag update(MBMessageFlag mbMessageFlag,
74          boolean merge) throws SystemException {
75          return getPersistence().update(mbMessageFlag, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag) {
80          getPersistence().cacheResult(mbMessageFlag);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> mbMessageFlags) {
85          getPersistence().cacheResult(mbMessageFlags);
86      }
87  
88      public static com.liferay.portlet.messageboards.model.MBMessageFlag create(
89          long messageFlagId) {
90          return getPersistence().create(messageFlagId);
91      }
92  
93      public static com.liferay.portlet.messageboards.model.MBMessageFlag remove(
94          long messageFlagId)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.messageboards.NoSuchMessageFlagException {
97          return getPersistence().remove(messageFlagId);
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.MBMessageFlag update(
104         com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
105         throws com.liferay.portal.SystemException {
106         return getPersistence().update(mbMessageFlag);
107     }
108 
109     public static com.liferay.portlet.messageboards.model.MBMessageFlag updateImpl(
110         com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
111         boolean merge) throws com.liferay.portal.SystemException {
112         return getPersistence().updateImpl(mbMessageFlag, merge);
113     }
114 
115     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByPrimaryKey(
116         long messageFlagId)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
119         return getPersistence().findByPrimaryKey(messageFlagId);
120     }
121 
122     public static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByPrimaryKey(
123         long messageFlagId) throws com.liferay.portal.SystemException {
124         return getPersistence().fetchByPrimaryKey(messageFlagId);
125     }
126 
127     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
128         long userId) throws com.liferay.portal.SystemException {
129         return getPersistence().findByUserId(userId);
130     }
131 
132     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
133         long userId, int start, int end)
134         throws com.liferay.portal.SystemException {
135         return getPersistence().findByUserId(userId, start, end);
136     }
137 
138     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
139         long userId, int start, int end,
140         com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findByUserId(userId, start, end, obc);
143     }
144 
145     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_First(
146         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
149         return getPersistence().findByUserId_First(userId, obc);
150     }
151 
152     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_Last(
153         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
156         return getPersistence().findByUserId_Last(userId, obc);
157     }
158 
159     public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByUserId_PrevAndNext(
160         long messageFlagId, long userId,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
164         return getPersistence()
165                    .findByUserId_PrevAndNext(messageFlagId, userId, obc);
166     }
167 
168     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
169         long threadId) throws com.liferay.portal.SystemException {
170         return getPersistence().findByThreadId(threadId);
171     }
172 
173     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
174         long threadId, int start, int end)
175         throws com.liferay.portal.SystemException {
176         return getPersistence().findByThreadId(threadId, start, end);
177     }
178 
179     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
180         long threadId, int start, int end,
181         com.liferay.portal.kernel.util.OrderByComparator obc)
182         throws com.liferay.portal.SystemException {
183         return getPersistence().findByThreadId(threadId, start, end, obc);
184     }
185 
186     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_First(
187         long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
188         throws com.liferay.portal.SystemException,
189             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
190         return getPersistence().findByThreadId_First(threadId, obc);
191     }
192 
193     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_Last(
194         long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.SystemException,
196             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
197         return getPersistence().findByThreadId_Last(threadId, obc);
198     }
199 
200     public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByThreadId_PrevAndNext(
201         long messageFlagId, long threadId,
202         com.liferay.portal.kernel.util.OrderByComparator obc)
203         throws com.liferay.portal.SystemException,
204             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
205         return getPersistence()
206                    .findByThreadId_PrevAndNext(messageFlagId, threadId, obc);
207     }
208 
209     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
210         long messageId) throws com.liferay.portal.SystemException {
211         return getPersistence().findByMessageId(messageId);
212     }
213 
214     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
215         long messageId, int start, int end)
216         throws com.liferay.portal.SystemException {
217         return getPersistence().findByMessageId(messageId, start, end);
218     }
219 
220     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
221         long messageId, int start, int end,
222         com.liferay.portal.kernel.util.OrderByComparator obc)
223         throws com.liferay.portal.SystemException {
224         return getPersistence().findByMessageId(messageId, start, end, obc);
225     }
226 
227     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_First(
228         long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
229         throws com.liferay.portal.SystemException,
230             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
231         return getPersistence().findByMessageId_First(messageId, obc);
232     }
233 
234     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_Last(
235         long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
236         throws com.liferay.portal.SystemException,
237             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
238         return getPersistence().findByMessageId_Last(messageId, obc);
239     }
240 
241     public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByMessageId_PrevAndNext(
242         long messageFlagId, long messageId,
243         com.liferay.portal.kernel.util.OrderByComparator obc)
244         throws com.liferay.portal.SystemException,
245             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
246         return getPersistence()
247                    .findByMessageId_PrevAndNext(messageFlagId, messageId, obc);
248     }
249 
250     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
251         long threadId, int flag) throws com.liferay.portal.SystemException {
252         return getPersistence().findByT_F(threadId, flag);
253     }
254 
255     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
256         long threadId, int flag, int start, int end)
257         throws com.liferay.portal.SystemException {
258         return getPersistence().findByT_F(threadId, flag, start, end);
259     }
260 
261     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
262         long threadId, int flag, int start, int end,
263         com.liferay.portal.kernel.util.OrderByComparator obc)
264         throws com.liferay.portal.SystemException {
265         return getPersistence().findByT_F(threadId, flag, start, end, obc);
266     }
267 
268     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_First(
269         long threadId, int flag,
270         com.liferay.portal.kernel.util.OrderByComparator obc)
271         throws com.liferay.portal.SystemException,
272             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
273         return getPersistence().findByT_F_First(threadId, flag, obc);
274     }
275 
276     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_Last(
277         long threadId, int flag,
278         com.liferay.portal.kernel.util.OrderByComparator obc)
279         throws com.liferay.portal.SystemException,
280             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
281         return getPersistence().findByT_F_Last(threadId, flag, obc);
282     }
283 
284     public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByT_F_PrevAndNext(
285         long messageFlagId, long threadId, int flag,
286         com.liferay.portal.kernel.util.OrderByComparator obc)
287         throws com.liferay.portal.SystemException,
288             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
289         return getPersistence()
290                    .findByT_F_PrevAndNext(messageFlagId, threadId, flag, obc);
291     }
292 
293     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
294         long messageId, int flag) throws com.liferay.portal.SystemException {
295         return getPersistence().findByM_F(messageId, flag);
296     }
297 
298     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
299         long messageId, int flag, int start, int end)
300         throws com.liferay.portal.SystemException {
301         return getPersistence().findByM_F(messageId, flag, start, end);
302     }
303 
304     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
305         long messageId, int flag, int start, int end,
306         com.liferay.portal.kernel.util.OrderByComparator obc)
307         throws com.liferay.portal.SystemException {
308         return getPersistence().findByM_F(messageId, flag, start, end, obc);
309     }
310 
311     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_First(
312         long messageId, int flag,
313         com.liferay.portal.kernel.util.OrderByComparator obc)
314         throws com.liferay.portal.SystemException,
315             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
316         return getPersistence().findByM_F_First(messageId, flag, obc);
317     }
318 
319     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_Last(
320         long messageId, int flag,
321         com.liferay.portal.kernel.util.OrderByComparator obc)
322         throws com.liferay.portal.SystemException,
323             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
324         return getPersistence().findByM_F_Last(messageId, flag, obc);
325     }
326 
327     public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByM_F_PrevAndNext(
328         long messageFlagId, long messageId, int flag,
329         com.liferay.portal.kernel.util.OrderByComparator obc)
330         throws com.liferay.portal.SystemException,
331             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
332         return getPersistence()
333                    .findByM_F_PrevAndNext(messageFlagId, messageId, flag, obc);
334     }
335 
336     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
337         long userId, long threadId, int flag)
338         throws com.liferay.portal.SystemException {
339         return getPersistence().findByU_T_F(userId, threadId, flag);
340     }
341 
342     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
343         long userId, long threadId, int flag, int start, int end)
344         throws com.liferay.portal.SystemException {
345         return getPersistence().findByU_T_F(userId, threadId, flag, start, end);
346     }
347 
348     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
349         long userId, long threadId, int flag, int start, int end,
350         com.liferay.portal.kernel.util.OrderByComparator obc)
351         throws com.liferay.portal.SystemException {
352         return getPersistence()
353                    .findByU_T_F(userId, threadId, flag, start, end, obc);
354     }
355 
356     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_First(
357         long userId, long threadId, int flag,
358         com.liferay.portal.kernel.util.OrderByComparator obc)
359         throws com.liferay.portal.SystemException,
360             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
361         return getPersistence().findByU_T_F_First(userId, threadId, flag, obc);
362     }
363 
364     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_Last(
365         long userId, long threadId, int flag,
366         com.liferay.portal.kernel.util.OrderByComparator obc)
367         throws com.liferay.portal.SystemException,
368             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
369         return getPersistence().findByU_T_F_Last(userId, threadId, flag, obc);
370     }
371 
372     public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByU_T_F_PrevAndNext(
373         long messageFlagId, long userId, long threadId, int flag,
374         com.liferay.portal.kernel.util.OrderByComparator obc)
375         throws com.liferay.portal.SystemException,
376             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
377         return getPersistence()
378                    .findByU_T_F_PrevAndNext(messageFlagId, userId, threadId,
379             flag, obc);
380     }
381 
382     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByU_M_F(
383         long userId, long messageId, int flag)
384         throws com.liferay.portal.SystemException,
385             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
386         return getPersistence().findByU_M_F(userId, messageId, flag);
387     }
388 
389     public static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F(
390         long userId, long messageId, int flag)
391         throws com.liferay.portal.SystemException {
392         return getPersistence().fetchByU_M_F(userId, messageId, flag);
393     }
394 
395     public static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F(
396         long userId, long messageId, int flag, boolean retrieveFromCache)
397         throws com.liferay.portal.SystemException {
398         return getPersistence()
399                    .fetchByU_M_F(userId, messageId, flag, retrieveFromCache);
400     }
401 
402     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll()
403         throws com.liferay.portal.SystemException {
404         return getPersistence().findAll();
405     }
406 
407     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
408         int start, int end) throws com.liferay.portal.SystemException {
409         return getPersistence().findAll(start, end);
410     }
411 
412     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
413         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
414         throws com.liferay.portal.SystemException {
415         return getPersistence().findAll(start, end, obc);
416     }
417 
418     public static void removeByUserId(long userId)
419         throws com.liferay.portal.SystemException {
420         getPersistence().removeByUserId(userId);
421     }
422 
423     public static void removeByThreadId(long threadId)
424         throws com.liferay.portal.SystemException {
425         getPersistence().removeByThreadId(threadId);
426     }
427 
428     public static void removeByMessageId(long messageId)
429         throws com.liferay.portal.SystemException {
430         getPersistence().removeByMessageId(messageId);
431     }
432 
433     public static void removeByT_F(long threadId, int flag)
434         throws com.liferay.portal.SystemException {
435         getPersistence().removeByT_F(threadId, flag);
436     }
437 
438     public static void removeByM_F(long messageId, int flag)
439         throws com.liferay.portal.SystemException {
440         getPersistence().removeByM_F(messageId, flag);
441     }
442 
443     public static void removeByU_T_F(long userId, long threadId, int flag)
444         throws com.liferay.portal.SystemException {
445         getPersistence().removeByU_T_F(userId, threadId, flag);
446     }
447 
448     public static void removeByU_M_F(long userId, long messageId, int flag)
449         throws com.liferay.portal.SystemException,
450             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
451         getPersistence().removeByU_M_F(userId, messageId, flag);
452     }
453 
454     public static void removeAll() throws com.liferay.portal.SystemException {
455         getPersistence().removeAll();
456     }
457 
458     public static int countByUserId(long userId)
459         throws com.liferay.portal.SystemException {
460         return getPersistence().countByUserId(userId);
461     }
462 
463     public static int countByThreadId(long threadId)
464         throws com.liferay.portal.SystemException {
465         return getPersistence().countByThreadId(threadId);
466     }
467 
468     public static int countByMessageId(long messageId)
469         throws com.liferay.portal.SystemException {
470         return getPersistence().countByMessageId(messageId);
471     }
472 
473     public static int countByT_F(long threadId, int flag)
474         throws com.liferay.portal.SystemException {
475         return getPersistence().countByT_F(threadId, flag);
476     }
477 
478     public static int countByM_F(long messageId, int flag)
479         throws com.liferay.portal.SystemException {
480         return getPersistence().countByM_F(messageId, flag);
481     }
482 
483     public static int countByU_T_F(long userId, long threadId, int flag)
484         throws com.liferay.portal.SystemException {
485         return getPersistence().countByU_T_F(userId, threadId, flag);
486     }
487 
488     public static int countByU_M_F(long userId, long messageId, int flag)
489         throws com.liferay.portal.SystemException {
490         return getPersistence().countByU_M_F(userId, messageId, flag);
491     }
492 
493     public static int countAll() throws com.liferay.portal.SystemException {
494         return getPersistence().countAll();
495     }
496 
497     public static MBMessageFlagPersistence getPersistence() {
498         if (_persistence == null) {
499             _persistence = (MBMessageFlagPersistence)PortalBeanLocatorUtil.locate(MBMessageFlagPersistence.class.getName());
500         }
501 
502         return _persistence;
503     }
504 
505     public void setPersistence(MBMessageFlagPersistence persistence) {
506         _persistence = persistence;
507     }
508 
509     private static MBMessageFlagPersistence _persistence;
510 }