001    /**
002     * Copyright (c) 2000-present 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.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.messageboards.model.MBStatsUser;
022    
023    /**
024     * The persistence interface for the message boards stats user service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see MBStatsUserPersistenceImpl
032     * @see MBStatsUserUtil
033     * @generated
034     */
035    @ProviderType
036    public interface MBStatsUserPersistence extends BasePersistence<MBStatsUser> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * Never modify or reference this interface directly. Always use {@link MBStatsUserUtil} to access the message boards stats user persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
041             */
042    
043            /**
044            * Returns all the message boards stats users where groupId = &#63;.
045            *
046            * @param groupId the group ID
047            * @return the matching message boards stats users
048            */
049            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
050                    long groupId);
051    
052            /**
053            * Returns a range of all the message boards stats users where groupId = &#63;.
054            *
055            * <p>
056            * 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.
057            * </p>
058            *
059            * @param groupId the group ID
060            * @param start the lower bound of the range of message boards stats users
061            * @param end the upper bound of the range of message boards stats users (not inclusive)
062            * @return the range of matching message boards stats users
063            */
064            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
065                    long groupId, int start, int end);
066    
067            /**
068            * Returns an ordered range of all the message boards stats users where groupId = &#63;.
069            *
070            * <p>
071            * 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.
072            * </p>
073            *
074            * @param groupId the group ID
075            * @param start the lower bound of the range of message boards stats users
076            * @param end the upper bound of the range of message boards stats users (not inclusive)
077            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
078            * @return the ordered range of matching message boards stats users
079            */
080            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
081                    long groupId, int start, int end,
082                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator);
083    
084            /**
085            * Returns the first message boards stats user in the ordered set where groupId = &#63;.
086            *
087            * @param groupId the group ID
088            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
089            * @return the first matching message boards stats user
090            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
091            */
092            public com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_First(
093                    long groupId,
094                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator)
095                    throws com.liferay.portlet.messageboards.NoSuchStatsUserException;
096    
097            /**
098            * Returns the first message boards stats user in the ordered set where groupId = &#63;.
099            *
100            * @param groupId the group ID
101            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
102            * @return the first matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
103            */
104            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByGroupId_First(
105                    long groupId,
106                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator);
107    
108            /**
109            * Returns the last message boards stats user in the ordered set where groupId = &#63;.
110            *
111            * @param groupId the group ID
112            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
113            * @return the last matching message boards stats user
114            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
115            */
116            public com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_Last(
117                    long groupId,
118                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator)
119                    throws com.liferay.portlet.messageboards.NoSuchStatsUserException;
120    
121            /**
122            * Returns the last message boards stats user in the ordered set where groupId = &#63;.
123            *
124            * @param groupId the group ID
125            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
126            * @return the last matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
127            */
128            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByGroupId_Last(
129                    long groupId,
130                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator);
131    
132            /**
133            * Returns the message boards stats users before and after the current message boards stats user in the ordered set where groupId = &#63;.
134            *
135            * @param statsUserId the primary key of the current message boards stats user
136            * @param groupId the group ID
137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
138            * @return the previous, current, and next message boards stats user
139            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
140            */
141            public com.liferay.portlet.messageboards.model.MBStatsUser[] findByGroupId_PrevAndNext(
142                    long statsUserId, long groupId,
143                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator)
144                    throws com.liferay.portlet.messageboards.NoSuchStatsUserException;
145    
146            /**
147            * Removes all the message boards stats users where groupId = &#63; from the database.
148            *
149            * @param groupId the group ID
150            */
151            public void removeByGroupId(long groupId);
152    
153            /**
154            * Returns the number of message boards stats users where groupId = &#63;.
155            *
156            * @param groupId the group ID
157            * @return the number of matching message boards stats users
158            */
159            public int countByGroupId(long groupId);
160    
161            /**
162            * Returns all the message boards stats users where userId = &#63;.
163            *
164            * @param userId the user ID
165            * @return the matching message boards stats users
166            */
167            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
168                    long userId);
169    
170            /**
171            * Returns a range of all the message boards stats users where userId = &#63;.
172            *
173            * <p>
174            * 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.
175            * </p>
176            *
177            * @param userId the user ID
178            * @param start the lower bound of the range of message boards stats users
179            * @param end the upper bound of the range of message boards stats users (not inclusive)
180            * @return the range of matching message boards stats users
181            */
182            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
183                    long userId, int start, int end);
184    
185            /**
186            * Returns an ordered range of all the message boards stats users where userId = &#63;.
187            *
188            * <p>
189            * 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.
190            * </p>
191            *
192            * @param userId the user ID
193            * @param start the lower bound of the range of message boards stats users
194            * @param end the upper bound of the range of message boards stats users (not inclusive)
195            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
196            * @return the ordered range of matching message boards stats users
197            */
198            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
199                    long userId, int start, int end,
200                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator);
201    
202            /**
203            * Returns the first message boards stats user in the ordered set where userId = &#63;.
204            *
205            * @param userId the user ID
206            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
207            * @return the first matching message boards stats user
208            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
209            */
210            public com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_First(
211                    long userId,
212                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator)
213                    throws com.liferay.portlet.messageboards.NoSuchStatsUserException;
214    
215            /**
216            * Returns the first message boards stats user in the ordered set where userId = &#63;.
217            *
218            * @param userId the user ID
219            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
220            * @return the first matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
221            */
222            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByUserId_First(
223                    long userId,
224                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator);
225    
226            /**
227            * Returns the last message boards stats user in the ordered set where userId = &#63;.
228            *
229            * @param userId the user ID
230            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
231            * @return the last matching message boards stats user
232            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
233            */
234            public com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_Last(
235                    long userId,
236                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator)
237                    throws com.liferay.portlet.messageboards.NoSuchStatsUserException;
238    
239            /**
240            * Returns the last message boards stats user in the ordered set where userId = &#63;.
241            *
242            * @param userId the user ID
243            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
244            * @return the last matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
245            */
246            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByUserId_Last(
247                    long userId,
248                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator);
249    
250            /**
251            * Returns the message boards stats users before and after the current message boards stats user in the ordered set where userId = &#63;.
252            *
253            * @param statsUserId the primary key of the current message boards stats user
254            * @param userId the user ID
255            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
256            * @return the previous, current, and next message boards stats user
257            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
258            */
259            public com.liferay.portlet.messageboards.model.MBStatsUser[] findByUserId_PrevAndNext(
260                    long statsUserId, long userId,
261                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator)
262                    throws com.liferay.portlet.messageboards.NoSuchStatsUserException;
263    
264            /**
265            * Removes all the message boards stats users where userId = &#63; from the database.
266            *
267            * @param userId the user ID
268            */
269            public void removeByUserId(long userId);
270    
271            /**
272            * Returns the number of message boards stats users where userId = &#63;.
273            *
274            * @param userId the user ID
275            * @return the number of matching message boards stats users
276            */
277            public int countByUserId(long userId);
278    
279            /**
280            * 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.
281            *
282            * @param groupId the group ID
283            * @param userId the user ID
284            * @return the matching message boards stats user
285            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
286            */
287            public com.liferay.portlet.messageboards.model.MBStatsUser findByG_U(
288                    long groupId, long userId)
289                    throws com.liferay.portlet.messageboards.NoSuchStatsUserException;
290    
291            /**
292            * 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.
293            *
294            * @param groupId the group ID
295            * @param userId the user ID
296            * @return the matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
297            */
298            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
299                    long groupId, long userId);
300    
301            /**
302            * 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.
303            *
304            * @param groupId the group ID
305            * @param userId the user ID
306            * @param retrieveFromCache whether to use the finder cache
307            * @return the matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
308            */
309            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
310                    long groupId, long userId, boolean retrieveFromCache);
311    
312            /**
313            * Removes the message boards stats user where groupId = &#63; and userId = &#63; from the database.
314            *
315            * @param groupId the group ID
316            * @param userId the user ID
317            * @return the message boards stats user that was removed
318            */
319            public com.liferay.portlet.messageboards.model.MBStatsUser removeByG_U(
320                    long groupId, long userId)
321                    throws com.liferay.portlet.messageboards.NoSuchStatsUserException;
322    
323            /**
324            * Returns the number of message boards stats users where groupId = &#63; and userId = &#63;.
325            *
326            * @param groupId the group ID
327            * @param userId the user ID
328            * @return the number of matching message boards stats users
329            */
330            public int countByG_U(long groupId, long userId);
331    
332            /**
333            * Returns all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
334            *
335            * @param groupId the group ID
336            * @param userId the user ID
337            * @param messageCount the message count
338            * @return the matching message boards stats users
339            */
340            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotU_NotM(
341                    long groupId, long userId, int messageCount);
342    
343            /**
344            * Returns a range of all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
345            *
346            * <p>
347            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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.
348            * </p>
349            *
350            * @param groupId the group ID
351            * @param userId the user ID
352            * @param messageCount the message count
353            * @param start the lower bound of the range of message boards stats users
354            * @param end the upper bound of the range of message boards stats users (not inclusive)
355            * @return the range of matching message boards stats users
356            */
357            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotU_NotM(
358                    long groupId, long userId, int messageCount, int start, int end);
359    
360            /**
361            * Returns an ordered range of all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
362            *
363            * <p>
364            * 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.
365            * </p>
366            *
367            * @param groupId the group ID
368            * @param userId the user ID
369            * @param messageCount the message count
370            * @param start the lower bound of the range of message boards stats users
371            * @param end the upper bound of the range of message boards stats users (not inclusive)
372            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
373            * @return the ordered range of matching message boards stats users
374            */
375            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotU_NotM(
376                    long groupId, long userId, int messageCount, int start, int end,
377                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator);
378    
379            /**
380            * Returns the first message boards stats user in the ordered set where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
381            *
382            * @param groupId the group ID
383            * @param userId the user ID
384            * @param messageCount the message count
385            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
386            * @return the first matching message boards stats user
387            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
388            */
389            public com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotU_NotM_First(
390                    long groupId, long userId, int messageCount,
391                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator)
392                    throws com.liferay.portlet.messageboards.NoSuchStatsUserException;
393    
394            /**
395            * Returns the first message boards stats user in the ordered set where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
396            *
397            * @param groupId the group ID
398            * @param userId the user ID
399            * @param messageCount the message count
400            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
401            * @return the first matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
402            */
403            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_NotU_NotM_First(
404                    long groupId, long userId, int messageCount,
405                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator);
406    
407            /**
408            * Returns the last message boards stats user in the ordered set where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
409            *
410            * @param groupId the group ID
411            * @param userId the user ID
412            * @param messageCount the message count
413            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
414            * @return the last matching message boards stats user
415            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found
416            */
417            public com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotU_NotM_Last(
418                    long groupId, long userId, int messageCount,
419                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator)
420                    throws com.liferay.portlet.messageboards.NoSuchStatsUserException;
421    
422            /**
423            * Returns the last message boards stats user in the ordered set where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
424            *
425            * @param groupId the group ID
426            * @param userId the user ID
427            * @param messageCount the message count
428            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
429            * @return the last matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found
430            */
431            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_NotU_NotM_Last(
432                    long groupId, long userId, int messageCount,
433                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator);
434    
435            /**
436            * 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;.
437            *
438            * @param statsUserId the primary key of the current message boards stats user
439            * @param groupId the group ID
440            * @param userId the user ID
441            * @param messageCount the message count
442            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
443            * @return the previous, current, and next message boards stats user
444            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
445            */
446            public com.liferay.portlet.messageboards.model.MBStatsUser[] findByG_NotU_NotM_PrevAndNext(
447                    long statsUserId, long groupId, long userId, int messageCount,
448                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator)
449                    throws com.liferay.portlet.messageboards.NoSuchStatsUserException;
450    
451            /**
452            * Removes all the message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63; from the database.
453            *
454            * @param groupId the group ID
455            * @param userId the user ID
456            * @param messageCount the message count
457            */
458            public void removeByG_NotU_NotM(long groupId, long userId, int messageCount);
459    
460            /**
461            * Returns the number of message boards stats users where groupId = &#63; and userId &ne; &#63; and messageCount &ne; &#63;.
462            *
463            * @param groupId the group ID
464            * @param userId the user ID
465            * @param messageCount the message count
466            * @return the number of matching message boards stats users
467            */
468            public int countByG_NotU_NotM(long groupId, long userId, int messageCount);
469    
470            /**
471            * Caches the message boards stats user in the entity cache if it is enabled.
472            *
473            * @param mbStatsUser the message boards stats user
474            */
475            public void cacheResult(
476                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser);
477    
478            /**
479            * Caches the message boards stats users in the entity cache if it is enabled.
480            *
481            * @param mbStatsUsers the message boards stats users
482            */
483            public void cacheResult(
484                    java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> mbStatsUsers);
485    
486            /**
487            * Creates a new message boards stats user with the primary key. Does not add the message boards stats user to the database.
488            *
489            * @param statsUserId the primary key for the new message boards stats user
490            * @return the new message boards stats user
491            */
492            public com.liferay.portlet.messageboards.model.MBStatsUser create(
493                    long statsUserId);
494    
495            /**
496            * Removes the message boards stats user with the primary key from the database. Also notifies the appropriate model listeners.
497            *
498            * @param statsUserId the primary key of the message boards stats user
499            * @return the message boards stats user that was removed
500            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
501            */
502            public com.liferay.portlet.messageboards.model.MBStatsUser remove(
503                    long statsUserId)
504                    throws com.liferay.portlet.messageboards.NoSuchStatsUserException;
505    
506            public com.liferay.portlet.messageboards.model.MBStatsUser updateImpl(
507                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser);
508    
509            /**
510            * 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.
511            *
512            * @param statsUserId the primary key of the message boards stats user
513            * @return the message boards stats user
514            * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found
515            */
516            public com.liferay.portlet.messageboards.model.MBStatsUser findByPrimaryKey(
517                    long statsUserId)
518                    throws com.liferay.portlet.messageboards.NoSuchStatsUserException;
519    
520            /**
521            * Returns the message boards stats user with the primary key or returns <code>null</code> if it could not be found.
522            *
523            * @param statsUserId the primary key of the message boards stats user
524            * @return the message boards stats user, or <code>null</code> if a message boards stats user with the primary key could not be found
525            */
526            public com.liferay.portlet.messageboards.model.MBStatsUser fetchByPrimaryKey(
527                    long statsUserId);
528    
529            @Override
530            public java.util.Map<java.io.Serializable, com.liferay.portlet.messageboards.model.MBStatsUser> fetchByPrimaryKeys(
531                    java.util.Set<java.io.Serializable> primaryKeys);
532    
533            /**
534            * Returns all the message boards stats users.
535            *
536            * @return the message boards stats users
537            */
538            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll();
539    
540            /**
541            * Returns a range of all the message boards stats users.
542            *
543            * <p>
544            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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.
545            * </p>
546            *
547            * @param start the lower bound of the range of message boards stats users
548            * @param end the upper bound of the range of message boards stats users (not inclusive)
549            * @return the range of message boards stats users
550            */
551            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
552                    int start, int end);
553    
554            /**
555            * Returns an ordered range of all the message boards stats users.
556            *
557            * <p>
558            * 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.
559            * </p>
560            *
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 message boards stats users
565            */
566            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
567                    int start, int end,
568                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBStatsUser> orderByComparator);
569    
570            /**
571            * Removes all the message boards stats users from the database.
572            */
573            public void removeAll();
574    
575            /**
576            * Returns the number of message boards stats users.
577            *
578            * @return the number of message boards stats users
579            */
580            public int countAll();
581    }