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