|
Liferay 7.0-ce-b4 | |||||||||
| 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.impl.DLFileRankPersistenceImpl
@ProviderType 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 |
|---|
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 |
|---|
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
@BeanReference(type=CompanyProviderWrapper.class) protected CompanyProvider companyProvider
protected EntityCache entityCache
protected FinderCache finderCache
| Constructor Detail |
|---|
public DLFileRankPersistenceImpl()
| Method Detail |
|---|
public List<DLFileRank> findByUserId(long userId)
findByUserId in interface DLFileRankPersistenceuserId - the user ID
public List<DLFileRank> findByUserId(long userId,
int start,
int end)
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 DLFileRankPersistenceuserId - 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)
public List<DLFileRank> findByUserId(long userId,
int start,
int end,
OrderByComparator<DLFileRank> orderByComparator)
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 DLFileRankPersistenceuserId - 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)
public List<DLFileRank> findByUserId(long userId,
int start,
int end,
OrderByComparator<DLFileRank> orderByComparator,
boolean retrieveFromCache)
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 DLFileRankPersistenceuserId - 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)retrieveFromCache - whether to retrieve from the finder cache
public DLFileRank findByUserId_First(long userId,
OrderByComparator<DLFileRank> orderByComparator)
throws NoSuchFileRankException
findByUserId_First in interface DLFileRankPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchFileRankException - if a matching document library file rank could not be found
public DLFileRank fetchByUserId_First(long userId,
OrderByComparator<DLFileRank> orderByComparator)
fetchByUserId_First in interface DLFileRankPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching document library file rank could not be found
public DLFileRank findByUserId_Last(long userId,
OrderByComparator<DLFileRank> orderByComparator)
throws NoSuchFileRankException
findByUserId_Last in interface DLFileRankPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchFileRankException - if a matching document library file rank could not be found
public DLFileRank fetchByUserId_Last(long userId,
OrderByComparator<DLFileRank> orderByComparator)
fetchByUserId_Last in interface DLFileRankPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching document library file rank could not be found
public DLFileRank[] findByUserId_PrevAndNext(long fileRankId,
long userId,
OrderByComparator<DLFileRank> orderByComparator)
throws NoSuchFileRankException
findByUserId_PrevAndNext in interface DLFileRankPersistencefileRankId - 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
protected DLFileRank getByUserId_PrevAndNext(Session session,
DLFileRank dlFileRank,
long userId,
OrderByComparator<DLFileRank> orderByComparator,
boolean previous)
public void removeByUserId(long userId)
removeByUserId in interface DLFileRankPersistenceuserId - the user IDpublic int countByUserId(long userId)
countByUserId in interface DLFileRankPersistenceuserId - the user ID
public List<DLFileRank> findByFileEntryId(long fileEntryId)
findByFileEntryId in interface DLFileRankPersistencefileEntryId - the file entry ID
public List<DLFileRank> findByFileEntryId(long fileEntryId,
int start,
int end)
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 DLFileRankPersistencefileEntryId - 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)
public List<DLFileRank> findByFileEntryId(long fileEntryId,
int start,
int end,
OrderByComparator<DLFileRank> orderByComparator)
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 DLFileRankPersistencefileEntryId - 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)
public List<DLFileRank> findByFileEntryId(long fileEntryId,
int start,
int end,
OrderByComparator<DLFileRank> orderByComparator,
boolean retrieveFromCache)
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 DLFileRankPersistencefileEntryId - 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)retrieveFromCache - whether to retrieve from the finder cache
public DLFileRank findByFileEntryId_First(long fileEntryId,
OrderByComparator<DLFileRank> orderByComparator)
throws NoSuchFileRankException
findByFileEntryId_First in interface DLFileRankPersistencefileEntryId - 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
public DLFileRank fetchByFileEntryId_First(long fileEntryId,
OrderByComparator<DLFileRank> orderByComparator)
fetchByFileEntryId_First in interface DLFileRankPersistencefileEntryId - 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
public DLFileRank findByFileEntryId_Last(long fileEntryId,
OrderByComparator<DLFileRank> orderByComparator)
throws NoSuchFileRankException
findByFileEntryId_Last in interface DLFileRankPersistencefileEntryId - 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
public DLFileRank fetchByFileEntryId_Last(long fileEntryId,
OrderByComparator<DLFileRank> orderByComparator)
fetchByFileEntryId_Last in interface DLFileRankPersistencefileEntryId - 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
public DLFileRank[] findByFileEntryId_PrevAndNext(long fileRankId,
long fileEntryId,
OrderByComparator<DLFileRank> orderByComparator)
throws NoSuchFileRankException
findByFileEntryId_PrevAndNext in interface DLFileRankPersistencefileRankId - 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
protected DLFileRank getByFileEntryId_PrevAndNext(Session session,
DLFileRank dlFileRank,
long fileEntryId,
OrderByComparator<DLFileRank> orderByComparator,
boolean previous)
public void removeByFileEntryId(long fileEntryId)
removeByFileEntryId in interface DLFileRankPersistencefileEntryId - the file entry IDpublic int countByFileEntryId(long fileEntryId)
countByFileEntryId in interface DLFileRankPersistencefileEntryId - the file entry ID
public List<DLFileRank> findByG_U(long groupId,
long userId)
findByG_U in interface DLFileRankPersistencegroupId - the group IDuserId - the user ID
public List<DLFileRank> findByG_U(long groupId,
long userId,
int start,
int end)
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 DLFileRankPersistencegroupId - 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)
public List<DLFileRank> findByG_U(long groupId,
long userId,
int start,
int end,
OrderByComparator<DLFileRank> orderByComparator)
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 DLFileRankPersistencegroupId - 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)
public List<DLFileRank> findByG_U(long groupId,
long userId,
int start,
int end,
OrderByComparator<DLFileRank> orderByComparator,
boolean retrieveFromCache)
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 DLFileRankPersistencegroupId - 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)retrieveFromCache - whether to retrieve from the finder cache
public DLFileRank findByG_U_First(long groupId,
long userId,
OrderByComparator<DLFileRank> orderByComparator)
throws NoSuchFileRankException
findByG_U_First in interface DLFileRankPersistencegroupId - 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
public DLFileRank fetchByG_U_First(long groupId,
long userId,
OrderByComparator<DLFileRank> orderByComparator)
fetchByG_U_First in interface DLFileRankPersistencegroupId - 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
public DLFileRank findByG_U_Last(long groupId,
long userId,
OrderByComparator<DLFileRank> orderByComparator)
throws NoSuchFileRankException
findByG_U_Last in interface DLFileRankPersistencegroupId - 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
public DLFileRank fetchByG_U_Last(long groupId,
long userId,
OrderByComparator<DLFileRank> orderByComparator)
fetchByG_U_Last in interface DLFileRankPersistencegroupId - 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
public DLFileRank[] findByG_U_PrevAndNext(long fileRankId,
long groupId,
long userId,
OrderByComparator<DLFileRank> orderByComparator)
throws NoSuchFileRankException
findByG_U_PrevAndNext in interface DLFileRankPersistencefileRankId - 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
protected DLFileRank getByG_U_PrevAndNext(Session session,
DLFileRank dlFileRank,
long groupId,
long userId,
OrderByComparator<DLFileRank> orderByComparator,
boolean previous)
public void removeByG_U(long groupId,
long userId)
removeByG_U in interface DLFileRankPersistencegroupId - the group IDuserId - the user ID
public int countByG_U(long groupId,
long userId)
countByG_U in interface DLFileRankPersistencegroupId - the group IDuserId - the user ID
public List<DLFileRank> findByG_U_A(long groupId,
long userId,
boolean active)
findByG_U_A in interface DLFileRankPersistencegroupId - the group IDuserId - the user IDactive - the active
public List<DLFileRank> findByG_U_A(long groupId,
long userId,
boolean active,
int start,
int end)
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 DLFileRankPersistencegroupId - 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)
public List<DLFileRank> findByG_U_A(long groupId,
long userId,
boolean active,
int start,
int end,
OrderByComparator<DLFileRank> orderByComparator)
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 DLFileRankPersistencegroupId - 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)
public List<DLFileRank> findByG_U_A(long groupId,
long userId,
boolean active,
int start,
int end,
OrderByComparator<DLFileRank> orderByComparator,
boolean retrieveFromCache)
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 DLFileRankPersistencegroupId - 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)retrieveFromCache - whether to retrieve from the finder cache
public DLFileRank findByG_U_A_First(long groupId,
long userId,
boolean active,
OrderByComparator<DLFileRank> orderByComparator)
throws NoSuchFileRankException
findByG_U_A_First in interface DLFileRankPersistencegroupId - 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
public DLFileRank fetchByG_U_A_First(long groupId,
long userId,
boolean active,
OrderByComparator<DLFileRank> orderByComparator)
fetchByG_U_A_First in interface DLFileRankPersistencegroupId - 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
public DLFileRank findByG_U_A_Last(long groupId,
long userId,
boolean active,
OrderByComparator<DLFileRank> orderByComparator)
throws NoSuchFileRankException
findByG_U_A_Last in interface DLFileRankPersistencegroupId - 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
public DLFileRank fetchByG_U_A_Last(long groupId,
long userId,
boolean active,
OrderByComparator<DLFileRank> orderByComparator)
fetchByG_U_A_Last in interface DLFileRankPersistencegroupId - 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
public DLFileRank[] findByG_U_A_PrevAndNext(long fileRankId,
long groupId,
long userId,
boolean active,
OrderByComparator<DLFileRank> orderByComparator)
throws NoSuchFileRankException
findByG_U_A_PrevAndNext in interface DLFileRankPersistencefileRankId - 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
protected DLFileRank getByG_U_A_PrevAndNext(Session session,
DLFileRank dlFileRank,
long groupId,
long userId,
boolean active,
OrderByComparator<DLFileRank> orderByComparator,
boolean previous)
public void removeByG_U_A(long groupId,
long userId,
boolean active)
removeByG_U_A in interface DLFileRankPersistencegroupId - the group IDuserId - the user IDactive - the active
public int countByG_U_A(long groupId,
long userId,
boolean active)
countByG_U_A in interface DLFileRankPersistencegroupId - the group IDuserId - the user IDactive - the active
public DLFileRank findByC_U_F(long companyId,
long userId,
long fileEntryId)
throws NoSuchFileRankException
NoSuchFileRankException if it could not be found.
findByC_U_F in interface DLFileRankPersistencecompanyId - the company IDuserId - the user IDfileEntryId - the file entry ID
NoSuchFileRankException - if a matching document library file rank could not be found
public DLFileRank fetchByC_U_F(long companyId,
long userId,
long fileEntryId)
null if it could not be found. Uses the finder cache.
fetchByC_U_F in interface DLFileRankPersistencecompanyId - the company IDuserId - the user IDfileEntryId - the file entry ID
null if a matching document library file rank could not be found
public DLFileRank fetchByC_U_F(long companyId,
long userId,
long fileEntryId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByC_U_F in interface DLFileRankPersistencecompanyId - the company IDuserId - the user IDfileEntryId - the file entry IDretrieveFromCache - whether to retrieve from the finder cache
null if a matching document library file rank could not be found
public DLFileRank removeByC_U_F(long companyId,
long userId,
long fileEntryId)
throws NoSuchFileRankException
removeByC_U_F in interface DLFileRankPersistencecompanyId - the company IDuserId - the user IDfileEntryId - the file entry ID
NoSuchFileRankException
public int countByC_U_F(long companyId,
long userId,
long fileEntryId)
countByC_U_F in interface DLFileRankPersistencecompanyId - the company IDuserId - the user IDfileEntryId - the file entry ID
public void cacheResult(DLFileRank dlFileRank)
cacheResult in interface DLFileRankPersistencedlFileRank - the document library file rankpublic void cacheResult(List<DLFileRank> dlFileRanks)
cacheResult in interface DLFileRankPersistencedlFileRanks - 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 for
protected void cacheUniqueFindersCache(DLFileRankModelImpl dlFileRankModelImpl,
boolean isNew)
protected void clearUniqueFindersCache(DLFileRankModelImpl dlFileRankModelImpl)
public DLFileRank create(long fileRankId)
create in interface DLFileRankPersistencefileRankId - the primary key for the new document library file rank
public DLFileRank remove(long fileRankId)
throws NoSuchFileRankException
remove in interface DLFileRankPersistencefileRankId - the primary key of the document library file rank
NoSuchFileRankException - if a document library file rank with the primary key could not be found
public DLFileRank remove(Serializable primaryKey)
throws NoSuchFileRankException
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 foundprotected DLFileRank removeImpl(DLFileRank dlFileRank)
BasePersistenceImplBasePersistenceImpl.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
public DLFileRank updateImpl(DLFileRank dlFileRank)
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface DLFileRankPersistenceupdateImpl in class BasePersistenceImpl<DLFileRank>dlFileRank - the model instance to update
protected DLFileRank toUnwrappedModel(DLFileRank dlFileRank)
public DLFileRank findByPrimaryKey(Serializable primaryKey)
throws NoSuchFileRankException
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
public DLFileRank findByPrimaryKey(long fileRankId)
throws NoSuchFileRankException
NoSuchFileRankException if it could not be found.
findByPrimaryKey in interface DLFileRankPersistencefileRankId - the primary key of the document library file rank
NoSuchFileRankException - if a document library file rank with the primary key could not be foundpublic DLFileRank fetchByPrimaryKey(Serializable primaryKey)
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 foundpublic DLFileRank fetchByPrimaryKey(long fileRankId)
null if it could not be found.
fetchByPrimaryKey in interface DLFileRankPersistencefileRankId - the primary key of the document library file rank
null if a document library file rank with the primary key could not be foundpublic Map<Serializable,DLFileRank> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<DLFileRank>fetchByPrimaryKeys in interface DLFileRankPersistencefetchByPrimaryKeys in class BasePersistenceImpl<DLFileRank>public List<DLFileRank> findAll()
findAll in interface DLFileRankPersistence
public List<DLFileRank> findAll(int start,
int end)
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 DLFileRankPersistencestart - the lower bound of the range of document library file ranksend - the upper bound of the range of document library file ranks (not inclusive)
public List<DLFileRank> findAll(int start,
int end,
OrderByComparator<DLFileRank> orderByComparator)
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 DLFileRankPersistencestart - 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)
public List<DLFileRank> findAll(int start,
int end,
OrderByComparator<DLFileRank> orderByComparator,
boolean retrieveFromCache)
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 DLFileRankPersistencestart - 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)retrieveFromCache - whether to retrieve from the finder cache
public void removeAll()
removeAll in interface DLFileRankPersistencepublic int countAll()
countAll in interface DLFileRankPersistencepublic Set<String> getBadColumnNames()
getBadColumnNames in interface BasePersistence<DLFileRank>getBadColumnNames in interface DLFileRankPersistencegetBadColumnNames in class BasePersistenceImpl<DLFileRank>protected Map<String,Integer> getTableColumnsMap()
getTableColumnsMap in class BasePersistenceImpl<DLFileRank>public void afterPropertiesSet()
public void destroy()
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||