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