|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.impl.BasePersistenceImpl<DLFileRank> com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistenceImpl
public class DLFileRankPersistenceImpl
The persistence implementation for the d l file rank service.
Never modify or reference this class directly. Always use DLFileRankUtil
to access the d l file rank persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
DLFileRankPersistence
,
DLFileRankUtil
Field Summary | |
---|---|
protected DLFileEntryPersistence |
dlFileEntryPersistence
|
protected DLFileRankPersistence |
dlFileRankPersistence
|
protected DLFileShortcutPersistence |
dlFileShortcutPersistence
|
protected DLFileVersionPersistence |
dlFileVersionPersistence
|
protected DLFolderPersistence |
dlFolderPersistence
|
static String |
FINDER_CLASS_NAME_ENTITY
|
static String |
FINDER_CLASS_NAME_LIST
|
static FinderPath |
FINDER_PATH_COUNT_ALL
|
static FinderPath |
FINDER_PATH_COUNT_BY_C_U_F_N
|
static FinderPath |
FINDER_PATH_COUNT_BY_F_N
|
static FinderPath |
FINDER_PATH_COUNT_BY_G_U
|
static FinderPath |
FINDER_PATH_COUNT_BY_USERID
|
static FinderPath |
FINDER_PATH_FETCH_BY_C_U_F_N
|
static FinderPath |
FINDER_PATH_FIND_ALL
|
static FinderPath |
FINDER_PATH_FIND_BY_F_N
|
static FinderPath |
FINDER_PATH_FIND_BY_G_U
|
static FinderPath |
FINDER_PATH_FIND_BY_USERID
|
protected LayoutPersistence |
layoutPersistence
|
protected ResourcePersistence |
resourcePersistence
|
protected UserPersistence |
userPersistence
|
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
COUNT_COLUMN_NAME, 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 d l file rank persistence. |
void |
cacheResult(DLFileRank dlFileRank)
Caches the d l file rank in the entity cache if it is enabled. |
void |
cacheResult(List<DLFileRank> dlFileRanks)
Caches the d l file ranks in the entity cache if it is enabled. |
void |
clearCache()
Clears the cache for all d l file ranks. |
void |
clearCache(DLFileRank dlFileRank)
Clears the cache for the d l file rank. |
int |
countAll()
Counts all the d l file ranks. |
int |
countByC_U_F_N(long companyId,
long userId,
long folderId,
String name)
Counts all the d l file ranks where companyId = ? and userId = ? and folderId = ? and name = ?. |
int |
countByF_N(long folderId,
String name)
Counts all the d l file ranks where folderId = ? and name = ?. |
int |
countByG_U(long groupId,
long userId)
Counts all the d l file ranks where groupId = ? and userId = ?. |
int |
countByUserId(long userId)
Counts all the d l file ranks where userId = ?. |
DLFileRank |
create(long fileRankId)
Creates a new d l file rank with the primary key. |
DLFileRank |
fetchByC_U_F_N(long companyId,
long userId,
long folderId,
String name)
Finds the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? or returns null if it could not be found. |
DLFileRank |
fetchByC_U_F_N(long companyId,
long userId,
long folderId,
String name,
boolean retrieveFromCache)
Finds the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? or returns null if it could not be found, optionally using the finder cache. |
DLFileRank |
fetchByPrimaryKey(long fileRankId)
Finds the d l file rank with the primary key or returns null if it could not be found. |
DLFileRank |
fetchByPrimaryKey(Serializable primaryKey)
Finds the d l file rank with the primary key or returns null if it could not be found. |
List<DLFileRank> |
findAll()
Finds all the d l file ranks. |
List<DLFileRank> |
findAll(int start,
int end)
Finds a range of all the d l file ranks. |
List<DLFileRank> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the d l file ranks. |
DLFileRank |
findByC_U_F_N(long companyId,
long userId,
long folderId,
String name)
Finds the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? or throws a NoSuchFileRankException if it could not be found. |
DLFileRank |
findByF_N_First(long folderId,
String name,
OrderByComparator orderByComparator)
Finds the first d l file rank in the ordered set where folderId = ? and name = ?. |
DLFileRank |
findByF_N_Last(long folderId,
String name,
OrderByComparator orderByComparator)
Finds the last d l file rank in the ordered set where folderId = ? and name = ?. |
DLFileRank[] |
findByF_N_PrevAndNext(long fileRankId,
long folderId,
String name,
OrderByComparator orderByComparator)
Finds the d l file ranks before and after the current d l file rank in the ordered set where folderId = ? and name = ?. |
List<DLFileRank> |
findByF_N(long folderId,
String name)
Finds all the d l file ranks where folderId = ? and name = ?. |
List<DLFileRank> |
findByF_N(long folderId,
String name,
int start,
int end)
Finds a range of all the d l file ranks where folderId = ? and name = ?. |
List<DLFileRank> |
findByF_N(long folderId,
String name,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the d l file ranks where folderId = ? and name = ?. |
DLFileRank |
findByG_U_First(long groupId,
long userId,
OrderByComparator orderByComparator)
Finds the first d l file rank in the ordered set where groupId = ? and userId = ?. |
DLFileRank |
findByG_U_Last(long groupId,
long userId,
OrderByComparator orderByComparator)
Finds the last d l file rank in the ordered set where groupId = ? and userId = ?. |
DLFileRank[] |
findByG_U_PrevAndNext(long fileRankId,
long groupId,
long userId,
OrderByComparator orderByComparator)
Finds the d l file ranks before and after the current d l file rank in the ordered set where groupId = ? and userId = ?. |
List<DLFileRank> |
findByG_U(long groupId,
long userId)
Finds all the d l file ranks where groupId = ? and userId = ?. |
List<DLFileRank> |
findByG_U(long groupId,
long userId,
int start,
int end)
Finds a range of all the d l file ranks where groupId = ? and userId = ?. |
List<DLFileRank> |
findByG_U(long groupId,
long userId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the d l file ranks where groupId = ? and userId = ?. |
DLFileRank |
findByPrimaryKey(long fileRankId)
Finds the d l file rank with the primary key or throws a NoSuchFileRankException if it could not be found. |
DLFileRank |
findByPrimaryKey(Serializable primaryKey)
Finds the d l file rank with the primary key or throws a NoSuchModelException if it could not be found. |
DLFileRank |
findByUserId_First(long userId,
OrderByComparator orderByComparator)
Finds the first d l file rank in the ordered set where userId = ?. |
DLFileRank |
findByUserId_Last(long userId,
OrderByComparator orderByComparator)
Finds the last d l file rank in the ordered set where userId = ?. |
DLFileRank[] |
findByUserId_PrevAndNext(long fileRankId,
long userId,
OrderByComparator orderByComparator)
Finds the d l file ranks before and after the current d l file rank in the ordered set where userId = ?. |
List<DLFileRank> |
findByUserId(long userId)
Finds all the d l file ranks where userId = ?. |
List<DLFileRank> |
findByUserId(long userId,
int start,
int end)
Finds a range of all the d l file ranks where userId = ?. |
List<DLFileRank> |
findByUserId(long userId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the d l file ranks where userId = ?. |
protected DLFileRank |
getByF_N_PrevAndNext(Session session,
DLFileRank dlFileRank,
long folderId,
String name,
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 d l file rank with the primary key from the database. |
DLFileRank |
remove(Serializable primaryKey)
Removes the d l file rank with the primary key from the database. |
void |
removeAll()
Removes all the d l file ranks from the database. |
void |
removeByC_U_F_N(long companyId,
long userId,
long folderId,
String name)
Removes the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? from the database. |
void |
removeByF_N(long folderId,
String name)
Removes all the d l file ranks where folderId = ? and name = ? from the database. |
void |
removeByG_U(long groupId,
long userId)
Removes all the d l file ranks where groupId = ? and userId = ? from the database. |
void |
removeByUserId(long userId)
Removes all the d l 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,
boolean merge)
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, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update |
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 |
---|
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update |
Field Detail |
---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST
public static final FinderPath FINDER_PATH_FIND_BY_USERID
public static final FinderPath FINDER_PATH_COUNT_BY_USERID
public static final FinderPath FINDER_PATH_FIND_BY_G_U
public static final FinderPath FINDER_PATH_COUNT_BY_G_U
public static final FinderPath FINDER_PATH_FIND_BY_F_N
public static final FinderPath FINDER_PATH_COUNT_BY_F_N
public static final FinderPath FINDER_PATH_FETCH_BY_C_U_F_N
public static final FinderPath FINDER_PATH_COUNT_BY_C_U_F_N
public static final FinderPath FINDER_PATH_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
@BeanReference(type=DLFileEntryPersistence.class) protected DLFileEntryPersistence dlFileEntryPersistence
@BeanReference(type=DLFileRankPersistence.class) protected DLFileRankPersistence dlFileRankPersistence
@BeanReference(type=DLFileShortcutPersistence.class) protected DLFileShortcutPersistence dlFileShortcutPersistence
@BeanReference(type=DLFileVersionPersistence.class) protected DLFileVersionPersistence dlFileVersionPersistence
@BeanReference(type=DLFolderPersistence.class) protected DLFolderPersistence dlFolderPersistence
@BeanReference(type=LayoutPersistence.class) protected LayoutPersistence layoutPersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
Constructor Detail |
---|
public DLFileRankPersistenceImpl()
Method Detail |
---|
public void cacheResult(DLFileRank dlFileRank)
cacheResult
in interface DLFileRankPersistence
dlFileRank
- the d l file rank to cachepublic void cacheResult(List<DLFileRank> dlFileRanks)
cacheResult
in interface DLFileRankPersistence
dlFileRanks
- the d l file ranks to cachepublic 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 DLFileRank create(long fileRankId)
create
in interface DLFileRankPersistence
fileRankId
- the primary key for the new d l file rank
public DLFileRank remove(Serializable primaryKey) throws NoSuchModelException, SystemException
remove
in interface BasePersistence<DLFileRank>
remove
in class BasePersistenceImpl<DLFileRank>
primaryKey
- the primary key of the d l file rank to remove
NoSuchModelException
- if a d l file rank with the primary key could not be found
SystemException
- if a system exception occurredpublic DLFileRank remove(long fileRankId) throws NoSuchFileRankException, SystemException
remove
in interface DLFileRankPersistence
fileRankId
- the primary key of the d l file rank to remove
NoSuchFileRankException
- if a d l 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, boolean merge) 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 updatemerge
- whether to merge the model instance with the current
session. See BatchSession.update(
com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredprotected DLFileRank toUnwrappedModel(DLFileRank dlFileRank)
public DLFileRank findByPrimaryKey(Serializable primaryKey) throws NoSuchModelException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<DLFileRank>
findByPrimaryKey
in class BasePersistenceImpl<DLFileRank>
primaryKey
- the primary key of the d l file rank to find
NoSuchModelException
- if a d l 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 d l file rank to find
NoSuchFileRankException
- if a d l 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 d l file rank to find
null
if a d l 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 d l file rank to find
null
if a d l file rank with the primary key could not be found
SystemException
- if a system exception occurredpublic List<DLFileRank> findByUserId(long userId) throws SystemException
findByUserId
in interface DLFileRankPersistence
userId
- the user id to search with
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.
findByUserId
in interface DLFileRankPersistence
userId
- the user id to search withstart
- the lower bound of the range of d l file ranks to returnend
- the upper bound of the range of d l file ranks to return (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.
findByUserId
in interface DLFileRankPersistence
userId
- the user id to search withstart
- the lower bound of the range of d l file ranks to returnend
- the upper bound of the range of d l file ranks to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic DLFileRank findByUserId_First(long userId, OrderByComparator orderByComparator) throws NoSuchFileRankException, 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.
findByUserId_First
in interface DLFileRankPersistence
userId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchFileRankException
- if a matching d l file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank findByUserId_Last(long userId, OrderByComparator orderByComparator) throws NoSuchFileRankException, 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.
findByUserId_Last
in interface DLFileRankPersistence
userId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchFileRankException
- if a matching d l file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank[] findByUserId_PrevAndNext(long fileRankId, long userId, OrderByComparator orderByComparator) throws NoSuchFileRankException, 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.
findByUserId_PrevAndNext
in interface DLFileRankPersistence
fileRankId
- the primary key of the current d l file rankuserId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchFileRankException
- if a d l 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 List<DLFileRank> findByG_U(long groupId, long userId) throws SystemException
findByG_U
in interface DLFileRankPersistence
groupId
- the group id to search withuserId
- the user id to search with
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.
findByG_U
in interface DLFileRankPersistence
groupId
- the group id to search withuserId
- the user id to search withstart
- the lower bound of the range of d l file ranks to returnend
- the upper bound of the range of d l file ranks to return (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.
findByG_U
in interface DLFileRankPersistence
groupId
- the group id to search withuserId
- the user id to search withstart
- the lower bound of the range of d l file ranks to returnend
- the upper bound of the range of d l file ranks to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic DLFileRank findByG_U_First(long groupId, long userId, OrderByComparator orderByComparator) throws NoSuchFileRankException, 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.
findByG_U_First
in interface DLFileRankPersistence
groupId
- the group id to search withuserId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchFileRankException
- if a matching d l 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
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.
findByG_U_Last
in interface DLFileRankPersistence
groupId
- the group id to search withuserId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchFileRankException
- if a matching d l 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
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.
findByG_U_PrevAndNext
in interface DLFileRankPersistence
fileRankId
- the primary key of the current d l file rankgroupId
- the group id to search withuserId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchFileRankException
- if a d l 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 List<DLFileRank> findByF_N(long folderId, String name) throws SystemException
findByF_N
in interface DLFileRankPersistence
folderId
- the folder id to search withname
- the name to search with
SystemException
- if a system exception occurredpublic List<DLFileRank> findByF_N(long folderId, String name, 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.
findByF_N
in interface DLFileRankPersistence
folderId
- the folder id to search withname
- the name to search withstart
- the lower bound of the range of d l file ranks to returnend
- the upper bound of the range of d l file ranks to return (not inclusive)
SystemException
- if a system exception occurredpublic List<DLFileRank> findByF_N(long folderId, String name, 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.
findByF_N
in interface DLFileRankPersistence
folderId
- the folder id to search withname
- the name to search withstart
- the lower bound of the range of d l file ranks to returnend
- the upper bound of the range of d l file ranks to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic DLFileRank findByF_N_First(long folderId, String name, OrderByComparator orderByComparator) throws NoSuchFileRankException, 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.
findByF_N_First
in interface DLFileRankPersistence
folderId
- the folder id to search withname
- the name to search withorderByComparator
- the comparator to order the set by
NoSuchFileRankException
- if a matching d l file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank findByF_N_Last(long folderId, String name, OrderByComparator orderByComparator) throws NoSuchFileRankException, 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.
findByF_N_Last
in interface DLFileRankPersistence
folderId
- the folder id to search withname
- the name to search withorderByComparator
- the comparator to order the set by
NoSuchFileRankException
- if a matching d l file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank[] findByF_N_PrevAndNext(long fileRankId, long folderId, String name, OrderByComparator orderByComparator) throws NoSuchFileRankException, 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.
findByF_N_PrevAndNext
in interface DLFileRankPersistence
fileRankId
- the primary key of the current d l file rankfolderId
- the folder id to search withname
- the name to search withorderByComparator
- the comparator to order the set by
NoSuchFileRankException
- if a d l file rank with the primary key could not be found
SystemException
- if a system exception occurredprotected DLFileRank getByF_N_PrevAndNext(Session session, DLFileRank dlFileRank, long folderId, String name, OrderByComparator orderByComparator, boolean previous)
public DLFileRank findByC_U_F_N(long companyId, long userId, long folderId, String name) throws NoSuchFileRankException, SystemException
NoSuchFileRankException
if it could not be found.
findByC_U_F_N
in interface DLFileRankPersistence
companyId
- the company id to search withuserId
- the user id to search withfolderId
- the folder id to search withname
- the name to search with
NoSuchFileRankException
- if a matching d l file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank fetchByC_U_F_N(long companyId, long userId, long folderId, String name) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByC_U_F_N
in interface DLFileRankPersistence
companyId
- the company id to search withuserId
- the user id to search withfolderId
- the folder id to search withname
- the name to search with
null
if a matching d l file rank could not be found
SystemException
- if a system exception occurredpublic DLFileRank fetchByC_U_F_N(long companyId, long userId, long folderId, String name, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByC_U_F_N
in interface DLFileRankPersistence
companyId
- the company id to search withuserId
- the user id to search withfolderId
- the folder id to search withname
- the name to search with
null
if a matching d l file rank 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.
findAll
in interface DLFileRankPersistence
start
- the lower bound of the range of d l file ranks to returnend
- the upper bound of the range of d l file ranks to return (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.
findAll
in interface DLFileRankPersistence
start
- the lower bound of the range of d l file ranks to returnend
- the upper bound of the range of d l file ranks to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic void removeByUserId(long userId) throws SystemException
removeByUserId
in interface DLFileRankPersistence
userId
- the user id to search with
SystemException
- if a system exception occurredpublic void removeByG_U(long groupId, long userId) throws SystemException
removeByG_U
in interface DLFileRankPersistence
groupId
- the group id to search withuserId
- the user id to search with
SystemException
- if a system exception occurredpublic void removeByF_N(long folderId, String name) throws SystemException
removeByF_N
in interface DLFileRankPersistence
folderId
- the folder id to search withname
- the name to search with
SystemException
- if a system exception occurredpublic void removeByC_U_F_N(long companyId, long userId, long folderId, String name) throws NoSuchFileRankException, SystemException
removeByC_U_F_N
in interface DLFileRankPersistence
companyId
- the company id to search withuserId
- the user id to search withfolderId
- the folder id to search withname
- the name to search with
SystemException
- if a system exception occurred
NoSuchFileRankException
public void removeAll() throws SystemException
removeAll
in interface DLFileRankPersistence
SystemException
- if a system exception occurredpublic int countByUserId(long userId) throws SystemException
countByUserId
in interface DLFileRankPersistence
userId
- the user id to search with
SystemException
- if a system exception occurredpublic int countByG_U(long groupId, long userId) throws SystemException
countByG_U
in interface DLFileRankPersistence
groupId
- the group id to search withuserId
- the user id to search with
SystemException
- if a system exception occurredpublic int countByF_N(long folderId, String name) throws SystemException
countByF_N
in interface DLFileRankPersistence
folderId
- the folder id to search withname
- the name to search with
SystemException
- if a system exception occurredpublic int countByC_U_F_N(long companyId, long userId, long folderId, String name) throws SystemException
countByC_U_F_N
in interface DLFileRankPersistence
companyId
- the company id to search withuserId
- the user id to search withfolderId
- the folder id to search withname
- the name to search with
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface DLFileRankPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |