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.messageboards.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.messageboards.model.MBStatsUser;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the message boards stats user service.
029     *
030     * <p>
031     * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see MBStatsUserPersistence
036     * @see MBStatsUserPersistenceImpl
037     * @generated
038     */
039    public class MBStatsUserUtil {
040            /**
041             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
042             */
043            public static void clearCache() {
044                    getPersistence().clearCache();
045            }
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
049             */
050            public static void clearCache(MBStatsUser mbStatsUser) {
051                    getPersistence().clearCache(mbStatsUser);
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
056             */
057            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
058                    throws SystemException {
059                    return getPersistence().countWithDynamicQuery(dynamicQuery);
060            }
061    
062            /**
063             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
064             */
065            public static List<MBStatsUser> findWithDynamicQuery(
066                    DynamicQuery dynamicQuery) throws SystemException {
067                    return getPersistence().findWithDynamicQuery(dynamicQuery);
068            }
069    
070            /**
071             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
072             */
073            public static List<MBStatsUser> findWithDynamicQuery(
074                    DynamicQuery dynamicQuery, int start, int end)
075                    throws SystemException {
076                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
077            }
078    
079            /**
080             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
081             */
082            public static List<MBStatsUser> findWithDynamicQuery(
083                    DynamicQuery dynamicQuery, int start, int end,
084                    OrderByComparator orderByComparator) throws SystemException {
085                    return getPersistence()
086                                       .findWithDynamicQuery(dynamicQuery, start, end,
087                            orderByComparator);
088            }
089    
090            /**
091             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
092             */
093            public static MBStatsUser remove(MBStatsUser mbStatsUser)
094                    throws SystemException {
095                    return getPersistence().remove(mbStatsUser);
096            }
097    
098            /**
099             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
100             */
101            public static MBStatsUser update(MBStatsUser mbStatsUser, boolean merge)
102                    throws SystemException {
103                    return getPersistence().update(mbStatsUser, merge);
104            }
105    
106            /**
107             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
108             */
109            public static MBStatsUser update(MBStatsUser mbStatsUser, boolean merge,
110                    ServiceContext serviceContext) throws SystemException {
111                    return getPersistence().update(mbStatsUser, merge, serviceContext);
112            }
113    
114            /**
115            * Caches the message boards stats user in the entity cache if it is enabled.
116            *
117            * @param mbStatsUser the message boards stats user to cache
118            */
119            public static void cacheResult(
120                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser) {
121                    getPersistence().cacheResult(mbStatsUser);
122            }
123    
124            /**
125            * Caches the message boards stats users in the entity cache if it is enabled.
126            *
127            * @param mbStatsUsers the message boards stats users to cache
128            */
129            public static void cacheResult(
130                    java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> mbStatsUsers) {
131                    getPersistence().cacheResult(mbStatsUsers);
132            }
133    
134            /**
135            * Creates a new message boards stats user with the primary key.
136            *
137            * @param statsUserId the primary key for the new message boards stats user
138            * @return the new message boards stats user
139            */
140            public static com.liferay.portlet.messageboards.model.MBStatsUser create(
141                    long statsUserId) {
142                    return getPersistence().create(statsUserId);
143            }
144    
145            /**
146            * Removes the message boards stats user with the primary key from the database. Also notifies the appropriate model listeners.
147            *
148            * @param statsUserId the primary key of the message boards stats user to remove
149            * @return the message boards stats user that was removed
150            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
151            * @throws SystemException if a system exception occurred
152            */
153            public static com.liferay.portlet.messageboards.model.MBStatsUser remove(
154                    long statsUserId)
155                    throws com.liferay.portal.kernel.exception.SystemException,
156                            com.liferay.portlet.messageboards.NoSuchStatsUserException {
157                    return getPersistence().remove(statsUserId);
158            }
159    
160            public static com.liferay.portlet.messageboards.model.MBStatsUser updateImpl(
161                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
162                    boolean merge)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return getPersistence().updateImpl(mbStatsUser, merge);
165            }
166    
167            /**
168            * Finds the message boards stats user with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchStatsUserException} if it could not be found.
169            *
170            * @param statsUserId the primary key of the message boards stats user to find
171            * @return the message boards stats user
172            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public static com.liferay.portlet.messageboards.model.MBStatsUser findByPrimaryKey(
176                    long statsUserId)
177                    throws com.liferay.portal.kernel.exception.SystemException,
178                            com.liferay.portlet.messageboards.NoSuchStatsUserException {
179                    return getPersistence().findByPrimaryKey(statsUserId);
180            }
181    
182            /**
183            * Finds the message boards stats user with the primary key or returns <code>null</code> if it could not be found.
184            *
185            * @param statsUserId the primary key of the message boards stats user to find
186            * @return the message boards stats user, or <code>null</code> if a message boards stats user with the primary key could not be found
187            * @throws SystemException if a system exception occurred
188            */
189            public static com.liferay.portlet.messageboards.model.MBStatsUser fetchByPrimaryKey(
190                    long statsUserId)
191                    throws com.liferay.portal.kernel.exception.SystemException {
192                    return getPersistence().fetchByPrimaryKey(statsUserId);
193            }
194    
195            /**
196            * Finds all the message boards stats users where groupId = &#63;.
197            *
198            * @param groupId the group id to search with
199            * @return the matching message boards stats users
200            * @throws SystemException if a system exception occurred
201            */
202            public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
203                    long groupId)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return getPersistence().findByGroupId(groupId);
206            }
207    
208            /**
209            * Finds a range of all the message boards stats users where groupId = &#63;.
210            *
211            * <p>
212            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
213            * </p>
214            *
215            * @param groupId the group id to search with
216            * @param start the lower bound of the range of message boards stats users to return
217            * @param end the upper bound of the range of message boards stats users to return (not inclusive)
218            * @return the range of matching message boards stats users
219            * @throws SystemException if a system exception occurred
220            */
221            public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
222                    long groupId, int start, int end)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return getPersistence().findByGroupId(groupId, start, end);
225            }
226    
227            /**
228            * Finds an ordered range of all the message boards stats users where groupId = &#63;.
229            *
230            * <p>
231            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
232            * </p>
233            *
234            * @param groupId the group id to search with
235            * @param start the lower bound of the range of message boards stats users to return
236            * @param end the upper bound of the range of message boards stats users to return (not inclusive)
237            * @param orderByComparator the comparator to order the results by
238            * @return the ordered range of matching message boards stats users
239            * @throws SystemException if a system exception occurred
240            */
241            public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
242                    long groupId, int start, int end,
243                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return getPersistence()
246                                       .findByGroupId(groupId, start, end, orderByComparator);
247            }
248    
249            /**
250            * Finds the first message boards stats user in the ordered set where groupId = &#63;.
251            *
252            * <p>
253            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
254            * </p>
255            *
256            * @param groupId the group id to search with
257            * @param orderByComparator the comparator to order the set by
258            * @return the first matching message boards stats user
259            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
260            * @throws SystemException if a system exception occurred
261            */
262            public static com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_First(
263                    long groupId,
264                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
265                    throws com.liferay.portal.kernel.exception.SystemException,
266                            com.liferay.portlet.messageboards.NoSuchStatsUserException {
267                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
268            }
269    
270            /**
271            * Finds the last message boards stats user in the ordered set where groupId = &#63;.
272            *
273            * <p>
274            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
275            * </p>
276            *
277            * @param groupId the group id to search with
278            * @param orderByComparator the comparator to order the set by
279            * @return the last matching message boards stats user
280            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
281            * @throws SystemException if a system exception occurred
282            */
283            public static com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_Last(
284                    long groupId,
285                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
286                    throws com.liferay.portal.kernel.exception.SystemException,
287                            com.liferay.portlet.messageboards.NoSuchStatsUserException {
288                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
289            }
290    
291            /**
292            * Finds the message boards stats users before and after the current message boards stats user in the ordered set where groupId = &#63;.
293            *
294            * <p>
295            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
296            * </p>
297            *
298            * @param statsUserId the primary key of the current message boards stats user
299            * @param groupId the group id to search with
300            * @param orderByComparator the comparator to order the set by
301            * @return the previous, current, and next message boards stats user
302            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
303            * @throws SystemException if a system exception occurred
304            */
305            public static com.liferay.portlet.messageboards.model.MBStatsUser[] findByGroupId_PrevAndNext(
306                    long statsUserId, long groupId,
307                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
308                    throws com.liferay.portal.kernel.exception.SystemException,
309                            com.liferay.portlet.messageboards.NoSuchStatsUserException {
310                    return getPersistence()
311                                       .findByGroupId_PrevAndNext(statsUserId, groupId,
312                            orderByComparator);
313            }
314    
315            /**
316            * Finds all the message boards stats users where userId = &#63;.
317            *
318            * @param userId the user id to search with
319            * @return the matching message boards stats users
320            * @throws SystemException if a system exception occurred
321            */
322            public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
323                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
324                    return getPersistence().findByUserId(userId);
325            }
326    
327            /**
328            * Finds a range of all the message boards stats users where userId = &#63;.
329            *
330            * <p>
331            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
332            * </p>
333            *
334            * @param userId the user id to search with
335            * @param start the lower bound of the range of message boards stats users to return
336            * @param end the upper bound of the range of message boards stats users to return (not inclusive)
337            * @return the range of matching message boards stats users
338            * @throws SystemException if a system exception occurred
339            */
340            public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
341                    long userId, int start, int end)
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    return getPersistence().findByUserId(userId, start, end);
344            }
345    
346            /**
347            * Finds an ordered range of all the message boards stats users where userId = &#63;.
348            *
349            * <p>
350            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
351            * </p>
352            *
353            * @param userId the user id to search with
354            * @param start the lower bound of the range of message boards stats users to return
355            * @param end the upper bound of the range of message boards stats users to return (not inclusive)
356            * @param orderByComparator the comparator to order the results by
357            * @return the ordered range of matching message boards stats users
358            * @throws SystemException if a system exception occurred
359            */
360            public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
361                    long userId, int start, int end,
362                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return getPersistence()
365                                       .findByUserId(userId, start, end, orderByComparator);
366            }
367    
368            /**
369            * Finds the first message boards stats user in the ordered set where userId = &#63;.
370            *
371            * <p>
372            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
373            * </p>
374            *
375            * @param userId the user id to search with
376            * @param orderByComparator the comparator to order the set by
377            * @return the first matching message boards stats user
378            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
379            * @throws SystemException if a system exception occurred
380            */
381            public static com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_First(
382                    long userId,
383                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
384                    throws com.liferay.portal.kernel.exception.SystemException,
385                            com.liferay.portlet.messageboards.NoSuchStatsUserException {
386                    return getPersistence().findByUserId_First(userId, orderByComparator);
387            }
388    
389            /**
390            * Finds the last message boards stats user in the ordered set where userId = &#63;.
391            *
392            * <p>
393            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
394            * </p>
395            *
396            * @param userId the user id to search with
397            * @param orderByComparator the comparator to order the set by
398            * @return the last matching message boards stats user
399            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
400            * @throws SystemException if a system exception occurred
401            */
402            public static com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_Last(
403                    long userId,
404                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
405                    throws com.liferay.portal.kernel.exception.SystemException,
406                            com.liferay.portlet.messageboards.NoSuchStatsUserException {
407                    return getPersistence().findByUserId_Last(userId, orderByComparator);
408            }
409    
410            /**
411            * Finds the message boards stats users before and after the current message boards stats user in the ordered set where userId = &#63;.
412            *
413            * <p>
414            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
415            * </p>
416            *
417            * @param statsUserId the primary key of the current message boards stats user
418            * @param userId the user id to search with
419            * @param orderByComparator the comparator to order the set by
420            * @return the previous, current, and next message boards stats user
421            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
422            * @throws SystemException if a system exception occurred
423            */
424            public static com.liferay.portlet.messageboards.model.MBStatsUser[] findByUserId_PrevAndNext(
425                    long statsUserId, long userId,
426                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
427                    throws com.liferay.portal.kernel.exception.SystemException,
428                            com.liferay.portlet.messageboards.NoSuchStatsUserException {
429                    return getPersistence()
430                                       .findByUserId_PrevAndNext(statsUserId, userId,
431                            orderByComparator);
432            }
433    
434            /**
435            * Finds the message boards stats user where groupId = &#63; and userId = &#63; or throws a {@link com.liferay.portlet.messageboards.NoSuchStatsUserException} if it could not be found.
436            *
437            * @param groupId the group id to search with
438            * @param userId the user id to search with
439            * @return the matching message boards stats user
440            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
441            * @throws SystemException if a system exception occurred
442            */
443            public static com.liferay.portlet.messageboards.model.MBStatsUser findByG_U(
444                    long groupId, long userId)
445                    throws com.liferay.portal.kernel.exception.SystemException,
446                            com.liferay.portlet.messageboards.NoSuchStatsUserException {
447                    return getPersistence().findByG_U(groupId, userId);
448            }
449    
450            /**
451            * Finds the message boards stats user where groupId = &#63; and userId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
452            *
453            * @param groupId the group id to search with
454            * @param userId the user id to search with
455            * @return the matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
456            * @throws SystemException if a system exception occurred
457            */
458            public static com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
459                    long groupId, long userId)
460                    throws com.liferay.portal.kernel.exception.SystemException {
461                    return getPersistence().fetchByG_U(groupId, userId);
462            }
463    
464            /**
465            * Finds the message boards stats user where groupId = &#63; and userId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
466            *
467            * @param groupId the group id to search with
468            * @param userId the user id to search with
469            * @return the matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
470            * @throws SystemException if a system exception occurred
471            */
472            public static com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
473                    long groupId, long userId, boolean retrieveFromCache)
474                    throws com.liferay.portal.kernel.exception.SystemException {
475                    return getPersistence().fetchByG_U(groupId, userId, retrieveFromCache);
476            }
477    
478            /**
479            * Finds all the message boards stats users where groupId = &#63; and messageCount &ne; &#63;.
480            *
481            * @param groupId the group id to search with
482            * @param messageCount the message count to search with
483            * @return the matching message boards stats users
484            * @throws SystemException if a system exception occurred
485            */
486            public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotM(
487                    long groupId, int messageCount)
488                    throws com.liferay.portal.kernel.exception.SystemException {
489                    return getPersistence().findByG_NotM(groupId, messageCount);
490            }
491    
492            /**
493            * Finds a range of all the message boards stats users where groupId = &#63; and messageCount &ne; &#63;.
494            *
495            * <p>
496            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
497            * </p>
498            *
499            * @param groupId the group id to search with
500            * @param messageCount the message count to search with
501            * @param start the lower bound of the range of message boards stats users to return
502            * @param end the upper bound of the range of message boards stats users to return (not inclusive)
503            * @return the range of matching message boards stats users
504            * @throws SystemException if a system exception occurred
505            */
506            public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotM(
507                    long groupId, int messageCount, int start, int end)
508                    throws com.liferay.portal.kernel.exception.SystemException {
509                    return getPersistence().findByG_NotM(groupId, messageCount, start, end);
510            }
511    
512            /**
513            * Finds an ordered range of all the message boards stats users where groupId = &#63; and messageCount &ne; &#63;.
514            *
515            * <p>
516            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
517            * </p>
518            *
519            * @param groupId the group id to search with
520            * @param messageCount the message count to search with
521            * @param start the lower bound of the range of message boards stats users to return
522            * @param end the upper bound of the range of message boards stats users to return (not inclusive)
523            * @param orderByComparator the comparator to order the results by
524            * @return the ordered range of matching message boards stats users
525            * @throws SystemException if a system exception occurred
526            */
527            public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotM(
528                    long groupId, int messageCount, int start, int end,
529                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
530                    throws com.liferay.portal.kernel.exception.SystemException {
531                    return getPersistence()
532                                       .findByG_NotM(groupId, messageCount, start, end,
533                            orderByComparator);
534            }
535    
536            /**
537            * Finds the first message boards stats user in the ordered set where groupId = &#63; and messageCount &ne; &#63;.
538            *
539            * <p>
540            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
541            * </p>
542            *
543            * @param groupId the group id to search with
544            * @param messageCount the message count to search with
545            * @param orderByComparator the comparator to order the set by
546            * @return the first matching message boards stats user
547            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
548            * @throws SystemException if a system exception occurred
549            */
550            public static com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotM_First(
551                    long groupId, int messageCount,
552                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
553                    throws com.liferay.portal.kernel.exception.SystemException,
554                            com.liferay.portlet.messageboards.NoSuchStatsUserException {
555                    return getPersistence()
556                                       .findByG_NotM_First(groupId, messageCount, orderByComparator);
557            }
558    
559            /**
560            * Finds the last message boards stats user in the ordered set where groupId = &#63; and messageCount &ne; &#63;.
561            *
562            * <p>
563            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
564            * </p>
565            *
566            * @param groupId the group id to search with
567            * @param messageCount the message count to search with
568            * @param orderByComparator the comparator to order the set by
569            * @return the last matching message boards stats user
570            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
571            * @throws SystemException if a system exception occurred
572            */
573            public static com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotM_Last(
574                    long groupId, int messageCount,
575                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
576                    throws com.liferay.portal.kernel.exception.SystemException,
577                            com.liferay.portlet.messageboards.NoSuchStatsUserException {
578                    return getPersistence()
579                                       .findByG_NotM_Last(groupId, messageCount, orderByComparator);
580            }
581    
582            /**
583            * Finds the message boards stats users before and after the current message boards stats user in the ordered set where groupId = &#63; and messageCount &ne; &#63;.
584            *
585            * <p>
586            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
587            * </p>
588            *
589            * @param statsUserId the primary key of the current message boards stats user
590            * @param groupId the group id to search with
591            * @param messageCount the message count to search with
592            * @param orderByComparator the comparator to order the set by
593            * @return the previous, current, and next message boards stats user
594            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
595            * @throws SystemException if a system exception occurred
596            */
597            public static com.liferay.portlet.messageboards.model.MBStatsUser[] findByG_NotM_PrevAndNext(
598                    long statsUserId, long groupId, int messageCount,
599                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
600                    throws com.liferay.portal.kernel.exception.SystemException,
601                            com.liferay.portlet.messageboards.NoSuchStatsUserException {
602                    return getPersistence()
603                                       .findByG_NotM_PrevAndNext(statsUserId, groupId,
604                            messageCount, orderByComparator);
605            }
606    
607            /**
608            * Finds all the message boards stats users.
609            *
610            * @return the message boards stats users
611            * @throws SystemException if a system exception occurred
612            */
613            public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll()
614                    throws com.liferay.portal.kernel.exception.SystemException {
615                    return getPersistence().findAll();
616            }
617    
618            /**
619            * Finds a range of all the message boards stats users.
620            *
621            * <p>
622            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
623            * </p>
624            *
625            * @param start the lower bound of the range of message boards stats users to return
626            * @param end the upper bound of the range of message boards stats users to return (not inclusive)
627            * @return the range of message boards stats users
628            * @throws SystemException if a system exception occurred
629            */
630            public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
631                    int start, int end)
632                    throws com.liferay.portal.kernel.exception.SystemException {
633                    return getPersistence().findAll(start, end);
634            }
635    
636            /**
637            * Finds an ordered range of all the message boards stats users.
638            *
639            * <p>
640            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
641            * </p>
642            *
643            * @param start the lower bound of the range of message boards stats users to return
644            * @param end the upper bound of the range of message boards stats users to return (not inclusive)
645            * @param orderByComparator the comparator to order the results by
646            * @return the ordered range of message boards stats users
647            * @throws SystemException if a system exception occurred
648            */
649            public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
650                    int start, int end,
651                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
652                    throws com.liferay.portal.kernel.exception.SystemException {
653                    return getPersistence().findAll(start, end, orderByComparator);
654            }
655    
656            /**
657            * Removes all the message boards stats users where groupId = &#63; from the database.
658            *
659            * @param groupId the group id to search with
660            * @throws SystemException if a system exception occurred
661            */
662            public static void removeByGroupId(long groupId)
663                    throws com.liferay.portal.kernel.exception.SystemException {
664                    getPersistence().removeByGroupId(groupId);
665            }
666    
667            /**
668            * Removes all the message boards stats users where userId = &#63; from the database.
669            *
670            * @param userId the user id to search with
671            * @throws SystemException if a system exception occurred
672            */
673            public static void removeByUserId(long userId)
674                    throws com.liferay.portal.kernel.exception.SystemException {
675                    getPersistence().removeByUserId(userId);
676            }
677    
678            /**
679            * Removes the message boards stats user where groupId = &#63; and userId = &#63; from the database.
680            *
681            * @param groupId the group id to search with
682            * @param userId the user id to search with
683            * @throws SystemException if a system exception occurred
684            */
685            public static void removeByG_U(long groupId, long userId)
686                    throws com.liferay.portal.kernel.exception.SystemException,
687                            com.liferay.portlet.messageboards.NoSuchStatsUserException {
688                    getPersistence().removeByG_U(groupId, userId);
689            }
690    
691            /**
692            * Removes all the message boards stats users where groupId = &#63; and messageCount &ne; &#63; from the database.
693            *
694            * @param groupId the group id to search with
695            * @param messageCount the message count to search with
696            * @throws SystemException if a system exception occurred
697            */
698            public static void removeByG_NotM(long groupId, int messageCount)
699                    throws com.liferay.portal.kernel.exception.SystemException {
700                    getPersistence().removeByG_NotM(groupId, messageCount);
701            }
702    
703            /**
704            * Removes all the message boards stats users from the database.
705            *
706            * @throws SystemException if a system exception occurred
707            */
708            public static void removeAll()
709                    throws com.liferay.portal.kernel.exception.SystemException {
710                    getPersistence().removeAll();
711            }
712    
713            /**
714            * Counts all the message boards stats users where groupId = &#63;.
715            *
716            * @param groupId the group id to search with
717            * @return the number of matching message boards stats users
718            * @throws SystemException if a system exception occurred
719            */
720            public static int countByGroupId(long groupId)
721                    throws com.liferay.portal.kernel.exception.SystemException {
722                    return getPersistence().countByGroupId(groupId);
723            }
724    
725            /**
726            * Counts all the message boards stats users where userId = &#63;.
727            *
728            * @param userId the user id to search with
729            * @return the number of matching message boards stats users
730            * @throws SystemException if a system exception occurred
731            */
732            public static int countByUserId(long userId)
733                    throws com.liferay.portal.kernel.exception.SystemException {
734                    return getPersistence().countByUserId(userId);
735            }
736    
737            /**
738            * Counts all the message boards stats users where groupId = &#63; and userId = &#63;.
739            *
740            * @param groupId the group id to search with
741            * @param userId the user id to search with
742            * @return the number of matching message boards stats users
743            * @throws SystemException if a system exception occurred
744            */
745            public static int countByG_U(long groupId, long userId)
746                    throws com.liferay.portal.kernel.exception.SystemException {
747                    return getPersistence().countByG_U(groupId, userId);
748            }
749    
750            /**
751            * Counts all the message boards stats users where groupId = &#63; and messageCount &ne; &#63;.
752            *
753            * @param groupId the group id to search with
754            * @param messageCount the message count to search with
755            * @return the number of matching message boards stats users
756            * @throws SystemException if a system exception occurred
757            */
758            public static int countByG_NotM(long groupId, int messageCount)
759                    throws com.liferay.portal.kernel.exception.SystemException {
760                    return getPersistence().countByG_NotM(groupId, messageCount);
761            }
762    
763            /**
764            * Counts all the message boards stats users.
765            *
766            * @return the number of message boards stats users
767            * @throws SystemException if a system exception occurred
768            */
769            public static int countAll()
770                    throws com.liferay.portal.kernel.exception.SystemException {
771                    return getPersistence().countAll();
772            }
773    
774            public static MBStatsUserPersistence getPersistence() {
775                    if (_persistence == null) {
776                            _persistence = (MBStatsUserPersistence)PortalBeanLocatorUtil.locate(MBStatsUserPersistence.class.getName());
777                    }
778    
779                    return _persistence;
780            }
781    
782            public void setPersistence(MBStatsUserPersistence persistence) {
783                    _persistence = persistence;
784            }
785    
786            private static MBStatsUserPersistence _persistence;
787    }