/** * 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.document.library.kernel.service.persistence; import aQute.bnd.annotation.ProviderType; import com.liferay.document.library.kernel.exception.NoSuchFileRankException; import com.liferay.document.library.kernel.model.DLFileRank; import com.liferay.portal.kernel.service.persistence.BasePersistence; /** * The persistence interface for the document library file rank service. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Brian Wing Shun Chan * @see com.liferay.portlet.documentlibrary.service.persistence.impl.DLFileRankPersistenceImpl * @see DLFileRankUtil * @generated */ @ProviderType public interface DLFileRankPersistence extends BasePersistence<DLFileRank> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link DLFileRankUtil} to access the document library file rank persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the document library file ranks where userId = ?. * * @param userId the user ID * @return the matching document library file ranks */ public java.util.List<DLFileRank> findByUserId(long userId); /** * Returns a range of all the document library file ranks 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 DLFileRankModelImpl}. 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 document library file ranks * @param end the upper bound of the range of document library file ranks (not inclusive) * @return the range of matching document library file ranks */ public java.util.List<DLFileRank> findByUserId(long userId, int start, int end); /** * Returns an ordered range of all the document library file ranks 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 DLFileRankModelImpl}. 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 document library file ranks * @param end the upper bound of the range of document library file ranks (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching document library file ranks */ public java.util.List<DLFileRank> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator); /** * Returns an ordered range of all the document library file ranks 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 DLFileRankModelImpl}. 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 document library file ranks * @param end the upper bound of the range of document library file ranks (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 document library file ranks */ public java.util.List<DLFileRank> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator, boolean retrieveFromCache); /** * Returns the first document library file rank 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 document library file rank * @throws NoSuchFileRankException if a matching document library file rank could not be found */ public DLFileRank findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator) throws NoSuchFileRankException; /** * Returns the first document library file rank 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 document library file rank, or <code>null</code> if a matching document library file rank could not be found */ public DLFileRank fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator); /** * Returns the last document library file rank 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 document library file rank * @throws NoSuchFileRankException if a matching document library file rank could not be found */ public DLFileRank findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator) throws NoSuchFileRankException; /** * Returns the last document library file rank 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 document library file rank, or <code>null</code> if a matching document library file rank could not be found */ public DLFileRank fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator); /** * Returns the document library file ranks before and after the current document library file rank in the ordered set where userId = ?. * * @param fileRankId the primary key of the current document library file rank * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next document library file rank * @throws NoSuchFileRankException if a document library file rank with the primary key could not be found */ public DLFileRank[] findByUserId_PrevAndNext(long fileRankId, long userId, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator) throws NoSuchFileRankException; /** * Removes all the document library file ranks where userId = ? from the database. * * @param userId the user ID */ public void removeByUserId(long userId); /** * Returns the number of document library file ranks where userId = ?. * * @param userId the user ID * @return the number of matching document library file ranks */ public int countByUserId(long userId); /** * Returns all the document library file ranks where fileEntryId = ?. * * @param fileEntryId the file entry ID * @return the matching document library file ranks */ public java.util.List<DLFileRank> findByFileEntryId(long fileEntryId); /** * Returns a range of all the document library file ranks where fileEntryId = ?. * * <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 DLFileRankModelImpl}. 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 fileEntryId the file entry ID * @param start the lower bound of the range of document library file ranks * @param end the upper bound of the range of document library file ranks (not inclusive) * @return the range of matching document library file ranks */ public java.util.List<DLFileRank> findByFileEntryId(long fileEntryId, int start, int end); /** * Returns an ordered range of all the document library file ranks where fileEntryId = ?. * * <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 DLFileRankModelImpl}. 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 fileEntryId the file entry ID * @param start the lower bound of the range of document library file ranks * @param end the upper bound of the range of document library file ranks (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching document library file ranks */ public java.util.List<DLFileRank> findByFileEntryId(long fileEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator); /** * Returns an ordered range of all the document library file ranks where fileEntryId = ?. * * <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 DLFileRankModelImpl}. 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 fileEntryId the file entry ID * @param start the lower bound of the range of document library file ranks * @param end the upper bound of the range of document library file ranks (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 document library file ranks */ public java.util.List<DLFileRank> findByFileEntryId(long fileEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator, boolean retrieveFromCache); /** * Returns the first document library file rank in the ordered set where fileEntryId = ?. * * @param fileEntryId the file entry ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching document library file rank * @throws NoSuchFileRankException if a matching document library file rank could not be found */ public DLFileRank findByFileEntryId_First(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator) throws NoSuchFileRankException; /** * Returns the first document library file rank in the ordered set where fileEntryId = ?. * * @param fileEntryId the file entry ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found */ public DLFileRank fetchByFileEntryId_First(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator); /** * Returns the last document library file rank in the ordered set where fileEntryId = ?. * * @param fileEntryId the file entry ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching document library file rank * @throws NoSuchFileRankException if a matching document library file rank could not be found */ public DLFileRank findByFileEntryId_Last(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator) throws NoSuchFileRankException; /** * Returns the last document library file rank in the ordered set where fileEntryId = ?. * * @param fileEntryId the file entry ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found */ public DLFileRank fetchByFileEntryId_Last(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator); /** * Returns the document library file ranks before and after the current document library file rank in the ordered set where fileEntryId = ?. * * @param fileRankId the primary key of the current document library file rank * @param fileEntryId the file entry ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next document library file rank * @throws NoSuchFileRankException if a document library file rank with the primary key could not be found */ public DLFileRank[] findByFileEntryId_PrevAndNext(long fileRankId, long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator) throws NoSuchFileRankException; /** * Removes all the document library file ranks where fileEntryId = ? from the database. * * @param fileEntryId the file entry ID */ public void removeByFileEntryId(long fileEntryId); /** * Returns the number of document library file ranks where fileEntryId = ?. * * @param fileEntryId the file entry ID * @return the number of matching document library file ranks */ public int countByFileEntryId(long fileEntryId); /** * Returns all the document library file ranks where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @return the matching document library file ranks */ public java.util.List<DLFileRank> findByG_U(long groupId, long userId); /** * Returns a range of all the document library file ranks where groupId = ? and 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 DLFileRankModelImpl}. 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 userId the user ID * @param start the lower bound of the range of document library file ranks * @param end the upper bound of the range of document library file ranks (not inclusive) * @return the range of matching document library file ranks */ public java.util.List<DLFileRank> findByG_U(long groupId, long userId, int start, int end); /** * Returns an ordered range of all the document library file ranks where groupId = ? and 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 DLFileRankModelImpl}. 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 userId the user ID * @param start the lower bound of the range of document library file ranks * @param end the upper bound of the range of document library file ranks (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching document library file ranks */ public java.util.List<DLFileRank> findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator); /** * Returns an ordered range of all the document library file ranks where groupId = ? and 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 DLFileRankModelImpl}. 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 userId the user ID * @param start the lower bound of the range of document library file ranks * @param end the upper bound of the range of document library file ranks (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 document library file ranks */ public java.util.List<DLFileRank> findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator, boolean retrieveFromCache); /** * Returns the first document library file rank in the ordered set where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching document library file rank * @throws NoSuchFileRankException if a matching document library file rank could not be found */ public DLFileRank findByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator) throws NoSuchFileRankException; /** * Returns the first document library file rank in the ordered set where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found */ public DLFileRank fetchByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator); /** * Returns the last document library file rank in the ordered set where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching document library file rank * @throws NoSuchFileRankException if a matching document library file rank could not be found */ public DLFileRank findByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator) throws NoSuchFileRankException; /** * Returns the last document library file rank in the ordered set where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found */ public DLFileRank fetchByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator); /** * Returns the document library file ranks before and after the current document library file rank in the ordered set where groupId = ? and userId = ?. * * @param fileRankId the primary key of the current document library file rank * @param groupId the group ID * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next document library file rank * @throws NoSuchFileRankException if a document library file rank with the primary key could not be found */ public DLFileRank[] findByG_U_PrevAndNext(long fileRankId, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator) throws NoSuchFileRankException; /** * Removes all the document library file ranks where groupId = ? and userId = ? from the database. * * @param groupId the group ID * @param userId the user ID */ public void removeByG_U(long groupId, long userId); /** * Returns the number of document library file ranks where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @return the number of matching document library file ranks */ public int countByG_U(long groupId, long userId); /** * Returns all the document library file ranks where groupId = ? and userId = ? and active = ?. * * @param groupId the group ID * @param userId the user ID * @param active the active * @return the matching document library file ranks */ public java.util.List<DLFileRank> findByG_U_A(long groupId, long userId, boolean active); /** * Returns a range of all the document library file ranks where groupId = ? and userId = ? and active = ?. * * <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 DLFileRankModelImpl}. 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 userId the user ID * @param active the active * @param start the lower bound of the range of document library file ranks * @param end the upper bound of the range of document library file ranks (not inclusive) * @return the range of matching document library file ranks */ public java.util.List<DLFileRank> findByG_U_A(long groupId, long userId, boolean active, int start, int end); /** * Returns an ordered range of all the document library file ranks where groupId = ? and userId = ? and active = ?. * * <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 DLFileRankModelImpl}. 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 userId the user ID * @param active the active * @param start the lower bound of the range of document library file ranks * @param end the upper bound of the range of document library file ranks (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching document library file ranks */ public java.util.List<DLFileRank> findByG_U_A(long groupId, long userId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator); /** * Returns an ordered range of all the document library file ranks where groupId = ? and userId = ? and active = ?. * * <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 DLFileRankModelImpl}. 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 userId the user ID * @param active the active * @param start the lower bound of the range of document library file ranks * @param end the upper bound of the range of document library file ranks (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 document library file ranks */ public java.util.List<DLFileRank> findByG_U_A(long groupId, long userId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator, boolean retrieveFromCache); /** * Returns the first document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. * * @param groupId the group ID * @param userId the user ID * @param active the active * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching document library file rank * @throws NoSuchFileRankException if a matching document library file rank could not be found */ public DLFileRank findByG_U_A_First(long groupId, long userId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator) throws NoSuchFileRankException; /** * Returns the first document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. * * @param groupId the group ID * @param userId the user ID * @param active the active * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found */ public DLFileRank fetchByG_U_A_First(long groupId, long userId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator); /** * Returns the last document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. * * @param groupId the group ID * @param userId the user ID * @param active the active * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching document library file rank * @throws NoSuchFileRankException if a matching document library file rank could not be found */ public DLFileRank findByG_U_A_Last(long groupId, long userId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator) throws NoSuchFileRankException; /** * Returns the last document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. * * @param groupId the group ID * @param userId the user ID * @param active the active * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found */ public DLFileRank fetchByG_U_A_Last(long groupId, long userId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator); /** * Returns the document library file ranks before and after the current document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. * * @param fileRankId the primary key of the current document library file rank * @param groupId the group ID * @param userId the user ID * @param active the active * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next document library file rank * @throws NoSuchFileRankException if a document library file rank with the primary key could not be found */ public DLFileRank[] findByG_U_A_PrevAndNext(long fileRankId, long groupId, long userId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator) throws NoSuchFileRankException; /** * Removes all the document library file ranks where groupId = ? and userId = ? and active = ? from the database. * * @param groupId the group ID * @param userId the user ID * @param active the active */ public void removeByG_U_A(long groupId, long userId, boolean active); /** * Returns the number of document library file ranks where groupId = ? and userId = ? and active = ?. * * @param groupId the group ID * @param userId the user ID * @param active the active * @return the number of matching document library file ranks */ public int countByG_U_A(long groupId, long userId, boolean active); /** * Returns the document library file rank where companyId = ? and userId = ? and fileEntryId = ? or throws a {@link NoSuchFileRankException} if it could not be found. * * @param companyId the company ID * @param userId the user ID * @param fileEntryId the file entry ID * @return the matching document library file rank * @throws NoSuchFileRankException if a matching document library file rank could not be found */ public DLFileRank findByC_U_F(long companyId, long userId, long fileEntryId) throws NoSuchFileRankException; /** * Returns the document library file rank where companyId = ? and userId = ? and fileEntryId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param companyId the company ID * @param userId the user ID * @param fileEntryId the file entry ID * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found */ public DLFileRank fetchByC_U_F(long companyId, long userId, long fileEntryId); /** * Returns the document library file rank where companyId = ? and userId = ? and fileEntryId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param companyId the company ID * @param userId the user ID * @param fileEntryId the file entry ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found */ public DLFileRank fetchByC_U_F(long companyId, long userId, long fileEntryId, boolean retrieveFromCache); /** * Removes the document library file rank where companyId = ? and userId = ? and fileEntryId = ? from the database. * * @param companyId the company ID * @param userId the user ID * @param fileEntryId the file entry ID * @return the document library file rank that was removed */ public DLFileRank removeByC_U_F(long companyId, long userId, long fileEntryId) throws NoSuchFileRankException; /** * Returns the number of document library file ranks where companyId = ? and userId = ? and fileEntryId = ?. * * @param companyId the company ID * @param userId the user ID * @param fileEntryId the file entry ID * @return the number of matching document library file ranks */ public int countByC_U_F(long companyId, long userId, long fileEntryId); /** * Caches the document library file rank in the entity cache if it is enabled. * * @param dlFileRank the document library file rank */ public void cacheResult(DLFileRank dlFileRank); /** * Caches the document library file ranks in the entity cache if it is enabled. * * @param dlFileRanks the document library file ranks */ public void cacheResult(java.util.List<DLFileRank> dlFileRanks); /** * Creates a new document library file rank with the primary key. Does not add the document library file rank to the database. * * @param fileRankId the primary key for the new document library file rank * @return the new document library file rank */ public DLFileRank create(long fileRankId); /** * Removes the document library file rank with the primary key from the database. Also notifies the appropriate model listeners. * * @param fileRankId the primary key of the document library file rank * @return the document library file rank that was removed * @throws NoSuchFileRankException if a document library file rank with the primary key could not be found */ public DLFileRank remove(long fileRankId) throws NoSuchFileRankException; public DLFileRank updateImpl(DLFileRank dlFileRank); /** * Returns the document library file rank with the primary key or throws a {@link NoSuchFileRankException} if it could not be found. * * @param fileRankId the primary key of the document library file rank * @return the document library file rank * @throws NoSuchFileRankException if a document library file rank with the primary key could not be found */ public DLFileRank findByPrimaryKey(long fileRankId) throws NoSuchFileRankException; /** * Returns the document library file rank with the primary key or returns <code>null</code> if it could not be found. * * @param fileRankId the primary key of the document library file rank * @return the document library file rank, or <code>null</code> if a document library file rank with the primary key could not be found */ public DLFileRank fetchByPrimaryKey(long fileRankId); @Override public java.util.Map<java.io.Serializable, DLFileRank> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys); /** * Returns all the document library file ranks. * * @return the document library file ranks */ public java.util.List<DLFileRank> findAll(); /** * Returns a range of all the document library file ranks. * * <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 DLFileRankModelImpl}. 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 document library file ranks * @param end the upper bound of the range of document library file ranks (not inclusive) * @return the range of document library file ranks */ public java.util.List<DLFileRank> findAll(int start, int end); /** * Returns an ordered range of all the document library file ranks. * * <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 DLFileRankModelImpl}. 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 document library file ranks * @param end the upper bound of the range of document library file ranks (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of document library file ranks */ public java.util.List<DLFileRank> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator); /** * Returns an ordered range of all the document library file ranks. * * <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 DLFileRankModelImpl}. 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 document library file ranks * @param end the upper bound of the range of document library file ranks (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 document library file ranks */ public java.util.List<DLFileRank> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLFileRank> orderByComparator, boolean retrieveFromCache); /** * Removes all the document library file ranks from the database. */ public void removeAll(); /** * Returns the number of document library file ranks. * * @return the number of document library file ranks */ public int countAll(); @Override public java.util.Set<java.lang.String> getBadColumnNames(); }