1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.blogs.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
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.SystemException,
96              com.liferay.portlet.blogs.NoSuchStatsUserException {
97          return getPersistence().remove(statsUserId);
98      }
99  
100     /**
101      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
102      */
103     public static com.liferay.portlet.blogs.model.BlogsStatsUser update(
104         com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
105         throws com.liferay.portal.SystemException {
106         return getPersistence().update(blogsStatsUser);
107     }
108 
109     public static com.liferay.portlet.blogs.model.BlogsStatsUser updateImpl(
110         com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
111         boolean merge) throws com.liferay.portal.SystemException {
112         return getPersistence().updateImpl(blogsStatsUser, merge);
113     }
114 
115     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByPrimaryKey(
116         long statsUserId)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.blogs.NoSuchStatsUserException {
119         return getPersistence().findByPrimaryKey(statsUserId);
120     }
121 
122     public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByPrimaryKey(
123         long statsUserId) throws com.liferay.portal.SystemException {
124         return getPersistence().fetchByPrimaryKey(statsUserId);
125     }
126 
127     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
128         long groupId) throws com.liferay.portal.SystemException {
129         return getPersistence().findByGroupId(groupId);
130     }
131 
132     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
133         long groupId, int start, int end)
134         throws com.liferay.portal.SystemException {
135         return getPersistence().findByGroupId(groupId, start, end);
136     }
137 
138     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
139         long groupId, int start, int end,
140         com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findByGroupId(groupId, start, end, obc);
143     }
144 
145     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_First(
146         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.blogs.NoSuchStatsUserException {
149         return getPersistence().findByGroupId_First(groupId, obc);
150     }
151 
152     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_Last(
153         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.blogs.NoSuchStatsUserException {
156         return getPersistence().findByGroupId_Last(groupId, obc);
157     }
158 
159     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByGroupId_PrevAndNext(
160         long statsUserId, long groupId,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.blogs.NoSuchStatsUserException {
164         return getPersistence()
165                    .findByGroupId_PrevAndNext(statsUserId, groupId, obc);
166     }
167 
168     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
169         long userId) throws com.liferay.portal.SystemException {
170         return getPersistence().findByUserId(userId);
171     }
172 
173     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
174         long userId, int start, int end)
175         throws com.liferay.portal.SystemException {
176         return getPersistence().findByUserId(userId, start, end);
177     }
178 
179     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
180         long userId, int start, int end,
181         com.liferay.portal.kernel.util.OrderByComparator obc)
182         throws com.liferay.portal.SystemException {
183         return getPersistence().findByUserId(userId, start, end, obc);
184     }
185 
186     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_First(
187         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
188         throws com.liferay.portal.SystemException,
189             com.liferay.portlet.blogs.NoSuchStatsUserException {
190         return getPersistence().findByUserId_First(userId, obc);
191     }
192 
193     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_Last(
194         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.SystemException,
196             com.liferay.portlet.blogs.NoSuchStatsUserException {
197         return getPersistence().findByUserId_Last(userId, obc);
198     }
199 
200     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByUserId_PrevAndNext(
201         long statsUserId, long userId,
202         com.liferay.portal.kernel.util.OrderByComparator obc)
203         throws com.liferay.portal.SystemException,
204             com.liferay.portlet.blogs.NoSuchStatsUserException {
205         return getPersistence()
206                    .findByUserId_PrevAndNext(statsUserId, userId, obc);
207     }
208 
209     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_U(
210         long groupId, long userId)
211         throws com.liferay.portal.SystemException,
212             com.liferay.portlet.blogs.NoSuchStatsUserException {
213         return getPersistence().findByG_U(groupId, userId);
214     }
215 
216     public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
217         long groupId, long userId) throws com.liferay.portal.SystemException {
218         return getPersistence().fetchByG_U(groupId, userId);
219     }
220 
221     public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
222         long groupId, long userId, boolean retrieveFromCache)
223         throws com.liferay.portal.SystemException {
224         return getPersistence().fetchByG_U(groupId, userId, retrieveFromCache);
225     }
226 
227     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
228         long groupId, int entryCount) throws com.liferay.portal.SystemException {
229         return getPersistence().findByG_E(groupId, entryCount);
230     }
231 
232     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
233         long groupId, int entryCount, int start, int end)
234         throws com.liferay.portal.SystemException {
235         return getPersistence().findByG_E(groupId, entryCount, start, end);
236     }
237 
238     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
239         long groupId, int entryCount, int start, int end,
240         com.liferay.portal.kernel.util.OrderByComparator obc)
241         throws com.liferay.portal.SystemException {
242         return getPersistence().findByG_E(groupId, entryCount, start, end, obc);
243     }
244 
245     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_First(
246         long groupId, int entryCount,
247         com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException,
249             com.liferay.portlet.blogs.NoSuchStatsUserException {
250         return getPersistence().findByG_E_First(groupId, entryCount, obc);
251     }
252 
253     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_Last(
254         long groupId, int entryCount,
255         com.liferay.portal.kernel.util.OrderByComparator obc)
256         throws com.liferay.portal.SystemException,
257             com.liferay.portlet.blogs.NoSuchStatsUserException {
258         return getPersistence().findByG_E_Last(groupId, entryCount, obc);
259     }
260 
261     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByG_E_PrevAndNext(
262         long statsUserId, long groupId, int entryCount,
263         com.liferay.portal.kernel.util.OrderByComparator obc)
264         throws com.liferay.portal.SystemException,
265             com.liferay.portlet.blogs.NoSuchStatsUserException {
266         return getPersistence()
267                    .findByG_E_PrevAndNext(statsUserId, groupId, entryCount, obc);
268     }
269 
270     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
271         long companyId, int entryCount)
272         throws com.liferay.portal.SystemException {
273         return getPersistence().findByC_E(companyId, entryCount);
274     }
275 
276     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
277         long companyId, int entryCount, int start, int end)
278         throws com.liferay.portal.SystemException {
279         return getPersistence().findByC_E(companyId, entryCount, start, end);
280     }
281 
282     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
283         long companyId, int entryCount, int start, int end,
284         com.liferay.portal.kernel.util.OrderByComparator obc)
285         throws com.liferay.portal.SystemException {
286         return getPersistence().findByC_E(companyId, entryCount, start, end, obc);
287     }
288 
289     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_First(
290         long companyId, int entryCount,
291         com.liferay.portal.kernel.util.OrderByComparator obc)
292         throws com.liferay.portal.SystemException,
293             com.liferay.portlet.blogs.NoSuchStatsUserException {
294         return getPersistence().findByC_E_First(companyId, entryCount, obc);
295     }
296 
297     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_Last(
298         long companyId, int entryCount,
299         com.liferay.portal.kernel.util.OrderByComparator obc)
300         throws com.liferay.portal.SystemException,
301             com.liferay.portlet.blogs.NoSuchStatsUserException {
302         return getPersistence().findByC_E_Last(companyId, entryCount, obc);
303     }
304 
305     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByC_E_PrevAndNext(
306         long statsUserId, long companyId, int entryCount,
307         com.liferay.portal.kernel.util.OrderByComparator obc)
308         throws com.liferay.portal.SystemException,
309             com.liferay.portlet.blogs.NoSuchStatsUserException {
310         return getPersistence()
311                    .findByC_E_PrevAndNext(statsUserId, companyId, entryCount,
312             obc);
313     }
314 
315     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll()
316         throws com.liferay.portal.SystemException {
317         return getPersistence().findAll();
318     }
319 
320     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
321         int start, int end) throws com.liferay.portal.SystemException {
322         return getPersistence().findAll(start, end);
323     }
324 
325     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
326         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
327         throws com.liferay.portal.SystemException {
328         return getPersistence().findAll(start, end, obc);
329     }
330 
331     public static void removeByGroupId(long groupId)
332         throws com.liferay.portal.SystemException {
333         getPersistence().removeByGroupId(groupId);
334     }
335 
336     public static void removeByUserId(long userId)
337         throws com.liferay.portal.SystemException {
338         getPersistence().removeByUserId(userId);
339     }
340 
341     public static void removeByG_U(long groupId, long userId)
342         throws com.liferay.portal.SystemException,
343             com.liferay.portlet.blogs.NoSuchStatsUserException {
344         getPersistence().removeByG_U(groupId, userId);
345     }
346 
347     public static void removeByG_E(long groupId, int entryCount)
348         throws com.liferay.portal.SystemException {
349         getPersistence().removeByG_E(groupId, entryCount);
350     }
351 
352     public static void removeByC_E(long companyId, int entryCount)
353         throws com.liferay.portal.SystemException {
354         getPersistence().removeByC_E(companyId, entryCount);
355     }
356 
357     public static void removeAll() throws com.liferay.portal.SystemException {
358         getPersistence().removeAll();
359     }
360 
361     public static int countByGroupId(long groupId)
362         throws com.liferay.portal.SystemException {
363         return getPersistence().countByGroupId(groupId);
364     }
365 
366     public static int countByUserId(long userId)
367         throws com.liferay.portal.SystemException {
368         return getPersistence().countByUserId(userId);
369     }
370 
371     public static int countByG_U(long groupId, long userId)
372         throws com.liferay.portal.SystemException {
373         return getPersistence().countByG_U(groupId, userId);
374     }
375 
376     public static int countByG_E(long groupId, int entryCount)
377         throws com.liferay.portal.SystemException {
378         return getPersistence().countByG_E(groupId, entryCount);
379     }
380 
381     public static int countByC_E(long companyId, int entryCount)
382         throws com.liferay.portal.SystemException {
383         return getPersistence().countByC_E(companyId, entryCount);
384     }
385 
386     public static int countAll() throws com.liferay.portal.SystemException {
387         return getPersistence().countAll();
388     }
389 
390     public static BlogsStatsUserPersistence getPersistence() {
391         if (_persistence == null) {
392             _persistence = (BlogsStatsUserPersistence)PortalBeanLocatorUtil.locate(BlogsStatsUserPersistence.class.getName());
393         }
394 
395         return _persistence;
396     }
397 
398     public void setPersistence(BlogsStatsUserPersistence persistence) {
399         _persistence = persistence;
400     }
401 
402     private static BlogsStatsUserPersistence _persistence;
403 }