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#clearCache(MBMailingList)
48       */
49      public static void clearCache(MBMailingList mbMailingList) {
50          getPersistence().clearCache(mbMailingList);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
55       */
56      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().countWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
63       */
64      public static List<MBMailingList> findWithDynamicQuery(
65          DynamicQuery dynamicQuery) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
71       */
72      public static List<MBMailingList> findWithDynamicQuery(
73          DynamicQuery dynamicQuery, int start, int end)
74          throws SystemException {
75          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
80       */
81      public static MBMailingList remove(MBMailingList mbMailingList)
82          throws SystemException {
83          return getPersistence().remove(mbMailingList);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static MBMailingList update(MBMailingList mbMailingList,
90          boolean merge) throws SystemException {
91          return getPersistence().update(mbMailingList, merge);
92      }
93  
94      public static void cacheResult(
95          com.liferay.portlet.messageboards.model.MBMailingList mbMailingList) {
96          getPersistence().cacheResult(mbMailingList);
97      }
98  
99      public static void cacheResult(
100         java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> mbMailingLists) {
101         getPersistence().cacheResult(mbMailingLists);
102     }
103 
104     public static com.liferay.portlet.messageboards.model.MBMailingList create(
105         long mailingListId) {
106         return getPersistence().create(mailingListId);
107     }
108 
109     public static com.liferay.portlet.messageboards.model.MBMailingList remove(
110         long mailingListId)
111         throws com.liferay.portal.kernel.exception.SystemException,
112             com.liferay.portlet.messageboards.NoSuchMailingListException {
113         return getPersistence().remove(mailingListId);
114     }
115 
116     public static com.liferay.portlet.messageboards.model.MBMailingList updateImpl(
117         com.liferay.portlet.messageboards.model.MBMailingList mbMailingList,
118         boolean merge)
119         throws com.liferay.portal.kernel.exception.SystemException {
120         return getPersistence().updateImpl(mbMailingList, merge);
121     }
122 
123     public static com.liferay.portlet.messageboards.model.MBMailingList findByPrimaryKey(
124         long mailingListId)
125         throws com.liferay.portal.kernel.exception.SystemException,
126             com.liferay.portlet.messageboards.NoSuchMailingListException {
127         return getPersistence().findByPrimaryKey(mailingListId);
128     }
129 
130     public static com.liferay.portlet.messageboards.model.MBMailingList fetchByPrimaryKey(
131         long mailingListId)
132         throws com.liferay.portal.kernel.exception.SystemException {
133         return getPersistence().fetchByPrimaryKey(mailingListId);
134     }
135 
136     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
137         java.lang.String uuid)
138         throws com.liferay.portal.kernel.exception.SystemException {
139         return getPersistence().findByUuid(uuid);
140     }
141 
142     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
143         java.lang.String uuid, int start, int end)
144         throws com.liferay.portal.kernel.exception.SystemException {
145         return getPersistence().findByUuid(uuid, start, end);
146     }
147 
148     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
149         java.lang.String uuid, int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException {
152         return getPersistence().findByUuid(uuid, start, end, orderByComparator);
153     }
154 
155     public static com.liferay.portlet.messageboards.model.MBMailingList findByUuid_First(
156         java.lang.String uuid,
157         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158         throws com.liferay.portal.kernel.exception.SystemException,
159             com.liferay.portlet.messageboards.NoSuchMailingListException {
160         return getPersistence().findByUuid_First(uuid, orderByComparator);
161     }
162 
163     public static com.liferay.portlet.messageboards.model.MBMailingList findByUuid_Last(
164         java.lang.String uuid,
165         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166         throws com.liferay.portal.kernel.exception.SystemException,
167             com.liferay.portlet.messageboards.NoSuchMailingListException {
168         return getPersistence().findByUuid_Last(uuid, orderByComparator);
169     }
170 
171     public static com.liferay.portlet.messageboards.model.MBMailingList[] findByUuid_PrevAndNext(
172         long mailingListId, java.lang.String uuid,
173         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174         throws com.liferay.portal.kernel.exception.SystemException,
175             com.liferay.portlet.messageboards.NoSuchMailingListException {
176         return getPersistence()
177                    .findByUuid_PrevAndNext(mailingListId, uuid,
178             orderByComparator);
179     }
180 
181     public static com.liferay.portlet.messageboards.model.MBMailingList findByUUID_G(
182         java.lang.String uuid, long groupId)
183         throws com.liferay.portal.kernel.exception.SystemException,
184             com.liferay.portlet.messageboards.NoSuchMailingListException {
185         return getPersistence().findByUUID_G(uuid, groupId);
186     }
187 
188     public static com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
189         java.lang.String uuid, long groupId)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return getPersistence().fetchByUUID_G(uuid, groupId);
192     }
193 
194     public static com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
195         java.lang.String uuid, long groupId, boolean retrieveFromCache)
196         throws com.liferay.portal.kernel.exception.SystemException {
197         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
198     }
199 
200     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
201         boolean active)
202         throws com.liferay.portal.kernel.exception.SystemException {
203         return getPersistence().findByActive(active);
204     }
205 
206     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
207         boolean active, int start, int end)
208         throws com.liferay.portal.kernel.exception.SystemException {
209         return getPersistence().findByActive(active, start, end);
210     }
211 
212     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
213         boolean active, int start, int end,
214         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
215         throws com.liferay.portal.kernel.exception.SystemException {
216         return getPersistence()
217                    .findByActive(active, start, end, orderByComparator);
218     }
219 
220     public static com.liferay.portlet.messageboards.model.MBMailingList findByActive_First(
221         boolean active,
222         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223         throws com.liferay.portal.kernel.exception.SystemException,
224             com.liferay.portlet.messageboards.NoSuchMailingListException {
225         return getPersistence().findByActive_First(active, orderByComparator);
226     }
227 
228     public static com.liferay.portlet.messageboards.model.MBMailingList findByActive_Last(
229         boolean active,
230         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
231         throws com.liferay.portal.kernel.exception.SystemException,
232             com.liferay.portlet.messageboards.NoSuchMailingListException {
233         return getPersistence().findByActive_Last(active, orderByComparator);
234     }
235 
236     public static com.liferay.portlet.messageboards.model.MBMailingList[] findByActive_PrevAndNext(
237         long mailingListId, boolean active,
238         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239         throws com.liferay.portal.kernel.exception.SystemException,
240             com.liferay.portlet.messageboards.NoSuchMailingListException {
241         return getPersistence()
242                    .findByActive_PrevAndNext(mailingListId, active,
243             orderByComparator);
244     }
245 
246     public static com.liferay.portlet.messageboards.model.MBMailingList findByG_C(
247         long groupId, long categoryId)
248         throws com.liferay.portal.kernel.exception.SystemException,
249             com.liferay.portlet.messageboards.NoSuchMailingListException {
250         return getPersistence().findByG_C(groupId, categoryId);
251     }
252 
253     public static com.liferay.portlet.messageboards.model.MBMailingList fetchByG_C(
254         long groupId, long categoryId)
255         throws com.liferay.portal.kernel.exception.SystemException {
256         return getPersistence().fetchByG_C(groupId, categoryId);
257     }
258 
259     public static com.liferay.portlet.messageboards.model.MBMailingList fetchByG_C(
260         long groupId, long categoryId, boolean retrieveFromCache)
261         throws com.liferay.portal.kernel.exception.SystemException {
262         return getPersistence()
263                    .fetchByG_C(groupId, categoryId, retrieveFromCache);
264     }
265 
266     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll()
267         throws com.liferay.portal.kernel.exception.SystemException {
268         return getPersistence().findAll();
269     }
270 
271     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
272         int start, int end)
273         throws com.liferay.portal.kernel.exception.SystemException {
274         return getPersistence().findAll(start, end);
275     }
276 
277     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
278         int start, int end,
279         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
280         throws com.liferay.portal.kernel.exception.SystemException {
281         return getPersistence().findAll(start, end, orderByComparator);
282     }
283 
284     public static void removeByUuid(java.lang.String uuid)
285         throws com.liferay.portal.kernel.exception.SystemException {
286         getPersistence().removeByUuid(uuid);
287     }
288 
289     public static void removeByUUID_G(java.lang.String uuid, long groupId)
290         throws com.liferay.portal.kernel.exception.SystemException,
291             com.liferay.portlet.messageboards.NoSuchMailingListException {
292         getPersistence().removeByUUID_G(uuid, groupId);
293     }
294 
295     public static void removeByActive(boolean active)
296         throws com.liferay.portal.kernel.exception.SystemException {
297         getPersistence().removeByActive(active);
298     }
299 
300     public static void removeByG_C(long groupId, long categoryId)
301         throws com.liferay.portal.kernel.exception.SystemException,
302             com.liferay.portlet.messageboards.NoSuchMailingListException {
303         getPersistence().removeByG_C(groupId, categoryId);
304     }
305 
306     public static void removeAll()
307         throws com.liferay.portal.kernel.exception.SystemException {
308         getPersistence().removeAll();
309     }
310 
311     public static int countByUuid(java.lang.String uuid)
312         throws com.liferay.portal.kernel.exception.SystemException {
313         return getPersistence().countByUuid(uuid);
314     }
315 
316     public static int countByUUID_G(java.lang.String uuid, long groupId)
317         throws com.liferay.portal.kernel.exception.SystemException {
318         return getPersistence().countByUUID_G(uuid, groupId);
319     }
320 
321     public static int countByActive(boolean active)
322         throws com.liferay.portal.kernel.exception.SystemException {
323         return getPersistence().countByActive(active);
324     }
325 
326     public static int countByG_C(long groupId, long categoryId)
327         throws com.liferay.portal.kernel.exception.SystemException {
328         return getPersistence().countByG_C(groupId, categoryId);
329     }
330 
331     public static int countAll()
332         throws com.liferay.portal.kernel.exception.SystemException {
333         return getPersistence().countAll();
334     }
335 
336     public static MBMailingListPersistence getPersistence() {
337         if (_persistence == null) {
338             _persistence = (MBMailingListPersistence)PortalBeanLocatorUtil.locate(MBMailingListPersistence.class.getName());
339         }
340 
341         return _persistence;
342     }
343 
344     public void setPersistence(MBMailingListPersistence persistence) {
345         _persistence = persistence;
346     }
347 
348     private static MBMailingListPersistence _persistence;
349 }