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.MBStatsUser;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="MBStatsUserUtil.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       MBStatsUserPersistence
35   * @see       MBStatsUserPersistenceImpl
36   * @generated
37   */
38  public class MBStatsUserUtil {
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 MBStatsUser remove(MBStatsUser mbStatsUser)
66          throws SystemException {
67          return getPersistence().remove(mbStatsUser);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static MBStatsUser update(MBStatsUser mbStatsUser, boolean merge)
74          throws SystemException {
75          return getPersistence().update(mbStatsUser, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser) {
80          getPersistence().cacheResult(mbStatsUser);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> mbStatsUsers) {
85          getPersistence().cacheResult(mbStatsUsers);
86      }
87  
88      public static com.liferay.portlet.messageboards.model.MBStatsUser create(
89          long statsUserId) {
90          return getPersistence().create(statsUserId);
91      }
92  
93      public static com.liferay.portlet.messageboards.model.MBStatsUser remove(
94          long statsUserId)
95          throws com.liferay.portal.kernel.exception.SystemException,
96              com.liferay.portlet.messageboards.NoSuchStatsUserException {
97          return getPersistence().remove(statsUserId);
98      }
99  
100     public static com.liferay.portlet.messageboards.model.MBStatsUser updateImpl(
101         com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(mbStatsUser, merge);
105     }
106 
107     public static com.liferay.portlet.messageboards.model.MBStatsUser findByPrimaryKey(
108         long statsUserId)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.messageboards.NoSuchStatsUserException {
111         return getPersistence().findByPrimaryKey(statsUserId);
112     }
113 
114     public static com.liferay.portlet.messageboards.model.MBStatsUser fetchByPrimaryKey(
115         long statsUserId)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getPersistence().fetchByPrimaryKey(statsUserId);
118     }
119 
120     public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
121         long groupId)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return getPersistence().findByGroupId(groupId);
124     }
125 
126     public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
127         long groupId, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         return getPersistence().findByGroupId(groupId, start, end);
130     }
131 
132     public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
133         long groupId, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence().findByGroupId(groupId, start, end, obc);
137     }
138 
139     public static com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_First(
140         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.kernel.exception.SystemException,
142             com.liferay.portlet.messageboards.NoSuchStatsUserException {
143         return getPersistence().findByGroupId_First(groupId, obc);
144     }
145 
146     public static com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_Last(
147         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.kernel.exception.SystemException,
149             com.liferay.portlet.messageboards.NoSuchStatsUserException {
150         return getPersistence().findByGroupId_Last(groupId, obc);
151     }
152 
153     public static com.liferay.portlet.messageboards.model.MBStatsUser[] findByGroupId_PrevAndNext(
154         long statsUserId, long groupId,
155         com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.kernel.exception.SystemException,
157             com.liferay.portlet.messageboards.NoSuchStatsUserException {
158         return getPersistence()
159                    .findByGroupId_PrevAndNext(statsUserId, groupId, obc);
160     }
161 
162     public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
163         long userId) throws com.liferay.portal.kernel.exception.SystemException {
164         return getPersistence().findByUserId(userId);
165     }
166 
167     public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
168         long userId, int start, int end)
169         throws com.liferay.portal.kernel.exception.SystemException {
170         return getPersistence().findByUserId(userId, start, end);
171     }
172 
173     public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
174         long userId, int start, int end,
175         com.liferay.portal.kernel.util.OrderByComparator obc)
176         throws com.liferay.portal.kernel.exception.SystemException {
177         return getPersistence().findByUserId(userId, start, end, obc);
178     }
179 
180     public static com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_First(
181         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
182         throws com.liferay.portal.kernel.exception.SystemException,
183             com.liferay.portlet.messageboards.NoSuchStatsUserException {
184         return getPersistence().findByUserId_First(userId, obc);
185     }
186 
187     public static com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_Last(
188         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.kernel.exception.SystemException,
190             com.liferay.portlet.messageboards.NoSuchStatsUserException {
191         return getPersistence().findByUserId_Last(userId, obc);
192     }
193 
194     public static com.liferay.portlet.messageboards.model.MBStatsUser[] findByUserId_PrevAndNext(
195         long statsUserId, long userId,
196         com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.kernel.exception.SystemException,
198             com.liferay.portlet.messageboards.NoSuchStatsUserException {
199         return getPersistence()
200                    .findByUserId_PrevAndNext(statsUserId, userId, obc);
201     }
202 
203     public static com.liferay.portlet.messageboards.model.MBStatsUser findByG_U(
204         long groupId, long userId)
205         throws com.liferay.portal.kernel.exception.SystemException,
206             com.liferay.portlet.messageboards.NoSuchStatsUserException {
207         return getPersistence().findByG_U(groupId, userId);
208     }
209 
210     public static com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
211         long groupId, long userId)
212         throws com.liferay.portal.kernel.exception.SystemException {
213         return getPersistence().fetchByG_U(groupId, userId);
214     }
215 
216     public static com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
217         long groupId, long userId, boolean retrieveFromCache)
218         throws com.liferay.portal.kernel.exception.SystemException {
219         return getPersistence().fetchByG_U(groupId, userId, retrieveFromCache);
220     }
221 
222     public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_M(
223         long groupId, int messageCount)
224         throws com.liferay.portal.kernel.exception.SystemException {
225         return getPersistence().findByG_M(groupId, messageCount);
226     }
227 
228     public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_M(
229         long groupId, int messageCount, int start, int end)
230         throws com.liferay.portal.kernel.exception.SystemException {
231         return getPersistence().findByG_M(groupId, messageCount, start, end);
232     }
233 
234     public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_M(
235         long groupId, int messageCount, int start, int end,
236         com.liferay.portal.kernel.util.OrderByComparator obc)
237         throws com.liferay.portal.kernel.exception.SystemException {
238         return getPersistence().findByG_M(groupId, messageCount, start, end, obc);
239     }
240 
241     public static com.liferay.portlet.messageboards.model.MBStatsUser findByG_M_First(
242         long groupId, int messageCount,
243         com.liferay.portal.kernel.util.OrderByComparator obc)
244         throws com.liferay.portal.kernel.exception.SystemException,
245             com.liferay.portlet.messageboards.NoSuchStatsUserException {
246         return getPersistence().findByG_M_First(groupId, messageCount, obc);
247     }
248 
249     public static com.liferay.portlet.messageboards.model.MBStatsUser findByG_M_Last(
250         long groupId, int messageCount,
251         com.liferay.portal.kernel.util.OrderByComparator obc)
252         throws com.liferay.portal.kernel.exception.SystemException,
253             com.liferay.portlet.messageboards.NoSuchStatsUserException {
254         return getPersistence().findByG_M_Last(groupId, messageCount, obc);
255     }
256 
257     public static com.liferay.portlet.messageboards.model.MBStatsUser[] findByG_M_PrevAndNext(
258         long statsUserId, long groupId, int messageCount,
259         com.liferay.portal.kernel.util.OrderByComparator obc)
260         throws com.liferay.portal.kernel.exception.SystemException,
261             com.liferay.portlet.messageboards.NoSuchStatsUserException {
262         return getPersistence()
263                    .findByG_M_PrevAndNext(statsUserId, groupId, messageCount,
264             obc);
265     }
266 
267     public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll()
268         throws com.liferay.portal.kernel.exception.SystemException {
269         return getPersistence().findAll();
270     }
271 
272     public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
273         int start, int end)
274         throws com.liferay.portal.kernel.exception.SystemException {
275         return getPersistence().findAll(start, end);
276     }
277 
278     public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
279         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
280         throws com.liferay.portal.kernel.exception.SystemException {
281         return getPersistence().findAll(start, end, obc);
282     }
283 
284     public static void removeByGroupId(long groupId)
285         throws com.liferay.portal.kernel.exception.SystemException {
286         getPersistence().removeByGroupId(groupId);
287     }
288 
289     public static void removeByUserId(long userId)
290         throws com.liferay.portal.kernel.exception.SystemException {
291         getPersistence().removeByUserId(userId);
292     }
293 
294     public static void removeByG_U(long groupId, long userId)
295         throws com.liferay.portal.kernel.exception.SystemException,
296             com.liferay.portlet.messageboards.NoSuchStatsUserException {
297         getPersistence().removeByG_U(groupId, userId);
298     }
299 
300     public static void removeByG_M(long groupId, int messageCount)
301         throws com.liferay.portal.kernel.exception.SystemException {
302         getPersistence().removeByG_M(groupId, messageCount);
303     }
304 
305     public static void removeAll()
306         throws com.liferay.portal.kernel.exception.SystemException {
307         getPersistence().removeAll();
308     }
309 
310     public static int countByGroupId(long groupId)
311         throws com.liferay.portal.kernel.exception.SystemException {
312         return getPersistence().countByGroupId(groupId);
313     }
314 
315     public static int countByUserId(long userId)
316         throws com.liferay.portal.kernel.exception.SystemException {
317         return getPersistence().countByUserId(userId);
318     }
319 
320     public static int countByG_U(long groupId, long userId)
321         throws com.liferay.portal.kernel.exception.SystemException {
322         return getPersistence().countByG_U(groupId, userId);
323     }
324 
325     public static int countByG_M(long groupId, int messageCount)
326         throws com.liferay.portal.kernel.exception.SystemException {
327         return getPersistence().countByG_M(groupId, messageCount);
328     }
329 
330     public static int countAll()
331         throws com.liferay.portal.kernel.exception.SystemException {
332         return getPersistence().countAll();
333     }
334 
335     public static MBStatsUserPersistence getPersistence() {
336         if (_persistence == null) {
337             _persistence = (MBStatsUserPersistence)PortalBeanLocatorUtil.locate(MBStatsUserPersistence.class.getName());
338         }
339 
340         return _persistence;
341     }
342 
343     public void setPersistence(MBStatsUserPersistence persistence) {
344         _persistence = persistence;
345     }
346 
347     private static MBStatsUserPersistence _persistence;
348 }