Liferay 6.0-ee-sp2

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

All Superinterfaces:
BasePersistence<DLFileVersion>

public interface DLFileVersionPersistence
extends BasePersistence<DLFileVersion>

The persistence interface for the d l 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 d l file version in the entity cache if it is enabled.
 void cacheResult(List<DLFileVersion> dlFileVersions)
          Caches the d l file versions in the entity cache if it is enabled.
 int countAll()
          Counts all the d l file versions.
 int countByF_S(long fileEntryId, int status)
          Counts all the d l file versions where fileEntryId = ? and status = ?.
 int countByF_V(long fileEntryId, String version)
          Counts all the d l file versions where fileEntryId = ? and version = ?.
 int countByFileEntryId(long fileEntryId)
          Counts all the d l file versions where fileEntryId = ?.
 DLFileVersion create(long fileVersionId)
          Creates a new d l file version with the primary key.
 DLFileVersion fetchByF_V(long fileEntryId, String version)
          Finds the d l file version where fileEntryId = ? and version = ? or returns null if it could not be found.
 DLFileVersion fetchByF_V(long fileEntryId, String version, boolean retrieveFromCache)
          Finds the d l file version where fileEntryId = ? and version = ? or returns null if it could not be found, optionally using the finder cache.
 DLFileVersion fetchByPrimaryKey(long fileVersionId)
          Finds the d l file version with the primary key or returns null if it could not be found.
 List<DLFileVersion> findAll()
          Finds all the d l file versions.
 List<DLFileVersion> findAll(int start, int end)
          Finds a range of all the d l file versions.
 List<DLFileVersion> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the d l file versions.
 DLFileVersion findByF_S_First(long fileEntryId, int status, OrderByComparator orderByComparator)
          Finds the first d l file version in the ordered set where fileEntryId = ? and status = ?.
 DLFileVersion findByF_S_Last(long fileEntryId, int status, OrderByComparator orderByComparator)
          Finds the last d l file version in the ordered set where fileEntryId = ? and status = ?.
 DLFileVersion[] findByF_S_PrevAndNext(long fileVersionId, long fileEntryId, int status, OrderByComparator orderByComparator)
          Finds the d l file versions before and after the current d l file version in the ordered set where fileEntryId = ? and status = ?.
 List<DLFileVersion> findByF_S(long fileEntryId, int status)
          Finds all the d l file versions where fileEntryId = ? and status = ?.
 List<DLFileVersion> findByF_S(long fileEntryId, int status, int start, int end)
          Finds a range of all the d l file versions where fileEntryId = ? and status = ?.
 List<DLFileVersion> findByF_S(long fileEntryId, int status, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the d l file versions where fileEntryId = ? and status = ?.
 DLFileVersion findByF_V(long fileEntryId, String version)
          Finds the d l file version where fileEntryId = ? and version = ? or throws a NoSuchFileVersionException if it could not be found.
 DLFileVersion findByFileEntryId_First(long fileEntryId, OrderByComparator orderByComparator)
          Finds the first d l file version in the ordered set where fileEntryId = ?.
 DLFileVersion findByFileEntryId_Last(long fileEntryId, OrderByComparator orderByComparator)
          Finds the last d l file version in the ordered set where fileEntryId = ?.
 DLFileVersion[] findByFileEntryId_PrevAndNext(long fileVersionId, long fileEntryId, OrderByComparator orderByComparator)
          Finds the d l file versions before and after the current d l file version in the ordered set where fileEntryId = ?.
 List<DLFileVersion> findByFileEntryId(long fileEntryId)
          Finds all the d l file versions where fileEntryId = ?.
 List<DLFileVersion> findByFileEntryId(long fileEntryId, int start, int end)
          Finds a range of all the d l file versions where fileEntryId = ?.
 List<DLFileVersion> findByFileEntryId(long fileEntryId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the d l file versions where fileEntryId = ?.
 DLFileVersion findByPrimaryKey(long fileVersionId)
          Finds the d l file version with the primary key or throws a NoSuchFileVersionException if it could not be found.
 DLFileVersion remove(DLFileVersion dlFileVersion)
          Removes the model instance from the database.
 DLFileVersion remove(long fileVersionId)
          Removes the d l file version with the primary key from the database.
 void removeAll()
          Removes all the d l file versions from the database.
 void removeByF_S(long fileEntryId, int status)
          Removes all the d l file versions where fileEntryId = ? and status = ? from the database.
 void removeByF_V(long fileEntryId, String version)
          Removes the d l file version where fileEntryId = ? and version = ? from the database.
 void removeByFileEntryId(long fileEntryId)
          Removes all the d l file versions where fileEntryId = ? from the database.
 DLFileVersion updateImpl(DLFileVersion dlFileVersion, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

void cacheResult(DLFileVersion dlFileVersion)
Caches the d l file version in the entity cache if it is enabled.

Parameters:
dlFileVersion - the d l file version to cache

cacheResult

void cacheResult(List<DLFileVersion> dlFileVersions)
Caches the d l file versions in the entity cache if it is enabled.

Parameters:
dlFileVersions - the d l file versions to cache

create

DLFileVersion create(long fileVersionId)
Creates a new d l file version with the primary key. Does not add the d l file version to the database.

Parameters:
fileVersionId - the primary key for the new d l file version
Returns:
the new d l file version

remove

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

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

updateImpl

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

findByPrimaryKey

DLFileVersion findByPrimaryKey(long fileVersionId)
                               throws SystemException,
                                      NoSuchFileVersionException
Finds the d l file version with the primary key or throws a NoSuchFileVersionException if it could not be found.

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

fetchByPrimaryKey

DLFileVersion fetchByPrimaryKey(long fileVersionId)
                                throws SystemException
Finds the d l file version with the primary key or returns null if it could not be found.

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

findByFileEntryId

List<DLFileVersion> findByFileEntryId(long fileEntryId)
                                      throws SystemException
Finds all the d l file versions where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID to search with
Returns:
the matching d l file versions
Throws:
SystemException - if a system exception occurred

findByFileEntryId

List<DLFileVersion> findByFileEntryId(long fileEntryId,
                                      int start,
                                      int end)
                                      throws SystemException
Finds a range of all the d l file versions where fileEntryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
fileEntryId - the file entry ID to search with
start - the lower bound of the range of d l file versions to return
end - the upper bound of the range of d l file versions to return (not inclusive)
Returns:
the range of matching d l file versions
Throws:
SystemException - if a system exception occurred

findByFileEntryId

List<DLFileVersion> findByFileEntryId(long fileEntryId,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                                      throws SystemException
Finds an ordered range of all the d l file versions where fileEntryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

findByFileEntryId_First

DLFileVersion findByFileEntryId_First(long fileEntryId,
                                      OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchFileVersionException
Finds the first d l file version in the ordered set where fileEntryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
fileEntryId - the file entry ID to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching d l file version
Throws:
NoSuchFileVersionException - if a matching d l file version could not be found
SystemException - if a system exception occurred

findByFileEntryId_Last

DLFileVersion findByFileEntryId_Last(long fileEntryId,
                                     OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchFileVersionException
Finds the last d l file version in the ordered set where fileEntryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
fileEntryId - the file entry ID to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching d l file version
Throws:
NoSuchFileVersionException - if a matching d l file version could not be found
SystemException - if a system exception occurred

findByFileEntryId_PrevAndNext

DLFileVersion[] findByFileEntryId_PrevAndNext(long fileVersionId,
                                              long fileEntryId,
                                              OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     NoSuchFileVersionException
Finds the d l file versions before and after the current d l file version in the ordered set where fileEntryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

findByF_V

DLFileVersion findByF_V(long fileEntryId,
                        String version)
                        throws SystemException,
                               NoSuchFileVersionException
Finds the d l file version where fileEntryId = ? and version = ? or throws a NoSuchFileVersionException if it could not be found.

Parameters:
fileEntryId - the file entry ID to search with
version - the version to search with
Returns:
the matching d l file version
Throws:
NoSuchFileVersionException - if a matching d l file version could not be found
SystemException - if a system exception occurred

fetchByF_V

DLFileVersion fetchByF_V(long fileEntryId,
                         String version)
                         throws SystemException
Finds the d l 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 to search with
version - the version to search with
Returns:
the matching d l file version, or null if a matching d l 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
Finds the d l 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 to search with
version - the version to search with
Returns:
the matching d l file version, or null if a matching d l file version could not be found
Throws:
SystemException - if a system exception occurred

findByF_S

List<DLFileVersion> findByF_S(long fileEntryId,
                              int status)
                              throws SystemException
Finds all the d l file versions where fileEntryId = ? and status = ?.

Parameters:
fileEntryId - the file entry ID to search with
status - the status to search with
Returns:
the matching d l 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
Finds a range of all the d l file versions where fileEntryId = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
fileEntryId - the file entry ID to search with
status - the status to search with
start - the lower bound of the range of d l file versions to return
end - the upper bound of the range of d l file versions to return (not inclusive)
Returns:
the range of matching d l 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
Finds an ordered range of all the d l file versions where fileEntryId = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
fileEntryId - the file entry ID to search with
status - the status to search with
start - the lower bound of the range of d l file versions to return
end - the upper bound of the range of d l file versions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching d l 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
Finds the first d l file version in the ordered set where fileEntryId = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
fileEntryId - the file entry ID to search with
status - the status to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching d l file version
Throws:
NoSuchFileVersionException - if a matching d l file version could not be found
SystemException - if a system exception occurred

findByF_S_Last

DLFileVersion findByF_S_Last(long fileEntryId,
                             int status,
                             OrderByComparator orderByComparator)
                             throws SystemException,
                                    NoSuchFileVersionException
Finds the last d l file version in the ordered set where fileEntryId = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
fileEntryId - the file entry ID to search with
status - the status to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching d l file version
Throws:
NoSuchFileVersionException - if a matching d l file version could not be found
SystemException - if a system exception occurred

findByF_S_PrevAndNext

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

findAll

List<DLFileVersion> findAll()
                            throws SystemException
Finds all the d l file versions.

Returns:
the d l file versions
Throws:
SystemException - if a system exception occurred

findAll

List<DLFileVersion> findAll(int start,
                            int end)
                            throws SystemException
Finds a range of all the d l file versions.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

findAll

List<DLFileVersion> findAll(int start,
                            int end,
                            OrderByComparator orderByComparator)
                            throws SystemException
Finds an ordered range of all the d l file versions.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

removeByFileEntryId

void removeByFileEntryId(long fileEntryId)
                         throws SystemException
Removes all the d l file versions where fileEntryId = ? from the database.

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

removeByF_V

void removeByF_V(long fileEntryId,
                 String version)
                 throws SystemException,
                        NoSuchFileVersionException
Removes the d l file version where fileEntryId = ? and version = ? from the database.

Parameters:
fileEntryId - the file entry ID to search with
version - the version to search with
Throws:
SystemException - if a system exception occurred
NoSuchFileVersionException

removeByF_S

void removeByF_S(long fileEntryId,
                 int status)
                 throws SystemException
Removes all the d l file versions where fileEntryId = ? and status = ? from the database.

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

removeAll

void removeAll()
               throws SystemException
Removes all the d l file versions from the database.

Throws:
SystemException - if a system exception occurred

countByFileEntryId

int countByFileEntryId(long fileEntryId)
                       throws SystemException
Counts all the d l file versions where fileEntryId = ?.

Parameters:
fileEntryId - the file entry ID to search with
Returns:
the number of matching d l file versions
Throws:
SystemException - if a system exception occurred

countByF_V

int countByF_V(long fileEntryId,
               String version)
               throws SystemException
Counts all the d l file versions where fileEntryId = ? and version = ?.

Parameters:
fileEntryId - the file entry ID to search with
version - the version to search with
Returns:
the number of matching d l file versions
Throws:
SystemException - if a system exception occurred

countByF_S

int countByF_S(long fileEntryId,
               int status)
               throws SystemException
Counts all the d l file versions where fileEntryId = ? and status = ?.

Parameters:
fileEntryId - the file entry ID to search with
status - the status to search with
Returns:
the number of matching d l file versions
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Counts all the d l file versions.

Returns:
the number of d l file versions
Throws:
SystemException - if a system exception occurred

remove

DLFileVersion remove(DLFileVersion dlFileVersion)
                     throws SystemException
Description copied from interface: BasePersistence
Removes the model instance from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<DLFileVersion>
Parameters:
dlFileVersion - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

Liferay 6.0-ee-sp2