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