1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.messageboards.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  
21  import com.liferay.portlet.messageboards.model.MBMailingList;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="MBMailingListUtil.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       MBMailingListPersistence
35   * @see       MBMailingListPersistenceImpl
36   * @generated
37   */
38  public class MBMailingListUtil {
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 MBMailingList remove(MBMailingList mbMailingList)
66          throws SystemException {
67          return getPersistence().remove(mbMailingList);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static MBMailingList update(MBMailingList mbMailingList,
74          boolean merge) throws SystemException {
75          return getPersistence().update(mbMailingList, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.messageboards.model.MBMailingList mbMailingList) {
80          getPersistence().cacheResult(mbMailingList);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> mbMailingLists) {
85          getPersistence().cacheResult(mbMailingLists);
86      }
87  
88      public static com.liferay.portlet.messageboards.model.MBMailingList create(
89          long mailingListId) {
90          return getPersistence().create(mailingListId);
91      }
92  
93      public static com.liferay.portlet.messageboards.model.MBMailingList remove(
94          long mailingListId)
95          throws com.liferay.portal.kernel.exception.SystemException,
96              com.liferay.portlet.messageboards.NoSuchMailingListException {
97          return getPersistence().remove(mailingListId);
98      }
99  
100     public static com.liferay.portlet.messageboards.model.MBMailingList updateImpl(
101         com.liferay.portlet.messageboards.model.MBMailingList mbMailingList,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(mbMailingList, merge);
105     }
106 
107     public static com.liferay.portlet.messageboards.model.MBMailingList findByPrimaryKey(
108         long mailingListId)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.messageboards.NoSuchMailingListException {
111         return getPersistence().findByPrimaryKey(mailingListId);
112     }
113 
114     public static com.liferay.portlet.messageboards.model.MBMailingList fetchByPrimaryKey(
115         long mailingListId)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getPersistence().fetchByPrimaryKey(mailingListId);
118     }
119 
120     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
121         java.lang.String uuid)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return getPersistence().findByUuid(uuid);
124     }
125 
126     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
127         java.lang.String uuid, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         return getPersistence().findByUuid(uuid, start, end);
130     }
131 
132     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
133         java.lang.String uuid, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence().findByUuid(uuid, start, end, obc);
137     }
138 
139     public static com.liferay.portlet.messageboards.model.MBMailingList findByUuid_First(
140         java.lang.String uuid,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.kernel.exception.SystemException,
143             com.liferay.portlet.messageboards.NoSuchMailingListException {
144         return getPersistence().findByUuid_First(uuid, obc);
145     }
146 
147     public static com.liferay.portlet.messageboards.model.MBMailingList findByUuid_Last(
148         java.lang.String uuid,
149         com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.kernel.exception.SystemException,
151             com.liferay.portlet.messageboards.NoSuchMailingListException {
152         return getPersistence().findByUuid_Last(uuid, obc);
153     }
154 
155     public static com.liferay.portlet.messageboards.model.MBMailingList[] findByUuid_PrevAndNext(
156         long mailingListId, java.lang.String uuid,
157         com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.kernel.exception.SystemException,
159             com.liferay.portlet.messageboards.NoSuchMailingListException {
160         return getPersistence().findByUuid_PrevAndNext(mailingListId, uuid, obc);
161     }
162 
163     public static com.liferay.portlet.messageboards.model.MBMailingList findByUUID_G(
164         java.lang.String uuid, long groupId)
165         throws com.liferay.portal.kernel.exception.SystemException,
166             com.liferay.portlet.messageboards.NoSuchMailingListException {
167         return getPersistence().findByUUID_G(uuid, groupId);
168     }
169 
170     public static com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
171         java.lang.String uuid, long groupId)
172         throws com.liferay.portal.kernel.exception.SystemException {
173         return getPersistence().fetchByUUID_G(uuid, groupId);
174     }
175 
176     public static com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
177         java.lang.String uuid, long groupId, boolean retrieveFromCache)
178         throws com.liferay.portal.kernel.exception.SystemException {
179         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
180     }
181 
182     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
183         boolean active)
184         throws com.liferay.portal.kernel.exception.SystemException {
185         return getPersistence().findByActive(active);
186     }
187 
188     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
189         boolean active, int start, int end)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return getPersistence().findByActive(active, start, end);
192     }
193 
194     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
195         boolean active, int start, int end,
196         com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.kernel.exception.SystemException {
198         return getPersistence().findByActive(active, start, end, obc);
199     }
200 
201     public static com.liferay.portlet.messageboards.model.MBMailingList findByActive_First(
202         boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
203         throws com.liferay.portal.kernel.exception.SystemException,
204             com.liferay.portlet.messageboards.NoSuchMailingListException {
205         return getPersistence().findByActive_First(active, obc);
206     }
207 
208     public static com.liferay.portlet.messageboards.model.MBMailingList findByActive_Last(
209         boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
210         throws com.liferay.portal.kernel.exception.SystemException,
211             com.liferay.portlet.messageboards.NoSuchMailingListException {
212         return getPersistence().findByActive_Last(active, obc);
213     }
214 
215     public static com.liferay.portlet.messageboards.model.MBMailingList[] findByActive_PrevAndNext(
216         long mailingListId, boolean active,
217         com.liferay.portal.kernel.util.OrderByComparator obc)
218         throws com.liferay.portal.kernel.exception.SystemException,
219             com.liferay.portlet.messageboards.NoSuchMailingListException {
220         return getPersistence()
221                    .findByActive_PrevAndNext(mailingListId, active, obc);
222     }
223 
224     public static com.liferay.portlet.messageboards.model.MBMailingList findByG_C(
225         long groupId, long categoryId)
226         throws com.liferay.portal.kernel.exception.SystemException,
227             com.liferay.portlet.messageboards.NoSuchMailingListException {
228         return getPersistence().findByG_C(groupId, categoryId);
229     }
230 
231     public static com.liferay.portlet.messageboards.model.MBMailingList fetchByG_C(
232         long groupId, long categoryId)
233         throws com.liferay.portal.kernel.exception.SystemException {
234         return getPersistence().fetchByG_C(groupId, categoryId);
235     }
236 
237     public static com.liferay.portlet.messageboards.model.MBMailingList fetchByG_C(
238         long groupId, long categoryId, boolean retrieveFromCache)
239         throws com.liferay.portal.kernel.exception.SystemException {
240         return getPersistence()
241                    .fetchByG_C(groupId, categoryId, retrieveFromCache);
242     }
243 
244     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll()
245         throws com.liferay.portal.kernel.exception.SystemException {
246         return getPersistence().findAll();
247     }
248 
249     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
250         int start, int end)
251         throws com.liferay.portal.kernel.exception.SystemException {
252         return getPersistence().findAll(start, end);
253     }
254 
255     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
256         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
257         throws com.liferay.portal.kernel.exception.SystemException {
258         return getPersistence().findAll(start, end, obc);
259     }
260 
261     public static void removeByUuid(java.lang.String uuid)
262         throws com.liferay.portal.kernel.exception.SystemException {
263         getPersistence().removeByUuid(uuid);
264     }
265 
266     public static void removeByUUID_G(java.lang.String uuid, long groupId)
267         throws com.liferay.portal.kernel.exception.SystemException,
268             com.liferay.portlet.messageboards.NoSuchMailingListException {
269         getPersistence().removeByUUID_G(uuid, groupId);
270     }
271 
272     public static void removeByActive(boolean active)
273         throws com.liferay.portal.kernel.exception.SystemException {
274         getPersistence().removeByActive(active);
275     }
276 
277     public static void removeByG_C(long groupId, long categoryId)
278         throws com.liferay.portal.kernel.exception.SystemException,
279             com.liferay.portlet.messageboards.NoSuchMailingListException {
280         getPersistence().removeByG_C(groupId, categoryId);
281     }
282 
283     public static void removeAll()
284         throws com.liferay.portal.kernel.exception.SystemException {
285         getPersistence().removeAll();
286     }
287 
288     public static int countByUuid(java.lang.String uuid)
289         throws com.liferay.portal.kernel.exception.SystemException {
290         return getPersistence().countByUuid(uuid);
291     }
292 
293     public static int countByUUID_G(java.lang.String uuid, long groupId)
294         throws com.liferay.portal.kernel.exception.SystemException {
295         return getPersistence().countByUUID_G(uuid, groupId);
296     }
297 
298     public static int countByActive(boolean active)
299         throws com.liferay.portal.kernel.exception.SystemException {
300         return getPersistence().countByActive(active);
301     }
302 
303     public static int countByG_C(long groupId, long categoryId)
304         throws com.liferay.portal.kernel.exception.SystemException {
305         return getPersistence().countByG_C(groupId, categoryId);
306     }
307 
308     public static int countAll()
309         throws com.liferay.portal.kernel.exception.SystemException {
310         return getPersistence().countAll();
311     }
312 
313     public static MBMailingListPersistence getPersistence() {
314         if (_persistence == null) {
315             _persistence = (MBMailingListPersistence)PortalBeanLocatorUtil.locate(MBMailingListPersistence.class.getName());
316         }
317 
318         return _persistence;
319     }
320 
321     public void setPersistence(MBMailingListPersistence persistence) {
322         _persistence = persistence;
323     }
324 
325     private static MBMailingListPersistence _persistence;
326 }