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 orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence()
137                    .findByGroupId(groupId, start, end, orderByComparator);
138     }
139 
140     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_First(
141         long groupId,
142         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143         throws com.liferay.portal.kernel.exception.SystemException,
144             com.liferay.portlet.blogs.NoSuchStatsUserException {
145         return getPersistence().findByGroupId_First(groupId, orderByComparator);
146     }
147 
148     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_Last(
149         long groupId,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException,
152             com.liferay.portlet.blogs.NoSuchStatsUserException {
153         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
154     }
155 
156     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByGroupId_PrevAndNext(
157         long statsUserId, long groupId,
158         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159         throws com.liferay.portal.kernel.exception.SystemException,
160             com.liferay.portlet.blogs.NoSuchStatsUserException {
161         return getPersistence()
162                    .findByGroupId_PrevAndNext(statsUserId, groupId,
163             orderByComparator);
164     }
165 
166     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
167         long userId) throws com.liferay.portal.kernel.exception.SystemException {
168         return getPersistence().findByUserId(userId);
169     }
170 
171     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
172         long userId, int start, int end)
173         throws com.liferay.portal.kernel.exception.SystemException {
174         return getPersistence().findByUserId(userId, start, end);
175     }
176 
177     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
178         long userId, int start, int end,
179         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180         throws com.liferay.portal.kernel.exception.SystemException {
181         return getPersistence()
182                    .findByUserId(userId, start, end, orderByComparator);
183     }
184 
185     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_First(
186         long userId,
187         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188         throws com.liferay.portal.kernel.exception.SystemException,
189             com.liferay.portlet.blogs.NoSuchStatsUserException {
190         return getPersistence().findByUserId_First(userId, orderByComparator);
191     }
192 
193     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_Last(
194         long userId,
195         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196         throws com.liferay.portal.kernel.exception.SystemException,
197             com.liferay.portlet.blogs.NoSuchStatsUserException {
198         return getPersistence().findByUserId_Last(userId, orderByComparator);
199     }
200 
201     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByUserId_PrevAndNext(
202         long statsUserId, long userId,
203         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204         throws com.liferay.portal.kernel.exception.SystemException,
205             com.liferay.portlet.blogs.NoSuchStatsUserException {
206         return getPersistence()
207                    .findByUserId_PrevAndNext(statsUserId, userId,
208             orderByComparator);
209     }
210 
211     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_U(
212         long groupId, long userId)
213         throws com.liferay.portal.kernel.exception.SystemException,
214             com.liferay.portlet.blogs.NoSuchStatsUserException {
215         return getPersistence().findByG_U(groupId, userId);
216     }
217 
218     public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
219         long groupId, long userId)
220         throws com.liferay.portal.kernel.exception.SystemException {
221         return getPersistence().fetchByG_U(groupId, userId);
222     }
223 
224     public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
225         long groupId, long userId, boolean retrieveFromCache)
226         throws com.liferay.portal.kernel.exception.SystemException {
227         return getPersistence().fetchByG_U(groupId, userId, retrieveFromCache);
228     }
229 
230     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
231         long groupId, int entryCount)
232         throws com.liferay.portal.kernel.exception.SystemException {
233         return getPersistence().findByG_E(groupId, entryCount);
234     }
235 
236     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
237         long groupId, int entryCount, int start, int end)
238         throws com.liferay.portal.kernel.exception.SystemException {
239         return getPersistence().findByG_E(groupId, entryCount, start, end);
240     }
241 
242     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
243         long groupId, int entryCount, int start, int end,
244         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245         throws com.liferay.portal.kernel.exception.SystemException {
246         return getPersistence()
247                    .findByG_E(groupId, entryCount, start, end, orderByComparator);
248     }
249 
250     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_First(
251         long groupId, int entryCount,
252         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
253         throws com.liferay.portal.kernel.exception.SystemException,
254             com.liferay.portlet.blogs.NoSuchStatsUserException {
255         return getPersistence()
256                    .findByG_E_First(groupId, entryCount, orderByComparator);
257     }
258 
259     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_Last(
260         long groupId, int entryCount,
261         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
262         throws com.liferay.portal.kernel.exception.SystemException,
263             com.liferay.portlet.blogs.NoSuchStatsUserException {
264         return getPersistence()
265                    .findByG_E_Last(groupId, entryCount, orderByComparator);
266     }
267 
268     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByG_E_PrevAndNext(
269         long statsUserId, long groupId, int entryCount,
270         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271         throws com.liferay.portal.kernel.exception.SystemException,
272             com.liferay.portlet.blogs.NoSuchStatsUserException {
273         return getPersistence()
274                    .findByG_E_PrevAndNext(statsUserId, groupId, entryCount,
275             orderByComparator);
276     }
277 
278     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
279         long companyId, int entryCount)
280         throws com.liferay.portal.kernel.exception.SystemException {
281         return getPersistence().findByC_E(companyId, entryCount);
282     }
283 
284     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
285         long companyId, int entryCount, int start, int end)
286         throws com.liferay.portal.kernel.exception.SystemException {
287         return getPersistence().findByC_E(companyId, entryCount, start, end);
288     }
289 
290     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
291         long companyId, int entryCount, int start, int end,
292         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293         throws com.liferay.portal.kernel.exception.SystemException {
294         return getPersistence()
295                    .findByC_E(companyId, entryCount, start, end,
296             orderByComparator);
297     }
298 
299     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_First(
300         long companyId, int entryCount,
301         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
302         throws com.liferay.portal.kernel.exception.SystemException,
303             com.liferay.portlet.blogs.NoSuchStatsUserException {
304         return getPersistence()
305                    .findByC_E_First(companyId, entryCount, orderByComparator);
306     }
307 
308     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_Last(
309         long companyId, int entryCount,
310         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311         throws com.liferay.portal.kernel.exception.SystemException,
312             com.liferay.portlet.blogs.NoSuchStatsUserException {
313         return getPersistence()
314                    .findByC_E_Last(companyId, entryCount, orderByComparator);
315     }
316 
317     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByC_E_PrevAndNext(
318         long statsUserId, long companyId, int entryCount,
319         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
320         throws com.liferay.portal.kernel.exception.SystemException,
321             com.liferay.portlet.blogs.NoSuchStatsUserException {
322         return getPersistence()
323                    .findByC_E_PrevAndNext(statsUserId, companyId, entryCount,
324             orderByComparator);
325     }
326 
327     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll()
328         throws com.liferay.portal.kernel.exception.SystemException {
329         return getPersistence().findAll();
330     }
331 
332     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
333         int start, int end)
334         throws com.liferay.portal.kernel.exception.SystemException {
335         return getPersistence().findAll(start, end);
336     }
337 
338     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
339         int start, int end,
340         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
341         throws com.liferay.portal.kernel.exception.SystemException {
342         return getPersistence().findAll(start, end, orderByComparator);
343     }
344 
345     public static void removeByGroupId(long groupId)
346         throws com.liferay.portal.kernel.exception.SystemException {
347         getPersistence().removeByGroupId(groupId);
348     }
349 
350     public static void removeByUserId(long userId)
351         throws com.liferay.portal.kernel.exception.SystemException {
352         getPersistence().removeByUserId(userId);
353     }
354 
355     public static void removeByG_U(long groupId, long userId)
356         throws com.liferay.portal.kernel.exception.SystemException,
357             com.liferay.portlet.blogs.NoSuchStatsUserException {
358         getPersistence().removeByG_U(groupId, userId);
359     }
360 
361     public static void removeByG_E(long groupId, int entryCount)
362         throws com.liferay.portal.kernel.exception.SystemException {
363         getPersistence().removeByG_E(groupId, entryCount);
364     }
365 
366     public static void removeByC_E(long companyId, int entryCount)
367         throws com.liferay.portal.kernel.exception.SystemException {
368         getPersistence().removeByC_E(companyId, entryCount);
369     }
370 
371     public static void removeAll()
372         throws com.liferay.portal.kernel.exception.SystemException {
373         getPersistence().removeAll();
374     }
375 
376     public static int countByGroupId(long groupId)
377         throws com.liferay.portal.kernel.exception.SystemException {
378         return getPersistence().countByGroupId(groupId);
379     }
380 
381     public static int countByUserId(long userId)
382         throws com.liferay.portal.kernel.exception.SystemException {
383         return getPersistence().countByUserId(userId);
384     }
385 
386     public static int countByG_U(long groupId, long userId)
387         throws com.liferay.portal.kernel.exception.SystemException {
388         return getPersistence().countByG_U(groupId, userId);
389     }
390 
391     public static int countByG_E(long groupId, int entryCount)
392         throws com.liferay.portal.kernel.exception.SystemException {
393         return getPersistence().countByG_E(groupId, entryCount);
394     }
395 
396     public static int countByC_E(long companyId, int entryCount)
397         throws com.liferay.portal.kernel.exception.SystemException {
398         return getPersistence().countByC_E(companyId, entryCount);
399     }
400 
401     public static int countAll()
402         throws com.liferay.portal.kernel.exception.SystemException {
403         return getPersistence().countAll();
404     }
405 
406     public static BlogsStatsUserPersistence getPersistence() {
407         if (_persistence == null) {
408             _persistence = (BlogsStatsUserPersistence)PortalBeanLocatorUtil.locate(BlogsStatsUserPersistence.class.getName());
409         }
410 
411         return _persistence;
412     }
413 
414     public void setPersistence(BlogsStatsUserPersistence persistence) {
415         _persistence = persistence;
416     }
417 
418     private static BlogsStatsUserPersistence _persistence;
419 }