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.blogs.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.blogs.model.BlogsStatsUser;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="BlogsStatsUserUtil.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       BlogsStatsUserPersistence
35   * @see       BlogsStatsUserPersistenceImpl
36   * @generated
37   */
38  public class BlogsStatsUserUtil {
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 BlogsStatsUser remove(BlogsStatsUser blogsStatsUser)
66          throws SystemException {
67          return getPersistence().remove(blogsStatsUser);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static BlogsStatsUser update(BlogsStatsUser blogsStatsUser,
74          boolean merge) throws SystemException {
75          return getPersistence().update(blogsStatsUser, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser) {
80          getPersistence().cacheResult(blogsStatsUser);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> blogsStatsUsers) {
85          getPersistence().cacheResult(blogsStatsUsers);
86      }
87  
88      public static com.liferay.portlet.blogs.model.BlogsStatsUser create(
89          long statsUserId) {
90          return getPersistence().create(statsUserId);
91      }
92  
93      public static com.liferay.portlet.blogs.model.BlogsStatsUser remove(
94          long statsUserId)
95          throws com.liferay.portal.kernel.exception.SystemException,
96              com.liferay.portlet.blogs.NoSuchStatsUserException {
97          return getPersistence().remove(statsUserId);
98      }
99  
100     public static com.liferay.portlet.blogs.model.BlogsStatsUser updateImpl(
101         com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(blogsStatsUser, merge);
105     }
106 
107     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByPrimaryKey(
108         long statsUserId)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.blogs.NoSuchStatsUserException {
111         return getPersistence().findByPrimaryKey(statsUserId);
112     }
113 
114     public static com.liferay.portlet.blogs.model.BlogsStatsUser 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.blogs.model.BlogsStatsUser> 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.blogs.model.BlogsStatsUser> 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.blogs.model.BlogsStatsUser> 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.blogs.model.BlogsStatsUser findByGroupId_First(
140         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.kernel.exception.SystemException,
142             com.liferay.portlet.blogs.NoSuchStatsUserException {
143         return getPersistence().findByGroupId_First(groupId, obc);
144     }
145 
146     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_Last(
147         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.kernel.exception.SystemException,
149             com.liferay.portlet.blogs.NoSuchStatsUserException {
150         return getPersistence().findByGroupId_Last(groupId, obc);
151     }
152 
153     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] 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.blogs.NoSuchStatsUserException {
158         return getPersistence()
159                    .findByGroupId_PrevAndNext(statsUserId, groupId, obc);
160     }
161 
162     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> 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.blogs.model.BlogsStatsUser> 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.blogs.model.BlogsStatsUser> 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.blogs.model.BlogsStatsUser findByUserId_First(
181         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
182         throws com.liferay.portal.kernel.exception.SystemException,
183             com.liferay.portlet.blogs.NoSuchStatsUserException {
184         return getPersistence().findByUserId_First(userId, obc);
185     }
186 
187     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_Last(
188         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.kernel.exception.SystemException,
190             com.liferay.portlet.blogs.NoSuchStatsUserException {
191         return getPersistence().findByUserId_Last(userId, obc);
192     }
193 
194     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] 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.blogs.NoSuchStatsUserException {
199         return getPersistence()
200                    .findByUserId_PrevAndNext(statsUserId, userId, obc);
201     }
202 
203     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_U(
204         long groupId, long userId)
205         throws com.liferay.portal.kernel.exception.SystemException,
206             com.liferay.portlet.blogs.NoSuchStatsUserException {
207         return getPersistence().findByG_U(groupId, userId);
208     }
209 
210     public static com.liferay.portlet.blogs.model.BlogsStatsUser 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.blogs.model.BlogsStatsUser 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.blogs.model.BlogsStatsUser> findByG_E(
223         long groupId, int entryCount)
224         throws com.liferay.portal.kernel.exception.SystemException {
225         return getPersistence().findByG_E(groupId, entryCount);
226     }
227 
228     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
229         long groupId, int entryCount, int start, int end)
230         throws com.liferay.portal.kernel.exception.SystemException {
231         return getPersistence().findByG_E(groupId, entryCount, start, end);
232     }
233 
234     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
235         long groupId, int entryCount, int start, int end,
236         com.liferay.portal.kernel.util.OrderByComparator obc)
237         throws com.liferay.portal.kernel.exception.SystemException {
238         return getPersistence().findByG_E(groupId, entryCount, start, end, obc);
239     }
240 
241     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_First(
242         long groupId, int entryCount,
243         com.liferay.portal.kernel.util.OrderByComparator obc)
244         throws com.liferay.portal.kernel.exception.SystemException,
245             com.liferay.portlet.blogs.NoSuchStatsUserException {
246         return getPersistence().findByG_E_First(groupId, entryCount, obc);
247     }
248 
249     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_Last(
250         long groupId, int entryCount,
251         com.liferay.portal.kernel.util.OrderByComparator obc)
252         throws com.liferay.portal.kernel.exception.SystemException,
253             com.liferay.portlet.blogs.NoSuchStatsUserException {
254         return getPersistence().findByG_E_Last(groupId, entryCount, obc);
255     }
256 
257     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByG_E_PrevAndNext(
258         long statsUserId, long groupId, int entryCount,
259         com.liferay.portal.kernel.util.OrderByComparator obc)
260         throws com.liferay.portal.kernel.exception.SystemException,
261             com.liferay.portlet.blogs.NoSuchStatsUserException {
262         return getPersistence()
263                    .findByG_E_PrevAndNext(statsUserId, groupId, entryCount, obc);
264     }
265 
266     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
267         long companyId, int entryCount)
268         throws com.liferay.portal.kernel.exception.SystemException {
269         return getPersistence().findByC_E(companyId, entryCount);
270     }
271 
272     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
273         long companyId, int entryCount, int start, int end)
274         throws com.liferay.portal.kernel.exception.SystemException {
275         return getPersistence().findByC_E(companyId, entryCount, start, end);
276     }
277 
278     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
279         long companyId, int entryCount, int start, int end,
280         com.liferay.portal.kernel.util.OrderByComparator obc)
281         throws com.liferay.portal.kernel.exception.SystemException {
282         return getPersistence().findByC_E(companyId, entryCount, start, end, obc);
283     }
284 
285     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_First(
286         long companyId, int entryCount,
287         com.liferay.portal.kernel.util.OrderByComparator obc)
288         throws com.liferay.portal.kernel.exception.SystemException,
289             com.liferay.portlet.blogs.NoSuchStatsUserException {
290         return getPersistence().findByC_E_First(companyId, entryCount, obc);
291     }
292 
293     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_Last(
294         long companyId, int entryCount,
295         com.liferay.portal.kernel.util.OrderByComparator obc)
296         throws com.liferay.portal.kernel.exception.SystemException,
297             com.liferay.portlet.blogs.NoSuchStatsUserException {
298         return getPersistence().findByC_E_Last(companyId, entryCount, obc);
299     }
300 
301     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByC_E_PrevAndNext(
302         long statsUserId, long companyId, int entryCount,
303         com.liferay.portal.kernel.util.OrderByComparator obc)
304         throws com.liferay.portal.kernel.exception.SystemException,
305             com.liferay.portlet.blogs.NoSuchStatsUserException {
306         return getPersistence()
307                    .findByC_E_PrevAndNext(statsUserId, companyId, entryCount,
308             obc);
309     }
310 
311     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll()
312         throws com.liferay.portal.kernel.exception.SystemException {
313         return getPersistence().findAll();
314     }
315 
316     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
317         int start, int end)
318         throws com.liferay.portal.kernel.exception.SystemException {
319         return getPersistence().findAll(start, end);
320     }
321 
322     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
323         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
324         throws com.liferay.portal.kernel.exception.SystemException {
325         return getPersistence().findAll(start, end, obc);
326     }
327 
328     public static void removeByGroupId(long groupId)
329         throws com.liferay.portal.kernel.exception.SystemException {
330         getPersistence().removeByGroupId(groupId);
331     }
332 
333     public static void removeByUserId(long userId)
334         throws com.liferay.portal.kernel.exception.SystemException {
335         getPersistence().removeByUserId(userId);
336     }
337 
338     public static void removeByG_U(long groupId, long userId)
339         throws com.liferay.portal.kernel.exception.SystemException,
340             com.liferay.portlet.blogs.NoSuchStatsUserException {
341         getPersistence().removeByG_U(groupId, userId);
342     }
343 
344     public static void removeByG_E(long groupId, int entryCount)
345         throws com.liferay.portal.kernel.exception.SystemException {
346         getPersistence().removeByG_E(groupId, entryCount);
347     }
348 
349     public static void removeByC_E(long companyId, int entryCount)
350         throws com.liferay.portal.kernel.exception.SystemException {
351         getPersistence().removeByC_E(companyId, entryCount);
352     }
353 
354     public static void removeAll()
355         throws com.liferay.portal.kernel.exception.SystemException {
356         getPersistence().removeAll();
357     }
358 
359     public static int countByGroupId(long groupId)
360         throws com.liferay.portal.kernel.exception.SystemException {
361         return getPersistence().countByGroupId(groupId);
362     }
363 
364     public static int countByUserId(long userId)
365         throws com.liferay.portal.kernel.exception.SystemException {
366         return getPersistence().countByUserId(userId);
367     }
368 
369     public static int countByG_U(long groupId, long userId)
370         throws com.liferay.portal.kernel.exception.SystemException {
371         return getPersistence().countByG_U(groupId, userId);
372     }
373 
374     public static int countByG_E(long groupId, int entryCount)
375         throws com.liferay.portal.kernel.exception.SystemException {
376         return getPersistence().countByG_E(groupId, entryCount);
377     }
378 
379     public static int countByC_E(long companyId, int entryCount)
380         throws com.liferay.portal.kernel.exception.SystemException {
381         return getPersistence().countByC_E(companyId, entryCount);
382     }
383 
384     public static int countAll()
385         throws com.liferay.portal.kernel.exception.SystemException {
386         return getPersistence().countAll();
387     }
388 
389     public static BlogsStatsUserPersistence getPersistence() {
390         if (_persistence == null) {
391             _persistence = (BlogsStatsUserPersistence)PortalBeanLocatorUtil.locate(BlogsStatsUserPersistence.class.getName());
392         }
393 
394         return _persistence;
395     }
396 
397     public void setPersistence(BlogsStatsUserPersistence persistence) {
398         _persistence = persistence;
399     }
400 
401     private static BlogsStatsUserPersistence _persistence;
402 }