Liferay 7.0-ce-b4

com.liferay.portlet.documentlibrary.service.persistence.impl
Class DLFileRankPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<DLFileRank>
      extended by com.liferay.portlet.documentlibrary.service.persistence.impl.DLFileRankPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<DLFileRank>, DLFileRankPersistence

@ProviderType
public class DLFileRankPersistenceImpl
extends BasePersistenceImpl<DLFileRank>
implements DLFileRankPersistence

The persistence implementation for the document library file rank service.

Caching information and settings can be found in portal.properties

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

Field Summary
protected  CompanyProvider companyProvider
           
protected  EntityCache entityCache
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_C_U_F
           
static FinderPath FINDER_PATH_COUNT_BY_FILEENTRYID
           
static FinderPath FINDER_PATH_COUNT_BY_G_U
           
static FinderPath FINDER_PATH_COUNT_BY_G_U_A
           
static FinderPath FINDER_PATH_COUNT_BY_USERID
           
static FinderPath FINDER_PATH_FETCH_BY_C_U_F
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_FILEENTRYID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_A
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_FILEENTRYID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_A
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID
           
protected  FinderCache finderCache
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
DLFileRankPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the document library file rank persistence.
 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.
protected  void cacheUniqueFindersCache(DLFileRankModelImpl dlFileRankModelImpl, boolean isNew)
           
 void clearCache()
          Clears the cache for all document library file ranks.
 void clearCache(DLFileRank dlFileRank)
          Clears the cache for the document library file rank.
 void clearCache(List<DLFileRank> dlFileRanks)
          Clears the cache for a List instances of this model.
protected  void clearUniqueFindersCache(DLFileRankModelImpl dlFileRankModelImpl)
           
 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_A(long groupId, long userId, boolean active)
          Returns the number of document library file ranks where groupId = ? and userId = ? and active = ?.
 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.
 void destroy()
           
 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<DLFileRank> orderByComparator)
          Returns the first document library file rank in the ordered set where fileEntryId = ?.
 DLFileRank fetchByFileEntryId_Last(long fileEntryId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the last document library file rank in the ordered set where fileEntryId = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 DLFileRank fetchByPrimaryKey(long fileRankId)
          Returns the document library file rank with the primary key or returns null if it could not be found.
 DLFileRank fetchByPrimaryKey(Serializable primaryKey)
          Returns the document library file rank with the primary key or returns null if it could not be found.
 Map<Serializable,DLFileRank> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 DLFileRank fetchByUserId_First(long userId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the first document library file rank in the ordered set where userId = ?.
 DLFileRank fetchByUserId_Last(long userId, OrderByComparator<DLFileRank> 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<DLFileRank> orderByComparator)
          Returns an ordered range of all the document library file ranks.
 List<DLFileRank> findAll(int start, int end, OrderByComparator<DLFileRank> orderByComparator, boolean retrieveFromCache)
          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<DLFileRank> orderByComparator)
          Returns the first document library file rank in the ordered set where fileEntryId = ?.
 DLFileRank findByFileEntryId_Last(long fileEntryId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the last document library file rank in the ordered set where fileEntryId = ?.
 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 = ?.
 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<DLFileRank> orderByComparator)
          Returns an ordered range of all the document library file ranks where fileEntryId = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 List<DLFileRank> findByG_U_A(long groupId, long userId, boolean active)
          Returns all the document library file ranks where groupId = ? and userId = ? and active = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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<DLFileRank> orderByComparator)
          Returns an ordered 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<DLFileRank> orderByComparator, boolean retrieveFromCache)
          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 findByPrimaryKey(Serializable primaryKey)
          Returns the document library file rank with the primary key or throws a NoSuchModelException if it could not be found.
 DLFileRank findByUserId_First(long userId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the first document library file rank in the ordered set where userId = ?.
 DLFileRank findByUserId_Last(long userId, OrderByComparator<DLFileRank> orderByComparator)
          Returns the last document library file rank in the ordered set where userId = ?.
 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 = ?.
 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<DLFileRank> orderByComparator)
          Returns an ordered range of all the document library file ranks where userId = ?.
 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 = ?.
 Set<String> getBadColumnNames()
           
