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