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