protected  DLFileRank getByFileEntryId_PrevAndNext(Session session, DLFileRank dlFileRank, long fileEntryId, OrderByComparator<DLFileRank> orderByComparator, boolean previous)
           
protected  DLFileRank getByG_U_A_PrevAndNext(Session session, DLFileRank dlFileRank, long groupId, long userId, boolean active, OrderByComparator<DLFileRank> orderByComparator, boolean previous)
           
protected  DLFileRank getByG_U_PrevAndNext(Session session, DLFileRank dlFileRank, long groupId, long userId, OrderByComparator<DLFileRank> orderByComparator, boolean previous)
           
protected  DLFileRank getByUserId_PrevAndNext(Session session, DLFileRank dlFileRank, long userId, OrderByComparator<DLFileRank> orderByComparator, boolean previous)
           
protected  Map<String,Integer> getTableColumnsMap()
           
 DLFileRank remove(long fileRankId)
          Removes the document library file rank with the primary key from the database.
 DLFileRank remove(Serializable primaryKey)
          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_A(long groupId, long userId, boolean active)
          Removes all the document library file ranks where groupId = ? and userId = ? and active = ? 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.
protected  DLFileRank removeImpl(DLFileRank dlFileRank)
          Removes the model instance from the database.
protected  DLFileRank toUnwrappedModel(DLFileRank dlFileRank)
           
 DLFileRank updateImpl(DLFileRank dlFileRank)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID

FINDER_PATH_COUNT_BY_USERID

public static final FinderPath FINDER_PATH_COUNT_BY_USERID

FINDER_PATH_WITH_PAGINATION_FIND_BY_FILEENTRYID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_FILEENTRYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_FILEENTRYID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_FILEENTRYID

FINDER_PATH_COUNT_BY_FILEENTRYID

public static final FinderPath FINDER_PATH_COUNT_BY_FILEENTRYID

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U

FINDER_PATH_COUNT_BY_G_U

public static final FinderPath FINDER_PATH_COUNT_BY_G_U

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_A

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_A

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_A

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_A

FINDER_PATH_COUNT_BY_G_U_A

public static final FinderPath FINDER_PATH_COUNT_BY_G_U_A

FINDER_PATH_FETCH_BY_C_U_F

public static final FinderPath FINDER_PATH_FETCH_BY_C_U_F

FINDER_PATH_COUNT_BY_C_U_F

public static final FinderPath FINDER_PATH_COUNT_BY_C_U_F

companyProvider

@BeanReference(type=CompanyProviderWrapper.class)
protected CompanyProvider companyProvider

entityCache

protected EntityCache entityCache

finderCache

protected FinderCache finderCache
Constructor Detail

DLFileRankPersistenceImpl

public DLFileRankPersistenceImpl()
Method Detail

findByUserId

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

Specified by:
findByUserId in interface DLFileRankPersistence
Parameters:
userId - the user ID
Returns:
the matching document library file ranks

findByUserId

public 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.

Specified by:
findByUserId in interface DLFileRankPersistence
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 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.

Specified by:
findByUserId in interface DLFileRankPersistence
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 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.

Specified by:
findByUserId in interface DLFileRankPersistence
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 DLFileRank findByUserId_First(long userId,
                                     OrderByComparator<DLFileRank> orderByComparator)
                              throws NoSuchFileRankException
Returns the first document library file rank in the ordered set where userId = ?.

Specified by:
findByUserId_First in interface DLFileRankPersistence
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 DLFileRank fetchByUserId_First(long userId,
                                      OrderByComparator<DLFileRank> orderByComparator)
Returns the first document library file rank in the ordered set where userId = ?.

