/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.blogs.service.persistence; import aQute.bnd.annotation.ProviderType; import com.liferay.blogs.model.BlogsStatsUser; import com.liferay.osgi.util.ServiceTrackerFactory; import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.service.ServiceContext; import com.liferay.portal.kernel.util.OrderByComparator; import org.osgi.util.tracker.ServiceTracker; import java.util.Date; import java.util.List; /** * The persistence utility for the blogs stats user service. This utility wraps {@link com.liferay.blogs.service.persistence.impl.BlogsStatsUserPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Brian Wing Shun Chan * @see BlogsStatsUserPersistence * @see com.liferay.blogs.service.persistence.impl.BlogsStatsUserPersistenceImpl * @generated */ @ProviderType public class BlogsStatsUserUtil { /* * NOTE FOR DEVELOPERS: * * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. */ /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache() */ public static void clearCache() { getPersistence().clearCache(); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache(com.liferay.portal.kernel.model.BaseModel) */ public static void clearCache(BlogsStatsUser blogsStatsUser) { getPersistence().clearCache(blogsStatsUser); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) */ public static long countWithDynamicQuery(DynamicQuery dynamicQuery) { return getPersistence().countWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) */ public static List<BlogsStatsUser> findWithDynamicQuery( DynamicQuery dynamicQuery) { return getPersistence().findWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) */ public static List<BlogsStatsUser> findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end) { return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) */ public static List<BlogsStatsUser> findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end, OrderByComparator<BlogsStatsUser> orderByComparator) { return getPersistence() .findWithDynamicQuery(dynamicQuery, start, end, orderByComparator); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel) */ public static BlogsStatsUser update(BlogsStatsUser blogsStatsUser) { return getPersistence().update(blogsStatsUser); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext) */ public static BlogsStatsUser update(BlogsStatsUser blogsStatsUser, ServiceContext serviceContext) { return getPersistence().update(blogsStatsUser, serviceContext); } /** * Returns all the blogs stats users where groupId = ?. * * @param groupId the group ID * @return the matching blogs stats users */ public static List<BlogsStatsUser> findByGroupId(long groupId) { return getPersistence().findByGroupId(groupId); } /** * Returns a range of all the blogs stats users where groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. * </p> * * @param groupId the group ID * @param start the lower bound of the range of blogs stats users * @param end the upper bound of the range of blogs stats users (not inclusive) * @return the range of matching blogs stats users */ public static List<BlogsStatsUser> findByGroupId(long groupId, int start, int end) { return getPersistence().findByGroupId(groupId, start, end); } /** * Returns an ordered range of all the blogs stats users where groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. * </p> * * @param groupId the group ID * @param start the lower bound of the range of blogs stats users * @param end the upper bound of the range of blogs stats users (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching blogs stats users */ public static List<BlogsStatsUser> findByGroupId(long groupId, int start, int end, OrderByComparator<BlogsStatsUser> orderByComparator) { return getPersistence() .findByGroupId(groupId, start, end, orderByComparator); } /** * Returns an ordered range of all the blogs stats users where groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. * </p> * * @param groupId the group ID * @param start the lower bound of the range of blogs stats users * @param end the upper bound of the range of blogs stats users (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching blogs stats users */ public static List<BlogsStatsUser> findByGroupId(long groupId, int start, int end, OrderByComparator<BlogsStatsUser> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findByGroupId(groupId, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first blogs stats user in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching blogs stats user * @throws NoSuchStatsUserException if a matching blogs stats user could not be found */ public static BlogsStatsUser findByGroupId_First(long groupId, OrderByComparator<BlogsStatsUser> orderByComparator) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence().findByGroupId_First(groupId, orderByComparator); } /** * Returns the first blogs stats user in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found */ public static BlogsStatsUser fetchByGroupId_First(long groupId, OrderByComparator<BlogsStatsUser> orderByComparator) { return getPersistence().fetchByGroupId_First(groupId, orderByComparator); } /** * Returns the last blogs stats user in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching blogs stats user * @throws NoSuchStatsUserException if a matching blogs stats user could not be found */ public static BlogsStatsUser findByGroupId_Last(long groupId, OrderByComparator<BlogsStatsUser> orderByComparator) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence().findByGroupId_Last(groupId, orderByComparator); } /** * Returns the last blogs stats user in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found */ public static BlogsStatsUser fetchByGroupId_Last(long groupId, OrderByComparator<BlogsStatsUser> orderByComparator) { return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); } /** * Returns the blogs stats users before and after the current blogs stats user in the ordered set where groupId = ?. * * @param statsUserId the primary key of the current blogs stats user * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next blogs stats user * @throws NoSuchStatsUserException if a blogs stats user with the primary key could not be found */ public static BlogsStatsUser[] findByGroupId_PrevAndNext(long statsUserId, long groupId, OrderByComparator<BlogsStatsUser> orderByComparator) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence() .findByGroupId_PrevAndNext(statsUserId, groupId, orderByComparator); } /** * Removes all the blogs stats users where groupId = ? from the database. * * @param groupId the group ID */ public static void removeByGroupId(long groupId) { getPersistence().removeByGroupId(groupId); } /** * Returns the number of blogs stats users where groupId = ?. * * @param groupId the group ID * @return the number of matching blogs stats users */ public static int countByGroupId(long groupId) { return getPersistence().countByGroupId(groupId); } /** * Returns all the blogs stats users where userId = ?. * * @param userId the user ID * @return the matching blogs stats users */ public static List<BlogsStatsUser> findByUserId(long userId) { return getPersistence().findByUserId(userId); } /** * Returns a range of all the blogs stats users where userId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. * </p> * * @param userId the user ID * @param start the lower bound of the range of blogs stats users * @param end the upper bound of the range of blogs stats users (not inclusive) * @return the range of matching blogs stats users */ public static List<BlogsStatsUser> findByUserId(long userId, int start, int end) { return getPersistence().findByUserId(userId, start, end); } /** * Returns an ordered range of all the blogs stats users where userId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. * </p> * * @param userId the user ID * @param start the lower bound of the range of blogs stats users * @param end the upper bound of the range of blogs stats users (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching blogs stats users */ public static List<BlogsStatsUser> findByUserId(long userId, int start, int end, OrderByComparator<BlogsStatsUser> orderByComparator) { return getPersistence() .findByUserId(userId, start, end, orderByComparator); } /** * Returns an ordered range of all the blogs stats users where userId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. * </p> * * @param userId the user ID * @param start the lower bound of the range of blogs stats users * @param end the upper bound of the range of blogs stats users (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching blogs stats users */ public static List<BlogsStatsUser> findByUserId(long userId, int start, int end, OrderByComparator<BlogsStatsUser> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findByUserId(userId, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first blogs stats user in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching blogs stats user * @throws NoSuchStatsUserException if a matching blogs stats user could not be found */ public static BlogsStatsUser findByUserId_First(long userId, OrderByComparator<BlogsStatsUser> orderByComparator) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence().findByUserId_First(userId, orderByComparator); } /** * Returns the first blogs stats user in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found */ public static BlogsStatsUser fetchByUserId_First(long userId, OrderByComparator<BlogsStatsUser> orderByComparator) { return getPersistence().fetchByUserId_First(userId, orderByComparator); } /** * Returns the last blogs stats user in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching blogs stats user * @throws NoSuchStatsUserException if a matching blogs stats user could not be found */ public static BlogsStatsUser findByUserId_Last(long userId, OrderByComparator<BlogsStatsUser> orderByComparator) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence().findByUserId_Last(userId, orderByComparator); } /** * Returns the last blogs stats user in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found */ public static BlogsStatsUser fetchByUserId_Last(long userId, OrderByComparator<BlogsStatsUser> orderByComparator) { return getPersistence().fetchByUserId_Last(userId, orderByComparator); } /** * Returns the blogs stats users before and after the current blogs stats user in the ordered set where userId = ?. * * @param statsUserId the primary key of the current blogs stats user * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next blogs stats user * @throws NoSuchStatsUserException if a blogs stats user with the primary key could not be found */ public static BlogsStatsUser[] findByUserId_PrevAndNext(long statsUserId, long userId, OrderByComparator<BlogsStatsUser> orderByComparator) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence() .findByUserId_PrevAndNext(statsUserId, userId, orderByComparator); } /** * Removes all the blogs stats users where userId = ? from the database. * * @param userId the user ID */ public static void removeByUserId(long userId) { getPersistence().removeByUserId(userId); } /** * Returns the number of blogs stats users where userId = ?. * * @param userId the user ID * @return the number of matching blogs stats users */ public static int countByUserId(long userId) { return getPersistence().countByUserId(userId); } /** * Returns the blogs stats user where groupId = ? and userId = ? or throws a {@link NoSuchStatsUserException} if it could not be found. * * @param groupId the group ID * @param userId the user ID * @return the matching blogs stats user * @throws NoSuchStatsUserException if a matching blogs stats user could not be found */ public static BlogsStatsUser findByG_U(long groupId, long userId) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence().findByG_U(groupId, userId); } /** * Returns the blogs stats user where groupId = ? and userId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param groupId the group ID * @param userId the user ID * @return the matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found */ public static BlogsStatsUser fetchByG_U(long groupId, long userId) { return getPersistence().fetchByG_U(groupId, userId); } /** * Returns the blogs stats user where groupId = ? and userId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param groupId the group ID * @param userId the user ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found */ public static BlogsStatsUser fetchByG_U(long groupId, long userId, boolean retrieveFromCache) { return getPersistence().fetchByG_U(groupId, userId, retrieveFromCache); } /** * Removes the blogs stats user where groupId = ? and userId = ? from the database. * * @param groupId the group ID * @param userId the user ID * @return the blogs stats user that was removed */ public static BlogsStatsUser removeByG_U(long groupId, long userId) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence().removeByG_U(groupId, userId); } /** * Returns the number of blogs stats users where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @return the number of matching blogs stats users */ public static int countByG_U(long groupId, long userId) { return getPersistence().countByG_U(groupId, userId); } /** * Returns all the blogs stats users where groupId = ? and entryCount ≠ ?. * * @param groupId the group ID * @param entryCount the entry count * @return the matching blogs stats users */ public static List<BlogsStatsUser> findByG_NotE(long groupId, int entryCount) { return getPersistence().findByG_NotE(groupId, entryCount); } /** * Returns a range of all the blogs stats users where groupId = ? and entryCount ≠ ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. * </p> * * @param groupId the group ID * @param entryCount the entry count * @param start the lower bound of the range of blogs stats users * @param end the upper bound of the range of blogs stats users (not inclusive) * @return the range of matching blogs stats users */ public static List<BlogsStatsUser> findByG_NotE(long groupId, int entryCount, int start, int end) { return getPersistence().findByG_NotE(groupId, entryCount, start, end); } /** * Returns an ordered range of all the blogs stats users where groupId = ? and entryCount ≠ ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. * </p> * * @param groupId the group ID * @param entryCount the entry count * @param start the lower bound of the range of blogs stats users * @param end the upper bound of the range of blogs stats users (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching blogs stats users */ public static List<BlogsStatsUser> findByG_NotE(long groupId, int entryCount, int start, int end, OrderByComparator<BlogsStatsUser> orderByComparator) { return getPersistence() .findByG_NotE(groupId, entryCount, start, end, orderByComparator); } /** * Returns an ordered range of all the blogs stats users where groupId = ? and entryCount ≠ ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. * </p> * * @param groupId the group ID * @param entryCount the entry count * @param start the lower bound of the range of blogs stats users * @param end the upper bound of the range of blogs stats users (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching blogs stats users */ public static List<BlogsStatsUser> findByG_NotE(long groupId, int entryCount, int start, int end, OrderByComparator<BlogsStatsUser> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findByG_NotE(groupId, entryCount, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first blogs stats user in the ordered set where groupId = ? and entryCount ≠ ?. * * @param groupId the group ID * @param entryCount the entry count * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching blogs stats user * @throws NoSuchStatsUserException if a matching blogs stats user could not be found */ public static BlogsStatsUser findByG_NotE_First(long groupId, int entryCount, OrderByComparator<BlogsStatsUser> orderByComparator) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence() .findByG_NotE_First(groupId, entryCount, orderByComparator); } /** * Returns the first blogs stats user in the ordered set where groupId = ? and entryCount ≠ ?. * * @param groupId the group ID * @param entryCount the entry count * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found */ public static BlogsStatsUser fetchByG_NotE_First(long groupId, int entryCount, OrderByComparator<BlogsStatsUser> orderByComparator) { return getPersistence() .fetchByG_NotE_First(groupId, entryCount, orderByComparator); } /** * Returns the last blogs stats user in the ordered set where groupId = ? and entryCount ≠ ?. * * @param groupId the group ID * @param entryCount the entry count * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching blogs stats user * @throws NoSuchStatsUserException if a matching blogs stats user could not be found */ public static BlogsStatsUser findByG_NotE_Last(long groupId, int entryCount, OrderByComparator<BlogsStatsUser> orderByComparator) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence() .findByG_NotE_Last(groupId, entryCount, orderByComparator); } /** * Returns the last blogs stats user in the ordered set where groupId = ? and entryCount ≠ ?. * * @param groupId the group ID * @param entryCount the entry count * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found */ public static BlogsStatsUser fetchByG_NotE_Last(long groupId, int entryCount, OrderByComparator<BlogsStatsUser> orderByComparator) { return getPersistence() .fetchByG_NotE_Last(groupId, entryCount, orderByComparator); } /** * Returns the blogs stats users before and after the current blogs stats user in the ordered set where groupId = ? and entryCount ≠ ?. * * @param statsUserId the primary key of the current blogs stats user * @param groupId the group ID * @param entryCount the entry count * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next blogs stats user * @throws NoSuchStatsUserException if a blogs stats user with the primary key could not be found */ public static BlogsStatsUser[] findByG_NotE_PrevAndNext(long statsUserId, long groupId, int entryCount, OrderByComparator<BlogsStatsUser> orderByComparator) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence() .findByG_NotE_PrevAndNext(statsUserId, groupId, entryCount, orderByComparator); } /** * Removes all the blogs stats users where groupId = ? and entryCount ≠ ? from the database. * * @param groupId the group ID * @param entryCount the entry count */ public static void removeByG_NotE(long groupId, int entryCount) { getPersistence().removeByG_NotE(groupId, entryCount); } /** * Returns the number of blogs stats users where groupId = ? and entryCount ≠ ?. * * @param groupId the group ID * @param entryCount the entry count * @return the number of matching blogs stats users */ public static int countByG_NotE(long groupId, int entryCount) { return getPersistence().countByG_NotE(groupId, entryCount); } /** * Returns all the blogs stats users where companyId = ? and entryCount ≠ ?. * * @param companyId the company ID * @param entryCount the entry count * @return the matching blogs stats users */ public static List<BlogsStatsUser> findByC_NotE(long companyId, int entryCount) { return getPersistence().findByC_NotE(companyId, entryCount); } /** * Returns a range of all the blogs stats users where companyId = ? and entryCount ≠ ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. * </p> * * @param companyId the company ID * @param entryCount the entry count * @param start the lower bound of the range of blogs stats users * @param end the upper bound of the range of blogs stats users (not inclusive) * @return the range of matching blogs stats users */ public static List<BlogsStatsUser> findByC_NotE(long companyId, int entryCount, int start, int end) { return getPersistence().findByC_NotE(companyId, entryCount, start, end); } /** * Returns an ordered range of all the blogs stats users where companyId = ? and entryCount ≠ ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. * </p> * * @param companyId the company ID * @param entryCount the entry count * @param start the lower bound of the range of blogs stats users * @param end the upper bound of the range of blogs stats users (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching blogs stats users */ public static List<BlogsStatsUser> findByC_NotE(long companyId, int entryCount, int start, int end, OrderByComparator<BlogsStatsUser> orderByComparator) { return getPersistence() .findByC_NotE(companyId, entryCount, start, end, orderByComparator); } /** * Returns an ordered range of all the blogs stats users where companyId = ? and entryCount ≠ ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. * </p> * * @param companyId the company ID * @param entryCount the entry count * @param start the lower bound of the range of blogs stats users * @param end the upper bound of the range of blogs stats users (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching blogs stats users */ public static List<BlogsStatsUser> findByC_NotE(long companyId, int entryCount, int start, int end, OrderByComparator<BlogsStatsUser> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findByC_NotE(companyId, entryCount, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first blogs stats user in the ordered set where companyId = ? and entryCount ≠ ?. * * @param companyId the company ID * @param entryCount the entry count * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching blogs stats user * @throws NoSuchStatsUserException if a matching blogs stats user could not be found */ public static BlogsStatsUser findByC_NotE_First(long companyId, int entryCount, OrderByComparator<BlogsStatsUser> orderByComparator) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence() .findByC_NotE_First(companyId, entryCount, orderByComparator); } /** * Returns the first blogs stats user in the ordered set where companyId = ? and entryCount ≠ ?. * * @param companyId the company ID * @param entryCount the entry count * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found */ public static BlogsStatsUser fetchByC_NotE_First(long companyId, int entryCount, OrderByComparator<BlogsStatsUser> orderByComparator) { return getPersistence() .fetchByC_NotE_First(companyId, entryCount, orderByComparator); } /** * Returns the last blogs stats user in the ordered set where companyId = ? and entryCount ≠ ?. * * @param companyId the company ID * @param entryCount the entry count * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching blogs stats user * @throws NoSuchStatsUserException if a matching blogs stats user could not be found */ public static BlogsStatsUser findByC_NotE_Last(long companyId, int entryCount, OrderByComparator<BlogsStatsUser> orderByComparator) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence() .findByC_NotE_Last(companyId, entryCount, orderByComparator); } /** * Returns the last blogs stats user in the ordered set where companyId = ? and entryCount ≠ ?. * * @param companyId the company ID * @param entryCount the entry count * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found */ public static BlogsStatsUser fetchByC_NotE_Last(long companyId, int entryCount, OrderByComparator<BlogsStatsUser> orderByComparator) { return getPersistence() .fetchByC_NotE_Last(companyId, entryCount, orderByComparator); } /** * Returns the blogs stats users before and after the current blogs stats user in the ordered set where companyId = ? and entryCount ≠ ?. * * @param statsUserId the primary key of the current blogs stats user * @param companyId the company ID * @param entryCount the entry count * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next blogs stats user * @throws NoSuchStatsUserException if a blogs stats user with the primary key could not be found */ public static BlogsStatsUser[] findByC_NotE_PrevAndNext(long statsUserId, long companyId, int entryCount, OrderByComparator<BlogsStatsUser> orderByComparator) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence() .findByC_NotE_PrevAndNext(statsUserId, companyId, entryCount, orderByComparator); } /** * Removes all the blogs stats users where companyId = ? and entryCount ≠ ? from the database. * * @param companyId the company ID * @param entryCount the entry count */ public static void removeByC_NotE(long companyId, int entryCount) { getPersistence().removeByC_NotE(companyId, entryCount); } /** * Returns the number of blogs stats users where companyId = ? and entryCount ≠ ?. * * @param companyId the company ID * @param entryCount the entry count * @return the number of matching blogs stats users */ public static int countByC_NotE(long companyId, int entryCount) { return getPersistence().countByC_NotE(companyId, entryCount); } /** * Returns all the blogs stats users where userId = ? and lastPostDate = ?. * * @param userId the user ID * @param lastPostDate the last post date * @return the matching blogs stats users */ public static List<BlogsStatsUser> findByU_L(long userId, Date lastPostDate) { return getPersistence().findByU_L(userId, lastPostDate); } /** * Returns a range of all the blogs stats users where userId = ? and lastPostDate = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. * </p> * * @param userId the user ID * @param lastPostDate the last post date * @param start the lower bound of the range of blogs stats users * @param end the upper bound of the range of blogs stats users (not inclusive) * @return the range of matching blogs stats users */ public static List<BlogsStatsUser> findByU_L(long userId, Date lastPostDate, int start, int end) { return getPersistence().findByU_L(userId, lastPostDate, start, end); } /** * Returns an ordered range of all the blogs stats users where userId = ? and lastPostDate = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. * </p> * * @param userId the user ID * @param lastPostDate the last post date * @param start the lower bound of the range of blogs stats users * @param end the upper bound of the range of blogs stats users (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching blogs stats users */ public static List<BlogsStatsUser> findByU_L(long userId, Date lastPostDate, int start, int end, OrderByComparator<BlogsStatsUser> orderByComparator) { return getPersistence() .findByU_L(userId, lastPostDate, start, end, orderByComparator); } /** * Returns an ordered range of all the blogs stats users where userId = ? and lastPostDate = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. * </p> * * @param userId the user ID * @param lastPostDate the last post date * @param start the lower bound of the range of blogs stats users * @param end the upper bound of the range of blogs stats users (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching blogs stats users */ public static List<BlogsStatsUser> findByU_L(long userId, Date lastPostDate, int start, int end, OrderByComparator<BlogsStatsUser> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findByU_L(userId, lastPostDate, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first blogs stats user in the ordered set where userId = ? and lastPostDate = ?. * * @param userId the user ID * @param lastPostDate the last post date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching blogs stats user * @throws NoSuchStatsUserException if a matching blogs stats user could not be found */ public static BlogsStatsUser findByU_L_First(long userId, Date lastPostDate, OrderByComparator<BlogsStatsUser> orderByComparator) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence() .findByU_L_First(userId, lastPostDate, orderByComparator); } /** * Returns the first blogs stats user in the ordered set where userId = ? and lastPostDate = ?. * * @param userId the user ID * @param lastPostDate the last post date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found */ public static BlogsStatsUser fetchByU_L_First(long userId, Date lastPostDate, OrderByComparator<BlogsStatsUser> orderByComparator) { return getPersistence() .fetchByU_L_First(userId, lastPostDate, orderByComparator); } /** * Returns the last blogs stats user in the ordered set where userId = ? and lastPostDate = ?. * * @param userId the user ID * @param lastPostDate the last post date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching blogs stats user * @throws NoSuchStatsUserException if a matching blogs stats user could not be found */ public static BlogsStatsUser findByU_L_Last(long userId, Date lastPostDate, OrderByComparator<BlogsStatsUser> orderByComparator) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence() .findByU_L_Last(userId, lastPostDate, orderByComparator); } /** * Returns the last blogs stats user in the ordered set where userId = ? and lastPostDate = ?. * * @param userId the user ID * @param lastPostDate the last post date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found */ public static BlogsStatsUser fetchByU_L_Last(long userId, Date lastPostDate, OrderByComparator<BlogsStatsUser> orderByComparator) { return getPersistence() .fetchByU_L_Last(userId, lastPostDate, orderByComparator); } /** * Returns the blogs stats users before and after the current blogs stats user in the ordered set where userId = ? and lastPostDate = ?. * * @param statsUserId the primary key of the current blogs stats user * @param userId the user ID * @param lastPostDate the last post date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next blogs stats user * @throws NoSuchStatsUserException if a blogs stats user with the primary key could not be found */ public static BlogsStatsUser[] findByU_L_PrevAndNext(long statsUserId, long userId, Date lastPostDate, OrderByComparator<BlogsStatsUser> orderByComparator) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence() .findByU_L_PrevAndNext(statsUserId, userId, lastPostDate, orderByComparator); } /** * Removes all the blogs stats users where userId = ? and lastPostDate = ? from the database. * * @param userId the user ID * @param lastPostDate the last post date */ public static void removeByU_L(long userId, Date lastPostDate) { getPersistence().removeByU_L(userId, lastPostDate); } /** * Returns the number of blogs stats users where userId = ? and lastPostDate = ?. * * @param userId the user ID * @param lastPostDate the last post date * @return the number of matching blogs stats users */ public static int countByU_L(long userId, Date lastPostDate) { return getPersistence().countByU_L(userId, lastPostDate); } /** * Caches the blogs stats user in the entity cache if it is enabled. * * @param blogsStatsUser the blogs stats user */ public static void cacheResult(BlogsStatsUser blogsStatsUser) { getPersistence().cacheResult(blogsStatsUser); } /** * Caches the blogs stats users in the entity cache if it is enabled. * * @param blogsStatsUsers the blogs stats users */ public static void cacheResult(List<BlogsStatsUser> blogsStatsUsers) { getPersistence().cacheResult(blogsStatsUsers); } /** * Creates a new blogs stats user with the primary key. Does not add the blogs stats user to the database. * * @param statsUserId the primary key for the new blogs stats user * @return the new blogs stats user */ public static BlogsStatsUser create(long statsUserId) { return getPersistence().create(statsUserId); } /** * Removes the blogs stats user with the primary key from the database. Also notifies the appropriate model listeners. * * @param statsUserId the primary key of the blogs stats user * @return the blogs stats user that was removed * @throws NoSuchStatsUserException if a blogs stats user with the primary key could not be found */ public static BlogsStatsUser remove(long statsUserId) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence().remove(statsUserId); } public static BlogsStatsUser updateImpl(BlogsStatsUser blogsStatsUser) { return getPersistence().updateImpl(blogsStatsUser); } /** * Returns the blogs stats user with the primary key or throws a {@link NoSuchStatsUserException} if it could not be found. * * @param statsUserId the primary key of the blogs stats user * @return the blogs stats user * @throws NoSuchStatsUserException if a blogs stats user with the primary key could not be found */ public static BlogsStatsUser findByPrimaryKey(long statsUserId) throws com.liferay.blogs.exception.NoSuchStatsUserException { return getPersistence().findByPrimaryKey(statsUserId); } /** * Returns the blogs stats user with the primary key or returns <code>null</code> if it could not be found. * * @param statsUserId the primary key of the blogs stats user * @return the blogs stats user, or <code>null</code> if a blogs stats user with the primary key could not be found */ public static BlogsStatsUser fetchByPrimaryKey(long statsUserId) { return getPersistence().fetchByPrimaryKey(statsUserId); } public static java.util.Map<java.io.Serializable, BlogsStatsUser> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys) { return getPersistence().fetchByPrimaryKeys(primaryKeys); } /** * Returns all the blogs stats users. * * @return the blogs stats users */ public static List<BlogsStatsUser> findAll() { return getPersistence().findAll(); } /** * Returns a range of all the blogs stats users. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. * </p> * * @param start the lower bound of the range of blogs stats users * @param end the upper bound of the range of blogs stats users (not inclusive) * @return the range of blogs stats users */ public static List<BlogsStatsUser> findAll(int start, int end) { return getPersistence().findAll(start, end); } /** * Returns an ordered range of all the blogs stats users. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. * </p> * * @param start the lower bound of the range of blogs stats users * @param end the upper bound of the range of blogs stats users (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of blogs stats users */ public static List<BlogsStatsUser> findAll(int start, int end, OrderByComparator<BlogsStatsUser> orderByComparator) { return getPersistence().findAll(start, end, orderByComparator); } /** * Returns an ordered range of all the blogs stats users. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. * </p> * * @param start the lower bound of the range of blogs stats users * @param end the upper bound of the range of blogs stats users (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of blogs stats users */ public static List<BlogsStatsUser> findAll(int start, int end, OrderByComparator<BlogsStatsUser> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findAll(start, end, orderByComparator, retrieveFromCache); } /** * Removes all the blogs stats users from the database. */ public static void removeAll() { getPersistence().removeAll(); } /** * Returns the number of blogs stats users. * * @return the number of blogs stats users */ public static int countAll() { return getPersistence().countAll(); } public static BlogsStatsUserPersistence getPersistence() { return _serviceTracker.getService(); } private static ServiceTracker<BlogsStatsUserPersistence, BlogsStatsUserPersistence> _serviceTracker = ServiceTrackerFactory.open(BlogsStatsUserPersistence.class); }