001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.blogs.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.service.ServiceContext;
022    
023    import com.liferay.portlet.blogs.model.BlogsStatsUser;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       BlogsStatsUserPersistence
030     * @see       BlogsStatsUserPersistenceImpl
031     * @generated
032     */
033    public class BlogsStatsUserUtil {
034            /**
035             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
036             */
037            public static void clearCache() {
038                    getPersistence().clearCache();
039            }
040    
041            /**
042             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
043             */
044            public static void clearCache(BlogsStatsUser blogsStatsUser) {
045                    getPersistence().clearCache(blogsStatsUser);
046            }
047    
048            /**
049             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
050             */
051            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052                    throws SystemException {
053                    return getPersistence().countWithDynamicQuery(dynamicQuery);
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
058             */
059            public static List<BlogsStatsUser> findWithDynamicQuery(
060                    DynamicQuery dynamicQuery) throws SystemException {
061                    return getPersistence().findWithDynamicQuery(dynamicQuery);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
066             */
067            public static List<BlogsStatsUser> findWithDynamicQuery(
068                    DynamicQuery dynamicQuery, int start, int end)
069                    throws SystemException {
070                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071            }
072    
073            /**
074             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
075             */
076            public static List<BlogsStatsUser> findWithDynamicQuery(
077                    DynamicQuery dynamicQuery, int start, int end,
078                    OrderByComparator orderByComparator) throws SystemException {
079                    return getPersistence()
080                                       .findWithDynamicQuery(dynamicQuery, start, end,
081                            orderByComparator);
082            }
083    
084            /**
085             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
086             */
087            public static BlogsStatsUser remove(BlogsStatsUser blogsStatsUser)
088                    throws SystemException {
089                    return getPersistence().remove(blogsStatsUser);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static BlogsStatsUser update(BlogsStatsUser blogsStatsUser,
096                    boolean merge) throws SystemException {
097                    return getPersistence().update(blogsStatsUser, merge);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
102             */
103            public static BlogsStatsUser update(BlogsStatsUser blogsStatsUser,
104                    boolean merge, ServiceContext serviceContext) throws SystemException {
105                    return getPersistence().update(blogsStatsUser, merge, serviceContext);
106            }
107    
108            public static void cacheResult(
109                    com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser) {
110                    getPersistence().cacheResult(blogsStatsUser);
111            }
112    
113            public static void cacheResult(
114                    java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> blogsStatsUsers) {
115                    getPersistence().cacheResult(blogsStatsUsers);
116            }
117    
118            public static com.liferay.portlet.blogs.model.BlogsStatsUser create(
119                    long statsUserId) {
120                    return getPersistence().create(statsUserId);
121            }
122    
123            public static com.liferay.portlet.blogs.model.BlogsStatsUser remove(
124                    long statsUserId)
125                    throws com.liferay.portal.kernel.exception.SystemException,
126                            com.liferay.portlet.blogs.NoSuchStatsUserException {
127                    return getPersistence().remove(statsUserId);
128            }
129    
130            public static com.liferay.portlet.blogs.model.BlogsStatsUser updateImpl(
131                    com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
132                    boolean merge)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return getPersistence().updateImpl(blogsStatsUser, merge);
135            }
136    
137            public static com.liferay.portlet.blogs.model.BlogsStatsUser findByPrimaryKey(
138                    long statsUserId)
139                    throws com.liferay.portal.kernel.exception.SystemException,
140                            com.liferay.portlet.blogs.NoSuchStatsUserException {
141                    return getPersistence().findByPrimaryKey(statsUserId);
142            }
143    
144            public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByPrimaryKey(
145                    long statsUserId)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return getPersistence().fetchByPrimaryKey(statsUserId);
148            }
149    
150            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
151                    long groupId)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return getPersistence().findByGroupId(groupId);
154            }
155    
156            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
157                    long groupId, int start, int end)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return getPersistence().findByGroupId(groupId, start, end);
160            }
161    
162            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
163                    long groupId, int start, int end,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return getPersistence()
167                                       .findByGroupId(groupId, start, end, orderByComparator);
168            }
169    
170            public static com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_First(
171                    long groupId,
172                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173                    throws com.liferay.portal.kernel.exception.SystemException,
174                            com.liferay.portlet.blogs.NoSuchStatsUserException {
175                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
176            }
177    
178            public static com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_Last(
179                    long groupId,
180                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181                    throws com.liferay.portal.kernel.exception.SystemException,
182                            com.liferay.portlet.blogs.NoSuchStatsUserException {
183                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
184            }
185    
186            public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByGroupId_PrevAndNext(
187                    long statsUserId, long groupId,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.blogs.NoSuchStatsUserException {
191                    return getPersistence()
192                                       .findByGroupId_PrevAndNext(statsUserId, groupId,
193                            orderByComparator);
194            }
195    
196            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
197                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
198                    return getPersistence().findByUserId(userId);
199            }
200    
201            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
202                    long userId, int start, int end)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence().findByUserId(userId, start, end);
205            }
206    
207            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
208                    long userId, int start, int end,
209                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return getPersistence()
212                                       .findByUserId(userId, start, end, orderByComparator);
213            }
214    
215            public static com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_First(
216                    long userId,
217                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
218                    throws com.liferay.portal.kernel.exception.SystemException,
219                            com.liferay.portlet.blogs.NoSuchStatsUserException {
220                    return getPersistence().findByUserId_First(userId, orderByComparator);
221            }
222    
223            public static com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_Last(
224                    long userId,
225                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226                    throws com.liferay.portal.kernel.exception.SystemException,
227                            com.liferay.portlet.blogs.NoSuchStatsUserException {
228                    return getPersistence().findByUserId_Last(userId, orderByComparator);
229            }
230    
231            public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByUserId_PrevAndNext(
232                    long statsUserId, long userId,
233                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234                    throws com.liferay.portal.kernel.exception.SystemException,
235                            com.liferay.portlet.blogs.NoSuchStatsUserException {
236                    return getPersistence()
237                                       .findByUserId_PrevAndNext(statsUserId, userId,
238                            orderByComparator);
239            }
240    
241            public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_U(
242                    long groupId, long userId)
243                    throws com.liferay.portal.kernel.exception.SystemException,
244                            com.liferay.portlet.blogs.NoSuchStatsUserException {
245                    return getPersistence().findByG_U(groupId, userId);
246            }
247    
248            public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
249                    long groupId, long userId)
250                    throws com.liferay.portal.kernel.exception.SystemException {
251                    return getPersistence().fetchByG_U(groupId, userId);
252            }
253    
254            public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
255                    long groupId, long userId, boolean retrieveFromCache)
256                    throws com.liferay.portal.kernel.exception.SystemException {
257                    return getPersistence().fetchByG_U(groupId, userId, retrieveFromCache);
258            }
259    
260            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_NotE(
261                    long groupId, int entryCount)
262                    throws com.liferay.portal.kernel.exception.SystemException {
263                    return getPersistence().findByG_NotE(groupId, entryCount);
264            }
265    
266            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_NotE(
267                    long groupId, int entryCount, int start, int end)
268                    throws com.liferay.portal.kernel.exception.SystemException {
269                    return getPersistence().findByG_NotE(groupId, entryCount, start, end);
270            }
271    
272            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_NotE(
273                    long groupId, int entryCount, int start, int end,
274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    return getPersistence()
277                                       .findByG_NotE(groupId, entryCount, start, end,
278                            orderByComparator);
279            }
280    
281            public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_NotE_First(
282                    long groupId, int entryCount,
283                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284                    throws com.liferay.portal.kernel.exception.SystemException,
285                            com.liferay.portlet.blogs.NoSuchStatsUserException {
286                    return getPersistence()
287                                       .findByG_NotE_First(groupId, entryCount, orderByComparator);
288            }
289    
290            public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_NotE_Last(
291                    long groupId, int entryCount,
292                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293                    throws com.liferay.portal.kernel.exception.SystemException,
294                            com.liferay.portlet.blogs.NoSuchStatsUserException {
295                    return getPersistence()
296                                       .findByG_NotE_Last(groupId, entryCount, orderByComparator);
297            }
298    
299            public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByG_NotE_PrevAndNext(
300                    long statsUserId, long groupId, 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                                       .findByG_NotE_PrevAndNext(statsUserId, groupId, entryCount,
306                            orderByComparator);
307            }
308    
309            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_NotE(
310                    long companyId, int entryCount)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return getPersistence().findByC_NotE(companyId, entryCount);
313            }
314    
315            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_NotE(
316                    long companyId, int entryCount, int start, int end)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    return getPersistence().findByC_NotE(companyId, entryCount, start, end);
319            }
320    
321            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_NotE(
322                    long companyId, int entryCount, int start, int end,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return getPersistence()
326                                       .findByC_NotE(companyId, entryCount, start, end,
327                            orderByComparator);
328            }
329    
330            public static com.liferay.portlet.blogs.model.BlogsStatsUser findByC_NotE_First(
331                    long companyId, int entryCount,
332                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
333                    throws com.liferay.portal.kernel.exception.SystemException,
334                            com.liferay.portlet.blogs.NoSuchStatsUserException {
335                    return getPersistence()
336                                       .findByC_NotE_First(companyId, entryCount, orderByComparator);
337            }
338    
339            public static com.liferay.portlet.blogs.model.BlogsStatsUser findByC_NotE_Last(
340                    long companyId, int entryCount,
341                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
342                    throws com.liferay.portal.kernel.exception.SystemException,
343                            com.liferay.portlet.blogs.NoSuchStatsUserException {
344                    return getPersistence()
345                                       .findByC_NotE_Last(companyId, entryCount, orderByComparator);
346            }
347    
348            public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByC_NotE_PrevAndNext(
349                    long statsUserId, long companyId, int entryCount,
350                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
351                    throws com.liferay.portal.kernel.exception.SystemException,
352                            com.liferay.portlet.blogs.NoSuchStatsUserException {
353                    return getPersistence()
354                                       .findByC_NotE_PrevAndNext(statsUserId, companyId,
355                            entryCount, orderByComparator);
356            }
357    
358            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByU_L(
359                    long userId, java.util.Date lastPostDate)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return getPersistence().findByU_L(userId, lastPostDate);
362            }
363    
364            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByU_L(
365                    long userId, java.util.Date lastPostDate, int start, int end)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return getPersistence().findByU_L(userId, lastPostDate, start, end);
368            }
369    
370            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByU_L(
371                    long userId, java.util.Date lastPostDate, int start, int end,
372                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return getPersistence()
375                                       .findByU_L(userId, lastPostDate, start, end,
376                            orderByComparator);
377            }
378    
379            public static com.liferay.portlet.blogs.model.BlogsStatsUser findByU_L_First(
380                    long userId, java.util.Date lastPostDate,
381                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
382                    throws com.liferay.portal.kernel.exception.SystemException,
383                            com.liferay.portlet.blogs.NoSuchStatsUserException {
384                    return getPersistence()
385                                       .findByU_L_First(userId, lastPostDate, orderByComparator);
386            }
387    
388            public static com.liferay.portlet.blogs.model.BlogsStatsUser findByU_L_Last(
389                    long userId, java.util.Date lastPostDate,
390                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
391                    throws com.liferay.portal.kernel.exception.SystemException,
392                            com.liferay.portlet.blogs.NoSuchStatsUserException {
393                    return getPersistence()
394                                       .findByU_L_Last(userId, lastPostDate, orderByComparator);
395            }
396    
397            public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByU_L_PrevAndNext(
398                    long statsUserId, long userId, java.util.Date lastPostDate,
399                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
400                    throws com.liferay.portal.kernel.exception.SystemException,
401                            com.liferay.portlet.blogs.NoSuchStatsUserException {
402                    return getPersistence()
403                                       .findByU_L_PrevAndNext(statsUserId, userId, lastPostDate,
404                            orderByComparator);
405            }
406    
407            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll()
408                    throws com.liferay.portal.kernel.exception.SystemException {
409                    return getPersistence().findAll();
410            }
411    
412            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
413                    int start, int end)
414                    throws com.liferay.portal.kernel.exception.SystemException {
415                    return getPersistence().findAll(start, end);
416            }
417    
418            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
419                    int start, int end,
420                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    return getPersistence().findAll(start, end, orderByComparator);
423            }
424    
425            public static void removeByGroupId(long groupId)
426                    throws com.liferay.portal.kernel.exception.SystemException {
427                    getPersistence().removeByGroupId(groupId);
428            }
429    
430            public static void removeByUserId(long userId)
431                    throws com.liferay.portal.kernel.exception.SystemException {
432                    getPersistence().removeByUserId(userId);
433            }
434    
435            public static void removeByG_U(long groupId, long userId)
436                    throws com.liferay.portal.kernel.exception.SystemException,
437                            com.liferay.portlet.blogs.NoSuchStatsUserException {
438                    getPersistence().removeByG_U(groupId, userId);
439            }
440    
441            public static void removeByG_NotE(long groupId, int entryCount)
442                    throws com.liferay.portal.kernel.exception.SystemException {
443                    getPersistence().removeByG_NotE(groupId, entryCount);
444            }
445    
446            public static void removeByC_NotE(long companyId, int entryCount)
447                    throws com.liferay.portal.kernel.exception.SystemException {
448                    getPersistence().removeByC_NotE(companyId, entryCount);
449            }
450    
451            public static void removeByU_L(long userId, java.util.Date lastPostDate)
452                    throws com.liferay.portal.kernel.exception.SystemException {
453                    getPersistence().removeByU_L(userId, lastPostDate);
454            }
455    
456            public static void removeAll()
457                    throws com.liferay.portal.kernel.exception.SystemException {
458                    getPersistence().removeAll();
459            }
460    
461            public static int countByGroupId(long groupId)
462                    throws com.liferay.portal.kernel.exception.SystemException {
463                    return getPersistence().countByGroupId(groupId);
464            }
465    
466            public static int countByUserId(long userId)
467                    throws com.liferay.portal.kernel.exception.SystemException {
468                    return getPersistence().countByUserId(userId);
469            }
470    
471            public static int countByG_U(long groupId, long userId)
472                    throws com.liferay.portal.kernel.exception.SystemException {
473                    return getPersistence().countByG_U(groupId, userId);
474            }
475    
476            public static int countByG_NotE(long groupId, int entryCount)
477                    throws com.liferay.portal.kernel.exception.SystemException {
478                    return getPersistence().countByG_NotE(groupId, entryCount);
479            }
480    
481            public static int countByC_NotE(long companyId, int entryCount)
482                    throws com.liferay.portal.kernel.exception.SystemException {
483                    return getPersistence().countByC_NotE(companyId, entryCount);
484            }
485    
486            public static int countByU_L(long userId, java.util.Date lastPostDate)
487                    throws com.liferay.portal.kernel.exception.SystemException {
488                    return getPersistence().countByU_L(userId, lastPostDate);
489            }
490    
491            public static int countAll()
492                    throws com.liferay.portal.kernel.exception.SystemException {
493                    return getPersistence().countAll();
494            }
495    
496            public static BlogsStatsUserPersistence getPersistence() {
497                    if (_persistence == null) {
498                            _persistence = (BlogsStatsUserPersistence)PortalBeanLocatorUtil.locate(BlogsStatsUserPersistence.class.getName());
499                    }
500    
501                    return _persistence;
502            }
503    
504            public void setPersistence(BlogsStatsUserPersistence persistence) {
505                    _persistence = persistence;
506            }
507    
508            private static BlogsStatsUserPersistence _persistence;
509    }