Liferay 7.0-ce-b4

com.liferay.portlet.documentlibrary.service.persistence
Class DLFileRankUtil

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.service.persistence.DLFileRankUtil

@ProviderType
public class DLFileRankUtil
extends Object

The persistence utility for the document library file rank service. This utility wraps DLFileRankPersistenceImpl 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.

Caching information and settings can be found in portal.properties

See Also:
DLFileRankPersistence, DLFileRankPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
DLFileRankUtil()
           
 
Method Summary
static void cacheResult(DLFileRank dlFileRank)
          Caches the document library file rank in the entity cache if it is enabled.
static void cacheResult(List<DLFileRank> dlFileRanks)
          Caches the document library file ranks in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(DLFileRank dlFileRank)
           
static int countAll()
          Returns the number of document library file ranks.
static int countByC_U_F(long companyId, long userId, long fileEntryId)
          Returns the number of document library file ranks where companyId = ? and userId = ? and fileEntryId = ?.
static int countByFileEntryId(long fileEntryId)
          Returns the number of document library file ranks where fileEntryId = ?.
static int countByG_U_A(long groupId, long userId, boolean active)
          Returns the number of document library file ranks where groupId = ? and userId = ? and active = ?.
static int countByG_U(long groupId, long userId)
          Returns the number of document library file ranks where groupId = ? and userId = ?.
static int countByUserId(long userId)
          Returns the number of document library file ranks where userId = ?.
static long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static DLFileRank create(long fileRankId)
          Creates a new document library file rank with the primary key.
static DLFileRank fetchByC_U_F(long companyId, long userId, long fileEntryId)
          Returns the document library file rank where companyId = ? and userId = ? and fileEntryId = ? or returns null if it could not be found.
static DLFileRank fetchByC_U_F(long companyId, long userId, long fileEntryId, boolean retrieveFromCache)
          Returns the document library file rank where companyId = ? and userId = ? and fileEntryId = ? or returns null if it could not be found, optionally using the finder cache.
static DLFileRank fetchByFileEntryId_First(long fileEntryId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the first document library file rank in the ordered set where fileEntryId = ?.
static DLFileRank fetchByFileEntryId_Last(long fileEntryId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the last document library file rank in the ordered set where fileEntryId = ?.
static DLFileRank fetchByG_U_A_First(long groupId, long userId, boolean active, OrderByComparator<DLFileRank> orderByComparator)
          Returns the first document library file rank in the ordered set where groupId = ? and userId = ? and active = ?.
static DLFileRank fetchByG_U_A_Last(long groupId, long userId, boolean active, OrderByComparator<DLFileRank> orderByComparator)
          Returns the last document library file rank in the ordered set where groupId = ? and userId = ? and active = ?.
static DLFileRank fetchByG_U_First(long groupId, long userId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the first document library file rank in the ordered set where groupId = ? and userId = ?.
static DLFileRank fetchByG_U_Last(long groupId, long userId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the last document library file rank in the ordered set where groupId = ? and userId = ?.
static DLFileRank fetchByPrimaryKey(long fileRankId)
          Returns the document library file rank with the primary key or returns null if it could not be found.
static Map<Serializable,DLFileRank> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
static DLFileRank fetchByUserId_First(long userId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the first document library file rank in the ordered set where userId = ?.
static DLFileRank fetchByUserId_Last(long userId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the last document library file rank in the ordered set where userId = ?.
static List<DLFileRank> findAll()
          Returns all the document library file ranks.
static List<DLFileRank> findAll(int start, int end)
          Returns a range of all the document library file ranks.
static List<DLFileRank> findAll(int start, int end, OrderByComparator<DLFileRank> orderByComparator)
          Returns an ordered range of all the document library file ranks.
static List<DLFileRank> findAll(int start, int end, OrderByComparator<DLFileRank> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the document library file ranks.
static DLFileRank findByC_U_F(long companyId, long userId, long fileEntryId)
          Returns the document library file rank where companyId = ? and userId = ? and fileEntryId = ? or throws a NoSuchFileRankException if it could not be found.
static DLFileRank findByFileEntryId_First(long fileEntryId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the first document library file rank in the ordered set where fileEntryId = ?.
static DLFileRank findByFileEntryId_Last(long fileEntryId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the last document library file rank in the ordered set where fileEntryId = ?.
static DLFileRank[] findByFileEntryId_PrevAndNext(long fileRankId, long fileEntryId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the document library file ranks before and after the current document library file rank in the ordered set where fileEntryId = ?.
static List<DLFileRank> findByFileEntryId(long fileEntryId)
          Returns all the document library file ranks where fileEntryId = ?.
static List<DLFileRank> findByFileEntryId(long fileEntryId, int start, int end)
          Returns a range of all the document library file ranks where fileEntryId = ?.
static List<DLFileRank> findByFileEntryId(long fileEntryId, int start, int end, OrderByComparator<DLFileRank> orderByComparator)
          Returns an ordered range of all the document library file ranks where fileEntryId = ?.
static List<DLFileRank> findByFileEntryId(long fileEntryId, int start, int end, OrderByComparator<DLFileRank> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the document library file ranks where fileEntryId = ?.
static DLFileRank findByG_U_A_First(long groupId, long userId, boolean active, OrderByComparator<DLFileRank> orderByComparator)
          Returns the first document library file rank in the ordered set where groupId = ? and userId = ? and active = ?.
static DLFileRank findByG_U_A_Last(long groupId, long userId, boolean active, OrderByComparator<DLFileRank> orderByComparator)
          Returns the last document library file rank in the ordered set where groupId = ? and userId = ? and active = ?.
static DLFileRank[] findByG_U_A_PrevAndNext(long fileRankId, long groupId, long userId, boolean active, 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 = ?.
static List<DLFileRank> findByG_U_A(long groupId, long userId, boolean active)
          Returns all the document library file ranks where groupId = ? and userId = ? and active = ?.
static List<DLFileRank> findByG_U_A(long groupId, long userId, boolean active, int start, int end)
          Returns a range of all the document library file ranks where groupId = ? and userId = ? and active = ?.
static List<DLFileRank> findByG_U_A(long groupId, long userId, boolean active, int start, int end, OrderByComparator<DLFileRank> orderByComparator)
          Returns an ordered range of all the document library file ranks where groupId = ? and userId = ? and active = ?.
static List<DLFileRank> findByG_U_A(long groupId, long userId, boolean active, int start, int end, OrderByComparator<DLFileRank> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the document library file ranks where groupId = ? and userId = ? and active = ?.
static DLFileRank findByG_U_First(long groupId, long userId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the first document library file rank in the ordered set where groupId = ? and userId = ?.
static DLFileRank findByG_U_Last(long groupId, long userId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the last document library file rank in the ordered set where groupId = ? and userId = ?.
static DLFileRank[] findByG_U_PrevAndNext(long fileRankId, long groupId, long userId, 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 = ?.
static List<DLFileRank> findByG_U(long groupId, long userId)
          Returns all the document library file ranks where groupId = ? and userId = ?.
static List<DLFileRank> findByG_U(long groupId, long userId, int start, int end)
          Returns a range of all the document library file ranks where groupId = ? and userId = ?.
static List<DLFileRank> findByG_U(long groupId, long userId, int start, int end, OrderByComparator<DLFileRank> orderByComparator)
          Returns an ordered range of all the document library file ranks where groupId = ? and userId = ?.
static List<DLFileRank> findByG_U(long groupId, long userId, int start, int end, OrderByComparator<DLFileRank> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the document library file ranks where groupId = ? and userId = ?.
static DLFileRank findByPrimaryKey(long fileRankId)
          Returns the document library file rank with the primary key or throws a NoSuchFileRankException if it could not be found.
static DLFileRank findByUserId_First(long userId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the first document library file rank in the ordered set where userId = ?.
static DLFileRank findByUserId_Last(long userId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the last document library file rank in the ordered set where userId = ?.
static DLFileRank[] findByUserId_PrevAndNext(long fileRankId, long userId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the document library file ranks before and after the current document library file rank in the ordered set where userId = ?.
static List<DLFileRank> findByUserId(long userId)
          Returns all the document library file ranks where userId = ?.
static List<DLFileRank> findByUserId(long userId, int start, int end)
          Returns a range of all the document library file ranks where userId = ?.
static List<DLFileRank> findByUserId(long userId, int start, int end, OrderByComparator<DLFileRank> orderByComparator)
          Returns an ordered range of all the document library file ranks where userId = ?.
static List<DLFileRank> findByUserId(long userId, int start, int end, OrderByComparator<DLFileRank> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the document library file ranks where userId = ?.
static List<DLFileRank> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<DLFileRank> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<DLFileRank> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<DLFileRank> orderByComparator)
           
static Set<String> getBadColumnNames()
           
static DLFileRankPersistence getPersistence()
           
static DLFileRank remove(long fileRankId)
          Removes the document library file rank with the primary key from the database.
static void removeAll()
          Removes all the document library file ranks from the database.
static DLFileRank removeByC_U_F(long companyId, long userId, long fileEntryId)
          Removes the document library file rank where companyId = ? and userId = ? and fileEntryId = ? from the database.
static void removeByFileEntryId(long fileEntryId)
          Removes all the document library file ranks where fileEntryId = ? from the database.
static void removeByG_U_A(long groupId, long userId, boolean active)
          Removes all the document library file ranks where groupId = ? and userId = ? and active = ? from the database.
static void removeByG_U(long groupId, long userId)
          Removes all the document library file ranks where groupId = ? and userId = ? from the database.
static void removeByUserId(long userId)
          Removes all the document library file ranks where userId = ? from the database.
static DLFileRank update(DLFileRank dlFileRank)
           
static DLFileRank update(DLFileRank dlFileRank, ServiceContext serviceContext)
           
static DLFileRank updateImpl(DLFileRank dlFileRank)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFileRankUtil

public DLFileRankUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(DLFileRank dlFileRank)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DLFileRank> findWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DLFileRank> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                    int start,
                                                    int end)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<DLFileRank> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                    int start,
                                                    int end,
                                                    OrderByComparator<DLFileRank> orderByComparator)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static DLFileRank update(DLFileRank dlFileRank)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static DLFileRank update(DLFileRank dlFileRank,
                                ServiceContext serviceContext)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByUserId

public static List<DLFileRank> findByUserId(long userId)
Returns all the document library file ranks where userId = ?.

Parameters:
userId - the user ID
Returns:
the matching document library file ranks

findByUserId

public static List<DLFileRank> findByUserId(long userId,
                                            int start,
                                            int end)
Returns a range of all the document library file ranks where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DLFileRankModelImpl. If both orderByComparator 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.

Parameters:
userId - the user ID
start - the lower bound of the range of document library file ranks
end - the upper bound of the range of document library file ranks (not inclusive)
Returns:
the range of matching document library file ranks

findByUserId

public static List<DLFileRank> findByUserId(long userId,
                                            int start,
                                            int end,
                                            OrderByComparator<DLFileRank> orderByComparator)
Returns an ordered range of all the document library file ranks where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DLFileRankModelImpl. If both orderByComparator 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.

Parameters:
userId - the user ID
start - the lower bound of the range of document library file ranks
end - the upper bound of the range of document library file ranks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file ranks

findByUserId

public static List<DLFileRank> findByUserId(long userId,
                                            int start,
                                            int end,
                                            OrderByComparator<DLFileRank> orderByComparator,
                                            boolean retrieveFromCache)
Returns an ordered range of all the document library file ranks where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DLFileRankModelImpl. If both orderByComparator 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.

Parameters:
userId - the user ID
start - the lower bound of the range of document library file ranks
end - the upper bound of the range of document library file ranks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching document library file ranks

findByUserId_First

public static DLFileRank findByUserId_First(long userId,
                                            OrderByComparator<DLFileRank> orderByComparator)
                                     throws NoSuchFileRankException
Returns the first document library file rank in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file rank
Throws:
NoSuchFileRankException - if a matching document library file rank could not be found

fetchByUserId_First

public static DLFileRank fetchByUserId_First(long userId,
                                             OrderByComparator<DLFileRank> orderByComparator)
Returns the first document library file rank in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file rank, or null if a matching document library file rank could not be found

findByUserId_Last

public static DLFileRank findByUserId_Last(long userId,
                                           OrderByComparator<DLFileRank> orderByComparator)
                                    throws NoSuchFileRankException
Returns the last document library file rank in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file rank
Throws:
NoSuchFileRankException - if a matching document library file rank could not be found

fetchByUserId_Last

public static DLFileRank fetchByUserId_Last(long userId,
                                            OrderByComparator<DLFileRank> orderByComparator)
Returns the last document library file rank in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file rank, or null if a matching document library file rank could not be found

findByUserId_PrevAndNext

public static DLFileRank[] findByUserId_PrevAndNext(long fileRankId,
                                                    long userId,
                                                    OrderByComparator<DLFileRank> orderByComparator)
                                             throws NoSuchFileRankException
Returns the document library file ranks before and after the current document library file rank in the ordered set where userId = ?.

Parameters:
fileRankId - the primary key of the current document library file rank
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
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

removeByUserId

public static void removeByUserId(long userId)
Removes all the document library file ranks where userId = ? from the database.

Parameters:
userId - the user ID

countByUserId

public static int countByUserId(long userId)
Returns the number of document library file ranks where userId = ?.

Parameters:
userId - the user ID
Returns:
the number of matching document library file ranks

findByFileEntryId

public static List<DLFileRank> findByFileEntryId(long fileEntryId)
Returns all the document library file ranks where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID
Returns:
the matching document library file ranks

findByFileEntryId

public static List<DLFileRank> findByFileEntryId(long fileEntryId,
                                                 int start,
                                                 int end)
Returns a range of all the document library file ranks where fileEntryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DLFileRankModelImpl. If both orderByComparator 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.

Parameters:
fileEntryId - the file entry ID
start - the lower bound of the range of document library file ranks
end - the upper bound of the range of document library file ranks (not inclusive)
Returns:
the range of matching document library file ranks

findByFileEntryId

public static List<DLFileRank> findByFileEntryId(long fileEntryId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<DLFileRank> orderByComparator)
Returns an ordered range of all the document library file ranks where fileEntryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DLFileRankModelImpl. If both orderByComparator 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.

Parameters:
fileEntryId - the file entry ID
start - the lower bound of the range of document library file ranks
end - the upper bound of the range of document library file ranks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file ranks

findByFileEntryId

public static List<DLFileRank> findByFileEntryId(long fileEntryId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<DLFileRank> orderByComparator,
                                                 boolean retrieveFromCache)
Returns an ordered range of all the document library file ranks where fileEntryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DLFileRankModelImpl. If both orderByComparator 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.

Parameters:
fileEntryId - the file entry ID
start - the lower bound of the range of document library file ranks
end - the upper bound of the range of document library file ranks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching document library file ranks

findByFileEntryId_First

public static DLFileRank findByFileEntryId_First(long fileEntryId,
                                                 OrderByComparator<DLFileRank> orderByComparator)
                                          throws NoSuchFileRankException
Returns the first document library file rank in the ordered set where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file rank
Throws:
NoSuchFileRankException - if a matching document library file rank could not be found

fetchByFileEntryId_First

public static DLFileRank fetchByFileEntryId_First(long fileEntryId,
                                                  OrderByComparator<DLFileRank> orderByComparator)
Returns the first document library file rank in the ordered set where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file rank, or null if a matching document library file rank could not be found

findByFileEntryId_Last

public static DLFileRank findByFileEntryId_Last(long fileEntryId,
                                                OrderByComparator<DLFileRank> orderByComparator)
                                         throws NoSuchFileRankException
Returns the last document library file rank in the ordered set where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file rank
Throws:
NoSuchFileRankException - if a matching document library file rank could not be found

fetchByFileEntryId_Last

public static DLFileRank fetchByFileEntryId_Last(long fileEntryId,
                                                 OrderByComparator<DLFileRank> orderByComparator)
Returns the last document library file rank in the ordered set where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file rank, or null if a matching document library file rank could not be found

findByFileEntryId_PrevAndNext

public static DLFileRank[] findByFileEntryId_PrevAndNext(long fileRankId,
                                                         long fileEntryId,
                                                         OrderByComparator<DLFileRank> orderByComparator)
                                                  throws NoSuchFileRankException
Returns the document library file ranks before and after the current document library file rank in the ordered set where fileEntryId = ?.

Parameters:
fileRankId - the primary key of the current document library file rank
fileEntryId - the file entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
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

removeByFileEntryId

public static void removeByFileEntryId(long fileEntryId)
Removes all the document library file ranks where fileEntryId = ? from the database.

Parameters:
fileEntryId - the file entry ID

countByFileEntryId

public static int countByFileEntryId(long fileEntryId)
Returns the number of document library file ranks where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID
Returns:
the number of matching document library file ranks

findByG_U

public static List<DLFileRank> findByG_U(long groupId,
                                         long userId)
Returns all the document library file ranks where groupId = ? and userId = ?.

Parameters:
groupId - the group ID
userId - the user ID
Returns:
the matching document library file ranks

findByG_U

public static List<DLFileRank> findByG_U(long groupId,
                                         long userId,
                                         int start,
                                         int end)
Returns a range of all the document library file ranks where groupId = ? and userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DLFileRankModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
userId - the user ID
start - the lower bound of the range of document library file ranks
end - the upper bound of the range of document library file ranks (not inclusive)
Returns:
the range of matching document library file ranks

findByG_U

public static List<DLFileRank> findByG_U(long groupId,
                                         long userId,
                                         int start,
                                         int end,
                                         OrderByComparator<DLFileRank> orderByComparator)
Returns an ordered range of all the document library file ranks where groupId = ? and userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DLFileRankModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
userId - the user ID
start - the lower bound of the range of document library file ranks
end - the upper bound of the range of document library file ranks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file ranks

findByG_U

public static List<DLFileRank> findByG_U(long groupId,
                                         long userId,
                                         int start,
                                         int end,
                                         OrderByComparator<DLFileRank> orderByComparator,
                                         boolean retrieveFromCache)
Returns an ordered range of all the document library file ranks where groupId = ? and userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DLFileRankModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
userId - the user ID
start - the lower bound of the range of document library file ranks
end - the upper bound of the range of document library file ranks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching document library file ranks

findByG_U_First

public static DLFileRank findByG_U_First(long groupId,
                                         long userId,
                                         OrderByComparator<DLFileRank> orderByComparator)
                                  throws NoSuchFileRankException
Returns the first document library file rank in the ordered set where groupId = ? and userId = ?.

Parameters:
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file rank
Throws:
NoSuchFileRankException - if a matching document library file rank could not be found

fetchByG_U_First

public static DLFileRank fetchByG_U_First(long groupId,
                                          long userId,
                                          OrderByComparator<DLFileRank> orderByComparator)
Returns the first document library file rank in the ordered set where groupId = ? and userId = ?.

Parameters:
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file rank, or null if a matching document library file rank could not be found

findByG_U_Last

public static DLFileRank findByG_U_Last(long groupId,
                                        long userId,
                                        OrderByComparator<DLFileRank> orderByComparator)
                                 throws NoSuchFileRankException
Returns the last document library file rank in the ordered set where groupId = ? and userId = ?.

Parameters:
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file rank
Throws:
NoSuchFileRankException - if a matching document library file rank could not be found

fetchByG_U_Last

public static DLFileRank fetchByG_U_Last(long groupId,
                                         long userId,
                                         OrderByComparator<DLFileRank> orderByComparator)
Returns the last document library file rank in the ordered set where groupId = ? and userId = ?.

Parameters:
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file rank, or null if a matching document library file rank could not be found

findByG_U_PrevAndNext

public static DLFileRank[] findByG_U_PrevAndNext(long fileRankId,
                                                 long groupId,
                                                 long userId,
                                                 OrderByComparator<DLFileRank> orderByComparator)
                                          throws NoSuchFileRankException
Returns the document library file ranks before and after the current document library file rank in the ordered set where groupId = ? and userId = ?.

Parameters:
fileRankId - the primary key of the current document library file rank
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
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

removeByG_U

public static void removeByG_U(long groupId,
                               long userId)
Removes all the document library file ranks where groupId = ? and userId = ? from the database.

Parameters:
groupId - the group ID
userId - the user ID

countByG_U

public static int countByG_U(long groupId,
                             long userId)
Returns the number of document library file ranks where groupId = ? and userId = ?.

Parameters:
groupId - the group ID
userId - the user ID
Returns:
the number of matching document library file ranks

findByG_U_A

public static List<DLFileRank> findByG_U_A(long groupId,
                                           long userId,
                                           boolean active)
Returns all the document library file ranks where groupId = ? and userId = ? and active = ?.

Parameters:
groupId - the group ID
userId - the user ID
active - the active
Returns:
the matching document library file ranks

findByG_U_A

public static List<DLFileRank> findByG_U_A(long groupId,
                                           long userId,
                                           boolean active,
                                           int start,
                                           int end)
Returns a range of all the document library file ranks where groupId = ? and userId = ? and active = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DLFileRankModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
userId - the user ID
active - the active
start - the lower bound of the range of document library file ranks
end - the upper bound of the range of document library file ranks (not inclusive)
Returns:
the range of matching document library file ranks

findByG_U_A

public static List<DLFileRank> findByG_U_A(long groupId,
                                           long userId,
                                           boolean active,
                                           int start,
                                           int end,
                                           OrderByComparator<DLFileRank> orderByComparator)
Returns an ordered range of all the document library file ranks where groupId = ? and userId = ? and active = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DLFileRankModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
userId - the user ID
active - the active
start - the lower bound of the range of document library file ranks
end - the upper bound of the range of document library file ranks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file ranks

findByG_U_A

public static List<DLFileRank> findByG_U_A(long groupId,
                                           long userId,
                                           boolean active,
                                           int start,
                                           int end,
                                           OrderByComparator<DLFileRank> orderByComparator,
                                           boolean retrieveFromCache)
Returns an ordered range of all the document library file ranks where groupId = ? and userId = ? and active = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DLFileRankModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
userId - the user ID
active - the active
start - the lower bound of the range of document library file ranks
end - the upper bound of the range of document library file ranks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching document library file ranks

findByG_U_A_First

public static DLFileRank findByG_U_A_First(long groupId,
                                           long userId,
                                           boolean active,
                                           OrderByComparator<DLFileRank> orderByComparator)
                                    throws NoSuchFileRankException
Returns the first document library file rank in the ordered set where groupId = ? and userId = ? and active = ?.

Parameters:
groupId - the group ID
userId - the user ID
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file rank
Throws:
NoSuchFileRankException - if a matching document library file rank could not be found

fetchByG_U_A_First

public static DLFileRank fetchByG_U_A_First(long groupId,
                                            long userId,
                                            boolean active,
                                            OrderByComparator<DLFileRank> orderByComparator)
Returns the first document library file rank in the ordered set where groupId = ? and userId = ? and active = ?.

Parameters:
groupId - the group ID
userId - the user ID
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file rank, or null if a matching document library file rank could not be found

findByG_U_A_Last

public static DLFileRank findByG_U_A_Last(long groupId,
                                          long userId,
                                          boolean active,
                                          OrderByComparator<DLFileRank> orderByComparator)
                                   throws NoSuchFileRankException
Returns the last document library file rank in the ordered set where groupId = ? and userId = ? and active = ?.

Parameters:
groupId - the group ID
userId - the user ID
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file rank
Throws:
NoSuchFileRankException - if a matching document library file rank could not be found

fetchByG_U_A_Last

public static DLFileRank fetchByG_U_A_Last(long groupId,
                                           long userId,
                                           boolean active,
                                           OrderByComparator<DLFileRank> orderByComparator)
Returns the last document library file rank in the ordered set where groupId = ? and userId = ? and active = ?.

Parameters:
groupId - the group ID
userId - the user ID
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file rank, or null if a matching document library file rank could not be found

findByG_U_A_PrevAndNext

public static DLFileRank[] findByG_U_A_PrevAndNext(long fileRankId,
                                                   long groupId,
                                                   long userId,
                                                   boolean active,
                                                   OrderByComparator<DLFileRank> orderByComparator)
                                            throws NoSuchFileRankException
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 = ?.

Parameters:
fileRankId - the primary key of the current document library file rank
groupId - the group ID
userId - the user ID
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
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

removeByG_U_A

public static void removeByG_U_A(long groupId,
                                 long userId,
                                 boolean active)
Removes all the document library file ranks where groupId = ? and userId = ? and active = ? from the database.

Parameters:
groupId - the group ID
userId - the user ID
active - the active

countByG_U_A

public static int countByG_U_A(long groupId,
                               long userId,
                               boolean active)
Returns the number of document library file ranks where groupId = ? and userId = ? and active = ?.

Parameters:
groupId - the group ID
userId - the user ID
active - the active
Returns:
the number of matching document library file ranks

findByC_U_F

public static 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 throws a NoSuchFileRankException if it could not be found.

Parameters:
companyId - the company ID
userId - the user ID
fileEntryId - the file entry ID
Returns:
the matching document library file rank
Throws:
NoSuchFileRankException - if a matching document library file rank could not be found

fetchByC_U_F

public static DLFileRank fetchByC_U_F(long companyId,
                                      long userId,
                                      long fileEntryId)
Returns the document library file rank where companyId = ? and userId = ? and fileEntryId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
companyId - the company ID
userId - the user ID
fileEntryId - the file entry ID
Returns:
the matching document library file rank, or null if a matching document library file rank could not be found

fetchByC_U_F

public static DLFileRank fetchByC_U_F(long companyId,
                                      long userId,
                                      long fileEntryId,
                                      boolean retrieveFromCache)
Returns the document library file rank where companyId = ? and userId = ? and fileEntryId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
companyId - the company ID
userId - the user ID
fileEntryId - the file entry ID
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching document library file rank, or null if a matching document library file rank could not be found

removeByC_U_F

public static DLFileRank removeByC_U_F(long companyId,
                                       long userId,
                                       long fileEntryId)
                                throws NoSuchFileRankException
Removes the document library file rank where companyId = ? and userId = ? and fileEntryId = ? from the database.

Parameters:
companyId - the company ID
userId - the user ID
fileEntryId - the file entry ID
Returns:
the document library file rank that was removed
Throws:
NoSuchFileRankException

countByC_U_F

public static int countByC_U_F(long companyId,
                               long userId,
                               long fileEntryId)
Returns the number of document library file ranks where companyId = ? and userId = ? and fileEntryId = ?.

Parameters:
companyId - the company ID
userId - the user ID
fileEntryId - the file entry ID
Returns:
the number of matching document library file ranks

cacheResult

public static void cacheResult(DLFileRank dlFileRank)
Caches the document library file rank in the entity cache if it is enabled.

Parameters:
dlFileRank - the document library file rank

cacheResult

public static void cacheResult(List<DLFileRank> dlFileRanks)
Caches the document library file ranks in the entity cache if it is enabled.

Parameters:
dlFileRanks - the document library file ranks

create

public static DLFileRank create(long fileRankId)
Creates a new document library file rank with the primary key. Does not add the document library file rank to the database.

Parameters:
fileRankId - the primary key for the new document library file rank
Returns:
the new document library file rank

remove

public static DLFileRank remove(long fileRankId)
                         throws NoSuchFileRankException
Removes the document library file rank with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
fileRankId - the primary key of the document library file rank
Returns:
the document library file rank that was removed
Throws:
NoSuchFileRankException - if a document library file rank with the primary key could not be found

updateImpl

public static DLFileRank updateImpl(DLFileRank dlFileRank)

findByPrimaryKey

public static DLFileRank findByPrimaryKey(long fileRankId)
                                   throws NoSuchFileRankException
Returns the document library file rank with the primary key or throws a NoSuchFileRankException if it could not be found.

Parameters:
fileRankId - the primary key of the document library file rank
Returns:
the document library file rank
Throws:
NoSuchFileRankException - if a document library file rank with the primary key could not be found

fetchByPrimaryKey

public static DLFileRank fetchByPrimaryKey(long fileRankId)
Returns the document library file rank with the primary key or returns null if it could not be found.

Parameters:
fileRankId - the primary key of the document library file rank
Returns:
the document library file rank, or null if a document library file rank with the primary key could not be found

fetchByPrimaryKeys

public static Map<Serializable,DLFileRank> fetchByPrimaryKeys(Set<Serializable> primaryKeys)

findAll

public static List<DLFileRank> findAll()
Returns all the document library file ranks.

Returns:
the document library file ranks

findAll

public static List<DLFileRank> findAll(int start,
                                       int end)
Returns a range of all the document library file ranks.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DLFileRankModelImpl. If both orderByComparator 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.

Parameters:
start - the lower bound of the range of document library file ranks
end - the upper bound of the range of document library file ranks (not inclusive)
Returns:
the range of document library file ranks

findAll

public static List<DLFileRank> findAll(int start,
                                       int end,
                                       OrderByComparator<DLFileRank> orderByComparator)
Returns an ordered range of all the document library file ranks.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DLFileRankModelImpl. If both orderByComparator 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.

Parameters:
start - the lower bound of the range of document library file ranks
end - the upper bound of the range of document library file ranks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of document library file ranks

findAll

public static List<DLFileRank> findAll(int start,
                                       int end,
                                       OrderByComparator<DLFileRank> orderByComparator,
                                       boolean retrieveFromCache)
Returns an ordered range of all the document library file ranks.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DLFileRankModelImpl. If both orderByComparator 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.

Parameters:
start - the lower bound of the range of document library file ranks
end - the upper bound of the range of document library file ranks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of document library file ranks

removeAll

public static void removeAll()
Removes all the document library file ranks from the database.


countAll

public static int countAll()
Returns the number of document library file ranks.

Returns:
the number of document library file ranks

getBadColumnNames

public static Set<String> getBadColumnNames()

getPersistence

public static DLFileRankPersistence getPersistence()

Liferay 7.0-ce-b4