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  import com.liferay.portal.kernel.util.ReferenceRegistry;
21  
22  import com.liferay.portlet.blogs.model.BlogsStatsUser;
23  
24  import java.util.List;
25  
26  /**
27   * <a href="BlogsStatsUserUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       BlogsStatsUserPersistence
36   * @see       BlogsStatsUserPersistenceImpl
37   * @generated
38   */
39  public class BlogsStatsUserUtil {
40      /**
41       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
42       */
43      public static void clearCache() {
44          getPersistence().clearCache();
45      }
46  
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(BlogsStatsUser)
49       */
50      public static void clearCache(BlogsStatsUser blogsStatsUser) {
51          getPersistence().clearCache(blogsStatsUser);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
56       */
57      public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().countWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66          throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
72       */
73      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74          int start, int end) throws SystemException {
75          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
80       */
81      public static BlogsStatsUser remove(BlogsStatsUser blogsStatsUser)
82          throws SystemException {
83          return getPersistence().remove(blogsStatsUser);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static BlogsStatsUser update(BlogsStatsUser blogsStatsUser,
90          boolean merge) throws SystemException {
91          return getPersistence().update(blogsStatsUser, merge);
92      }
93  
94      public static void cacheResult(
95          com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser) {
96          getPersistence().cacheResult(blogsStatsUser);
97      }
98  
99      public static void cacheResult(
100         java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> blogsStatsUsers) {
101         getPersistence().cacheResult(blogsStatsUsers);
102     }
103 
104     public static com.liferay.portlet.blogs.model.BlogsStatsUser create(
105         long statsUserId) {
106         return getPersistence().create(statsUserId);
107     }
108 
109     public static com.liferay.portlet.blogs.model.BlogsStatsUser remove(
110         long statsUserId)
111         throws com.liferay.portal.SystemException,
112             com.liferay.portlet.blogs.NoSuchStatsUserException {
113         return getPersistence().remove(statsUserId);
114     }
115 
116     /**
117      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
118      */
119     public static com.liferay.portlet.blogs.model.BlogsStatsUser update(
120         com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
121         throws com.liferay.portal.SystemException {
122         return getPersistence().update(blogsStatsUser);
123     }
124 
125     public static com.liferay.portlet.blogs.model.BlogsStatsUser updateImpl(
126         com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
127         boolean merge) throws com.liferay.portal.SystemException {
128         return getPersistence().updateImpl(blogsStatsUser, merge);
129     }
130 
131     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByPrimaryKey(
132         long statsUserId)
133         throws com.liferay.portal.SystemException,
134             com.liferay.portlet.blogs.NoSuchStatsUserException {
135         return getPersistence().findByPrimaryKey(statsUserId);
136     }
137 
138     public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByPrimaryKey(
139         long statsUserId) throws com.liferay.portal.SystemException {
140         return getPersistence().fetchByPrimaryKey(statsUserId);
141     }
142 
143     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
144         long groupId) throws com.liferay.portal.SystemException {
145         return getPersistence().findByGroupId(groupId);
146     }
147 
148     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
149         long groupId, int start, int end)
150         throws com.liferay.portal.SystemException {
151         return getPersistence().findByGroupId(groupId, start, end);
152     }
153 
154     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
155         long groupId, int start, int end,
156         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157         throws com.liferay.portal.SystemException {
158         return getPersistence()
159                    .findByGroupId(groupId, start, end, orderByComparator);
160     }
161 
162     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_First(
163         long groupId,
164         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165         throws com.liferay.portal.SystemException,
166             com.liferay.portlet.blogs.NoSuchStatsUserException {
167         return getPersistence().findByGroupId_First(groupId, orderByComparator);
168     }
169 
170     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_Last(
171         long groupId,
172         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173         throws com.liferay.portal.SystemException,
174             com.liferay.portlet.blogs.NoSuchStatsUserException {
175         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
176     }
177 
178     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByGroupId_PrevAndNext(
179         long statsUserId, long groupId,
180         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181         throws com.liferay.portal.SystemException,
182             com.liferay.portlet.blogs.NoSuchStatsUserException {
183         return getPersistence()
184                    .findByGroupId_PrevAndNext(statsUserId, groupId,
185             orderByComparator);
186     }
187 
188     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
189         long userId) throws com.liferay.portal.SystemException {
190         return getPersistence().findByUserId(userId);
191     }
192 
193     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
194         long userId, int start, int end)
195         throws com.liferay.portal.SystemException {
196         return getPersistence().findByUserId(userId, start, end);
197     }
198 
199     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
200         long userId, int start, int end,
201         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202         throws com.liferay.portal.SystemException {
203         return getPersistence()
204                    .findByUserId(userId, start, end, orderByComparator);
205     }
206 
207     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_First(
208         long userId,
209         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210         throws com.liferay.portal.SystemException,
211             com.liferay.portlet.blogs.NoSuchStatsUserException {
212         return getPersistence().findByUserId_First(userId, orderByComparator);
213     }
214 
215     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_Last(
216         long userId,
217         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
218         throws com.liferay.portal.SystemException,
219             com.liferay.portlet.blogs.NoSuchStatsUserException {
220         return getPersistence().findByUserId_Last(userId, orderByComparator);
221     }
222 
223     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByUserId_PrevAndNext(
224         long statsUserId, long userId,
225         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226         throws com.liferay.portal.SystemException,
227             com.liferay.portlet.blogs.NoSuchStatsUserException {
228         return getPersistence()
229                    .findByUserId_PrevAndNext(statsUserId, userId,
230             orderByComparator);
231     }
232 
233     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_U(
234         long groupId, long userId)
235         throws com.liferay.portal.SystemException,
236             com.liferay.portlet.blogs.NoSuchStatsUserException {
237         return getPersistence().findByG_U(groupId, userId);
238     }
239 
240     public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
241         long groupId, long userId) throws com.liferay.portal.SystemException {
242         return getPersistence().fetchByG_U(groupId, userId);
243     }
244 
245     public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
246         long groupId, long userId, boolean retrieveFromCache)
247         throws com.liferay.portal.SystemException {
248         return getPersistence().fetchByG_U(groupId, userId, retrieveFromCache);
249     }
250 
251     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
252         long groupId, int entryCount) throws com.liferay.portal.SystemException {
253         return getPersistence().findByG_E(groupId, entryCount);
254     }
255 
256     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
257         long groupId, int entryCount, int start, int end)
258         throws com.liferay.portal.SystemException {
259         return getPersistence().findByG_E(groupId, entryCount, start, end);
260     }
261 
262     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
263         long groupId, int entryCount, int start, int end,
264         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
265         throws com.liferay.portal.SystemException {
266         return getPersistence()
267                    .findByG_E(groupId, entryCount, start, end, orderByComparator);
268     }
269 
270     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_First(
271         long groupId, int entryCount,
272         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273         throws com.liferay.portal.SystemException,
274             com.liferay.portlet.blogs.NoSuchStatsUserException {
275         return getPersistence()
276                    .findByG_E_First(groupId, entryCount, orderByComparator);
277     }
278 
279     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_Last(
280         long groupId, int entryCount,
281         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
282         throws com.liferay.portal.SystemException,
283             com.liferay.portlet.blogs.NoSuchStatsUserException {
284         return getPersistence()
285                    .findByG_E_Last(groupId, entryCount, orderByComparator);
286     }
287 
288     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByG_E_PrevAndNext(
289         long statsUserId, long groupId, int entryCount,
290         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291         throws com.liferay.portal.SystemException,
292             com.liferay.portlet.blogs.NoSuchStatsUserException {
293         return getPersistence()
294                    .findByG_E_PrevAndNext(statsUserId, groupId, entryCount,
295             orderByComparator);
296     }
297 
298     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
299         long companyId, int entryCount)
300         throws com.liferay.portal.SystemException {
301         return getPersistence().findByC_E(companyId, entryCount);
302     }
303 
304     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
305         long companyId, int entryCount, int start, int end)
306         throws com.liferay.portal.SystemException {
307         return getPersistence().findByC_E(companyId, entryCount, start, end);
308     }
309 
310     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
311         long companyId, int entryCount, int start, int end,
312         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
313         throws com.liferay.portal.SystemException {
314         return getPersistence()
315                    .findByC_E(companyId, entryCount, start, end,
316             orderByComparator);
317     }
318 
319     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_First(
320         long companyId, int entryCount,
321         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
322         throws com.liferay.portal.SystemException,
323             com.liferay.portlet.blogs.NoSuchStatsUserException {
324         return getPersistence()
325                    .findByC_E_First(companyId, entryCount, orderByComparator);
326     }
327 
328     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_Last(
329         long companyId, int entryCount,
330         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
331         throws com.liferay.portal.SystemException,
332             com.liferay.portlet.blogs.NoSuchStatsUserException {
333         return getPersistence()
334                    .findByC_E_Last(companyId, entryCount, orderByComparator);
335     }
336 
337     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByC_E_PrevAndNext(
338         long statsUserId, long companyId, int entryCount,
339         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340         throws com.liferay.portal.SystemException,
341             com.liferay.portlet.blogs.NoSuchStatsUserException {
342         return getPersistence()
343                    .findByC_E_PrevAndNext(statsUserId, companyId, entryCount,
344             orderByComparator);
345     }
346 
347     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByU_L(
348         long userId, java.util.Date lastPostDate)
349         throws com.liferay.portal.SystemException {
350         return getPersistence().findByU_L(userId, lastPostDate);
351     }
352 
353     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByU_L(
354         long userId, java.util.Date lastPostDate, int start, int end)
355         throws com.liferay.portal.SystemException {
356         return getPersistence().findByU_L(userId, lastPostDate, start, end);
357     }
358 
359     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByU_L(
360         long userId, java.util.Date lastPostDate, int start, int end,
361         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
362         throws com.liferay.portal.SystemException {
363         return getPersistence()
364                    .findByU_L(userId, lastPostDate, start, end,
365             orderByComparator);
366     }
367 
368     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByU_L_First(
369         long userId, java.util.Date lastPostDate,
370         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
371         throws com.liferay.portal.SystemException,
372             com.liferay.portlet.blogs.NoSuchStatsUserException {
373         return getPersistence()
374                    .findByU_L_First(userId, lastPostDate, orderByComparator);
375     }
376 
377     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByU_L_Last(
378         long userId, java.util.Date lastPostDate,
379         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
380         throws com.liferay.portal.SystemException,
381             com.liferay.portlet.blogs.NoSuchStatsUserException {
382         return getPersistence()
383                    .findByU_L_Last(userId, lastPostDate, orderByComparator);
384     }
385 
386     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByU_L_PrevAndNext(
387         long statsUserId, long userId, java.util.Date lastPostDate,
388         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
389         throws com.liferay.portal.SystemException,
390             com.liferay.portlet.blogs.NoSuchStatsUserException {
391         return getPersistence()
392                    .findByU_L_PrevAndNext(statsUserId, userId, lastPostDate,
393             orderByComparator);
394     }
395 
396     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll()
397         throws com.liferay.portal.SystemException {
398         return getPersistence().findAll();
399     }
400 
401     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
402         int start, int end) throws com.liferay.portal.SystemException {
403         return getPersistence().findAll(start, end);
404     }
405 
406     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
407         int start, int end,
408         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
409         throws com.liferay.portal.SystemException {
410         return getPersistence().findAll(start, end, orderByComparator);
411     }
412 
413     public static void removeByGroupId(long groupId)
414         throws com.liferay.portal.SystemException {
415         getPersistence().removeByGroupId(groupId);
416     }
417 
418     public static void removeByUserId(long userId)
419         throws com.liferay.portal.SystemException {
420         getPersistence().removeByUserId(userId);
421     }
422 
423     public static void removeByG_U(long groupId, long userId)
424         throws com.liferay.portal.SystemException,
425             com.liferay.portlet.blogs.NoSuchStatsUserException {
426         getPersistence().removeByG_U(groupId, userId);
427     }
428 
429     public static void removeByG_E(long groupId, int entryCount)
430         throws com.liferay.portal.SystemException {
431         getPersistence().removeByG_E(groupId, entryCount);
432     }
433 
434     public static void removeByC_E(long companyId, int entryCount)
435         throws com.liferay.portal.SystemException {
436         getPersistence().removeByC_E(companyId, entryCount);
437     }
438 
439     public static void removeByU_L(long userId, java.util.Date lastPostDate)
440         throws com.liferay.portal.SystemException {
441         getPersistence().removeByU_L(userId, lastPostDate);
442     }
443 
444     public static void removeAll() throws com.liferay.portal.SystemException {
445         getPersistence().removeAll();
446     }
447 
448     public static int countByGroupId(long groupId)
449         throws com.liferay.portal.SystemException {
450         return getPersistence().countByGroupId(groupId);
451     }
452 
453     public static int countByUserId(long userId)
454         throws com.liferay.portal.SystemException {
455         return getPersistence().countByUserId(userId);
456     }
457 
458     public static int countByG_U(long groupId, long userId)
459         throws com.liferay.portal.SystemException {
460         return getPersistence().countByG_U(groupId, userId);
461     }
462 
463     public static int countByG_E(long groupId, int entryCount)
464         throws com.liferay.portal.SystemException {
465         return getPersistence().countByG_E(groupId, entryCount);
466     }
467 
468     public static int countByC_E(long companyId, int entryCount)
469         throws com.liferay.portal.SystemException {
470         return getPersistence().countByC_E(companyId, entryCount);
471     }
472 
473     public static int countByU_L(long userId, java.util.Date lastPostDate)
474         throws com.liferay.portal.SystemException {
475         return getPersistence().countByU_L(userId, lastPostDate);
476     }
477 
478     public static int countAll() throws com.liferay.portal.SystemException {
479         return getPersistence().countAll();
480     }
481 
482     public static BlogsStatsUserPersistence getPersistence() {
483         if (_persistence == null) {
484             _persistence = (BlogsStatsUserPersistence)PortalBeanLocatorUtil.locate(BlogsStatsUserPersistence.class.getName());
485 
486             ReferenceRegistry.registerReference(BlogsStatsUserUtil.class,
487                 "_persistence");
488         }
489 
490         return _persistence;
491     }
492 
493     public void setPersistence(BlogsStatsUserPersistence persistence) {
494         _persistence = persistence;
495 
496         ReferenceRegistry.registerReference(BlogsStatsUserUtil.class,
497             "_persistence");
498     }
499 
500     private static BlogsStatsUserPersistence _persistence;
501 }