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