Specified by:
fetchByUserId_First in interface DLFileRankPersistence
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 DLFileRank findByUserId_Last(long userId,
                                    OrderByComparator<DLFileRank> orderByComparator)
                             throws NoSuchFileRankException
Returns the last document library file rank in the ordered set where userId = ?.

Specified by:
findByUserId_Last in interface DLFileRankPersistence
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 DLFileRank fetchByUserId_Last(long userId,
                                     OrderByComparator<DLFileRank> orderByComparator)
Returns the last document library file rank in the ordered set where userId = ?.

Specified by:
fetchByUserId_Last in interface DLFileRankPersistence
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 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 = ?.

Specified by:
findByUserId_PrevAndNext in interface DLFileRankPersistence
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

getByUserId_PrevAndNext

protected DLFileRank getByUserId_PrevAndNext(Session session,
                                             DLFileRank dlFileRank,
                                             long userId,
                                             OrderByComparator<DLFileRank> orderByComparator,
                                             boolean previous)

removeByUserId

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

Specified by:
removeByUserId in interface DLFileRankPersistence
Parameters:
userId - the user ID

countByUserId

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

Specified by:
countByUserId in interface DLFileRankPersistence
Parameters:
userId - the user ID
Returns:
the number of matching document library file ranks

findByFileEntryId

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

Specified by:
findByFileEntryId in interface DLFileRankPersistence
Parameters:
fileEntryId - the file entry ID
Returns:
the matching document library file ranks

findByFileEntryId

public 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.

Specified by:
findByFileEntryId in interface DLFileRankPersistence
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 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.

Specified by:
findByFileEntryId in interface DLFileRankPersistence
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 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.

Specified by:
findByFileEntryId in interface DLFileRankPersistence
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 DLFileRank findByFileEntryId_First(long fileEntryId,
                                          OrderByComparator<DLFileRank> orderByComparator)
                                   throws NoSuchFileRankException
Returns the first document library file rank in the ordered set where fileEntryId = ?.

Specified by:
findByFileEntryId_First in interface DLFileRankPersistence
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 DLFileRank fetchByFileEntryId_First(long fileEntryId,
                                           OrderByComparator<DLFileRank> orderByComparator)
Returns the first document library file rank in the ordered set where fileEntryId = ?.

Specified by:
fetchByFileEntryId_First in interface DLFileRankPersistence
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 DLFileRank findByFileEntryId_Last(long fileEntryId,
                                         OrderByComparator<DLFileRank> orderByComparator)
                                  throws NoSuchFileRankException
Returns the last document library file rank in the ordered set where fileEntryId = ?.

Specified by:
findByFileEntryId_Last in interface DLFileRankPersistence
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 DLFileRank fetchByFileEntryId_Last(long fileEntryId,
                                          OrderByComparator<DLFileRank> orderByComparator)
Returns the last document library file rank in the ordered set where fileEntryId = ?.

Specified by:
fetchByFileEntryId_Last in interface DLFileRankPersistence
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 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 = ?.

Specified by:
findByFileEntryId_PrevAndNext in interface DLFileRankPersistence
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

getByFileEntryId_PrevAndNext

protected DLFileRank getByFileEntryId_PrevAndNext(Session session,
                                                  DLFileRank dlFileRank,
                                                  long fileEntryId,
                                                  OrderByComparator<DLFileRank> orderByComparator,
                                                  boolean previous)

removeByFileEntryId

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

Specified by:
removeByFileEntryId in interface DLFileRankPersistence
Parameters:
fileEntryId - the file entry ID

countByFileEntryId

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

Specified by:
countByFileEntryId in interface DLFileRankPersistence
Parameters:
fileEntryId - the file entry ID
Returns:
the number of matching document library file ranks

findByG_U

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

Specified by:
findByG_U in interface DLFileRankPersistence
Parameters:
groupId - the group ID
userId - the user ID
Returns:
the matching document library file ranks

findByG_U

public 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.

Specified by:
findByG_U in interface DLFileRankPersistence
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 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.

Specified by:
findByG_U in interface DLFileRankPersistence
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 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.

Specified by:
findByG_U in interface DLFileRankPersistence
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 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 = ?.

Specified by:
findByG_U_First in interface DLFileRankPersistence
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 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 = ?.

Specified by:
fetchByG_U_First in interface DLFileRankPersistence
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 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 = ?.

Specified by:
findByG_U_Last in interface DLFileRankPersistence
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 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 = ?.

Specified by:
fetchByG_U_Last in interface DLFileRankPersistence
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 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 = ?.

Specified by:
findByG_U_PrevAndNext in interface DLFileRankPersistence
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

getByG_U_PrevAndNext

protected DLFileRank getByG_U_PrevAndNext(Session session,
                                          DLFileRank dlFileRank,
                                          long groupId,
                                          long userId,
                                          OrderByComparator<DLFileRank> orderByComparator,
                                          boolean previous)

removeByG_U

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

Specified by:
removeByG_U in interface DLFileRankPersistence
Parameters:
groupId - the group ID
userId - the user ID

countByG_U

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

Specified by:
countByG_U in interface DLFileRankPersistence
Parameters:
groupId - the group ID
userId - the user ID
Returns:
the number of matching document library file ranks

findByG_U_A

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

Specified by:
findByG_U_A in interface DLFileRankPersistence
Parameters:
groupId - the group ID
userId - the user ID
active - the active
Returns:
the matching document library file ranks

findByG_U_A

public 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.

Specified by:
findByG_U_A in interface DLFileRankPersistence
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 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.

Specified by:
findByG_U_A in interface DLFileRankPersistence
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 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.

Specified by:
findByG_U_A in interface DLFileRankPersistence
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 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 = ?.

Specified by:
findByG_U_A_First in interface DLFileRankPersistence
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 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 = ?.

Specified by:
fetchByG_U_A_First in interface DLFileRankPersistence
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 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 = ?.

Specified by:
findByG_U_A_Last in interface DLFileRankPersistence
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 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 = ?.

Specified by:
fetchByG_U_A_Last in interface DLFileRankPersistence
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 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 = ?.

Specified by:
findByG_U_A_PrevAndNext in interface DLFileRankPersistence
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

getByG_U_A_PrevAndNext

protected DLFileRank getByG_U_A_PrevAndNext(Session session,
                                            DLFileRank dlFileRank,
                                            long groupId,
                                            long userId,
                                            boolean active,
                                            OrderByComparator<DLFileRank> orderByComparator,
                                            boolean previous)

removeByG_U_A

public 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.

Specified by:
removeByG_U_A in interface DLFileRankPersistence
Parameters:
groupId - the group ID
userId - the user ID
active - the active

countByG_U_A

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

Specified by:
countByG_U_A in interface DLFileRankPersistence
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 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.

Specified by:
findByC_U_F in interface DLFileRankPersistence
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 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.

Specified by:
fetchByC_U_F in interface DLFileRankPersistence
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 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.

Specified by:
fetchByC_U_F in interface DLFileRankPersistence
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 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.

Specified by:
removeByC_U_F in interface DLFileRankPersistence
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 int countByC_U_F(long companyId,
                        long userId,
                        long fileEntryId)
Returns the number of document library file ranks where companyId = ? and userId = ? and fileEntryId = ?.

Specified by:
countByC_U_F in interface DLFileRankPersistence
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 void cacheResult(DLFileRank dlFileRank)
Caches the document library file rank in the entity cache if it is enabled.

Specified by:
cacheResult in interface DLFileRankPersistence
Parameters:
dlFileRank - the document library file rank

cacheResult

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

Specified by:
cacheResult in interface DLFileRankPersistence
Parameters:
dlFileRanks - the document library file ranks

clearCache

public void clearCache()
Clears the cache for all document library file ranks.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<DLFileRank>
Overrides:
clearCache in class BasePersistenceImpl<DLFileRank>

clearCache

public void clearCache(DLFileRank dlFileRank)
Clears the cache for the document library file rank.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<DLFileRank>
Overrides:
clearCache in class BasePersistenceImpl<DLFileRank>
Parameters:
dlFileRank - the instance of this model to clear the cache for

clearCache

public void clearCache(List<DLFileRank> dlFileRanks)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<DLFileRank>
Overrides:
clearCache in class BasePersistenceImpl<DLFileRank>
Parameters:
dlFileRanks - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(DLFileRankModelImpl dlFileRankModelImpl,
                                       boolean isNew)

clearUniqueFindersCache

protected void clearUniqueFindersCache(DLFileRankModelImpl dlFileRankModelImpl)

create

public 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.

Specified by:
create in interface DLFileRankPersistence
Parameters:
fileRankId - the primary key for the new document library file rank
Returns:
the new document library file rank

remove

public 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.

Specified by:
remove in interface DLFileRankPersistence
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

remove

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

Specified by:
remove in interface BasePersistence<DLFileRank>
Overrides:
remove in class BasePersistenceImpl<DLFileRank>
Parameters:
primaryKey - 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

removeImpl

protected DLFileRank removeImpl(DLFileRank dlFileRank)
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<DLFileRank>
Parameters:
dlFileRank - the model instance to remove
Returns:
the model instance that was removed

updateImpl

public DLFileRank updateImpl(DLFileRank dlFileRank)
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface DLFileRankPersistence
Overrides:
updateImpl in class BasePersistenceImpl<DLFileRank>
Parameters:
dlFileRank - the model instance to update
Returns:
the model instance that was updated

toUnwrappedModel

protected DLFileRank toUnwrappedModel(DLFileRank dlFileRank)

findByPrimaryKey

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

Specified by:
findByPrimaryKey in interface BasePersistence<DLFileRank>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<DLFileRank>
Parameters:
primaryKey - 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

findByPrimaryKey

public 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.

Specified by:
findByPrimaryKey in interface DLFileRankPersistence
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 DLFileRank fetchByPrimaryKey(Serializable primaryKey)
Returns the document library file rank with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<DLFileRank>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<DLFileRank>
Parameters:
primaryKey - 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

fetchByPrimaryKey

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

Specified by:
fetchByPrimaryKey in interface DLFileRankPersistence
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 Map<Serializable,DLFileRank> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<DLFileRank>
Specified by:
fetchByPrimaryKeys in interface DLFileRankPersistence
Overrides:
fetchByPrimaryKeys in class BasePersistenceImpl<DLFileRank>

findAll

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

Specified by:
findAll in interface DLFileRankPersistence
Returns:
the document library file ranks

findAll

public 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.

Specified by:
findAll in interface DLFileRankPersistence
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 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.

Specified by:
findAll in interface DLFileRankPersistence
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 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.

Specified by:
findAll in interface DLFileRankPersistence
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 void removeAll()
Removes all the document library file ranks from the database.

Specified by:
removeAll in interface DLFileRankPersistence

countAll

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

Specified by:
countAll in interface DLFileRankPersistence
Returns:
the number of document library file ranks

getBadColumnNames

public Set<String> getBadColumnNames()
Specified by:
getBadColumnNames in interface BasePersistence<DLFileRank>
Specified by:
getBadColumnNames in interface DLFileRankPersistence
Overrides:
getBadColumnNames in class BasePersistenceImpl<DLFileRank>

getTableColumnsMap

protected Map<String,Integer> getTableColumnsMap()
Overrides:
getTableColumnsMap in class BasePersistenceImpl<DLFileRank>

afterPropertiesSet

public void afterPropertiesSet()
Initializes the document library file rank persistence.


destroy

public void destroy()

Liferay 7.0-ce-b4