Liferay 6.1.2-ce-ga3

com.liferay.portlet.documentlibrary.service.persistence
Interface DLFileRankPersistence

All Superinterfaces:
BasePersistence<DLFileRank>
All Known Implementing Classes:
DLFileRankPersistenceImpl

public interface DLFileRankPersistence
extends BasePersistence<DLFileRank>

The persistence interface for the document library file rank service.

Caching information and settings can be found in portal.properties

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

Method Summary
 void cacheResult(DLFileRank dlFileRank)
          Caches the document library file rank in the entity cache if it is enabled.
 void cacheResult(List<DLFileRank> dlFileRanks)
          Caches the document library file ranks in the entity cache if it is enabled.
 int countAll()
          Returns the number of document library file ranks.
 int countByC_U_F(long companyId, long userId, long fileEntryId)
          Returns the number of document library file ranks where companyId = ? and userId = ? and fileEntryId = ?.
 int countByFileEntryId(long fileEntryId)
          Returns the number of document library file ranks where fileEntryId = ?.
 int countByG_U(long groupId, long userId)
          Returns the number of document library file ranks where groupId = ? and userId = ?.
 int countByUserId(long userId)
          Returns the number of document library file ranks where userId = ?.
 DLFileRank create(long fileRankId)
          Creates a new document library file rank with the primary key.
 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.
 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.
 DLFileRank fetchByFileEntryId_First(long fileEntryId, OrderByComparator orderByComparator)
          Returns the first document library file rank in the ordered set where fileEntryId = ?.
 DLFileRank fetchByFileEntryId_Last(long fileEntryId, OrderByComparator orderByComparator)
          Returns the last document library file rank in the ordered set where fileEntryId = ?.
 DLFileRank fetchByG_U_First(long groupId, long userId, OrderByComparator orderByComparator)
          Returns the first document library file rank in the ordered set where groupId = ? and userId = ?.
 DLFileRank fetchByG_U_Last(long groupId, long userId, OrderByComparator orderByComparator)
          Returns the last document library file rank in the ordered set where groupId = ? and userId = ?.
 DLFileRank fetchByPrimaryKey(long fileRankId)
          Returns the document library file rank with the primary key or returns null if it could not be found.
 DLFileRank fetchByUserId_First(long userId, OrderByComparator orderByComparator)
          Returns the first document library file rank in the ordered set where userId = ?.
 DLFileRank fetchByUserId_Last(long userId, OrderByComparator orderByComparator)
          Returns the last document library file rank in the ordered set where userId = ?.
 List<DLFileRank> findAll()
          Returns all the document library file ranks.
 List<DLFileRank> findAll(int start, int end)
          Returns a range of all the document library file ranks.
 List<DLFileRank> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file ranks.
 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.
 DLFileRank findByFileEntryId_First(long fileEntryId, OrderByComparator orderByComparator)
          Returns the first document library file rank in the ordered set where fileEntryId = ?.
 DLFileRank findByFileEntryId_Last(long fileEntryId, OrderByComparator orderByComparator)
          Returns the last document library file rank in the ordered set where fileEntryId = ?.
 DLFileRank[] findByFileEntryId_PrevAndNext(long fileRankId, long fileEntryId, OrderByComparator orderByComparator)
          Returns the document library file ranks before and after the current document library file rank in the ordered set where fileEntryId = ?.
 List<DLFileRank> findByFileEntryId(long fileEntryId)
          Returns all the document library file ranks where fileEntryId = ?.
 List<DLFileRank> findByFileEntryId(long fileEntryId, int start, int end)
          Returns a range of all the document library file ranks where fileEntryId = ?.
 List<DLFileRank> findByFileEntryId(long fileEntryId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file ranks where fileEntryId = ?.
 DLFileRank findByG_U_First(long groupId, long userId, OrderByComparator orderByComparator)
          Returns the first document library file rank in the ordered set where groupId = ? and userId = ?.
 DLFileRank findByG_U_Last(long groupId, long userId, OrderByComparator orderByComparator)
          Returns the last document library file rank in the ordered set where groupId = ? and userId = ?.
 DLFileRank[] findByG_U_PrevAndNext(long fileRankId, long groupId, long userId, OrderByComparator orderByComparator)
          Returns the document library file ranks before and after the current document library file rank in the ordered set where groupId = ? and userId = ?.
 List<DLFileRank> findByG_U(long groupId, long userId)
          Returns all the document library file ranks where groupId = ? and userId = ?.
 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 = ?.
 List<DLFileRank> findByG_U(long groupId, long userId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file ranks where groupId = ? and userId = ?.
 DLFileRank findByPrimaryKey(long fileRankId)
          Returns the document library file rank with the primary key or throws a NoSuchFileRankException if it could not be found.
 DLFileRank findByUserId_First(long userId, OrderByComparator orderByComparator)
          Returns the first document library file rank in the ordered set where userId = ?.
 DLFileRank findByUserId_Last(long userId, OrderByComparator orderByComparator)
          Returns the last document library file rank in the ordered set where userId = ?.
 DLFileRank[] findByUserId_PrevAndNext(long fileRankId, long userId, OrderByComparator orderByComparator)
          Returns the document library file ranks before and after the current document library file rank in the ordered set where userId = ?.
 List<DLFileRank> findByUserId(long userId)
          Returns all the document library file ranks where userId = ?.
 List<DLFileRank> findByUserId(long userId, int start, int end)
          Returns a range of all the document library file ranks where userId = ?.
 List<DLFileRank> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file ranks where userId = ?.
 DLFileRank remove(long fileRankId)
          Removes the document library file rank with the primary key from the database.
 void removeAll()
          Removes all the document library file ranks from the database.
 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.
 void removeByFileEntryId(long fileEntryId)
          Removes all the document library file ranks where fileEntryId = ? from the database.
 void removeByG_U(long groupId, long userId)
          Removes all the document library file ranks where groupId = ? and userId = ? from the database.
 void removeByUserId(long userId)
          Removes all the document library file ranks where userId = ? from the database.
 DLFileRank updateImpl(DLFileRank dlFileRank, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

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

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

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

DLFileRank remove(long fileRankId)
                  throws SystemException,
                         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
SystemException - if a system exception occurred

updateImpl

DLFileRank updateImpl(DLFileRank dlFileRank,
                      boolean merge)
                      throws SystemException
Throws:
SystemException

findByPrimaryKey

DLFileRank findByPrimaryKey(long fileRankId)
                            throws SystemException,
                                   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
SystemException - if a system exception occurred

fetchByPrimaryKey

DLFileRank fetchByPrimaryKey(long fileRankId)
                             throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByUserId

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

Parameters:
userId - the user ID
Returns:
the matching document library file ranks
Throws:
SystemException - if a system exception occurred

findByUserId

List<DLFileRank> findByUserId(long userId,
                              int start,
                              int end)
                              throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

findByUserId

List<DLFileRank> findByUserId(long userId,
                              int start,
                              int end,
                              OrderByComparator orderByComparator)
                              throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

findByUserId_First

DLFileRank findByUserId_First(long userId,
                              OrderByComparator orderByComparator)
                              throws SystemException,
                                     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
SystemException - if a system exception occurred

fetchByUserId_First

DLFileRank fetchByUserId_First(long userId,
                               OrderByComparator orderByComparator)
                               throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByUserId_Last

DLFileRank findByUserId_Last(long userId,
                             OrderByComparator orderByComparator)
                             throws SystemException,
                                    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
SystemException - if a system exception occurred

fetchByUserId_Last

DLFileRank fetchByUserId_Last(long userId,
                              OrderByComparator orderByComparator)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByUserId_PrevAndNext

DLFileRank[] findByUserId_PrevAndNext(long fileRankId,
                                      long userId,
                                      OrderByComparator orderByComparator)
                                      throws SystemException,
                                             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
SystemException - if a system exception occurred

findByFileEntryId

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

Parameters:
fileEntryId - the file entry ID
Returns:
the matching document library file ranks
Throws:
SystemException - if a system exception occurred

findByFileEntryId

List<DLFileRank> findByFileEntryId(long fileEntryId,
                                   int start,
                                   int end)
                                   throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

findByFileEntryId

List<DLFileRank> findByFileEntryId(long fileEntryId,
                                   int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                                   throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

findByFileEntryId_First

DLFileRank findByFileEntryId_First(long fileEntryId,
                                   OrderByComparator orderByComparator)
                                   throws SystemException,
                                          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
SystemException - if a system exception occurred

fetchByFileEntryId_First

DLFileRank fetchByFileEntryId_First(long fileEntryId,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByFileEntryId_Last

DLFileRank findByFileEntryId_Last(long fileEntryId,
                                  OrderByComparator orderByComparator)
                                  throws SystemException,
                                         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
SystemException - if a system exception occurred

fetchByFileEntryId_Last

DLFileRank fetchByFileEntryId_Last(long fileEntryId,
                                   OrderByComparator orderByComparator)
                                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByFileEntryId_PrevAndNext

DLFileRank[] findByFileEntryId_PrevAndNext(long fileRankId,
                                           long fileEntryId,
                                           OrderByComparator orderByComparator)
                                           throws SystemException,
                                                  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
SystemException - if a system exception occurred

findByG_U

List<DLFileRank> findByG_U(long groupId,
                           long userId)
                           throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_U

List<DLFileRank> findByG_U(long groupId,
                           long userId,
                           int start,
                           int end)
                           throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

findByG_U

List<DLFileRank> findByG_U(long groupId,
                           long userId,
                           int start,
                           int end,
                           OrderByComparator orderByComparator)
                           throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

findByG_U_First

DLFileRank findByG_U_First(long groupId,
                           long userId,
                           OrderByComparator orderByComparator)
                           throws SystemException,
                                  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
SystemException - if a system exception occurred

fetchByG_U_First

DLFileRank fetchByG_U_First(long groupId,
                            long userId,
                            OrderByComparator orderByComparator)
                            throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_U_Last

DLFileRank findByG_U_Last(long groupId,
                          long userId,
                          OrderByComparator orderByComparator)
                          throws SystemException,
                                 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
SystemException - if a system exception occurred

fetchByG_U_Last

DLFileRank fetchByG_U_Last(long groupId,
                           long userId,
                           OrderByComparator orderByComparator)
                           throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_U_PrevAndNext

DLFileRank[] findByG_U_PrevAndNext(long fileRankId,
                                   long groupId,
                                   long userId,
                                   OrderByComparator orderByComparator)
                                   throws SystemException,
                                          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
SystemException - if a system exception occurred

findByC_U_F

DLFileRank findByC_U_F(long companyId,
                       long userId,
                       long fileEntryId)
                       throws SystemException,
                              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
SystemException - if a system exception occurred

fetchByC_U_F

DLFileRank fetchByC_U_F(long companyId,
                        long userId,
                        long fileEntryId)
                        throws SystemException
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
Throws:
SystemException - if a system exception occurred

fetchByC_U_F

DLFileRank fetchByC_U_F(long companyId,
                        long userId,
                        long fileEntryId,
                        boolean retrieveFromCache)
                        throws SystemException
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 use the finder cache
Returns:
the matching document library file rank, or null if a matching document library file rank could not be found
Throws:
SystemException - if a system exception occurred

findAll

List<DLFileRank> findAll()
                         throws SystemException
Returns all the document library file ranks.

Returns:
the document library file ranks
Throws:
SystemException - if a system exception occurred

findAll

List<DLFileRank> findAll(int start,
                         int end)
                         throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

findAll

List<DLFileRank> findAll(int start,
                         int end,
                         OrderByComparator orderByComparator)
                         throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

removeByUserId

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

Parameters:
userId - the user ID
Throws:
SystemException - if a system exception occurred

removeByFileEntryId

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

Parameters:
fileEntryId - the file entry ID
Throws:
SystemException - if a system exception occurred

removeByG_U

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

Parameters:
groupId - the group ID
userId - the user ID
Throws:
SystemException - if a system exception occurred

removeByC_U_F

DLFileRank removeByC_U_F(long companyId,
                         long userId,
                         long fileEntryId)
                         throws SystemException,
                                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:
SystemException - if a system exception occurred
NoSuchFileRankException

removeAll

void removeAll()
               throws SystemException
Removes all the document library file ranks from the database.

Throws:
SystemException - if a system exception occurred

countByUserId

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

Parameters:
userId - the user ID
Returns:
the number of matching document library file ranks
Throws:
SystemException - if a system exception occurred

countByFileEntryId

int countByFileEntryId(long fileEntryId)
                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

countByG_U

int countByG_U(long groupId,
               long userId)
               throws SystemException
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
Throws:
SystemException - if a system exception occurred

countByC_U_F

int countByC_U_F(long companyId,
                 long userId,
                 long fileEntryId)
                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Returns the number of document library file ranks.

Returns:
the number of document library file ranks
Throws:
SystemException - if a system exception occurred

Liferay 6.1.2-ce-ga3