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