Liferay 6.1.2-ce-ga3

com.liferay.portlet.documentlibrary.service.persistence
Class DLFileVersionUtil

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionUtil

public class DLFileVersionUtil
extends Object

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

See Also:
DLFileVersionPersistence, DLFileVersionPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

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 = ?.
static int countByG_F_T_V(long groupId, long folderId, String title, String version)
          Returns the number of document library file versions where groupId = ? and folderId = ? and title = ? and version = ?.
static int countByMimeType(String mimeType)
          Returns the number of document library file versions where mimeType = ?.
static int countByUUID_G(String uuid, long groupId)
          Returns the number of document library file versions where uuid = ? and groupId = ?.
static int countByUuid(String uuid)
          Returns the number of document library file versions where uuid = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static DLFileVersion create(long fileVersionId)
          Creates a new document library file version with the primary key.
static DLFileVersion fetchByF_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 fetchByF_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 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 fetchByFileEntryId_First(long fileEntryId, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where fileEntryId = ?.
static DLFileVersion fetchByFileEntryId_Last(long fileEntryId, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where fileEntryId = ?.
static DLFileVersion fetchByG_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 fetchByG_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 fetchByG_F_T_V_First(long groupId, long folderId, String title, String version, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?.
static DLFileVersion fetchByG_F_T_V_Last(long groupId, long folderId, String title, String version, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?.
static DLFileVersion fetchByMimeType_First(String mimeType, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where mimeType = ?.
static DLFileVersion fetchByMimeType_Last(String mimeType, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where mimeType = ?.
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 DLFileVersion fetchByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where uuid = ?.
static DLFileVersion fetchByUUID_G(String uuid, long groupId)
          Returns the document library file version where uuid = ? and groupId = ? or returns null if it could not be found.
static DLFileVersion fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
          Returns the document library file version where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
static DLFileVersion fetchByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where uuid = ?.
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 findByG_F_T_V_First(long groupId, long folderId, String title, String version, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?.
static DLFileVersion findByG_F_T_V_Last(long groupId, long folderId, String title, String version, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?.
static DLFileVersion[] findByG_F_T_V_PrevAndNext(long fileVersionId, long groupId, long folderId, String title, String version, 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 title = ? and version = ?.
static List<DLFileVersion> findByG_F_T_V(long groupId, long folderId, String title, String version)
          Returns all the document library file versions where groupId = ? and folderId = ? and title = ? and version = ?.
static List<DLFileVersion> findByG_F_T_V(long groupId, long folderId, String title, String version, int start, int end)
          Returns a range of all the document library file versions where groupId = ? and folderId = ? and title = ? and version = ?.
static List<DLFileVersion> findByG_F_T_V(long groupId, long folderId, String title, String version, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file versions where groupId = ? and folderId = ? and title = ? and version = ?.
static DLFileVersion findByMimeType_First(String mimeType, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where mimeType = ?.
static DLFileVersion findByMimeType_Last(String mimeType, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where mimeType = ?.
static DLFileVersion[] findByMimeType_PrevAndNext(long fileVersionId, String mimeType, OrderByComparator orderByComparator)
          Returns the document library file versions before and after the current document library file version in the ordered set where mimeType = ?.
static List<DLFileVersion> findByMimeType(String mimeType)
          Returns all the document library file versions where mimeType = ?.
static List<DLFileVersion> findByMimeType(String mimeType, int start, int end)
          Returns a range of all the document library file versions where mimeType = ?.
static List<DLFileVersion> findByMimeType(String mimeType, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file versions where mimeType = ?.
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 DLFileVersion findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where uuid = ?.
static DLFileVersion findByUUID_G(String uuid, long groupId)
          Returns the document library file version where uuid = ? and groupId = ? or throws a NoSuchFileVersionException if it could not be found.
static DLFileVersion findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where uuid = ?.
static DLFileVersion[] findByUuid_PrevAndNext(long fileVersionId, String uuid, OrderByComparator orderByComparator)
          Returns the document library file versions before and after the current document library file version in the ordered set where uuid = ?.
static List<DLFileVersion> findByUuid(String uuid)
          Returns all the document library file versions where uuid = ?.
static List<DLFileVersion> findByUuid(String uuid, int start, int end)
          Returns a range of all the document library file versions where uuid = ?.
static List<DLFileVersion> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file versions where uuid = ?.
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(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 DLFileVersion 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.
static void removeByG_F_T_V(long groupId, long folderId, String title, String version)
          Removes all the document library file versions where groupId = ? and folderId = ? and title = ? and version = ? from the database.
static void removeByMimeType(String mimeType)
          Removes all the document library file versions where mimeType = ? from the database.
static DLFileVersion removeByUUID_G(String uuid, long groupId)
          Removes the document library file version where uuid = ? and groupId = ? from the database.
static void removeByUuid(String uuid)
          Removes all the document library file versions where uuid = ? from the database.
 void setPersistence(DLFileVersionPersistence persistence)
          Deprecated.  
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

DLFileVersionUtil

public DLFileVersionUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(DLFileVersion dlFileVersion)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DLFileVersion> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DLFileVersion> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                       int start,
                                                       int end)
                                                throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<DLFileVersion> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                       int start,
                                                       int end,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static DLFileVersion update(DLFileVersion dlFileVersion,
                                   boolean merge)
                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static DLFileVersion update(DLFileVersion dlFileVersion,
                                   boolean merge,
                                   ServiceContext serviceContext)
                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static void cacheResult(DLFileVersion dlFileVersion)
Caches the document library file version in the entity cache if it is enabled.

Parameters:
dlFileVersion - the document library file version

cacheResult

public static void cacheResult(List<DLFileVersion> dlFileVersions)
Caches the document library file versions in the entity cache if it is enabled.

Parameters:
dlFileVersions - the document library file versions

create

public static DLFileVersion create(long fileVersionId)
Creates a new document library file version with the primary key. Does not add the document library file version to the database.

Parameters:
fileVersionId - the primary key for the new document library file version
Returns:
the new document library file version

remove

public static DLFileVersion remove(long fileVersionId)
                            throws SystemException,
                                   NoSuchFileVersionException
Removes the document library file version with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
fileVersionId - the primary key of the document library file version
Returns:
the document library file version that was removed
Throws:
NoSuchFileVersionException - if a document library file version with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static DLFileVersion updateImpl(DLFileVersion dlFileVersion,
                                       boolean merge)
                                throws SystemException
Throws:
SystemException

findByPrimaryKey

public static DLFileVersion findByPrimaryKey(long fileVersionId)
                                      throws SystemException,
                                             NoSuchFileVersionException
Returns the document library file version with the primary key or throws a NoSuchFileVersionException if it could not be found.

Parameters:
fileVersionId - the primary key of the document library file version
Returns:
the document library file version
Throws:
NoSuchFileVersionException - if a document library file version with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static DLFileVersion fetchByPrimaryKey(long fileVersionId)
                                       throws SystemException
Returns the document library file version with the primary key or returns null if it could not be found.

Parameters:
fileVersionId - the primary key of the document library file version
Returns:
the document library file version, or null if a document library file version with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByUuid

public static List<DLFileVersion> findByUuid(String uuid)
                                      throws SystemException
Returns all the document library file versions where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the matching document library file versions
Throws:
SystemException - if a system exception occurred

findByUuid

public static List<DLFileVersion> findByUuid(String uuid,
                                             int start,
                                             int end)
                                      throws SystemException
Returns a range of all the document library file versions where uuid = ?.

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.

Parameters:
uuid - the uuid
start - the lower bound of the range of document library file versions
end - the upper bound of the range of document library file versions (not inclusive)
Returns:
the range of matching document library file versions
Throws:
SystemException - if a system exception occurred

findByUuid

public static List<DLFileVersion> findByUuid(String uuid,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns an ordered range of all the document library file versions where uuid = ?.

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.

Parameters:
uuid - the uuid
start - the lower bound of the range of document library file versions
end - the upper bound of the range of document library file versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file versions
Throws:
SystemException - if a system exception occurred

findByUuid_First

public static DLFileVersion findByUuid_First(String uuid,
                                             OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchFileVersionException
Returns the first document library file version in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file version
Throws:
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred

fetchByUuid_First

public static DLFileVersion fetchByUuid_First(String uuid,
                                              OrderByComparator orderByComparator)
                                       throws SystemException
Returns the first document library file version in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file version, or null if a matching document library file version could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_Last

public static DLFileVersion findByUuid_Last(String uuid,
                                            OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchFileVersionException
Returns the last document library file version in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file version
Throws:
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred

fetchByUuid_Last

public static DLFileVersion fetchByUuid_Last(String uuid,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns the last document library file version in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file version, or null if a matching document library file version could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_PrevAndNext

public static DLFileVersion[] findByUuid_PrevAndNext(long fileVersionId,
                                                     String uuid,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     NoSuchFileVersionException
Returns the document library file versions before and after the current document library file version in the ordered set where uuid = ?.

Parameters:
fileVersionId - the primary key of the current document library file version
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next document library file version
Throws:
NoSuchFileVersionException - if a document library file version with the primary key could not be found
SystemException - if a system exception occurred

findByUUID_G

public static DLFileVersion findByUUID_G(String uuid,
                                         long groupId)
                                  throws SystemException,
                                         NoSuchFileVersionException
Returns the document library file version where uuid = ? and groupId = ? or throws a NoSuchFileVersionException if it could not be found.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching document library file version
Throws:
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred

fetchByUUID_G

public static DLFileVersion fetchByUUID_G(String uuid,
                                          long groupId)
                                   throws SystemException
Returns the document library file version where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching document library file version, or null if a matching document library file version could not be found
Throws:
SystemException - if a system exception occurred

fetchByUUID_G

public static DLFileVersion fetchByUUID_G(String uuid,
                                          long groupId,
                                          boolean retrieveFromCache)
                                   throws SystemException
Returns the document library file version where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
uuid - the uuid
groupId - the group ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching document library file version, or null if a matching document library file version could not be found
Throws:
SystemException - if a system exception occurred

findByFileEntryId

public static List<DLFileVersion> findByFileEntryId(long fileEntryId)
                                             throws SystemException
Returns all the document library file versions where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID
Returns:
the matching document library file versions
Throws:
SystemException - if a system exception occurred

findByFileEntryId

public static List<DLFileVersion> findByFileEntryId(long fileEntryId,
                                                    int start,
                                                    int end)
                                             throws SystemException
Returns a range of all the document library file versions where fileEntryId = ?.

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.

Parameters:
fileEntryId - the file entry ID
start - the lower bound of the range of document library file versions
end - the upper bound of the range of document library file versions (not inclusive)
Returns:
the range of matching document library file versions
Throws:
SystemException - if a system exception occurred

findByFileEntryId

public static List<DLFileVersion> findByFileEntryId(long fileEntryId,
                                                    int start,
                                                    int end,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns an ordered range of all the document library file versions where fileEntryId = ?.

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.

Parameters:
fileEntryId - the file entry ID
start - the lower bound of the range of document library file versions
end - the upper bound of the range of document library file versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file versions
Throws:
SystemException - if a system exception occurred

findByFileEntryId_First

public static DLFileVersion findByFileEntryId_First(long fileEntryId,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchFileVersionException
Returns the first document library file version in the ordered set where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file version
Throws:
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred

fetchByFileEntryId_First

public static DLFileVersion fetchByFileEntryId_First(long fileEntryId,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Returns the first document library file version in the ordered set where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file version, or null if a matching document library file version could not be found
Throws:
SystemException - if a system exception occurred

findByFileEntryId_Last

public static DLFileVersion findByFileEntryId_Last(long fileEntryId,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchFileVersionException
Returns the last document library file version in the ordered set where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file version
Throws:
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred

fetchByFileEntryId_Last

public static DLFileVersion fetchByFileEntryId_Last(long fileEntryId,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns the last document library file version in the ordered set where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file version, or null if a matching document library file version could not be found
Throws:
SystemException - if a system exception occurred

findByFileEntryId_PrevAndNext

public static DLFileVersion[] findByFileEntryId_PrevAndNext(long fileVersionId,
                                                            long fileEntryId,
                                                            OrderByComparator orderByComparator)
                                                     throws SystemException,
                                                            NoSuchFileVersionException
Returns the document library file versions before and after the current document library file version in the ordered set where fileEntryId = ?.

Parameters:
fileVersionId - the primary key of the current document library file version
fileEntryId - the file entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next document library file version
Throws:
NoSuchFileVersionException - if a document library file version with the primary key could not be found
SystemException - if a system exception occurred

findByMimeType

public static List<DLFileVersion> findByMimeType(String mimeType)
                                          throws SystemException
Returns all the document library file versions where mimeType = ?.

Parameters:
mimeType - the mime type
Returns:
the matching document library file versions
Throws:
SystemException - if a system exception occurred

findByMimeType

public static List<DLFileVersion> findByMimeType(String mimeType,
                                                 int start,
                                                 int end)
                                          throws SystemException
Returns a range of all the document library file versions where mimeType = ?.

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.

Parameters:
mimeType - the mime type
start - the lower bound of the range of document library file versions
end - the upper bound of the range of document library file versions (not inclusive)
Returns:
the range of matching document library file versions
Throws:
SystemException - if a system exception occurred

findByMimeType

public static List<DLFileVersion> findByMimeType(String mimeType,
                                                 int start,
                                                 int end,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Returns an ordered range of all the document library file versions where mimeType = ?.

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.

Parameters:
mimeType - the mime type
start - the lower bound of the range of document library file versions
end - the upper bound of the range of document library file versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file versions
Throws:
SystemException - if a system exception occurred

findByMimeType_First

public static DLFileVersion findByMimeType_First(String mimeType,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchFileVersionException
Returns the first document library file version in the ordered set where mimeType = ?.

Parameters:
mimeType - the mime type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file version
Throws:
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred

fetchByMimeType_First

public static DLFileVersion fetchByMimeType_First(String mimeType,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException
Returns the first document library file version in the ordered set where mimeType = ?.

Parameters:
mimeType - the mime type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file version, or null if a matching document library file version could not be found
Throws:
SystemException - if a system exception occurred

findByMimeType_Last

public static DLFileVersion findByMimeType_Last(String mimeType,
                                                OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchFileVersionException
Returns the last document library file version in the ordered set where mimeType = ?.

Parameters:
mimeType - the mime type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file version
Throws:
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred

fetchByMimeType_Last

public static DLFileVersion fetchByMimeType_Last(String mimeType,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Returns the last document library file version in the ordered set where mimeType = ?.

Parameters:
mimeType - the mime type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file version, or null if a matching document library file version could not be found
Throws:
SystemException - if a system exception occurred

findByMimeType_PrevAndNext

public static DLFileVersion[] findByMimeType_PrevAndNext(long fileVersionId,
                                                         String mimeType,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException,
                                                         NoSuchFileVersionException
Returns the document library file versions before and after the current document library file version in the ordered set where mimeType = ?.

Parameters:
fileVersionId - the primary key of the current document library file version
mimeType - the mime type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next document library file version
Throws:
NoSuchFileVersionException - if a document library file version with the primary key could not be found
SystemException - if a system exception occurred

findByF_V

public static DLFileVersion findByF_V(long fileEntryId,
                                      String version)
                               throws SystemException,
                                      NoSuchFileVersionException
Returns the document library file version where fileEntryId = ? and version = ? or throws a NoSuchFileVersionException if it could not be found.

Parameters:
fileEntryId - the file entry ID
version - the version
Returns:
the matching document library file version
Throws:
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred

fetchByF_V

public static DLFileVersion fetchByF_V(long fileEntryId,
                                       String version)
                                throws SystemException
Returns the document library file version where fileEntryId = ? and version = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
fileEntryId - the file entry ID
version - the version
Returns:
the matching document library file version, or null if a matching document library file version could not be found
Throws:
SystemException - if a system exception occurred

fetchByF_V

public static DLFileVersion fetchByF_V(long fileEntryId,
                                       String version,
                                       boolean retrieveFromCache)
                                throws SystemException
Returns the document library file version where fileEntryId = ? and version = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
fileEntryId - the file entry ID
version - the version
retrieveFromCache - whether to use the finder cache
Returns:
the matching document library file version, or null if a matching document library file version could not be found
Throws:
SystemException - if a system exception occurred

findByF_S

public static List<DLFileVersion> findByF_S(long fileEntryId,
                                            int status)
                                     throws SystemException
Returns all the document library file versions where fileEntryId = ? and status = ?.

Parameters:
fileEntryId - the file entry ID
status - the status
Returns:
the matching document library file versions
Throws:
SystemException - if a system exception occurred

findByF_S

public static List<DLFileVersion> findByF_S(long fileEntryId,
                                            int status,
                                            int start,
                                            int end)
                                     throws SystemException
Returns a range of all the document library file versions where fileEntryId = ? and status = ?.

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.

Parameters:
fileEntryId - the file entry ID
status - the status
start - the lower bound of the range of document library file versions
end - the upper bound of the range of document library file versions (not inclusive)
Returns:
the range of matching document library file versions
Throws:
SystemException - if a system exception occurred

findByF_S

public static List<DLFileVersion> findByF_S(long fileEntryId,
                                            int status,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns an ordered range of all the document library file versions where fileEntryId = ? and status = ?.

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.

Parameters:
fileEntryId - the file entry ID
status - the status
start - the lower bound of the range of document library file versions
end - the upper bound of the range of document library file versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file versions
Throws:
SystemException - if a system exception occurred

findByF_S_First

public static DLFileVersion findByF_S_First(long fileEntryId,
                                            int status,
                                            OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchFileVersionException
Returns the first document library file version in the ordered set where fileEntryId = ? and status = ?.

Parameters:
fileEntryId - the file entry ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file version
Throws:
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred

fetchByF_S_First

public static DLFileVersion fetchByF_S_First(long fileEntryId,
                                             int status,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns the first document library file version in the ordered set where fileEntryId = ? and status = ?.

Parameters:
fileEntryId - the file entry ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file version, or null if a matching document library file version could not be found
Throws:
SystemException - if a system exception occurred

findByF_S_Last

public static DLFileVersion findByF_S_Last(long fileEntryId,
                                           int status,
                                           OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchFileVersionException
Returns the last document library file version in the ordered set where fileEntryId = ? and status = ?.

Parameters:
fileEntryId - the file entry ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file version
Throws:
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred

fetchByF_S_Last

public static DLFileVersion fetchByF_S_Last(long fileEntryId,
                                            int status,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns the last document library file version in the ordered set where fileEntryId = ? and status = ?.

Parameters:
fileEntryId - the file entry ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file version, or null if a matching document library file version could not be found
Throws:
SystemException - if a system exception occurred

findByF_S_PrevAndNext

public static DLFileVersion[] findByF_S_PrevAndNext(long fileVersionId,
                                                    long fileEntryId,
                                                    int status,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchFileVersionException
Returns the document library file versions before and after the current document library file version in the ordered set where fileEntryId = ? and status = ?.

Parameters:
fileVersionId - the primary key of the current document library file version
fileEntryId - the file entry ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next document library file version
Throws:
NoSuchFileVersionException - if a document library file version with the primary key could not be found
SystemException - if a system exception occurred

findByG_F_S

public static List<DLFileVersion> findByG_F_S(long groupId,
                                              long folderId,
                                              int status)
                                       throws SystemException
Returns all the document library file versions where groupId = ? and folderId = ? and status = ?.

Parameters:
groupId - the group ID
folderId - the folder ID
status - the status
Returns:
the matching document library file versions
Throws:
SystemException - if a system exception occurred

findByG_F_S

public static List<DLFileVersion> findByG_F_S(long groupId,
                                              long folderId,
                                              int status,
                                              int start,
                                              int end)
                                       throws SystemException
Returns a range of all the document library file versions where groupId = ? and folderId = ? and status = ?.

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.

Parameters:
groupId - the group ID
folderId - the folder ID
status - the status
start - the lower bound of the range of document library file versions
end - the upper bound of the range of document library file versions (not inclusive)
Returns:
the range of matching document library file versions
Throws:
SystemException - if a system exception occurred

findByG_F_S

public static List<DLFileVersion> findByG_F_S(long groupId,
                                              long folderId,
                                              int status,
                                              int start,
                                              int end,
                                              OrderByComparator orderByComparator)
                                       throws SystemException
Returns an ordered range of all the document library file versions where groupId = ? and folderId = ? and status = ?.

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.

Parameters:
groupId - the group ID
folderId - the folder ID
status - the status
start - the lower bound of the range of document library file versions
end - the upper bound of the range of document library file versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file versions
Throws:
SystemException - if a system exception occurred

findByG_F_S_First

public static DLFileVersion findByG_F_S_First(long groupId,
                                              long folderId,
                                              int status,
                                              OrderByComparator orderByComparator)
                                       throws SystemException,
                                              NoSuchFileVersionException
Returns the first document library file version in the ordered set where groupId = ? and folderId = ? and status = ?.

Parameters:
groupId - the group ID
folderId - the folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file version
Throws:
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred

fetchByG_F_S_First

public static DLFileVersion fetchByG_F_S_First(long groupId,
                                               long folderId,
                                               int status,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Returns the first document library file version in the ordered set where groupId = ? and folderId = ? and status = ?.

Parameters:
groupId - the group ID
folderId - the folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file version, or null if a matching document library file version could not be found
Throws:
SystemException - if a system exception occurred

findByG_F_S_Last

public static DLFileVersion findByG_F_S_Last(long groupId,
                                             long folderId,
                                             int status,
                                             OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchFileVersionException
Returns the last document library file version in the ordered set where groupId = ? and folderId = ? and status = ?.

Parameters:
groupId - the group ID
folderId - the folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file version
Throws:
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred

fetchByG_F_S_Last

public static DLFileVersion fetchByG_F_S_Last(long groupId,
                                              long folderId,
                                              int status,
                                              OrderByComparator orderByComparator)
                                       throws SystemException
Returns the last document library file version in the ordered set where groupId = ? and folderId = ? and status = ?.

Parameters:
groupId - the group ID
folderId - the folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file version, or null if a matching document library file version could not be found
Throws:
SystemException - if a system exception occurred

findByG_F_S_PrevAndNext

public static DLFileVersion[] findByG_F_S_PrevAndNext(long fileVersionId,
                                                      long groupId,
                                                      long folderId,
                                                      int status,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException,
                                                      NoSuchFileVersionException
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 = ?.

Parameters:
fileVersionId - the primary key of the current document library file version
groupId - the group ID
folderId - the folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next document library file version
Throws:
NoSuchFileVersionException - if a document library file version with the primary key could not be found
SystemException - if a system exception occurred

findByG_F_T_V

public static List<DLFileVersion> findByG_F_T_V(long groupId,
                                                long folderId,
                                                String title,
                                                String version)
                                         throws SystemException
Returns all the document library file versions where groupId = ? and folderId = ? and title = ? and version = ?.

Parameters:
groupId - the group ID
folderId - the folder ID
title - the title
version - the version
Returns:
the matching document library file versions
Throws:
SystemException - if a system exception occurred

findByG_F_T_V

public static List<DLFileVersion> findByG_F_T_V(long groupId,
                                                long folderId,
                                                String title,
                                                String version,
                                                int start,
                                                int end)
                                         throws SystemException
Returns a range of all the document library file versions where groupId = ? and folderId = ? and title = ? and version = ?.

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.

Parameters:
groupId - the group ID
folderId - the folder ID
title - the title
version - the version
start - the lower bound of the range of document library file versions
end - the upper bound of the range of document library file versions (not inclusive)
Returns:
the range of matching document library file versions
Throws:
SystemException - if a system exception occurred

findByG_F_T_V

public static List<DLFileVersion> findByG_F_T_V(long groupId,
                                                long folderId,
                                                String title,
                                                String version,
                                                int start,
                                                int end,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Returns an ordered range of all the document library file versions where groupId = ? and folderId = ? and title = ? and version = ?.

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.

Parameters:
groupId - the group ID
folderId - the folder ID
title - the title
version - the version
start - the lower bound of the range of document library file versions
end - the upper bound of the range of document library file versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library file versions
Throws:
SystemException - if a system exception occurred

findByG_F_T_V_First

public static DLFileVersion findByG_F_T_V_First(long groupId,
                                                long folderId,
                                                String title,
                                                String version,
                                                OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchFileVersionException
Returns the first document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?.

Parameters:
groupId - the group ID
folderId - the folder ID
title - the title
version - the version
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file version
Throws:
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred

fetchByG_F_T_V_First

public static DLFileVersion fetchByG_F_T_V_First(long groupId,
                                                 long folderId,
                                                 String title,
                                                 String version,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Returns the first document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?.

Parameters:
groupId - the group ID
folderId - the folder ID
title - the title
version - the version
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library file version, or null if a matching document library file version could not be found
Throws:
SystemException - if a system exception occurred

findByG_F_T_V_Last

public static DLFileVersion findByG_F_T_V_Last(long groupId,
                                               long folderId,
                                               String title,
                                               String version,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchFileVersionException
Returns the last document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?.

Parameters:
groupId - the group ID
folderId - the folder ID
title - the title
version - the version
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file version
Throws:
NoSuchFileVersionException - if a matching document library file version could not be found
SystemException - if a system exception occurred

fetchByG_F_T_V_Last

public static DLFileVersion fetchByG_F_T_V_Last(long groupId,
                                                long folderId,
                                                String title,
                                                String version,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Returns the last document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?.

Parameters:
groupId - the group ID
folderId - the folder ID
title - the title
version - the version
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library file version, or null if a matching document library file version could not be found
Throws:
SystemException - if a system exception occurred

findByG_F_T_V_PrevAndNext

public static DLFileVersion[] findByG_F_T_V_PrevAndNext(long fileVersionId,
                                                        long groupId,
                                                        long folderId,
                                                        String title,
                                                        String version,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException,
                                                        NoSuchFileVersionException
Returns the document library file versions before and after the current document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?.

Parameters:
fileVersionId - the primary key of the current document library file version
groupId - the group ID
folderId - the folder ID
title - the title
version - the version
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next document library file version
Throws:
NoSuchFileVersionException - if a document library file version with the primary key could not be found
SystemException - if a system exception occurred

findAll

public static List<DLFileVersion> findAll()
                                   throws SystemException
Returns all the document library file versions.

Returns:
the document library file versions
Throws:
SystemException - if a system exception occurred

findAll

public static List<DLFileVersion> findAll(int start,
                                          int end)
                                   throws SystemException
Returns a range of all the document library file versions.

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.

Parameters:
start - the lower bound of the range of document library file versions
end - the upper bound of the range of document library file versions (not inclusive)
Returns:
the range of document library file versions
Throws:
SystemException - if a system exception occurred

findAll

public static List<DLFileVersion> findAll(int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Returns an ordered range of all the document library file versions.

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.

Parameters:
start - the lower bound of the range of document library file versions
end - the upper bound of the range of document library file versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of document library file versions
Throws:
SystemException - if a system exception occurred

removeByUuid

public static void removeByUuid(String uuid)
                         throws SystemException
Removes all the document library file versions where uuid = ? from the database.

Parameters:
uuid - the uuid
Throws:
SystemException - if a system exception occurred

removeByUUID_G

public static DLFileVersion removeByUUID_G(String uuid,
                                           long groupId)
                                    throws SystemException,
                                           NoSuchFileVersionException
Removes the document library file version where uuid = ? and groupId = ? from the database.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the document library file version that was removed
Throws:
SystemException - if a system exception occurred
NoSuchFileVersionException

removeByFileEntryId

public static void removeByFileEntryId(long fileEntryId)
                                throws SystemException
Removes all the document library file versions where fileEntryId = ? from the database.

Parameters:
fileEntryId - the file entry ID
Throws:
SystemException - if a system exception occurred

removeByMimeType

public static void removeByMimeType(String mimeType)
                             throws SystemException
Removes all the document library file versions where mimeType = ? from the database.

Parameters:
mimeType - the mime type
Throws:
SystemException - if a system exception occurred

removeByF_V

public static DLFileVersion removeByF_V(long fileEntryId,
                                        String version)
                                 throws SystemException,
                                        NoSuchFileVersionException
Removes the document library file version where fileEntryId = ? and version = ? from the database.

Parameters:
fileEntryId - the file entry ID
version - the version
Returns:
the document library file version that was removed
Throws:
SystemException - if a system exception occurred
NoSuchFileVersionException

removeByF_S

public static void removeByF_S(long fileEntryId,
                               int status)
                        throws SystemException
Removes all the document library file versions where fileEntryId = ? and status = ? from the database.

Parameters:
fileEntryId - the file entry ID
status - the status
Throws:
SystemException - if a system exception occurred

removeByG_F_S

public static void removeByG_F_S(long groupId,
                                 long folderId,
                                 int status)
                          throws SystemException
Removes all the document library file versions where groupId = ? and folderId = ? and status = ? from the database.

Parameters:
groupId - the group ID
folderId - the folder ID
status - the status
Throws:
SystemException - if a system exception occurred

removeByG_F_T_V

public static void removeByG_F_T_V(long groupId,
                                   long folderId,
                                   String title,
                                   String version)
                            throws SystemException
Removes all the document library file versions where groupId = ? and folderId = ? and title = ? and version = ? from the database.

Parameters:
groupId - the group ID
folderId - the folder ID
title - the title
version - the version
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the document library file versions from the database.

Throws:
SystemException - if a system exception occurred

countByUuid

public static int countByUuid(String uuid)
                       throws SystemException
Returns the number of document library file versions where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the number of matching document library file versions
Throws:
SystemException - if a system exception occurred

countByUUID_G

public static int countByUUID_G(String uuid,
                                long groupId)
                         throws SystemException
Returns the number of document library file versions where uuid = ? and groupId = ?.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the number of matching document library file versions
Throws:
SystemException - if a system exception occurred

countByFileEntryId

public static int countByFileEntryId(long fileEntryId)
                              throws SystemException
Returns the number of document library file versions where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID
Returns:
the number of matching document library file versions
Throws:
SystemException - if a system exception occurred

countByMimeType

public static int countByMimeType(String mimeType)
                           throws SystemException
Returns the number of document library file versions where mimeType = ?.

Parameters:
mimeType - the mime type
Returns:
the number of matching document library file versions
Throws:
SystemException - if a system exception occurred

countByF_V

public static int countByF_V(long fileEntryId,
                             String version)
                      throws SystemException
Returns the number of document library file versions where fileEntryId = ? and version = ?.

Parameters:
fileEntryId - the file entry ID
version - the version
Returns:
the number of matching document library file versions
Throws:
SystemException - if a system exception occurred

countByF_S

public static int countByF_S(long fileEntryId,
                             int status)
                      throws SystemException
Returns the number of document library file versions where fileEntryId = ? and status = ?.

Parameters:
fileEntryId - the file entry ID
status - the status
Returns:
the number of matching document library file versions
Throws:
SystemException - if a system exception occurred

countByG_F_S

public static int countByG_F_S(long groupId,
                               long folderId,
                               int status)
                        throws SystemException
Returns the number of document library file versions where groupId = ? and folderId = ? and status = ?.

Parameters:
groupId - the group ID
folderId - the folder ID
status - the status
Returns:
the number of matching document library file versions
Throws:
SystemException - if a system exception occurred

countByG_F_T_V

public static int countByG_F_T_V(long groupId,
                                 long folderId,
                                 String title,
                                 String version)
                          throws SystemException
Returns the number of document library file versions where groupId = ? and folderId = ? and title = ? and version = ?.

Parameters:
groupId - the group ID
folderId - the folder ID
title - the title
version - the version
Returns:
the number of matching document library file versions
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Returns the number of document library file versions.

Returns:
the number of document library file versions
Throws:
SystemException - if a system exception occurred

getPersistence

public static DLFileVersionPersistence getPersistence()

setPersistence

public void setPersistence(DLFileVersionPersistence persistence)
Deprecated. 


Liferay 6.1.2-ce-ga3