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 orderByComparator)
141         throws com.liferay.portal.SystemException {
142         return getPersistence()
143                    .findByUserId(userId, start, end, orderByComparator);
144     }
145 
146     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_First(
147         long userId,
148         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
151         return getPersistence().findByUserId_First(userId, orderByComparator);
152     }
153 
154     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_Last(
155         long userId,
156         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
159         return getPersistence().findByUserId_Last(userId, orderByComparator);
160     }
161 
162     public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByUserId_PrevAndNext(
163         long messageFlagId, long userId,
164         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165         throws com.liferay.portal.SystemException,
166             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
167         return getPersistence()
168                    .findByUserId_PrevAndNext(messageFlagId, userId,
169             orderByComparator);
170     }
171 
172     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
173         long threadId) throws com.liferay.portal.SystemException {
174         return getPersistence().findByThreadId(threadId);
175     }
176 
177     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
178         long threadId, int start, int end)
179         throws com.liferay.portal.SystemException {
180         return getPersistence().findByThreadId(threadId, start, end);
181     }
182 
183     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
184         long threadId, int start, int end,
185         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186         throws com.liferay.portal.SystemException {
187         return getPersistence()
188                    .findByThreadId(threadId, start, end, orderByComparator);
189     }
190 
191     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_First(
192         long threadId,
193         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194         throws com.liferay.portal.SystemException,
195             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
196         return getPersistence().findByThreadId_First(threadId, orderByComparator);
197     }
198 
199     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_Last(
200         long threadId,
201         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202         throws com.liferay.portal.SystemException,
203             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
204         return getPersistence().findByThreadId_Last(threadId, orderByComparator);
205     }
206 
207     public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByThreadId_PrevAndNext(
208         long messageFlagId, long threadId,
209         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210         throws com.liferay.portal.SystemException,
211             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
212         return getPersistence()
213                    .findByThreadId_PrevAndNext(messageFlagId, threadId,
214             orderByComparator);
215     }
216 
217     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
218         long messageId) throws com.liferay.portal.SystemException {
219         return getPersistence().findByMessageId(messageId);
220     }
221 
222     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
223         long messageId, int start, int end)
224         throws com.liferay.portal.SystemException {
225         return getPersistence().findByMessageId(messageId, start, end);
226     }
227 
228     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
229         long messageId, int start, int end,
230         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
231         throws com.liferay.portal.SystemException {
232         return getPersistence()
233                    .findByMessageId(messageId, start, end, orderByComparator);
234     }
235 
236     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_First(
237         long messageId,
238         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239         throws com.liferay.portal.SystemException,
240             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
241         return getPersistence()
242                    .findByMessageId_First(messageId, orderByComparator);
243     }
244 
245     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_Last(
246         long messageId,
247         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
248         throws com.liferay.portal.SystemException,
249             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
250         return getPersistence()
251                    .findByMessageId_Last(messageId, orderByComparator);
252     }
253 
254     public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByMessageId_PrevAndNext(
255         long messageFlagId, long messageId,
256         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257         throws com.liferay.portal.SystemException,
258             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
259         return getPersistence()
260                    .findByMessageId_PrevAndNext(messageFlagId, messageId,
261             orderByComparator);
262     }
263 
264     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
265         long threadId, int flag) throws com.liferay.portal.SystemException {
266         return getPersistence().findByT_F(threadId, flag);
267     }
268 
269     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
270         long threadId, int flag, int start, int end)
271         throws com.liferay.portal.SystemException {
272         return getPersistence().findByT_F(threadId, flag, start, end);
273     }
274 
275     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
276         long threadId, int flag, int start, int end,
277         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
278         throws com.liferay.portal.SystemException {
279         return getPersistence()
280                    .findByT_F(threadId, flag, start, end, orderByComparator);
281     }
282 
283     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_First(
284         long threadId, int flag,
285         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
286         throws com.liferay.portal.SystemException,
287             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
288         return getPersistence()
289                    .findByT_F_First(threadId, flag, orderByComparator);
290     }
291 
292     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_Last(
293         long threadId, int flag,
294         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
295         throws com.liferay.portal.SystemException,
296             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
297         return getPersistence().findByT_F_Last(threadId, flag, orderByComparator);
298     }
299 
300     public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByT_F_PrevAndNext(
301         long messageFlagId, long threadId, int flag,
302         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
303         throws com.liferay.portal.SystemException,
304             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
305         return getPersistence()
306                    .findByT_F_PrevAndNext(messageFlagId, threadId, flag,
307             orderByComparator);
308     }
309 
310     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
311         long messageId, int flag) throws com.liferay.portal.SystemException {
312         return getPersistence().findByM_F(messageId, flag);
313     }
314 
315     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
316         long messageId, int flag, int start, int end)
317         throws com.liferay.portal.SystemException {
318         return getPersistence().findByM_F(messageId, flag, start, end);
319     }
320 
321     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
322         long messageId, int flag, int start, int end,
323         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324         throws com.liferay.portal.SystemException {
325         return getPersistence()
326                    .findByM_F(messageId, flag, start, end, orderByComparator);
327     }
328 
329     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_First(
330         long messageId, int flag,
331         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
332         throws com.liferay.portal.SystemException,
333             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
334         return getPersistence()
335                    .findByM_F_First(messageId, flag, orderByComparator);
336     }
337 
338     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_Last(
339         long messageId, int flag,
340         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
341         throws com.liferay.portal.SystemException,
342             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
343         return getPersistence()
344                    .findByM_F_Last(messageId, flag, orderByComparator);
345     }
346 
347     public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByM_F_PrevAndNext(
348         long messageFlagId, long messageId, int flag,
349         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
350         throws com.liferay.portal.SystemException,
351             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
352         return getPersistence()
353                    .findByM_F_PrevAndNext(messageFlagId, messageId, flag,
354             orderByComparator);
355     }
356 
357     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
358         long userId, long threadId, int flag)
359         throws com.liferay.portal.SystemException {
360         return getPersistence().findByU_T_F(userId, threadId, flag);
361     }
362 
363     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
364         long userId, long threadId, int flag, int start, int end)
365         throws com.liferay.portal.SystemException {
366         return getPersistence().findByU_T_F(userId, threadId, flag, start, end);
367     }
368 
369     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
370         long userId, long threadId, int flag, int start, int end,
371         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
372         throws com.liferay.portal.SystemException {
373         return getPersistence()
374                    .findByU_T_F(userId, threadId, flag, start, end,
375             orderByComparator);
376     }
377 
378     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_First(
379         long userId, long threadId, int flag,
380         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381         throws com.liferay.portal.SystemException,
382             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
383         return getPersistence()
384                    .findByU_T_F_First(userId, threadId, flag, orderByComparator);
385     }
386 
387     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_Last(
388         long userId, long threadId, int flag,
389         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
390         throws com.liferay.portal.SystemException,
391             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
392         return getPersistence()
393                    .findByU_T_F_Last(userId, threadId, flag, orderByComparator);
394     }
395 
396     public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByU_T_F_PrevAndNext(
397         long messageFlagId, long userId, long threadId, int flag,
398         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
399         throws com.liferay.portal.SystemException,
400             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
401         return getPersistence()
402                    .findByU_T_F_PrevAndNext(messageFlagId, userId, threadId,
403             flag, orderByComparator);
404     }
405 
406     public static com.liferay.portlet.messageboards.model.MBMessageFlag findByU_M_F(
407         long userId, long messageId, int flag)
408         throws com.liferay.portal.SystemException,
409             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
410         return getPersistence().findByU_M_F(userId, messageId, flag);
411     }
412 
413     public static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F(
414         long userId, long messageId, int flag)
415         throws com.liferay.portal.SystemException {
416         return getPersistence().fetchByU_M_F(userId, messageId, flag);
417     }
418 
419     public static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F(
420         long userId, long messageId, int flag, boolean retrieveFromCache)
421         throws com.liferay.portal.SystemException {
422         return getPersistence()
423                    .fetchByU_M_F(userId, messageId, flag, retrieveFromCache);
424     }
425 
426     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll()
427         throws com.liferay.portal.SystemException {
428         return getPersistence().findAll();
429     }
430 
431     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
432         int start, int end) throws com.liferay.portal.SystemException {
433         return getPersistence().findAll(start, end);
434     }
435 
436     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
437         int start, int end,
438         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
439         throws com.liferay.portal.SystemException {
440         return getPersistence().findAll(start, end, orderByComparator);
441     }
442 
443     public static void removeByUserId(long userId)
444         throws com.liferay.portal.SystemException {
445         getPersistence().removeByUserId(userId);
446     }
447 
448     public static void removeByThreadId(long threadId)
449         throws com.liferay.portal.SystemException {
450         getPersistence().removeByThreadId(threadId);
451     }
452 
453     public static void removeByMessageId(long messageId)
454         throws com.liferay.portal.SystemException {
455         getPersistence().removeByMessageId(messageId);
456     }
457 
458     public static void removeByT_F(long threadId, int flag)
459         throws com.liferay.portal.SystemException {
460         getPersistence().removeByT_F(threadId, flag);
461     }
462 
463     public static void removeByM_F(long messageId, int flag)
464         throws com.liferay.portal.SystemException {
465         getPersistence().removeByM_F(messageId, flag);
466     }
467 
468     public static void removeByU_T_F(long userId, long threadId, int flag)
469         throws com.liferay.portal.SystemException {
470         getPersistence().removeByU_T_F(userId, threadId, flag);
471     }
472 
473     public static void removeByU_M_F(long userId, long messageId, int flag)
474         throws com.liferay.portal.SystemException,
475             com.liferay.portlet.messageboards.NoSuchMessageFlagException {
476         getPersistence().removeByU_M_F(userId, messageId, flag);
477     }
478 
479     public static void removeAll() throws com.liferay.portal.SystemException {
480         getPersistence().removeAll();
481     }
482 
483     public static int countByUserId(long userId)
484         throws com.liferay.portal.SystemException {
485         return getPersistence().countByUserId(userId);
486     }
487 
488     public static int countByThreadId(long threadId)
489         throws com.liferay.portal.SystemException {
490         return getPersistence().countByThreadId(threadId);
491     }
492 
493     public static int countByMessageId(long messageId)
494         throws com.liferay.portal.SystemException {
495         return getPersistence().countByMessageId(messageId);
496     }
497 
498     public static int countByT_F(long threadId, int flag)
499         throws com.liferay.portal.SystemException {
500         return getPersistence().countByT_F(threadId, flag);
501     }
502 
503     public static int countByM_F(long messageId, int flag)
504         throws com.liferay.portal.SystemException {
505         return getPersistence().countByM_F(messageId, flag);
506     }
507 
508     public static int countByU_T_F(long userId, long threadId, int flag)
509         throws com.liferay.portal.SystemException {
510         return getPersistence().countByU_T_F(userId, threadId, flag);
511     }
512 
513     public static int countByU_M_F(long userId, long messageId, int flag)
514         throws com.liferay.portal.SystemException {
515         return getPersistence().countByU_M_F(userId, messageId, flag);
516     }
517 
518     public static int countAll() throws com.liferay.portal.SystemException {
519         return getPersistence().countAll();
520     }
521 
522     public static MBMessageFlagPersistence getPersistence() {
523         if (_persistence == null) {
524             _persistence = (MBMessageFlagPersistence)PortalBeanLocatorUtil.locate(MBMessageFlagPersistence.class.getName());
525         }
526 
527         return _persistence;
528     }
529 
530     public void setPersistence(MBMessageFlagPersistence persistence) {
531         _persistence = persistence;
532     }
533 
534     private static MBMessageFlagPersistence _persistence;
535 }