Liferay 6.0.5

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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<DLFileVersion>
      extended by com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<DLFileVersion>, DLFileVersionPersistence

public class DLFileVersionPersistenceImpl
extends BasePersistenceImpl<DLFileVersion>
implements DLFileVersionPersistence

The persistence implementation for the d l file version service.

Never modify or reference this class directly. Always use DLFileVersionUtil to access the d l file version persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

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

Field Summary
protected  AssetEntryPersistence assetEntryPersistence
           
protected  DLFileEntryPersistence dlFileEntryPersistence
           
protected  DLFileRankPersistence dlFileRankPersistence
           
protected  DLFileShortcutPersistence dlFileShortcutPersistence
           
protected  DLFileVersionPersistence dlFileVersionPersistence
           
protected  DLFolderPersistence dlFolderPersistence
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_G_F_N
           
static FinderPath FINDER_PATH_COUNT_BY_G_F_N_S
           
static FinderPath FINDER_PATH_COUNT_BY_G_F_N_V
           
static FinderPath FINDER_PATH_FETCH_BY_G_F_N_V
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_G_F_N
           
static FinderPath FINDER_PATH_FIND_BY_G_F_N_S
           
protected  ResourcePersistence resourcePersistence
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
DLFileVersionPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the d l file version persistence.
 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.
 void clearCache()
          Clears the cache for all d l file versions.
 void clearCache(DLFileVersion dlFileVersion)
          Clears the cache for the d l file version.
 int countAll()
          Counts all the d l file versions.
 int countByG_F_N_S(long groupId, long folderId, String name, int status)
          Counts all the d l file versions where groupId = ? and folderId = ? and name = ? and status = ?.
 int countByG_F_N_V(long groupId, long folderId, String name, String version)
          Counts all the d l file versions where groupId = ? and folderId = ? and name = ? and version = ?.
 int countByG_F_N(long groupId, long folderId, String name)
          Counts all the d l file versions where groupId = ? and folderId = ? and name = ?.
 DLFileVersion create(long fileVersionId)
          Creates a new d l file version with the primary key.
 DLFileVersion fetchByG_F_N_V(long groupId, long folderId, String name, String version)
          Finds the d l file version where groupId = ? and folderId = ? and name = ? and version = ? or returns null if it could not be found.
 DLFileVersion fetchByG_F_N_V(long groupId, long folderId, String name, String version, boolean retrieveFromCache)
          Finds the d l file version where groupId = ? and folderId = ? and name = ? 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.
 DLFileVersion fetchByPrimaryKey(Serializable primaryKey)
          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 findByG_F_N_First(long groupId, long folderId, String name, OrderByComparator orderByComparator)
          Finds the first d l file version in the ordered set where groupId = ? and folderId = ? and name = ?.
 DLFileVersion findByG_F_N_Last(long groupId, long folderId, String name, OrderByComparator orderByComparator)
          Finds the last d l file version in the ordered set where groupId = ? and folderId = ? and name = ?.
 DLFileVersion[] findByG_F_N_PrevAndNext(long fileVersionId, long groupId, long folderId, String name, OrderByComparator orderByComparator)
          Finds the d l file versions before and after the current d l file version in the ordered set where groupId = ? and folderId = ? and name = ?.
 DLFileVersion findByG_F_N_S_First(long groupId, long folderId, String name, int status, OrderByComparator orderByComparator)
          Finds the first d l file version in the ordered set where groupId = ? and folderId = ? and name = ? and status = ?.
 DLFileVersion findByG_F_N_S_Last(long groupId, long folderId, String name, int status, OrderByComparator orderByComparator)
          Finds the last d l file version in the ordered set where groupId = ? and folderId = ? and name = ? and status = ?.
 DLFileVersion[] findByG_F_N_S_PrevAndNext(long fileVersionId, long groupId, long folderId, String name, int status, OrderByComparator orderByComparator)
          Finds the d l file versions before and after the current d l file version in the ordered set where groupId = ? and folderId = ? and name = ? and status = ?.
 List<DLFileVersion> findByG_F_N_S(long groupId, long folderId, String name, int status)
          Finds all the d l file versions where groupId = ? and folderId = ? and name = ? and status = ?.
 List<DLFileVersion> findByG_F_N_S(long groupId, long folderId, String name, int status, int start, int end)
          Finds a range of all the d l file versions where groupId = ? and folderId = ? and name = ? and status = ?.
 List<DLFileVersion> findByG_F_N_S(long groupId, long folderId, String name, int status, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the d l file versions where groupId = ? and folderId = ? and name = ? and status = ?.
 DLFileVersion findByG_F_N_V(long groupId, long folderId, String name, String version)
          Finds the d l file version where groupId = ? and folderId = ? and name = ? and version = ? or throws a NoSuchFileVersionException if it could not be found.
 List<DLFileVersion> findByG_F_N(long groupId, long folderId, String name)
          Finds all the d l file versions where groupId = ? and folderId = ? and name = ?.
 List<DLFileVersion> findByG_F_N(long groupId, long folderId, String name, int start, int end)
          Finds a range of all the d l file versions where groupId = ? and folderId = ? and name = ?.
 List<DLFileVersion> findByG_F_N(long groupId, long folderId, String name, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the d l file versions where groupId = ? and folderId = ? and name = ?.
 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 findByPrimaryKey(Serializable primaryKey)
          Finds the d l file version with the primary key or throws a NoSuchModelException if it could not be found.
protected  DLFileVersion getByG_F_N_PrevAndNext(Session session, DLFileVersion dlFileVersion, long groupId, long folderId, String name, OrderByComparator orderByComparator, boolean previous)
           
protected  DLFileVersion getByG_F_N_S_PrevAndNext(Session session, DLFileVersion dlFileVersion, long groupId, long folderId, String name, int status, OrderByComparator orderByComparator, boolean previous)
           
 DLFileVersion remove(long fileVersionId)
          Removes the d l file version with the primary key from the database.
 DLFileVersion remove(Serializable primaryKey)
          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 removeByG_F_N_S(long groupId, long folderId, String name, int status)
          Removes all the d l file versions where groupId = ? and folderId = ? and name = ? and status = ? from the database.
 void removeByG_F_N_V(long groupId, long folderId, String name, String version)
          Removes the d l file version where groupId = ? and folderId = ? and name = ? and version = ? from the database.
 void removeByG_F_N(long groupId, long folderId, String name)
          Removes all the d l file versions where groupId = ? and folderId = ? and name = ? from the database.
protected  DLFileVersion removeImpl(DLFileVersion dlFileVersion)
          Removes the model instance from the database.
protected  DLFileVersion toUnwrappedModel(DLFileVersion dlFileVersion)
           
 DLFileVersion updateImpl(DLFileVersion dlFileVersion, boolean merge)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_G_F_N

public static final FinderPath FINDER_PATH_FIND_BY_G_F_N

FINDER_PATH_COUNT_BY_G_F_N

public static final FinderPath FINDER_PATH_COUNT_BY_G_F_N

FINDER_PATH_FETCH_BY_G_F_N_V

public static final FinderPath FINDER_PATH_FETCH_BY_G_F_N_V

FINDER_PATH_COUNT_BY_G_F_N_V

public static final FinderPath FINDER_PATH_COUNT_BY_G_F_N_V

FINDER_PATH_FIND_BY_G_F_N_S

public static final FinderPath FINDER_PATH_FIND_BY_G_F_N_S

FINDER_PATH_COUNT_BY_G_F_N_S

public static final FinderPath FINDER_PATH_COUNT_BY_G_F_N_S

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

dlFileEntryPersistence

@BeanReference(type=DLFileEntryPersistence.class)
protected DLFileEntryPersistence dlFileEntryPersistence

dlFileRankPersistence

@BeanReference(type=DLFileRankPersistence.class)
protected DLFileRankPersistence dlFileRankPersistence

dlFileShortcutPersistence

@BeanReference(type=DLFileShortcutPersistence.class)
protected DLFileShortcutPersistence dlFileShortcutPersistence

dlFileVersionPersistence

@BeanReference(type=DLFileVersionPersistence.class)
protected DLFileVersionPersistence dlFileVersionPersistence

dlFolderPersistence

@BeanReference(type=DLFolderPersistence.class)
protected DLFolderPersistence dlFolderPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

assetEntryPersistence

@BeanReference(type=AssetEntryPersistence.class)
protected AssetEntryPersistence assetEntryPersistence
Constructor Detail

DLFileVersionPersistenceImpl

public DLFileVersionPersistenceImpl()
Method Detail

cacheResult

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

Specified by:
cacheResult in interface DLFileVersionPersistence
Parameters:
dlFileVersion - the d l file version to cache

cacheResult

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

Specified by:
cacheResult in interface DLFileVersionPersistence
Parameters:
dlFileVersions - the d l file versions to cache

clearCache

public void clearCache()
Clears the cache for all d l file versions.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<DLFileVersion>
Overrides:
clearCache in class BasePersistenceImpl<DLFileVersion>

clearCache

public void clearCache(DLFileVersion dlFileVersion)
Clears the cache for the d l file version.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<DLFileVersion>
Overrides:
clearCache in class BasePersistenceImpl<DLFileVersion>
Parameters:
dlFileVersion - the instance of this model to clear the cache for

create

public 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.

Specified by:
create in interface DLFileVersionPersistence
Parameters:
fileVersionId - the primary key for the new d l file version
Returns:
the new d l file version

remove

public DLFileVersion remove(Serializable primaryKey)
                     throws NoSuchModelException,
                            SystemException
Removes the d l file version with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<DLFileVersion>
Overrides:
remove in class BasePersistenceImpl<DLFileVersion>
Parameters:
primaryKey - the primary key of the d l file version to remove
Returns:
the d l file version that was removed
Throws:
NoSuchModelException - if a d l file version with the primary key could not be found
SystemException - if a system exception occurred

remove

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

Specified by:
remove in interface DLFileVersionPersistence
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

removeImpl

protected DLFileVersion removeImpl(DLFileVersion dlFileVersion)
                            throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<DLFileVersion>
Parameters:
dlFileVersion - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public DLFileVersion updateImpl(DLFileVersion dlFileVersion,
                                boolean merge)
                         throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface DLFileVersionPersistence
Overrides:
updateImpl in class BasePersistenceImpl<DLFileVersion>
Parameters:
dlFileVersion - the model instance to update
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected DLFileVersion toUnwrappedModel(DLFileVersion dlFileVersion)

findByPrimaryKey

public DLFileVersion findByPrimaryKey(Serializable primaryKey)
                               throws NoSuchModelException,
                                      SystemException
Finds the d l file version with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<DLFileVersion>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<DLFileVersion>
Parameters:
primaryKey - the primary key of the d l file version to find
Returns:
the d l file version
Throws:
NoSuchModelException - if a d l file version with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

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

Specified by:
findByPrimaryKey in interface DLFileVersionPersistence
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

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

Specified by:
fetchByPrimaryKey in interface BasePersistence<DLFileVersion>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<DLFileVersion>
Parameters:
primaryKey - 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

fetchByPrimaryKey

public 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.

Specified by:
fetchByPrimaryKey in interface DLFileVersionPersistence
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

findByG_F_N

public List<DLFileVersion> findByG_F_N(long groupId,
                                       long folderId,
                                       String name)
                                throws SystemException
Finds all the d l file versions where groupId = ? and folderId = ? and name = ?.

Specified by:
findByG_F_N in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name to search with
Returns:
the matching d l file versions
Throws:
SystemException - if a system exception occurred

findByG_F_N

public List<DLFileVersion> findByG_F_N(long groupId,
                                       long folderId,
                                       String name,
                                       int start,
                                       int end)
                                throws SystemException
Finds a range of all the d l file versions where groupId = ? and folderId = ? and name = ?.

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.

Specified by:
findByG_F_N in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name 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

findByG_F_N

public List<DLFileVersion> findByG_F_N(long groupId,
                                       long folderId,
                                       String name,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Finds an ordered range of all the d l file versions where groupId = ? and folderId = ? and name = ?.

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.

Specified by:
findByG_F_N in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name 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

findByG_F_N_First

public DLFileVersion findByG_F_N_First(long groupId,
                                       long folderId,
                                       String name,
                                       OrderByComparator orderByComparator)
                                throws NoSuchFileVersionException,
                                       SystemException
Finds the first d l file version in the ordered set where groupId = ? and folderId = ? and name = ?.

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.

Specified by:
findByG_F_N_First in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name 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

findByG_F_N_Last

public DLFileVersion findByG_F_N_Last(long groupId,
                                      long folderId,
                                      String name,
                                      OrderByComparator orderByComparator)
                               throws NoSuchFileVersionException,
                                      SystemException
Finds the last d l file version in the ordered set where groupId = ? and folderId = ? and name = ?.

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.

Specified by:
findByG_F_N_Last in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name 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

findByG_F_N_PrevAndNext

public DLFileVersion[] findByG_F_N_PrevAndNext(long fileVersionId,
                                               long groupId,
                                               long folderId,
                                               String name,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchFileVersionException,
                                               SystemException
Finds the d l file versions before and after the current d l file version in the ordered set where groupId = ? and folderId = ? and name = ?.

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.

Specified by:
findByG_F_N_PrevAndNext in interface DLFileVersionPersistence
Parameters:
fileVersionId - the primary key of the current d l file version
groupId - the group id to search with
folderId - the folder id to search with
name - the name 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

getByG_F_N_PrevAndNext

protected DLFileVersion getByG_F_N_PrevAndNext(Session session,
                                               DLFileVersion dlFileVersion,
                                               long groupId,
                                               long folderId,
                                               String name,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

findByG_F_N_V

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

Specified by:
findByG_F_N_V in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name 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

fetchByG_F_N_V

public DLFileVersion fetchByG_F_N_V(long groupId,
                                    long folderId,
                                    String name,
                                    String version)
                             throws SystemException
Finds the d l file version where groupId = ? and folderId = ? and name = ? and version = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByG_F_N_V in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name 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

fetchByG_F_N_V

public DLFileVersion fetchByG_F_N_V(long groupId,
                                    long folderId,
                                    String name,
                                    String version,
                                    boolean retrieveFromCache)
                             throws SystemException
Finds the d l file version where groupId = ? and folderId = ? and name = ? and version = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByG_F_N_V in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name 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

findByG_F_N_S

public List<DLFileVersion> findByG_F_N_S(long groupId,
                                         long folderId,
                                         String name,
                                         int status)
                                  throws SystemException
Finds all the d l file versions where groupId = ? and folderId = ? and name = ? and status = ?.

Specified by:
findByG_F_N_S in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name to search with
status - the status to search with
Returns:
the matching d l file versions
Throws:
SystemException - if a system exception occurred

findByG_F_N_S

public List<DLFileVersion> findByG_F_N_S(long groupId,
                                         long folderId,
                                         String name,
                                         int status,
                                         int start,
                                         int end)
                                  throws SystemException
Finds a range of all the d l file versions where groupId = ? and folderId = ? and name = ? 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.

Specified by:
findByG_F_N_S in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name 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

findByG_F_N_S

public List<DLFileVersion> findByG_F_N_S(long groupId,
                                         long folderId,
                                         String name,
                                         int status,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Finds an ordered range of all the d l file versions where groupId = ? and folderId = ? and name = ? 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.

Specified by:
findByG_F_N_S in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name 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

findByG_F_N_S_First

public DLFileVersion findByG_F_N_S_First(long groupId,
                                         long folderId,
                                         String name,
                                         int status,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchFileVersionException,
                                         SystemException
Finds the first d l file version in the ordered set where groupId = ? and folderId = ? and name = ? 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.

Specified by:
findByG_F_N_S_First in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name 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

findByG_F_N_S_Last

public DLFileVersion findByG_F_N_S_Last(long groupId,
                                        long folderId,
                                        String name,
                                        int status,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchFileVersionException,
                                        SystemException
Finds the last d l file version in the ordered set where groupId = ? and folderId = ? and name = ? 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.

Specified by:
findByG_F_N_S_Last in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name 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

findByG_F_N_S_PrevAndNext

public DLFileVersion[] findByG_F_N_S_PrevAndNext(long fileVersionId,
                                                 long groupId,
                                                 long folderId,
                                                 String name,
                                                 int status,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchFileVersionException,
                                                 SystemException
Finds the d l file versions before and after the current d l file version in the ordered set where groupId = ? and folderId = ? and name = ? 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.

Specified by:
findByG_F_N_S_PrevAndNext in interface DLFileVersionPersistence
Parameters:
fileVersionId - the primary key of the current d l file version
groupId - the group id to search with
folderId - the folder id to search with
name - the name 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

getByG_F_N_S_PrevAndNext

protected DLFileVersion getByG_F_N_S_PrevAndNext(Session session,
                                                 DLFileVersion dlFileVersion,
                                                 long groupId,
                                                 long folderId,
                                                 String name,
                                                 int status,
                                                 OrderByComparator orderByComparator,
                                                 boolean previous)

findAll

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

Specified by:
findAll in interface DLFileVersionPersistence
Returns:
the d l file versions
Throws:
SystemException - if a system exception occurred

findAll

public 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.

Specified by:
findAll in interface DLFileVersionPersistence
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

public 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.

Specified by:
findAll in interface DLFileVersionPersistence
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

removeByG_F_N

public void removeByG_F_N(long groupId,
                          long folderId,
                          String name)
                   throws SystemException
Removes all the d l file versions where groupId = ? and folderId = ? and name = ? from the database.

Specified by:
removeByG_F_N in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name to search with
Throws:
SystemException - if a system exception occurred

removeByG_F_N_V

public void removeByG_F_N_V(long groupId,
                            long folderId,
                            String name,
                            String version)
                     throws NoSuchFileVersionException,
                            SystemException
Removes the d l file version where groupId = ? and folderId = ? and name = ? and version = ? from the database.

Specified by:
removeByG_F_N_V in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name to search with
version - the version to search with
Throws:
SystemException - if a system exception occurred
NoSuchFileVersionException

removeByG_F_N_S

public void removeByG_F_N_S(long groupId,
                            long folderId,
                            String name,
                            int status)
                     throws SystemException
Removes all the d l file versions where groupId = ? and folderId = ? and name = ? and status = ? from the database.

Specified by:
removeByG_F_N_S in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name to search with
status - the status to search with
Throws:
SystemException - if a system exception occurred

removeAll

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

Specified by:
removeAll in interface DLFileVersionPersistence
Throws:
SystemException - if a system exception occurred

countByG_F_N

public int countByG_F_N(long groupId,
                        long folderId,
                        String name)
                 throws SystemException
Counts all the d l file versions where groupId = ? and folderId = ? and name = ?.

Specified by:
countByG_F_N in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name to search with
Returns:
the number of matching d l file versions
Throws:
SystemException - if a system exception occurred

countByG_F_N_V

public int countByG_F_N_V(long groupId,
                          long folderId,
                          String name,
                          String version)
                   throws SystemException
Counts all the d l file versions where groupId = ? and folderId = ? and name = ? and version = ?.

Specified by:
countByG_F_N_V in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name 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

countByG_F_N_S

public int countByG_F_N_S(long groupId,
                          long folderId,
                          String name,
                          int status)
                   throws SystemException
Counts all the d l file versions where groupId = ? and folderId = ? and name = ? and status = ?.

Specified by:
countByG_F_N_S in interface DLFileVersionPersistence
Parameters:
groupId - the group id to search with
folderId - the folder id to search with
name - the name 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

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

Specified by:
countAll in interface DLFileVersionPersistence
Returns:
the number of d l file versions
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the d l file version persistence.


Liferay 6.0.5