1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  /**
26   * <a href="MBStatsUserUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class MBStatsUserUtil {
32      public static com.liferay.portlet.messageboards.model.MBStatsUser create(
33          long statsUserId) {
34          return getPersistence().create(statsUserId);
35      }
36  
37      public static com.liferay.portlet.messageboards.model.MBStatsUser remove(
38          long statsUserId)
39          throws com.liferay.portal.SystemException, 
40              com.liferay.portlet.messageboards.NoSuchStatsUserException {
41          return getPersistence().remove(statsUserId);
42      }
43  
44      public static com.liferay.portlet.messageboards.model.MBStatsUser remove(
45          com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
46          throws com.liferay.portal.SystemException {
47          return getPersistence().remove(mbStatsUser);
48      }
49  
50      public static com.liferay.portlet.messageboards.model.MBStatsUser update(
51          com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
52          throws com.liferay.portal.SystemException {
53          return getPersistence().update(mbStatsUser);
54      }
55  
56      public static com.liferay.portlet.messageboards.model.MBStatsUser update(
57          com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
58          boolean merge) throws com.liferay.portal.SystemException {
59          return getPersistence().update(mbStatsUser, merge);
60      }
61  
62      public static com.liferay.portlet.messageboards.model.MBStatsUser updateImpl(
63          com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
64          boolean merge) throws com.liferay.portal.SystemException {
65          return getPersistence().updateImpl(mbStatsUser, merge);
66      }
67  
68      public static com.liferay.portlet.messageboards.model.MBStatsUser findByPrimaryKey(
69          long statsUserId)
70          throws com.liferay.portal.SystemException, 
71              com.liferay.portlet.messageboards.NoSuchStatsUserException {
72          return getPersistence().findByPrimaryKey(statsUserId);
73      }
74  
75      public static com.liferay.portlet.messageboards.model.MBStatsUser fetchByPrimaryKey(
76          long statsUserId) throws com.liferay.portal.SystemException {
77          return getPersistence().fetchByPrimaryKey(statsUserId);
78      }
79  
80      public static java.util.List findByGroupId(long groupId)
81          throws com.liferay.portal.SystemException {
82          return getPersistence().findByGroupId(groupId);
83      }
84  
85      public static java.util.List findByGroupId(long groupId, int begin, int end)
86          throws com.liferay.portal.SystemException {
87          return getPersistence().findByGroupId(groupId, begin, end);
88      }
89  
90      public static java.util.List findByGroupId(long groupId, int begin,
91          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.SystemException {
93          return getPersistence().findByGroupId(groupId, begin, end, obc);
94      }
95  
96      public static com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_First(
97          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
98          throws com.liferay.portal.SystemException, 
99              com.liferay.portlet.messageboards.NoSuchStatsUserException {
100         return getPersistence().findByGroupId_First(groupId, obc);
101     }
102 
103     public static com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_Last(
104         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.SystemException, 
106             com.liferay.portlet.messageboards.NoSuchStatsUserException {
107         return getPersistence().findByGroupId_Last(groupId, obc);
108     }
109 
110     public static com.liferay.portlet.messageboards.model.MBStatsUser[] findByGroupId_PrevAndNext(
111         long statsUserId, long groupId,
112         com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.SystemException, 
114             com.liferay.portlet.messageboards.NoSuchStatsUserException {
115         return getPersistence().findByGroupId_PrevAndNext(statsUserId, groupId,
116             obc);
117     }
118 
119     public static java.util.List findByUserId(long userId)
120         throws com.liferay.portal.SystemException {
121         return getPersistence().findByUserId(userId);
122     }
123 
124     public static java.util.List findByUserId(long userId, int begin, int end)
125         throws com.liferay.portal.SystemException {
126         return getPersistence().findByUserId(userId, begin, end);
127     }
128 
129     public static java.util.List findByUserId(long userId, int begin, int end,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException {
132         return getPersistence().findByUserId(userId, begin, end, obc);
133     }
134 
135     public static com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_First(
136         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.SystemException, 
138             com.liferay.portlet.messageboards.NoSuchStatsUserException {
139         return getPersistence().findByUserId_First(userId, obc);
140     }
141 
142     public static com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_Last(
143         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.SystemException, 
145             com.liferay.portlet.messageboards.NoSuchStatsUserException {
146         return getPersistence().findByUserId_Last(userId, obc);
147     }
148 
149     public static com.liferay.portlet.messageboards.model.MBStatsUser[] findByUserId_PrevAndNext(
150         long statsUserId, long userId,
151         com.liferay.portal.kernel.util.OrderByComparator obc)
152         throws com.liferay.portal.SystemException, 
153             com.liferay.portlet.messageboards.NoSuchStatsUserException {
154         return getPersistence().findByUserId_PrevAndNext(statsUserId, userId,
155             obc);
156     }
157 
158     public static com.liferay.portlet.messageboards.model.MBStatsUser findByG_U(
159         long groupId, long userId)
160         throws com.liferay.portal.SystemException, 
161             com.liferay.portlet.messageboards.NoSuchStatsUserException {
162         return getPersistence().findByG_U(groupId, userId);
163     }
164 
165     public static com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
166         long groupId, long userId) throws com.liferay.portal.SystemException {
167         return getPersistence().fetchByG_U(groupId, userId);
168     }
169 
170     public static java.util.List findByG_M(long groupId, int messageCount)
171         throws com.liferay.portal.SystemException {
172         return getPersistence().findByG_M(groupId, messageCount);
173     }
174 
175     public static java.util.List findByG_M(long groupId, int messageCount,
176         int begin, int end) throws com.liferay.portal.SystemException {
177         return getPersistence().findByG_M(groupId, messageCount, begin, end);
178     }
179 
180     public static java.util.List findByG_M(long groupId, int messageCount,
181         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
182         throws com.liferay.portal.SystemException {
183         return getPersistence().findByG_M(groupId, messageCount, begin, end, obc);
184     }
185 
186     public static com.liferay.portlet.messageboards.model.MBStatsUser findByG_M_First(
187         long groupId, int messageCount,
188         com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.SystemException, 
190             com.liferay.portlet.messageboards.NoSuchStatsUserException {
191         return getPersistence().findByG_M_First(groupId, messageCount, obc);
192     }
193 
194     public static com.liferay.portlet.messageboards.model.MBStatsUser findByG_M_Last(
195         long groupId, int messageCount,
196         com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.SystemException, 
198             com.liferay.portlet.messageboards.NoSuchStatsUserException {
199         return getPersistence().findByG_M_Last(groupId, messageCount, obc);
200     }
201 
202     public static com.liferay.portlet.messageboards.model.MBStatsUser[] findByG_M_PrevAndNext(
203         long statsUserId, long groupId, int messageCount,
204         com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException, 
206             com.liferay.portlet.messageboards.NoSuchStatsUserException {
207         return getPersistence().findByG_M_PrevAndNext(statsUserId, groupId,
208             messageCount, obc);
209     }
210 
211     public static java.util.List findWithDynamicQuery(
212         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
213         throws com.liferay.portal.SystemException {
214         return getPersistence().findWithDynamicQuery(queryInitializer);
215     }
216 
217     public static java.util.List findWithDynamicQuery(
218         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
219         int begin, int end) throws com.liferay.portal.SystemException {
220         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
221             end);
222     }
223 
224     public static java.util.List findAll()
225         throws com.liferay.portal.SystemException {
226         return getPersistence().findAll();
227     }
228 
229     public static java.util.List findAll(int begin, int end)
230         throws com.liferay.portal.SystemException {
231         return getPersistence().findAll(begin, end);
232     }
233 
234     public static java.util.List findAll(int begin, int end,
235         com.liferay.portal.kernel.util.OrderByComparator obc)
236         throws com.liferay.portal.SystemException {
237         return getPersistence().findAll(begin, end, obc);
238     }
239 
240     public static void removeByGroupId(long groupId)
241         throws com.liferay.portal.SystemException {
242         getPersistence().removeByGroupId(groupId);
243     }
244 
245     public static void removeByUserId(long userId)
246         throws com.liferay.portal.SystemException {
247         getPersistence().removeByUserId(userId);
248     }
249 
250     public static void removeByG_U(long groupId, long userId)
251         throws com.liferay.portal.SystemException, 
252             com.liferay.portlet.messageboards.NoSuchStatsUserException {
253         getPersistence().removeByG_U(groupId, userId);
254     }
255 
256     public static void removeByG_M(long groupId, int messageCount)
257         throws com.liferay.portal.SystemException {
258         getPersistence().removeByG_M(groupId, messageCount);
259     }
260 
261     public static void removeAll() throws com.liferay.portal.SystemException {
262         getPersistence().removeAll();
263     }
264 
265     public static int countByGroupId(long groupId)
266         throws com.liferay.portal.SystemException {
267         return getPersistence().countByGroupId(groupId);
268     }
269 
270     public static int countByUserId(long userId)
271         throws com.liferay.portal.SystemException {
272         return getPersistence().countByUserId(userId);
273     }
274 
275     public static int countByG_U(long groupId, long userId)
276         throws com.liferay.portal.SystemException {
277         return getPersistence().countByG_U(groupId, userId);
278     }
279 
280     public static int countByG_M(long groupId, int messageCount)
281         throws com.liferay.portal.SystemException {
282         return getPersistence().countByG_M(groupId, messageCount);
283     }
284 
285     public static int countAll() throws com.liferay.portal.SystemException {
286         return getPersistence().countAll();
287     }
288 
289     public static MBStatsUserPersistence getPersistence() {
290         return _getUtil()._persistence;
291     }
292 
293     public void setPersistence(MBStatsUserPersistence persistence) {
294         _persistence = persistence;
295     }
296 
297     private static MBStatsUserUtil _getUtil() {
298         if (_util == null) {
299             _util = (MBStatsUserUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
300         }
301 
302         return _util;
303     }
304 
305     private static final String _UTIL = MBStatsUserUtil.class.getName();
306     private static MBStatsUserUtil _util;
307     private MBStatsUserPersistence _persistence;
308 }