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