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