Liferay 6.0.5

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

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

public class DLFileVersionUtil
extends Object

The persistence utility for the d l file version service. This utility wraps DLFileVersionPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

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

Constructor Summary
DLFileVersionUtil()
           
 
Method Summary
static void cacheResult(DLFileVersion dlFileVersion)
          Caches the d l file version in the entity cache if it is enabled.
static void cacheResult(List<DLFileVersion> dlFileVersions)
          Caches the d l file versions in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(DLFileVersion dlFileVersion)
           
static int countAll()
          Counts all the d l file versions.
static 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 = ?.
static 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 = ?.
static int countByG_F_N(long groupId, long folderId, String name)
          Counts all the d l file versions where groupId = ? and folderId = ? and name = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static DLFileVersion create(long fileVersionId)
          Creates a new d l file version with the primary key.
static 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.
static 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.
static DLFileVersion fetchByPrimaryKey(long fileVersionId)
          Finds the d l file version with the primary key or returns null if it could not be found.
static List<DLFileVersion> findAll()
          Finds all the d l file versions.
static List<DLFileVersion> findAll(int start, int end)
          Finds a range of all the d l file versions.
static List<DLFileVersion> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the d l file versions.
static 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 = ?.
static 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 = ?.
static 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 = ?.
static 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 = ?.
static 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 = ?.
static 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 = ?.
static 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 = ?.
static 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 = ?.
static 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 = ?.
static 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.
static List<DLFileVersion> findByG_F_N(long groupId, long folderId, String name)
          Finds all the d l file versions where groupId = ? and folderId = ? and name = ?.
static 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 = ?.
static 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 = ?.
static DLFileVersion findByPrimaryKey(long fileVersionId)
          Finds the d l file version with the primary key or throws a NoSuchFileVersionException if it could not be found.
static List<DLFileVersion> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<DLFileVersion> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<DLFileVersion> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static DLFileVersionPersistence getPersistence()
           
static DLFileVersion remove(DLFileVersion dlFileVersion)
           
static DLFileVersion remove(long fileVersionId)
          Removes the d l file version with the primary key from the database.
static void removeAll()
          Removes all the d l file versions from the database.
static 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.
static 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.
static 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.
 void setPersistence(DLFileVersionPersistence persistence)
           
static DLFileVersion update(DLFileVersion dlFileVersion, boolean merge)
           
static DLFileVersion update(DLFileVersion dlFileVersion, boolean merge, ServiceContext serviceContext)
           
static DLFileVersion updateImpl(DLFileVersion dlFileVersion, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFileVersionUtil

public DLFileVersionUtil()
Method Detail

clearCache

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

clearCache

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

countWithDynamicQuery

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

findWithDynamicQuery

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

findWithDynamicQuery

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

findWithDynamicQuery

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

remove

public static DLFileVersion remove(DLFileVersion dlFileVersion)
                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

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

update

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

cacheResult

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

Parameters:
dlFileVersion - the d l file version to cache

cacheResult

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

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

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

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

findByPrimaryKey

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

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

findByG_F_N

public static 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 = ?.

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

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

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 static DLFileVersion findByG_F_N_First(long groupId,
                                              long folderId,
                                              String name,
                                              OrderByComparator orderByComparator)
                                       throws SystemException,
                                              NoSuchFileVersionException
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.

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 static DLFileVersion findByG_F_N_Last(long groupId,
                                             long folderId,
                                             String name,
                                             OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchFileVersionException
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.

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 static DLFileVersion[] findByG_F_N_PrevAndNext(long fileVersionId,
                                                      long groupId,
                                                      long folderId,
                                                      String name,
                                                      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 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.

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

findByG_F_N_V

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

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

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

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 static 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 = ?.

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

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

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 static DLFileVersion findByG_F_N_S_First(long groupId,
                                                long folderId,
                                                String name,
                                                int status,
                                                OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchFileVersionException
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.

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 static DLFileVersion findByG_F_N_S_Last(long groupId,
                                               long folderId,
                                               String name,
                                               int status,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchFileVersionException
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.

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 static DLFileVersion[] findByG_F_N_S_PrevAndNext(long fileVersionId,
                                                        long groupId,
                                                        long folderId,
                                                        String name,
                                                        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 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.

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

findAll

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

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

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

removeByG_F_N

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

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 static void removeByG_F_N_V(long groupId,
                                   long folderId,
                                   String name,
                                   String version)
                            throws SystemException,
                                   NoSuchFileVersionException
Removes the d l file version where groupId = ? and folderId = ? and name = ? and version = ? from the database.

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

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 static void removeAll()
                      throws SystemException
Removes all the d l file versions from the database.

Throws:
SystemException - if a system exception occurred

countByG_F_N

public static 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 = ?.

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 static 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 = ?.

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 static 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 = ?.

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 static 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

getPersistence

public static DLFileVersionPersistence getPersistence()

setPersistence

public void setPersistence(DLFileVersionPersistence persistence)

Liferay 6.0.5