|
Liferay 6.1.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.documentlibrary.service.persistence.DLFileVersionUtil
public class DLFileVersionUtil
The persistence utility for the document library file version service. This utility wraps DLFileVersionPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
DLFileVersionPersistence,
DLFileVersionPersistenceImpl| Constructor Summary | |
|---|---|
DLFileVersionUtil()
|
|
| Method Summary | |
|---|---|
static void |
cacheResult(DLFileVersion dlFileVersion)
Caches the document library file version in the entity cache if it is enabled. |
static void |
cacheResult(List<DLFileVersion> dlFileVersions)
Caches the document library file versions in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(DLFileVersion dlFileVersion)
|
static int |
countAll()
Returns the number of document library file versions. |
static int |
countByF_S(long fileEntryId,
int status)
Returns the number of document library file versions where fileEntryId = ? and status = ?. |
static int |
countByF_V(long fileEntryId,
String version)
Returns the number of document library file versions where fileEntryId = ? and version = ?. |
static int |
countByFileEntryId(long fileEntryId)
Returns the number of document library file versions where fileEntryId = ?. |
static int |
countByG_F_S(long groupId,
long folderId,
int status)
Returns the number of document library file versions where groupId = ? and folderId = ? and status = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static DLFileVersion |
create(long fileVersionId)
Creates a new document library file version with the primary key. |
static DLFileVersion |
fetchByF_V(long fileEntryId,
String version)
Returns the document library file version where fileEntryId = ? and version = ? or returns null if it could not be found. |
static DLFileVersion |
fetchByF_V(long fileEntryId,
String version,
boolean retrieveFromCache)
Returns the document library file version where fileEntryId = ? and version = ? or returns null if it could not be found, optionally using the finder cache. |
static DLFileVersion |
fetchByPrimaryKey(long fileVersionId)
Returns the document library file version with the primary key or returns null if it could not be found. |
static List<DLFileVersion> |
findAll()
Returns all the document library file versions. |
static List<DLFileVersion> |
findAll(int start,
int end)
Returns a range of all the document library file versions. |
static List<DLFileVersion> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library file versions. |
static DLFileVersion |
findByF_S_First(long fileEntryId,
int status,
OrderByComparator orderByComparator)
Returns the first document library file version in the ordered set where fileEntryId = ? and status = ?. |
static DLFileVersion |
findByF_S_Last(long fileEntryId,
int status,
OrderByComparator orderByComparator)
Returns the last document library file version in the ordered set where fileEntryId = ? and status = ?. |
static DLFileVersion[] |
findByF_S_PrevAndNext(long fileVersionId,
long fileEntryId,
int status,
OrderByComparator orderByComparator)
Returns the document library file versions before and after the current document library file version in the ordered set where fileEntryId = ? and status = ?. |
static List<DLFileVersion> |
findByF_S(long fileEntryId,
int status)
Returns all the document library file versions where fileEntryId = ? and status = ?. |
static List<DLFileVersion> |
findByF_S(long fileEntryId,
int status,
int start,
int end)
Returns a range of all the document library file versions where fileEntryId = ? and status = ?. |
static List<DLFileVersion> |
findByF_S(long fileEntryId,
int status,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library file versions where fileEntryId = ? and status = ?. |
static DLFileVersion |
findByF_V(long fileEntryId,
String version)
Returns the document library file version where fileEntryId = ? and version = ? or throws a NoSuchFileVersionException if it could not be found. |
static DLFileVersion |
findByFileEntryId_First(long fileEntryId,
OrderByComparator orderByComparator)
Returns the first document library file version in the ordered set where fileEntryId = ?. |
static DLFileVersion |
findByFileEntryId_Last(long fileEntryId,
OrderByComparator orderByComparator)
Returns the last document library file version in the ordered set where fileEntryId = ?. |
static DLFileVersion[] |
findByFileEntryId_PrevAndNext(long fileVersionId,
long fileEntryId,
OrderByComparator orderByComparator)
Returns the document library file versions before and after the current document library file version in the ordered set where fileEntryId = ?. |
static List<DLFileVersion> |
findByFileEntryId(long fileEntryId)
Returns all the document library file versions where fileEntryId = ?. |
static List<DLFileVersion> |
findByFileEntryId(long fileEntryId,
int start,
int end)
Returns a range of all the document library file versions where fileEntryId = ?. |
static List<DLFileVersion> |
findByFileEntryId(long fileEntryId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library file versions where fileEntryId = ?. |
static DLFileVersion |
findByG_F_S_First(long groupId,
long folderId,
int status,
OrderByComparator orderByComparator)
Returns the first document library file version in the ordered set where groupId = ? and folderId = ? and status = ?. |
static DLFileVersion |
findByG_F_S_Last(long groupId,
long folderId,
int status,
OrderByComparator orderByComparator)
Returns the last document library file version in the ordered set where groupId = ? and folderId = ? and status = ?. |
static DLFileVersion[] |
findByG_F_S_PrevAndNext(long fileVersionId,
long groupId,
long folderId,
int status,
OrderByComparator orderByComparator)
Returns the document library file versions before and after the current document library file version in the ordered set where groupId = ? and folderId = ? and status = ?. |
static List<DLFileVersion> |
findByG_F_S(long groupId,
long folderId,
int status)
Returns all the document library file versions where groupId = ? and folderId = ? and status = ?. |
static List<DLFileVersion> |
findByG_F_S(long groupId,
long folderId,
int status,
int start,
int end)
Returns a range of all the document library file versions where groupId = ? and folderId = ? and status = ?. |
static List<DLFileVersion> |
findByG_F_S(long groupId,
long folderId,
int status,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the document library file versions where groupId = ? and folderId = ? and status = ?. |
static DLFileVersion |
findByPrimaryKey(long fileVersionId)
Returns the document library file version with the primary key or throws a NoSuchFileVersionException if it could not be found. |
static List<DLFileVersion> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<DLFileVersion> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<DLFileVersion> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static DLFileVersionPersistence |
getPersistence()
|
static DLFileVersion |
remove(DLFileVersion dlFileVersion)
|
static DLFileVersion |
remove(long fileVersionId)
Removes the document library file version with the primary key from the database. |
static void |
removeAll()
Removes all the document library file versions from the database. |
static void |
removeByF_S(long fileEntryId,
int status)
Removes all the document library file versions where fileEntryId = ? and status = ? from the database. |
static void |
removeByF_V(long fileEntryId,
String version)
Removes the document library file version where fileEntryId = ? and version = ? from the database. |
static void |
removeByFileEntryId(long fileEntryId)
Removes all the document library file versions where fileEntryId = ? from the database. |
static void |
removeByG_F_S(long groupId,
long folderId,
int status)
Removes all the document library file versions where groupId = ? and folderId = ? and status = ? from the database. |
void |
setPersistence(DLFileVersionPersistence persistence)
|
static DLFileVersion |
update(DLFileVersion dlFileVersion,
boolean merge)
|
static DLFileVersion |
update(DLFileVersion dlFileVersion,
boolean merge,
ServiceContext serviceContext)
|
static DLFileVersion |
updateImpl(DLFileVersion dlFileVersion,
boolean merge)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DLFileVersionUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(DLFileVersion dlFileVersion)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<DLFileVersion> findWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<DLFileVersion> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<DLFileVersion> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static DLFileVersion remove(DLFileVersion dlFileVersion)
throws SystemException
SystemExceptionBasePersistence.remove(com.liferay.portal.model.BaseModel)
public static DLFileVersion update(DLFileVersion dlFileVersion,
boolean merge)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static DLFileVersion update(DLFileVersion dlFileVersion,
boolean merge,
ServiceContext serviceContext)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)public static void cacheResult(DLFileVersion dlFileVersion)
dlFileVersion - the document library file versionpublic static void cacheResult(List<DLFileVersion> dlFileVersions)
dlFileVersions - the document library file versionspublic static DLFileVersion create(long fileVersionId)
fileVersionId - the primary key for the new document library file version
public static DLFileVersion remove(long fileVersionId)
throws SystemException,
NoSuchFileVersionException
fileVersionId - the primary key of the document library file version
NoSuchFileVersionException - if a document library file version with the primary key could not be found
SystemException - if a system exception occurred
public static DLFileVersion updateImpl(DLFileVersion dlFileVersion,
boolean merge)
throws SystemException
SystemException
public static DLFileVersion findByPrimaryKey(long fileVersionId)
throws SystemException,
NoSuchFileVersionException
NoSuchFileVersionException if it could not be found.
fileVersionId - the primary key of the document library file version
NoSuchFileVersionException - if a document library file version with the primary key could not be found
SystemException - if a system exception occurred
public static DLFileVersion fetchByPrimaryKey(long fileVersionId)
throws SystemException
null if it could not be found.
fileVersionId - the primary key of the document library file version
null if a document library file version with the primary key could not be found
SystemException - if a system exception occurred
public static List<DLFileVersion> findByFileEntryId(long fileEntryId)
throws SystemException
fileEntryId - the file entry ID
SystemException - if a system exception occurred
public static List<DLFileVersion> findByFileEntryId(long fileEntryId,
int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
fileEntryId - the file entry IDstart - the lower bound of the range of document library file versionsend - the upper bound of the range of document library file versions (not inclusive)
SystemException - if a system exception occurred
public static List<DLFileVersion> findByFileEntryId(long fileEntryId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
fileEntryId - the file entry IDstart - the lower bound of the range of document library file versionsend - the upper bound of the range of document library file versions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public static DLFileVersion findByFileEntryId_First(long fileEntryId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchFileVersionException
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.
fileEntryId - the file entry IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred
public static DLFileVersion findByFileEntryId_Last(long fileEntryId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchFileVersionException
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.
fileEntryId - the file entry IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred
public static DLFileVersion[] findByFileEntryId_PrevAndNext(long fileVersionId,
long fileEntryId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchFileVersionException
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.
fileVersionId - the primary key of the current document library file versionfileEntryId - the file entry IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchFileVersionException - if a document library file version with the primary key could not be found
SystemException - if a system exception occurred
public static DLFileVersion findByF_V(long fileEntryId,
String version)
throws SystemException,
NoSuchFileVersionException
NoSuchFileVersionException if it could not be found.
fileEntryId - the file entry IDversion - the version
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred
public static DLFileVersion fetchByF_V(long fileEntryId,
String version)
throws SystemException
null if it could not be found. Uses the finder cache.
fileEntryId - the file entry IDversion - the version
null if a matching document library file version could not be found
SystemException - if a system exception occurred
public static DLFileVersion fetchByF_V(long fileEntryId,
String version,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
fileEntryId - the file entry IDversion - the versionretrieveFromCache - whether to use the finder cache
null if a matching document library file version could not be found
SystemException - if a system exception occurred
public static List<DLFileVersion> findByF_S(long fileEntryId,
int status)
throws SystemException
fileEntryId - the file entry IDstatus - the status
SystemException - if a system exception occurred
public static List<DLFileVersion> findByF_S(long fileEntryId,
int status,
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.
fileEntryId - the file entry IDstatus - the statusstart - the lower bound of the range of document library file versionsend - the upper bound of the range of document library file versions (not inclusive)
SystemException - if a system exception occurred
public static List<DLFileVersion> findByF_S(long fileEntryId,
int status,
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.
fileEntryId - the file entry IDstatus - the statusstart - the lower bound of the range of document library file versionsend - the upper bound of the range of document library file versions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public static DLFileVersion findByF_S_First(long fileEntryId,
int status,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchFileVersionException
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.
fileEntryId - the file entry IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred
public static DLFileVersion findByF_S_Last(long fileEntryId,
int status,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchFileVersionException
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.
fileEntryId - the file entry IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred
public static DLFileVersion[] findByF_S_PrevAndNext(long fileVersionId,
long fileEntryId,
int status,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchFileVersionException
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.
fileVersionId - the primary key of the current document library file versionfileEntryId - the file entry IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
NoSuchFileVersionException - if a document library file version with the primary key could not be found
SystemException - if a system exception occurred
public static List<DLFileVersion> findByG_F_S(long groupId,
long folderId,
int status)
throws SystemException
groupId - the group IDfolderId - the folder IDstatus - the status
SystemException - if a system exception occurred
public static List<DLFileVersion> findByG_F_S(long groupId,
long folderId,
int status,
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 IDfolderId - the folder IDstatus - the statusstart - the lower bound of the range of document library file versionsend - the upper bound of the range of document library file versions (not inclusive)
SystemException - if a system exception occurred
public static List<DLFileVersion> findByG_F_S(long groupId,
long folderId,
int status,
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 IDfolderId - the folder IDstatus - the statusstart - the lower bound of the range of document library file versionsend - the upper bound of the range of document library file versions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public static DLFileVersion findByG_F_S_First(long groupId,
long folderId,
int status,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchFileVersionException
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 IDfolderId - the folder IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred
public static DLFileVersion findByG_F_S_Last(long groupId,
long folderId,
int status,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchFileVersionException
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 IDfolderId - the folder IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred
public static DLFileVersion[] findByG_F_S_PrevAndNext(long fileVersionId,
long groupId,
long folderId,
int status,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchFileVersionException
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.
fileVersionId - the primary key of the current document library file versiongroupId - the group IDfolderId - the folder IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
NoSuchFileVersionException - if a document library file version with the primary key could not be found
SystemException - if a system exception occurred
public static List<DLFileVersion> findAll()
throws SystemException
SystemException - if a system exception occurred
public static List<DLFileVersion> 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 document library file versionsend - the upper bound of the range of document library file versions (not inclusive)
SystemException - if a system exception occurred
public static List<DLFileVersion> 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 document library file versionsend - the upper bound of the range of document library file versions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public static void removeByFileEntryId(long fileEntryId)
throws SystemException
fileEntryId - the file entry ID
SystemException - if a system exception occurred
public static void removeByF_V(long fileEntryId,
String version)
throws SystemException,
NoSuchFileVersionException
fileEntryId - the file entry IDversion - the version
SystemException - if a system exception occurred
NoSuchFileVersionException
public static void removeByF_S(long fileEntryId,
int status)
throws SystemException
fileEntryId - the file entry IDstatus - the status
SystemException - if a system exception occurred
public static void removeByG_F_S(long groupId,
long folderId,
int status)
throws SystemException
groupId - the group IDfolderId - the folder IDstatus - the status
SystemException - if a system exception occurred
public static void removeAll()
throws SystemException
SystemException - if a system exception occurred
public static int countByFileEntryId(long fileEntryId)
throws SystemException
fileEntryId - the file entry ID
SystemException - if a system exception occurred
public static int countByF_V(long fileEntryId,
String version)
throws SystemException
fileEntryId - the file entry IDversion - the version
SystemException - if a system exception occurred
public static int countByF_S(long fileEntryId,
int status)
throws SystemException
fileEntryId - the file entry IDstatus - the status
SystemException - if a system exception occurred
public static int countByG_F_S(long groupId,
long folderId,
int status)
throws SystemException
groupId - the group IDfolderId - the folder IDstatus - the status
SystemException - if a system exception occurred
public static int countAll()
throws SystemException
SystemException - if a system exception occurredpublic static DLFileVersionPersistence getPersistence()
public void setPersistence(DLFileVersionPersistence persistence)
|
Liferay 6.1.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||