|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.documentlibrary.service.persistence.DLFileRankUtil
public class DLFileRankUtil
The persistence utility for the d l file rank service.
Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regnerate this class.
DLFileRankPersistence,
DLFileRankPersistenceImpl| Constructor Summary | |
|---|---|
DLFileRankUtil()
|
|
| Method Summary | |
|---|---|
static void |
cacheResult(DLFileRank dlFileRank)
Caches the d l file rank in the entity cache if it is enabled. |
static void |
cacheResult(List<DLFileRank> dlFileRanks)
Caches the d l file ranks in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(DLFileRank dlFileRank)
|
static int |
countAll()
Counts all the d l file ranks. |
static 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 = ?. |
static int |
countByF_N(long folderId,
String name)
Counts all the d l file ranks where folderId = ? and name = ?. |
static int |
countByG_U(long groupId,
long userId)
Counts all the d l file ranks where groupId = ? and userId = ?. |
static int |
countByUserId(long userId)
Counts all the d l file ranks where userId = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static DLFileRank |
create(long fileRankId)
Creates a new d l file rank with the primary key. |
static 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. |
static 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. |
static DLFileRank |
fetchByPrimaryKey(long fileRankId)
Finds the d l file rank with the primary key or returns null if it could not be found. |
static List<DLFileRank> |
findAll()
Finds all the d l file ranks. |
static List<DLFileRank> |
findAll(int start,
int end)
Finds a range of all the d l file ranks. |
static List<DLFileRank> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the d l file ranks. |
static 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. |
static 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 = ?. |
static 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 = ?. |
static 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 = ?. |
static List<DLFileRank> |
findByF_N(long folderId,
String name)
Finds all the d l file ranks where folderId = ? and name = ?. |
static 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 = ?. |
static 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 = ?. |
static 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 = ?. |
static 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 = ?. |
static 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 = ?. |
static List<DLFileRank> |
findByG_U(long groupId,
long userId)
Finds all the d l file ranks where groupId = ? and userId = ?. |
static 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 = ?. |
static 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 = ?. |
static DLFileRank |
findByPrimaryKey(long fileRankId)
Finds the d l file rank with the primary key or throws a NoSuchFileRankException if it could not be found. |
static DLFileRank |
findByUserId_First(long userId,
OrderByComparator orderByComparator)
Finds the first d l file rank in the ordered set where userId = ?. |
static DLFileRank |
findByUserId_Last(long userId,
OrderByComparator orderByComparator)
Finds the last d l file rank in the ordered set where userId = ?. |
static 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 = ?. |
static List<DLFileRank> |
findByUserId(long userId)
Finds all the d l file ranks where userId = ?. |
static List<DLFileRank> |
findByUserId(long userId,
int start,
int end)
Finds a range of all the d l file ranks where userId = ?. |
static List<DLFileRank> |
findByUserId(long userId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the d l file ranks where userId = ?. |
static List<DLFileRank> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<DLFileRank> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<DLFileRank> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static DLFileRankPersistence |
getPersistence()
|
static DLFileRank |
remove(DLFileRank dlFileRank)
|
static DLFileRank |
remove(long fileRankId)
Removes the d l file rank with the primary key from the database. |
static void |
removeAll()
Removes all the d l file ranks from the database. |
static 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. |
static void |
removeByF_N(long folderId,
String name)
Removes all the d l file ranks where folderId = ? and name = ? from the database. |
static void |
removeByG_U(long groupId,
long userId)
Removes all the d l file ranks where groupId = ? and userId = ? from the database. |
static void |
removeByUserId(long userId)
Removes all the d l file ranks where userId = ? from the database. |
void |
setPersistence(DLFileRankPersistence persistence)
|
static DLFileRank |
update(DLFileRank dlFileRank,
boolean merge)
|
static DLFileRank |
update(DLFileRank dlFileRank,
boolean merge,
ServiceContext serviceContext)
|
static DLFileRank |
updateImpl(DLFileRank dlFileRank,
boolean merge)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DLFileRankUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(DLFileRank dlFileRank)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<DLFileRank> findWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<DLFileRank> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<DLFileRank> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static DLFileRank remove(DLFileRank dlFileRank)
throws SystemException
SystemExceptionBasePersistence.remove(com.liferay.portal.model.BaseModel)
public static DLFileRank update(DLFileRank dlFileRank,
boolean merge)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static DLFileRank update(DLFileRank dlFileRank,
boolean merge,
ServiceContext serviceContext)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)public static void cacheResult(DLFileRank dlFileRank)
dlFileRank - the d l file rank to cachepublic static void cacheResult(List<DLFileRank> dlFileRanks)
dlFileRanks - the d l file ranks to cachepublic static DLFileRank create(long fileRankId)
fileRankId - the primary key for the new d l file rank
public static DLFileRank remove(long fileRankId)
throws SystemException,
NoSuchFileRankException
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 occurred
public static DLFileRank updateImpl(DLFileRank dlFileRank,
boolean merge)
throws SystemException
SystemException
public static DLFileRank findByPrimaryKey(long fileRankId)
throws SystemException,
NoSuchFileRankException
NoSuchFileRankException if it could not be found.
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 occurred
public static DLFileRank fetchByPrimaryKey(long fileRankId)
throws SystemException
null if it could not be found.
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 occurred
public static List<DLFileRank> findByUserId(long userId)
throws SystemException
userId - the user id to search with
SystemException - if a system exception occurred
public static 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.
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 occurred
public static 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.
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 occurred
public static DLFileRank findByUserId_First(long userId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchFileRankException
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.
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 occurred
public static DLFileRank findByUserId_Last(long userId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchFileRankException
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.
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 occurred
public static DLFileRank[] findByUserId_PrevAndNext(long fileRankId,
long userId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchFileRankException
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.
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 occurred
public static List<DLFileRank> findByG_U(long groupId,
long userId)
throws SystemException
groupId - the group id to search withuserId - the user id to search with
SystemException - if a system exception occurred
public static 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.
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 occurred
public static 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.
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 occurred
public static DLFileRank findByG_U_First(long groupId,
long userId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchFileRankException
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.
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 occurred
public static DLFileRank findByG_U_Last(long groupId,
long userId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchFileRankException
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.
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 occurred
public static DLFileRank[] findByG_U_PrevAndNext(long fileRankId,
long groupId,
long userId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchFileRankException
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.
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 occurred
public static List<DLFileRank> findByF_N(long folderId,
String name)
throws SystemException
folderId - the folder id to search withname - the name to search with
SystemException - if a system exception occurred
public static 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.
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 occurred
public static 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.
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 occurred
public static DLFileRank findByF_N_First(long folderId,
String name,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchFileRankException
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.
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 occurred
public static DLFileRank findByF_N_Last(long folderId,
String name,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchFileRankException
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.
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 occurred
public static DLFileRank[] findByF_N_PrevAndNext(long fileRankId,
long folderId,
String name,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchFileRankException
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.
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 occurred
public static DLFileRank findByC_U_F_N(long companyId,
long userId,
long folderId,
String name)
throws SystemException,
NoSuchFileRankException
NoSuchFileRankException if it could not be found.
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 occurred
public static 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.
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 occurred
public static 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.
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 occurred
public static List<DLFileRank> findAll()
throws SystemException
SystemException - if a system exception occurred
public static 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.
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 occurred
public static 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.
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 occurred
public static void removeByUserId(long userId)
throws SystemException
userId - the user id to search with
SystemException - if a system exception occurred
public static void removeByG_U(long groupId,
long userId)
throws SystemException
groupId - the group id to search withuserId - the user id to search with
SystemException - if a system exception occurred
public static void removeByF_N(long folderId,
String name)
throws SystemException
folderId - the folder id to search withname - the name to search with
SystemException - if a system exception occurred
public static void removeByC_U_F_N(long companyId,
long userId,
long folderId,
String name)
throws SystemException,
NoSuchFileRankException
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 static void removeAll()
throws SystemException
SystemException - if a system exception occurred
public static int countByUserId(long userId)
throws SystemException
userId - the user id to search with
SystemException - if a system exception occurred
public static int countByG_U(long groupId,
long userId)
throws SystemException
groupId - the group id to search withuserId - the user id to search with
SystemException - if a system exception occurred
public static int countByF_N(long folderId,
String name)
throws SystemException
folderId - the folder id to search withname - the name to search with
SystemException - if a system exception occurred
public static int countByC_U_F_N(long companyId,
long userId,
long folderId,
String name)
throws SystemException
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
public static int countAll()
throws SystemException
SystemException - if a system exception occurredpublic static DLFileRankPersistence getPersistence()
public void setPersistence(DLFileRankPersistence persistence)
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||