|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<DLFileRank>
com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistenceImpl
public class DLFileRankPersistenceImpl
The persistence implementation for the document library file rank service.
Caching information and settings can be found in portal.properties
DLFileRankPersistence
,
DLFileRankUtil
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, 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(DLFileRank dlFileRank)
|
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(DLFileRank dlFileRank)
|
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 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_A_First(long groupId,
long userId,
boolean active,
OrderByComparator 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 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 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 |
fetchByPrimaryKey(Serializable primaryKey)
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_A_First(long groupId,
long userId,
boolean active,
OrderByComparator 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 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 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 orderByComparator)
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 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 |
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 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 = ?. |
protected Set<String> |
getBadColumnNames()
|
protected DLFileRank |
getByFileEntryId_PrevAndNext(Session session,
DLFileRank dlFileRank,
long fileEntryId,
OrderByComparator orderByComparator,
boolean previous)
|
protected DLFileRank |
getByG_U_A_PrevAndNext(Session session,
DLFileRank dlFileRank,
long groupId,
long userId,
boolean active,
OrderByComparator orderByComparator,
boolean previous)
|
protected DLFileRank |
getByG_U_PrevAndNext(Session session,
DLFileRank dlFileRank,
long groupId,
long userId,
OrderByComparator orderByComparator,
boolean previous)
|
protected DLFileRank |
getByUserId_PrevAndNext(Session session,
DLFileRank dlFileRank,
long userId,
OrderByComparator orderByComparator,
boolean previous)
|
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, 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 |
---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID
public static final FinderPath FINDER_PATH_COUNT_BY_USERID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_FILEENTRYID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_FILEENTRYID
public static final FinderPath FINDER_PATH_COUNT_BY_FILEENTRYID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U
public static final FinderPath FINDER_PATH_COUNT_BY_G_U
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_A
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_A
public static final FinderPath FINDER_PATH_COUNT_BY_G_U_A
public static final FinderPath FINDER_PATH_FETCH_BY_C_U_F
public static final FinderPath FINDER_PATH_COUNT_BY_C_U_F
Constructor Detail |
---|
public DLFileRankPersistenceImpl()
Method Detail |
---|
public List<DLFileRank> findByUserId(long userId) throws SystemException
findByUserId
in interface DLFileRankPersistence
userId
- the user ID
SystemException
- if a system exception occurredpublic List<DLFileRank> findByUserId(long userId, int start, int end) throws SystemException
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.
findByUserId
in interface DLFileRankPersistence
userId
- the user IDstart
- the lower bound of the range of document library file ranksend
- the upper bound of the range of document library file ranks (not inclusive)
SystemException
- if a system exception occurredpublic List<DLFileRank> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByUserId
in interface DLFileRankPersistence
userId
- the user IDstart
- the lower bound of the range of document library file ranksend
- the upper bound of the range of document library file ranks (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DLFileRank findByUserId_First(long userId, OrderByComparator orderByComparator) throws NoSuchFileRankException, SystemException
findByUserId_First
in interface DLFileRankPersistence
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileRankException
- if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank fetchByUserId_First(long userId, OrderByComparator orderByComparator) throws SystemException
fetchByUserId_First
in interface DLFileRankPersistence
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank findByUserId_Last(long userId, OrderByComparator orderByComparator) throws NoSuchFileRankException, SystemException
findByUserId_Last
in interface DLFileRankPersistence
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileRankException
- if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank fetchByUserId_Last(long userId, OrderByComparator orderByComparator) throws SystemException
fetchByUserId_Last
in interface DLFileRankPersistence
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank[] findByUserId_PrevAndNext(long fileRankId, long userId, OrderByComparator orderByComparator) throws NoSuchFileRankException, SystemException
findByUserId_PrevAndNext
in interface DLFileRankPersistence
fileRankId
- the primary key of the current document library file rankuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileRankException
- if a document library file rank with the primary key could not be found
SystemException
- if a system exception occurredprotected DLFileRank getByUserId_PrevAndNext(Session session, DLFileRank dlFileRank, long userId, OrderByComparator orderByComparator, boolean previous)
public void removeByUserId(long userId) throws SystemException
removeByUserId
in interface DLFileRankPersistence
userId
- the user ID
SystemException
- if a system exception occurredpublic int countByUserId(long userId) throws SystemException
countByUserId
in interface DLFileRankPersistence
userId
- the user ID
SystemException
- if a system exception occurredpublic List<DLFileRank> findByFileEntryId(long fileEntryId) throws SystemException
findByFileEntryId
in interface DLFileRankPersistence
fileEntryId
- the file entry ID
SystemException
- if a system exception occurredpublic List<DLFileRank> findByFileEntryId(long fileEntryId, int start, int end) throws SystemException
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.
findByFileEntryId
in interface DLFileRankPersistence
fileEntryId
- the file entry IDstart
- the lower bound of the range of document library file ranksend
- the upper bound of the range of document library file ranks (not inclusive)
SystemException
- if a system exception occurredpublic List<DLFileRank> findByFileEntryId(long fileEntryId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByFileEntryId
in interface DLFileRankPersistence
fileEntryId
- the file entry IDstart
- the lower bound of the range of document library file ranksend
- the upper bound of the range of document library file ranks (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DLFileRank findByFileEntryId_First(long fileEntryId, OrderByComparator orderByComparator) throws NoSuchFileRankException, SystemException
findByFileEntryId_First
in interface DLFileRankPersistence
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileRankException
- if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank fetchByFileEntryId_First(long fileEntryId, OrderByComparator orderByComparator) throws SystemException
fetchByFileEntryId_First
in interface DLFileRankPersistence
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank findByFileEntryId_Last(long fileEntryId, OrderByComparator orderByComparator) throws NoSuchFileRankException, SystemException
findByFileEntryId_Last
in interface DLFileRankPersistence
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileRankException
- if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank fetchByFileEntryId_Last(long fileEntryId, OrderByComparator orderByComparator) throws SystemException
fetchByFileEntryId_Last
in interface DLFileRankPersistence
fileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank[] findByFileEntryId_PrevAndNext(long fileRankId, long fileEntryId, OrderByComparator orderByComparator) throws NoSuchFileRankException, SystemException
findByFileEntryId_PrevAndNext
in interface DLFileRankPersistence
fileRankId
- the primary key of the current document library file rankfileEntryId
- the file entry IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileRankException
- if a document library file rank with the primary key could not be found
SystemException
- if a system exception occurredprotected DLFileRank getByFileEntryId_PrevAndNext(Session session, DLFileRank dlFileRank, long fileEntryId, OrderByComparator orderByComparator, boolean previous)
public void removeByFileEntryId(long fileEntryId) throws SystemException
removeByFileEntryId
in interface DLFileRankPersistence
fileEntryId
- the file entry ID
SystemException
- if a system exception occurredpublic int countByFileEntryId(long fileEntryId) throws SystemException
countByFileEntryId
in interface DLFileRankPersistence
fileEntryId
- the file entry ID
SystemException
- if a system exception occurredpublic List<DLFileRank> findByG_U(long groupId, long userId) throws SystemException
findByG_U
in interface DLFileRankPersistence
groupId
- the group IDuserId
- the user ID
SystemException
- if a system exception occurredpublic List<DLFileRank> findByG_U(long groupId, long userId, int start, int end) throws SystemException
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.
findByG_U
in interface DLFileRankPersistence
groupId
- the group IDuserId
- the user IDstart
- the lower bound of the range of document library file ranksend
- the upper bound of the range of document library file ranks (not inclusive)
SystemException
- if a system exception occurredpublic List<DLFileRank> findByG_U(long groupId, long userId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByG_U
in interface DLFileRankPersistence
groupId
- the group IDuserId
- the user IDstart
- the lower bound of the range of document library file ranksend
- the upper bound of the range of document library file ranks (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DLFileRank findByG_U_First(long groupId, long userId, OrderByComparator orderByComparator) throws NoSuchFileRankException, SystemException
findByG_U_First
in interface DLFileRankPersistence
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileRankException
- if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank fetchByG_U_First(long groupId, long userId, OrderByComparator orderByComparator) throws SystemException
fetchByG_U_First
in interface DLFileRankPersistence
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank findByG_U_Last(long groupId, long userId, OrderByComparator orderByComparator) throws NoSuchFileRankException, SystemException
findByG_U_Last
in interface DLFileRankPersistence
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileRankException
- if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank fetchByG_U_Last(long groupId, long userId, OrderByComparator orderByComparator) throws SystemException
fetchByG_U_Last
in interface DLFileRankPersistence
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank[] findByG_U_PrevAndNext(long fileRankId, long groupId, long userId, OrderByComparator orderByComparator) throws NoSuchFileRankException, SystemException
findByG_U_PrevAndNext
in interface DLFileRankPersistence
fileRankId
- the primary key of the current document library file rankgroupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileRankException
- if a document library file rank with the primary key could not be found
SystemException
- if a system exception occurredprotected DLFileRank getByG_U_PrevAndNext(Session session, DLFileRank dlFileRank, long groupId, long userId, OrderByComparator orderByComparator, boolean previous)
public void removeByG_U(long groupId, long userId) throws SystemException
removeByG_U
in interface DLFileRankPersistence
groupId
- the group IDuserId
- the user ID
SystemException
- if a system exception occurredpublic int countByG_U(long groupId, long userId) throws SystemException
countByG_U
in interface DLFileRankPersistence
groupId
- the group IDuserId
- the user ID
SystemException
- if a system exception occurredpublic List<DLFileRank> findByG_U_A(long groupId, long userId, boolean active) throws SystemException
findByG_U_A
in interface DLFileRankPersistence
groupId
- the group IDuserId
- the user IDactive
- the active
SystemException
- if a system exception occurredpublic List<DLFileRank> findByG_U_A(long groupId, long userId, boolean active, int start, int end) throws SystemException
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.
findByG_U_A
in interface DLFileRankPersistence
groupId
- the group IDuserId
- the user IDactive
- the activestart
- the lower bound of the range of document library file ranksend
- the upper bound of the range of document library file ranks (not inclusive)
SystemException
- if a system exception occurredpublic List<DLFileRank> findByG_U_A(long groupId, long userId, boolean active, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByG_U_A
in interface DLFileRankPersistence
groupId
- the group IDuserId
- the user IDactive
- the activestart
- the lower bound of the range of document library file ranksend
- the upper bound of the range of document library file ranks (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DLFileRank findByG_U_A_First(long groupId, long userId, boolean active, OrderByComparator orderByComparator) throws NoSuchFileRankException, SystemException
findByG_U_A_First
in interface DLFileRankPersistence
groupId
- the group IDuserId
- the user IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileRankException
- if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank fetchByG_U_A_First(long groupId, long userId, boolean active, OrderByComparator orderByComparator) throws SystemException
fetchByG_U_A_First
in interface DLFileRankPersistence
groupId
- the group IDuserId
- the user IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank findByG_U_A_Last(long groupId, long userId, boolean active, OrderByComparator orderByComparator) throws NoSuchFileRankException, SystemException
findByG_U_A_Last
in interface DLFileRankPersistence
groupId
- the group IDuserId
- the user IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileRankException
- if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank fetchByG_U_A_Last(long groupId, long userId, boolean active, OrderByComparator orderByComparator) throws SystemException
fetchByG_U_A_Last
in interface DLFileRankPersistence
groupId
- the group IDuserId
- the user IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank[] findByG_U_A_PrevAndNext(long fileRankId, long groupId, long userId, boolean active, OrderByComparator orderByComparator) throws NoSuchFileRankException, SystemException
findByG_U_A_PrevAndNext
in interface DLFileRankPersistence
fileRankId
- the primary key of the current document library file rankgroupId
- the group IDuserId
- the user IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchFileRankException
- if a document library file rank with the primary key could not be found
SystemException
- if a system exception occurredprotected DLFileRank getByG_U_A_PrevAndNext(Session session, DLFileRank dlFileRank, long groupId, long userId, boolean active, OrderByComparator orderByComparator, boolean previous)
public void removeByG_U_A(long groupId, long userId, boolean active) throws SystemException
removeByG_U_A
in interface DLFileRankPersistence
groupId
- the group IDuserId
- the user IDactive
- the active
SystemException
- if a system exception occurredpublic int countByG_U_A(long groupId, long userId, boolean active) throws SystemException
countByG_U_A
in interface DLFileRankPersistence
groupId
- the group IDuserId
- the user IDactive
- the active
SystemException
- if a system exception occurredpublic DLFileRank findByC_U_F(long companyId, long userId, long fileEntryId) throws NoSuchFileRankException, SystemException
NoSuchFileRankException
if it could not be found.
findByC_U_F
in interface DLFileRankPersistence
companyId
- the company IDuserId
- the user IDfileEntryId
- the file entry ID
NoSuchFileRankException
- if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank fetchByC_U_F(long companyId, long userId, long fileEntryId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByC_U_F
in interface DLFileRankPersistence
companyId
- the company IDuserId
- the user IDfileEntryId
- the file entry ID
null
if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank fetchByC_U_F(long companyId, long userId, long fileEntryId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByC_U_F
in interface DLFileRankPersistence
companyId
- the company IDuserId
- the user IDfileEntryId
- the file entry IDretrieveFromCache
- whether to use the finder cache
null
if a matching document library file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank removeByC_U_F(long companyId, long userId, long fileEntryId) throws NoSuchFileRankException, SystemException
removeByC_U_F
in interface DLFileRankPersistence
companyId
- the company IDuserId
- the user IDfileEntryId
- the file entry ID
SystemException
- if a system exception occurred
NoSuchFileRankException
public int countByC_U_F(long companyId, long userId, long fileEntryId) throws SystemException
countByC_U_F
in interface DLFileRankPersistence
companyId
- the company IDuserId
- the user IDfileEntryId
- the file entry ID
SystemException
- if a system exception occurredpublic void cacheResult(DLFileRank dlFileRank)
cacheResult
in interface DLFileRankPersistence
dlFileRank
- the document library file rankpublic void cacheResult(List<DLFileRank> dlFileRanks)
cacheResult
in interface DLFileRankPersistence
dlFileRanks
- the document library file rankspublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<DLFileRank>
clearCache
in class BasePersistenceImpl<DLFileRank>
public void clearCache(DLFileRank dlFileRank)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<DLFileRank>
clearCache
in class BasePersistenceImpl<DLFileRank>
dlFileRank
- the instance of this model to clear the cache forpublic void clearCache(List<DLFileRank> dlFileRanks)
BasePersistence
The EntityCache
and FinderCache
are both cleared by this
method.
clearCache
in interface BasePersistence<DLFileRank>
clearCache
in class BasePersistenceImpl<DLFileRank>
dlFileRanks
- the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(DLFileRank dlFileRank)
protected void clearUniqueFindersCache(DLFileRank dlFileRank)
public DLFileRank create(long fileRankId)
create
in interface DLFileRankPersistence
fileRankId
- the primary key for the new document library file rank
public DLFileRank remove(long fileRankId) throws NoSuchFileRankException, SystemException
remove
in interface DLFileRankPersistence
fileRankId
- the primary key of the document library file rank
NoSuchFileRankException
- if a document library file rank with the primary key could not be found
SystemException
- if a system exception occurredpublic DLFileRank remove(Serializable primaryKey) throws NoSuchFileRankException, SystemException
remove
in interface BasePersistence<DLFileRank>
remove
in class BasePersistenceImpl<DLFileRank>
primaryKey
- the primary key of the document library file rank
NoSuchFileRankException
- if a document library file rank with the primary key could not be found
SystemException
- if a system exception occurredprotected DLFileRank removeImpl(DLFileRank dlFileRank) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.update(BaseModel,
boolean)
depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl
in class BasePersistenceImpl<DLFileRank>
dlFileRank
- the model instance to remove
SystemException
- if a system exception occurredpublic DLFileRank updateImpl(DLFileRank dlFileRank) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface DLFileRankPersistence
updateImpl
in class BasePersistenceImpl<DLFileRank>
dlFileRank
- the model instance to update
SystemException
- if a system exception occurredprotected DLFileRank toUnwrappedModel(DLFileRank dlFileRank)
public DLFileRank findByPrimaryKey(Serializable primaryKey) throws NoSuchFileRankException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<DLFileRank>
findByPrimaryKey
in class BasePersistenceImpl<DLFileRank>
primaryKey
- the primary key of the document library file rank
NoSuchFileRankException
- if a document library file rank with the primary key could not be found
SystemException
- if a system exception occurredpublic DLFileRank findByPrimaryKey(long fileRankId) throws NoSuchFileRankException, SystemException
NoSuchFileRankException
if it could not be found.
findByPrimaryKey
in interface DLFileRankPersistence
fileRankId
- the primary key of the document library file rank
NoSuchFileRankException
- if a document library file rank with the primary key could not be found
SystemException
- if a system exception occurredpublic DLFileRank fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<DLFileRank>
fetchByPrimaryKey
in class BasePersistenceImpl<DLFileRank>
primaryKey
- the primary key of the document library file rank
null
if a document library file rank with the primary key could not be found
SystemException
- if a system exception occurredpublic DLFileRank fetchByPrimaryKey(long fileRankId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface DLFileRankPersistence
fileRankId
- the primary key of the document library file rank
null
if a document library file rank with the primary key could not be found
SystemException
- if a system exception occurredpublic List<DLFileRank> findAll() throws SystemException
findAll
in interface DLFileRankPersistence
SystemException
- if a system exception occurredpublic List<DLFileRank> findAll(int start, int end) throws SystemException
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.
findAll
in interface DLFileRankPersistence
start
- the lower bound of the range of document library file ranksend
- the upper bound of the range of document library file ranks (not inclusive)
SystemException
- if a system exception occurredpublic List<DLFileRank> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findAll
in interface DLFileRankPersistence
start
- the lower bound of the range of document library file ranksend
- the upper bound of the range of document library file ranks (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic void removeAll() throws SystemException
removeAll
in interface DLFileRankPersistence
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface DLFileRankPersistence
SystemException
- if a system exception occurredprotected Set<String> getBadColumnNames()
getBadColumnNames
in class BasePersistenceImpl<DLFileRank>
public void afterPropertiesSet()
public void destroy()
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |