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  import com.liferay.portal.SystemException;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  
29  import com.liferay.portlet.messageboards.model.MBMailingList;
30  
31  import java.util.List;
32  
33  /**
34   * <a href="MBMailingListUtil.java.html"><b><i>View Source</i></b></a>
35   *
36   * <p>
37   * ServiceBuilder generated this class. Modifications in this class will be
38   * overwritten the next time is generated.
39   * </p>
40   *
41   * @author    Brian Wing Shun Chan
42   * @see       MBMailingListPersistence
43   * @see       MBMailingListPersistenceImpl
44   * @generated
45   */
46  public class MBMailingListUtil {
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
49       */
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66          int start, int end) throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
72       */
73      public static MBMailingList remove(MBMailingList mbMailingList)
74          throws SystemException {
75          return getPersistence().remove(mbMailingList);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
80       */
81      public static MBMailingList update(MBMailingList mbMailingList,
82          boolean merge) throws SystemException {
83          return getPersistence().update(mbMailingList, merge);
84      }
85  
86      public static void cacheResult(
87          com.liferay.portlet.messageboards.model.MBMailingList mbMailingList) {
88          getPersistence().cacheResult(mbMailingList);
89      }
90  
91      public static void cacheResult(
92          java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> mbMailingLists) {
93          getPersistence().cacheResult(mbMailingLists);
94      }
95  
96      public static com.liferay.portlet.messageboards.model.MBMailingList create(
97          long mailingListId) {
98          return getPersistence().create(mailingListId);
99      }
100 
101     public static com.liferay.portlet.messageboards.model.MBMailingList remove(
102         long mailingListId)
103         throws com.liferay.portal.SystemException,
104             com.liferay.portlet.messageboards.NoSuchMailingListException {
105         return getPersistence().remove(mailingListId);
106     }
107 
108     /**
109      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
110      */
111     public static com.liferay.portlet.messageboards.model.MBMailingList update(
112         com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
113         throws com.liferay.portal.SystemException {
114         return getPersistence().update(mbMailingList);
115     }
116 
117     public static com.liferay.portlet.messageboards.model.MBMailingList updateImpl(
118         com.liferay.portlet.messageboards.model.MBMailingList mbMailingList,
119         boolean merge) throws com.liferay.portal.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.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) throws com.liferay.portal.SystemException {
132         return getPersistence().fetchByPrimaryKey(mailingListId);
133     }
134 
135     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
136         java.lang.String uuid) throws com.liferay.portal.SystemException {
137         return getPersistence().findByUuid(uuid);
138     }
139 
140     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
141         java.lang.String uuid, int start, int end)
142         throws com.liferay.portal.SystemException {
143         return getPersistence().findByUuid(uuid, start, end);
144     }
145 
146     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
147         java.lang.String uuid, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException {
150         return getPersistence().findByUuid(uuid, start, end, obc);
151     }
152 
153     public static com.liferay.portlet.messageboards.model.MBMailingList findByUuid_First(
154         java.lang.String uuid,
155         com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.messageboards.NoSuchMailingListException {
158         return getPersistence().findByUuid_First(uuid, obc);
159     }
160 
161     public static com.liferay.portlet.messageboards.model.MBMailingList findByUuid_Last(
162         java.lang.String uuid,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.messageboards.NoSuchMailingListException {
166         return getPersistence().findByUuid_Last(uuid, obc);
167     }
168 
169     public static com.liferay.portlet.messageboards.model.MBMailingList[] findByUuid_PrevAndNext(
170         long mailingListId, java.lang.String uuid,
171         com.liferay.portal.kernel.util.OrderByComparator obc)
172         throws com.liferay.portal.SystemException,
173             com.liferay.portlet.messageboards.NoSuchMailingListException {
174         return getPersistence().findByUuid_PrevAndNext(mailingListId, uuid, obc);
175     }
176 
177     public static com.liferay.portlet.messageboards.model.MBMailingList findByUUID_G(
178         java.lang.String uuid, long groupId)
179         throws com.liferay.portal.SystemException,
180             com.liferay.portlet.messageboards.NoSuchMailingListException {
181         return getPersistence().findByUUID_G(uuid, groupId);
182     }
183 
184     public static com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
185         java.lang.String uuid, long groupId)
186         throws com.liferay.portal.SystemException {
187         return getPersistence().fetchByUUID_G(uuid, groupId);
188     }
189 
190     public static com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
191         java.lang.String uuid, long groupId, boolean retrieveFromCache)
192         throws com.liferay.portal.SystemException {
193         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
194     }
195 
196     public static com.liferay.portlet.messageboards.model.MBMailingList findByCategoryId(
197         long categoryId)
198         throws com.liferay.portal.SystemException,
199             com.liferay.portlet.messageboards.NoSuchMailingListException {
200         return getPersistence().findByCategoryId(categoryId);
201     }
202 
203     public static com.liferay.portlet.messageboards.model.MBMailingList fetchByCategoryId(
204         long categoryId) throws com.liferay.portal.SystemException {
205         return getPersistence().fetchByCategoryId(categoryId);
206     }
207 
208     public static com.liferay.portlet.messageboards.model.MBMailingList fetchByCategoryId(
209         long categoryId, boolean retrieveFromCache)
210         throws com.liferay.portal.SystemException {
211         return getPersistence().fetchByCategoryId(categoryId, retrieveFromCache);
212     }
213 
214     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
215         boolean active) throws com.liferay.portal.SystemException {
216         return getPersistence().findByActive(active);
217     }
218 
219     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
220         boolean active, int start, int end)
221         throws com.liferay.portal.SystemException {
222         return getPersistence().findByActive(active, start, end);
223     }
224 
225     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
226         boolean active, int start, int end,
227         com.liferay.portal.kernel.util.OrderByComparator obc)
228         throws com.liferay.portal.SystemException {
229         return getPersistence().findByActive(active, start, end, obc);
230     }
231 
232     public static com.liferay.portlet.messageboards.model.MBMailingList findByActive_First(
233         boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
234         throws com.liferay.portal.SystemException,
235             com.liferay.portlet.messageboards.NoSuchMailingListException {
236         return getPersistence().findByActive_First(active, obc);
237     }
238 
239     public static com.liferay.portlet.messageboards.model.MBMailingList findByActive_Last(
240         boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
241         throws com.liferay.portal.SystemException,
242             com.liferay.portlet.messageboards.NoSuchMailingListException {
243         return getPersistence().findByActive_Last(active, obc);
244     }
245 
246     public static com.liferay.portlet.messageboards.model.MBMailingList[] findByActive_PrevAndNext(
247         long mailingListId, boolean active,
248         com.liferay.portal.kernel.util.OrderByComparator obc)
249         throws com.liferay.portal.SystemException,
250             com.liferay.portlet.messageboards.NoSuchMailingListException {
251         return getPersistence()
252                    .findByActive_PrevAndNext(mailingListId, active, obc);
253     }
254 
255     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll()
256         throws com.liferay.portal.SystemException {
257         return getPersistence().findAll();
258     }
259 
260     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
261         int start, int end) throws com.liferay.portal.SystemException {
262         return getPersistence().findAll(start, end);
263     }
264 
265     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
266         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
267         throws com.liferay.portal.SystemException {
268         return getPersistence().findAll(start, end, obc);
269     }
270 
271     public static void removeByUuid(java.lang.String uuid)
272         throws com.liferay.portal.SystemException {
273         getPersistence().removeByUuid(uuid);
274     }
275 
276     public static void removeByUUID_G(java.lang.String uuid, long groupId)
277         throws com.liferay.portal.SystemException,
278             com.liferay.portlet.messageboards.NoSuchMailingListException {
279         getPersistence().removeByUUID_G(uuid, groupId);
280     }
281 
282     public static void removeByCategoryId(long categoryId)
283         throws com.liferay.portal.SystemException,
284             com.liferay.portlet.messageboards.NoSuchMailingListException {
285         getPersistence().removeByCategoryId(categoryId);
286     }
287 
288     public static void removeByActive(boolean active)
289         throws com.liferay.portal.SystemException {
290         getPersistence().removeByActive(active);
291     }
292 
293     public static void removeAll() throws com.liferay.portal.SystemException {
294         getPersistence().removeAll();
295     }
296 
297     public static int countByUuid(java.lang.String uuid)
298         throws com.liferay.portal.SystemException {
299         return getPersistence().countByUuid(uuid);
300     }
301 
302     public static int countByUUID_G(java.lang.String uuid, long groupId)
303         throws com.liferay.portal.SystemException {
304         return getPersistence().countByUUID_G(uuid, groupId);
305     }
306 
307     public static int countByCategoryId(long categoryId)
308         throws com.liferay.portal.SystemException {
309         return getPersistence().countByCategoryId(categoryId);
310     }
311 
312     public static int countByActive(boolean active)
313         throws com.liferay.portal.SystemException {
314         return getPersistence().countByActive(active);
315     }
316 
317     public static int countAll() throws com.liferay.portal.SystemException {
318         return getPersistence().countAll();
319     }
320 
321     public static MBMailingListPersistence getPersistence() {
322         if (_persistence == null) {
323             _persistence = (MBMailingListPersistence)PortalBeanLocatorUtil.locate(MBMailingListPersistence.class.getName());
324         }
325 
326         return _persistence;
327     }
328 
329     public void setPersistence(MBMailingListPersistence persistence) {
330         _persistence = persistence;
331     }
332 
333     private static MBMailingListPersistence _persistence;
334 }