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