Liferay 6.2-ce-ga5

com.liferay.portlet.documentlibrary.service.persistence
Interface DLFileVersionPersistence

All Superinterfaces:
BasePersistence<DLFileVersion>

@ProviderType
public interface DLFileVersionPersistence
extends BasePersistence<DLFileVersion>

The persistence interface for the document library file version service.

Caching information and settings can be found in portal.properties

See Also:
DLFileVersionPersistenceImpl, DLFileVersionUtil

Method Summary
 void cacheResult(DLFileVersion dlFileVersion)
          Caches the document library file version in the entity cache if it is enabled.
 void cacheResult(List<DLFileVersion> dlFileVersions)
          Caches the document library file versions in the entity cache if it is enabled.
 int countAll()
          Returns the number of document library file versions.
 int countByC_NotS(long companyId, int status)
          Returns the number of document library file versions where companyId = ? and status ≠ ?.
 int countByCompanyId(long companyId)
          Returns the number of document library file versions where companyId = ?.
 int countByF_S(long fileEntryId, int status)
          Returns the number of document library file versions where fileEntryId = ? and status = ?.
 int countByF_V(long fileEntryId, String version)
          Returns the number of document library file versions where fileEntryId = ? and version = ?.
 int countByFileEntryId(long fileEntryId)
          Returns the number of document library file versions where fileEntryId = ?.
 int countByG_F_S(long groupId, long folderId, int status)
          Returns the number of document library file versions where groupId = ? and folderId = ? and status = ?.
 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 = ?.
 int countByMimeType(String mimeType)
          Returns the number of document library file versions where mimeType = ?.
 int countByUuid_C(String uuid, long companyId)
          Returns the number of document library file versions where uuid = ? and companyId = ?.
 int countByUUID_G(String uuid, long groupId)
          Returns the number of document library file versions where uuid = ? and groupId = ?.
 int countByUuid(String uuid)
          Returns the number of document library file versions where uuid = ?.
 DLFileVersion create(long fileVersionId)
          Creates a new document library file version with the primary key.
 DLFileVersion fetchByC_NotS_First(long companyId, int status, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where companyId = ? and status ≠ ?.
 DLFileVersion fetchByC_NotS_Last(long companyId, int status, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where companyId = ? and status ≠ ?.
 DLFileVersion fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where companyId = ?.
 DLFileVersion fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where companyId = ?.
 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 = ?.
 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 = ?.
 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.
 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.
 DLFileVersion fetchByFileEntryId_First(long fileEntryId, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where fileEntryId = ?.
 DLFileVersion fetchByFileEntryId_Last(long fileEntryId, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where fileEntryId = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 DLFileVersion fetchByMimeType_First(String mimeType, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where mimeType = ?.
 DLFileVersion fetchByMimeType_Last(String mimeType, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where mimeType = ?.
 DLFileVersion fetchByPrimaryKey(long fileVersionId)
          Returns the document library file version with the primary key or returns null if it could not be found.
 DLFileVersion fetchByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where uuid = ? and companyId = ?.
 DLFileVersion fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where uuid = ? and companyId = ?.
 DLFileVersion fetchByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where uuid = ?.
 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.
 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.
 DLFileVersion fetchByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where uuid = ?.
 List<DLFileVersion> findAll()
          Returns all the document library file versions.
 List<DLFileVersion> findAll(int start, int end)
          Returns a range of all the document library file versions.
 List<DLFileVersion> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file versions.
 DLFileVersion findByC_NotS_First(long companyId, int status, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where companyId = ? and status ≠ ?.
 DLFileVersion findByC_NotS_Last(long companyId, int status, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where companyId = ? and status ≠ ?.
 DLFileVersion[] findByC_NotS_PrevAndNext(long fileVersionId, long companyId, int status, OrderByComparator orderByComparator)
          Returns the document library file versions before and after the current document library file version in the ordered set where companyId = ? and status ≠ ?.
 List<DLFileVersion> findByC_NotS(long companyId, int status)
          Returns all the document library file versions where companyId = ? and status ≠ ?.
 List<DLFileVersion> findByC_NotS(long companyId, int status, int start, int end)
          Returns a range of all the document library file versions where companyId = ? and status ≠ ?.
 List<DLFileVersion> findByC_NotS(long companyId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file versions where companyId = ? and status ≠ ?.
 DLFileVersion findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where companyId = ?.
 DLFileVersion findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where companyId = ?.
 DLFileVersion[] findByCompanyId_PrevAndNext(long fileVersionId, long companyId, OrderByComparator orderByComparator)
          Returns the document library file versions before and after the current document library file version in the ordered set where companyId = ?.
 List<DLFileVersion> findByCompanyId(long companyId)
          Returns all the document library file versions where companyId = ?.
 List<DLFileVersion> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the document library file versions where companyId = ?.
 List<DLFileVersion> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file versions where companyId = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 List<DLFileVersion> findByF_S(long fileEntryId, int status)
          Returns all the document library file versions where fileEntryId = ? and status = ?.
 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 = ?.
 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 = ?.
 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.
 DLFileVersion findByFileEntryId_First(long fileEntryId, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where fileEntryId = ?.
 DLFileVersion findByFileEntryId_Last(long fileEntryId, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where fileEntryId = ?.
 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 = ?.
 List<DLFileVersion> findByFileEntryId(long fileEntryId)
          Returns all the document library file versions where fileEntryId = ?.
 List<DLFileVersion> findByFileEntryId(long fileEntryId, int start, int end)
          Returns a range of all the document library file versions where fileEntryId = ?.
 List<DLFileVersion> findByFileEntryId(long fileEntryId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file versions where fileEntryId = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 List<DLFileVersion> findByG_F_S(long groupId, long folderId, int status)
          Returns all the document library file versions where groupId = ? and folderId = ? and status = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 DLFileVersion findByMimeType_First(String mimeType, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where mimeType = ?.
 DLFileVersion findByMimeType_Last(String mimeType, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where mimeType = ?.
 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 = ?.
 List<DLFileVersion> findByMimeType(String mimeType)
          Returns all the document library file versions where mimeType = ?.
 List<DLFileVersion> findByMimeType(String mimeType, int start, int end)
          Returns a range of all the document library file versions where mimeType = ?.
 List<DLFileVersion> findByMimeType(String mimeType, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file versions where mimeType = ?.
 DLFileVersion findByPrimaryKey(long fileVersionId)
          Returns the document library file version with the primary key or throws a NoSuchFileVersionException if it could not be found.
 DLFileVersion findByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where uuid = ? and companyId = ?.
 DLFileVersion findByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where uuid = ? and companyId = ?.
 DLFileVersion[] findByUuid_C_PrevAndNext(long fileVersionId, String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the document library file versions before and after the current document library file version in the ordered set where uuid = ? and companyId = ?.
 List<DLFileVersion> findByUuid_C(String uuid, long companyId)
          Returns all the document library file versions where uuid = ? and companyId = ?.
 List<DLFileVersion> findByUuid_C(String uuid, long companyId, int start, int end)
          Returns a range of all the document library file versions where uuid = ? and companyId = ?.
 List<DLFileVersion> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file versions where uuid = ? and companyId = ?.
 DLFileVersion findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first document library file version in the ordered set where uuid = ?.
 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.
 DLFileVersion findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last document library file version in the ordered set where uuid = ?.
 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 = ?.
 List<DLFileVersion> findByUuid(String uuid)
          Returns all the document library file versions where uuid = ?.
 List<DLFileVersion> findByUuid(String uuid, int start, int end)
          Returns a range of all the document library file versions where uuid = ?.
 List<DLFileVersion> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library file versions where uuid = ?.
 DLFileVersion remove(long fileVersionId)
          Removes the document library file version with the primary key from the database.
 void removeAll()
          Removes all the document library file versions from the database.
 void removeByC_NotS(long companyId, int status)
          Removes all the document library file versions where companyId = ? and status ≠ ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the document library file versions where companyId = ? from the database.
 void removeByF_S(long fileEntryId, int status)
          Removes all the document library file versions where fileEntryId = ? and status = ? from the database.
 DLFileVersion removeByF_V(long fileEntryId, String version)
          Removes the document library file version where fileEntryId = ? and version = ? from the database.
 void removeByFileEntryId(long fileEntryId)
          Removes all the document library file versions where fileEntryId = ? from the database.
 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 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.
 void removeByMimeType(String mimeType)
          Removes all the document library file versions where mimeType = ? from the database.
 void removeByUuid_C(String uuid, long companyId)
          Removes all the document library file versions where uuid = ? and companyId = ? from the database.
 DLFileVersion removeByUUID_G(String uuid, long groupId)
          Removes the document library file version where uuid = ? and groupId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the document library file versions where uuid = ? from the database.
 DLFileVersion updateImpl(DLFileVersion dlFileVersion)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByUuid

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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

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

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

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

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

removeByUuid

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

countByUuid

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

findByUUID_G

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

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

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

removeByUUID_G

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

countByUUID_G

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

findByUuid_C

List<DLFileVersion> findByUuid_C(String uuid,
                                 long companyId)
                                 throws SystemException
Returns all the document library file versions where uuid = ? and companyId = ?.

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

findByUuid_C

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
companyId - the company 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

findByUuid_C

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
companyId - the company 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

findByUuid_C_First

DLFileVersion findByUuid_C_First(String uuid,
                                 long companyId,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchFileVersionException
Returns the first document library file version in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company 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

fetchByUuid_C_First

DLFileVersion fetchByUuid_C_First(String uuid,
                                  long companyId,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
Returns the first document library file version in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company 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

findByUuid_C_Last

DLFileVersion findByUuid_C_Last(String uuid,
                                long companyId,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchFileVersionException
Returns the last document library file version in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company 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

fetchByUuid_C_Last

DLFileVersion fetchByUuid_C_Last(String uuid,
                                 long companyId,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns the last document library file version in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company 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

findByUuid_C_PrevAndNext

DLFileVersion[] findByUuid_C_PrevAndNext(long fileVersionId,
                                         String uuid,
                                         long companyId,
                                         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 = ? and companyId = ?.

Parameters:
fileVersionId - the primary key of the current document library file version
uuid - the uuid
companyId - the company 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

removeByUuid_C

void removeByUuid_C(String uuid,
                    long companyId)
                    throws SystemException
Removes all the document library file versions where uuid = ? and companyId = ? from the database.

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

countByUuid_C

int countByUuid_C(String uuid,
                  long companyId)
                  throws SystemException
Returns the number of document library file versions where uuid = ? and companyId = ?.

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

findByCompanyId

List<DLFileVersion> findByCompanyId(long companyId)
                                    throws SystemException
Returns all the document library file versions where companyId = ?.

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

findByCompanyId

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company 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

findByCompanyId

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company 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

findByCompanyId_First

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

Parameters:
companyId - the company 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

fetchByCompanyId_First

DLFileVersion fetchByCompanyId_First(long companyId,
                                     OrderByComparator orderByComparator)
                                     throws SystemException
Returns the first document library file version in the ordered set where companyId = ?.

Parameters:
companyId - the company 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

findByCompanyId_Last

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

Parameters:
companyId - the company 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

fetchByCompanyId_Last

DLFileVersion fetchByCompanyId_Last(long companyId,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
Returns the last document library file version in the ordered set where companyId = ?.

Parameters:
companyId - the company 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

findByCompanyId_PrevAndNext

DLFileVersion[] findByCompanyId_PrevAndNext(long fileVersionId,
                                            long companyId,
                                            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 companyId = ?.

Parameters:
fileVersionId - the primary key of the current document library file version
companyId - the company 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

removeByCompanyId

void removeByCompanyId(long companyId)
                       throws SystemException
Removes all the document library file versions where companyId = ? from the database.

Parameters:
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByCompanyId

int countByCompanyId(long companyId)
                     throws SystemException
Returns the number of document library file versions where companyId = ?.

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

findByFileEntryId

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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

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

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

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

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

removeByFileEntryId

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

countByFileEntryId

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

findByMimeType

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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

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

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

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

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

removeByMimeType

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

countByMimeType

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

findByC_NotS

List<DLFileVersion> findByC_NotS(long companyId,
                                 int status)
                                 throws SystemException
Returns all the document library file versions where companyId = ? and status ≠ ?.

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

findByC_NotS

List<DLFileVersion> findByC_NotS(long companyId,
                                 int status,
                                 int start,
                                 int end)
                                 throws SystemException
Returns a range of all the document library file versions where companyId = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company 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

findByC_NotS

List<DLFileVersion> findByC_NotS(long companyId,
                                 int status,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns an ordered range of all the document library file versions where companyId = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company 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

findByC_NotS_First

DLFileVersion findByC_NotS_First(long companyId,
                                 int status,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchFileVersionException
Returns the first document library file version in the ordered set where companyId = ? and status ≠ ?.

Parameters:
companyId - the company 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

fetchByC_NotS_First

DLFileVersion fetchByC_NotS_First(long companyId,
                                  int status,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
Returns the first document library file version in the ordered set where companyId = ? and status ≠ ?.

Parameters:
companyId - the company 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

findByC_NotS_Last

DLFileVersion findByC_NotS_Last(long companyId,
                                int status,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchFileVersionException
Returns the last document library file version in the ordered set where companyId = ? and status ≠ ?.

Parameters:
companyId - the company 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

fetchByC_NotS_Last

DLFileVersion fetchByC_NotS_Last(long companyId,
                                 int status,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns the last document library file version in the ordered set where companyId = ? and status ≠ ?.

Parameters:
companyId - the company 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

findByC_NotS_PrevAndNext

DLFileVersion[] findByC_NotS_PrevAndNext(long fileVersionId,
                                         long companyId,
                                         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 companyId = ? and status ≠ ?.

Parameters:
fileVersionId - the primary key of the current document library file version
companyId - the company 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

removeByC_NotS

void removeByC_NotS(long companyId,
                    int status)
                    throws SystemException
Removes all the document library file versions where companyId = ? and status ≠ ? from the database.

Parameters:
companyId - the company ID
status - the status
Throws:
SystemException - if a system exception occurred

countByC_NotS

int countByC_NotS(long companyId,
                  int status)
                  throws SystemException
Returns the number of document library file versions where companyId = ? and status ≠ ?.

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

findByF_V

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

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

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

removeByF_V

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

countByF_V

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

findByF_S

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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

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

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

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

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

removeByF_S

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

countByF_S

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

findByG_F_S

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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

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

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

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

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

removeByG_F_S

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

countByG_F_S

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

findByG_F_T_V

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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

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

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

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

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

removeByG_F_T_V

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

countByG_F_T_V

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

cacheResult

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

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

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

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

DLFileVersion updateImpl(DLFileVersion dlFileVersion)
                         throws SystemException
Throws:
SystemException

findByPrimaryKey

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

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

findAll

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLFileVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

removeAll

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

Throws:
SystemException - if a system exception occurred

countAll

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

Liferay 6.2-ce-ga5