Liferay 7.0-ce-m6

com.liferay.portlet.dynamicdatamapping.service.persistence
Class DDMTemplateVersionUtil

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplateVersionUtil

@ProviderType
public class DDMTemplateVersionUtil
extends Object

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

Caching information and settings can be found in portal.properties

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

Constructor Summary
DDMTemplateVersionUtil()
           
 
Method Summary
static void cacheResult(DDMTemplateVersion ddmTemplateVersion)
          Caches the d d m template version in the entity cache if it is enabled.
static void cacheResult(List<DDMTemplateVersion> ddmTemplateVersions)
          Caches the d d m template versions in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(DDMTemplateVersion ddmTemplateVersion)
           
static int countAll()
          Returns the number of d d m template versions.
static int countByT_S(long templateId, int status)
          Returns the number of d d m template versions where templateId = ? and status = ?.
static int countByT_V(long templateId, String version)
          Returns the number of d d m template versions where templateId = ? and version = ?.
static int countByTemplateId(long templateId)
          Returns the number of d d m template versions where templateId = ?.
static long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static DDMTemplateVersion create(long templateVersionId)
          Creates a new d d m template version with the primary key.
static DDMTemplateVersion fetchByPrimaryKey(long templateVersionId)
          Returns the d d m template version with the primary key or returns null if it could not be found.
static Map<Serializable,DDMTemplateVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
static DDMTemplateVersion fetchByT_S_First(long templateId, int status, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the first d d m template version in the ordered set where templateId = ? and status = ?.
static DDMTemplateVersion fetchByT_S_Last(long templateId, int status, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the last d d m template version in the ordered set where templateId = ? and status = ?.
static DDMTemplateVersion fetchByT_V(long templateId, String version)
          Returns the d d m template version where templateId = ? and version = ? or returns null if it could not be found.
static DDMTemplateVersion fetchByT_V(long templateId, String version, boolean retrieveFromCache)
          Returns the d d m template version where templateId = ? and version = ? or returns null if it could not be found, optionally using the finder cache.
static DDMTemplateVersion fetchByTemplateId_First(long templateId, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the first d d m template version in the ordered set where templateId = ?.
static DDMTemplateVersion fetchByTemplateId_Last(long templateId, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the last d d m template version in the ordered set where templateId = ?.
static List<DDMTemplateVersion> findAll()
          Returns all the d d m template versions.
static List<DDMTemplateVersion> findAll(int start, int end)
          Returns a range of all the d d m template versions.
static List<DDMTemplateVersion> findAll(int start, int end, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns an ordered range of all the d d m template versions.
static DDMTemplateVersion findByPrimaryKey(long templateVersionId)
          Returns the d d m template version with the primary key or throws a NoSuchTemplateVersionException if it could not be found.
static DDMTemplateVersion findByT_S_First(long templateId, int status, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the first d d m template version in the ordered set where templateId = ? and status = ?.
static DDMTemplateVersion findByT_S_Last(long templateId, int status, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the last d d m template version in the ordered set where templateId = ? and status = ?.
static DDMTemplateVersion[] findByT_S_PrevAndNext(long templateVersionId, long templateId, int status, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the d d m template versions before and after the current d d m template version in the ordered set where templateId = ? and status = ?.
static List<DDMTemplateVersion> findByT_S(long templateId, int status)
          Returns all the d d m template versions where templateId = ? and status = ?.
static List<DDMTemplateVersion> findByT_S(long templateId, int status, int start, int end)
          Returns a range of all the d d m template versions where templateId = ? and status = ?.
static List<DDMTemplateVersion> findByT_S(long templateId, int status, int start, int end, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns an ordered range of all the d d m template versions where templateId = ? and status = ?.
static DDMTemplateVersion findByT_V(long templateId, String version)
          Returns the d d m template version where templateId = ? and version = ? or throws a NoSuchTemplateVersionException if it could not be found.
static DDMTemplateVersion findByTemplateId_First(long templateId, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the first d d m template version in the ordered set where templateId = ?.
static DDMTemplateVersion findByTemplateId_Last(long templateId, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the last d d m template version in the ordered set where templateId = ?.
static DDMTemplateVersion[] findByTemplateId_PrevAndNext(long templateVersionId, long templateId, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the d d m template versions before and after the current d d m template version in the ordered set where templateId = ?.
static List<DDMTemplateVersion> findByTemplateId(long templateId)
          Returns all the d d m template versions where templateId = ?.
static List<DDMTemplateVersion> findByTemplateId(long templateId, int start, int end)
          Returns a range of all the d d m template versions where templateId = ?.
static List<DDMTemplateVersion> findByTemplateId(long templateId, int start, int end, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns an ordered range of all the d d m template versions where templateId = ?.
static List<DDMTemplateVersion> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<DDMTemplateVersion> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<DDMTemplateVersion> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<DDMTemplateVersion> orderByComparator)
           
static DDMTemplateVersionPersistence getPersistence()
           
static DDMTemplateVersion remove(long templateVersionId)
          Removes the d d m template version with the primary key from the database.
static void removeAll()
          Removes all the d d m template versions from the database.
static void removeByT_S(long templateId, int status)
          Removes all the d d m template versions where templateId = ? and status = ? from the database.
static DDMTemplateVersion removeByT_V(long templateId, String version)
          Removes the d d m template version where templateId = ? and version = ? from the database.
static void removeByTemplateId(long templateId)
          Removes all the d d m template versions where templateId = ? from the database.
 void setPersistence(DDMTemplateVersionPersistence persistence)
          Deprecated. As of 6.2.0
static DDMTemplateVersion update(DDMTemplateVersion ddmTemplateVersion)
           
static DDMTemplateVersion update(DDMTemplateVersion ddmTemplateVersion, ServiceContext serviceContext)
           
static DDMTemplateVersion updateImpl(DDMTemplateVersion ddmTemplateVersion)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDMTemplateVersionUtil

public DDMTemplateVersionUtil()
Method Detail

clearCache

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

clearCache

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

countWithDynamicQuery

public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DDMTemplateVersion> findWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DDMTemplateVersion> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                            int start,
                                                            int end)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

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

update

public static DDMTemplateVersion update(DDMTemplateVersion ddmTemplateVersion)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static DDMTemplateVersion update(DDMTemplateVersion ddmTemplateVersion,
                                        ServiceContext serviceContext)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByTemplateId

public static List<DDMTemplateVersion> findByTemplateId(long templateId)
Returns all the d d m template versions where templateId = ?.

Parameters:
templateId - the template ID
Returns:
the matching d d m template versions

findByTemplateId

public static List<DDMTemplateVersion> findByTemplateId(long templateId,
                                                        int start,
                                                        int end)
Returns a range of all the d d m template versions where templateId = ?.

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

Parameters:
templateId - the template ID
start - the lower bound of the range of d d m template versions
end - the upper bound of the range of d d m template versions (not inclusive)
Returns:
the range of matching d d m template versions

findByTemplateId

public static List<DDMTemplateVersion> findByTemplateId(long templateId,
                                                        int start,
                                                        int end,
                                                        OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns an ordered range of all the d d m template versions where templateId = ?.

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

Parameters:
templateId - the template ID
start - the lower bound of the range of d d m template versions
end - the upper bound of the range of d d m template versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m template versions

findByTemplateId_First

public static DDMTemplateVersion findByTemplateId_First(long templateId,
                                                        OrderByComparator<DDMTemplateVersion> orderByComparator)
                                                 throws NoSuchTemplateVersionException
Returns the first d d m template version in the ordered set where templateId = ?.

Parameters:
templateId - the template ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template version
Throws:
NoSuchTemplateVersionException - if a matching d d m template version could not be found

fetchByTemplateId_First

public static DDMTemplateVersion fetchByTemplateId_First(long templateId,
                                                         OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the first d d m template version in the ordered set where templateId = ?.

Parameters:
templateId - the template ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template version, or null if a matching d d m template version could not be found

findByTemplateId_Last

public static DDMTemplateVersion findByTemplateId_Last(long templateId,
                                                       OrderByComparator<DDMTemplateVersion> orderByComparator)
                                                throws NoSuchTemplateVersionException
Returns the last d d m template version in the ordered set where templateId = ?.

Parameters:
templateId - the template ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template version
Throws:
NoSuchTemplateVersionException - if a matching d d m template version could not be found

fetchByTemplateId_Last

public static DDMTemplateVersion fetchByTemplateId_Last(long templateId,
                                                        OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the last d d m template version in the ordered set where templateId = ?.

Parameters:
templateId - the template ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template version, or null if a matching d d m template version could not be found

findByTemplateId_PrevAndNext

public static DDMTemplateVersion[] findByTemplateId_PrevAndNext(long templateVersionId,
                                                                long templateId,
                                                                OrderByComparator<DDMTemplateVersion> orderByComparator)
                                                         throws NoSuchTemplateVersionException
Returns the d d m template versions before and after the current d d m template version in the ordered set where templateId = ?.

Parameters:
templateVersionId - the primary key of the current d d m template version
templateId - the template ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template version
Throws:
NoSuchTemplateVersionException - if a d d m template version with the primary key could not be found

removeByTemplateId

public static void removeByTemplateId(long templateId)
Removes all the d d m template versions where templateId = ? from the database.

Parameters:
templateId - the template ID

countByTemplateId

public static int countByTemplateId(long templateId)
Returns the number of d d m template versions where templateId = ?.

Parameters:
templateId - the template ID
Returns:
the number of matching d d m template versions

findByT_V

public static DDMTemplateVersion findByT_V(long templateId,
                                           String version)
                                    throws NoSuchTemplateVersionException
Returns the d d m template version where templateId = ? and version = ? or throws a NoSuchTemplateVersionException if it could not be found.

Parameters:
templateId - the template ID
version - the version
Returns:
the matching d d m template version
Throws:
NoSuchTemplateVersionException - if a matching d d m template version could not be found

fetchByT_V

public static DDMTemplateVersion fetchByT_V(long templateId,
                                            String version)
Returns the d d m template version where templateId = ? and version = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
templateId - the template ID
version - the version
Returns:
the matching d d m template version, or null if a matching d d m template version could not be found

fetchByT_V

public static DDMTemplateVersion fetchByT_V(long templateId,
                                            String version,
                                            boolean retrieveFromCache)
Returns the d d m template version where templateId = ? and version = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
templateId - the template ID
version - the version
retrieveFromCache - whether to use the finder cache
Returns:
the matching d d m template version, or null if a matching d d m template version could not be found

removeByT_V

public static DDMTemplateVersion removeByT_V(long templateId,
                                             String version)
                                      throws NoSuchTemplateVersionException
Removes the d d m template version where templateId = ? and version = ? from the database.

Parameters:
templateId - the template ID
version - the version
Returns:
the d d m template version that was removed
Throws:
NoSuchTemplateVersionException

countByT_V

public static int countByT_V(long templateId,
                             String version)
Returns the number of d d m template versions where templateId = ? and version = ?.

Parameters:
templateId - the template ID
version - the version
Returns:
the number of matching d d m template versions

findByT_S

public static List<DDMTemplateVersion> findByT_S(long templateId,
                                                 int status)
Returns all the d d m template versions where templateId = ? and status = ?.

Parameters:
templateId - the template ID
status - the status
Returns:
the matching d d m template versions

findByT_S

public static List<DDMTemplateVersion> findByT_S(long templateId,
                                                 int status,
                                                 int start,
                                                 int end)
Returns a range of all the d d m template versions where templateId = ? and status = ?.

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

Parameters:
templateId - the template ID
status - the status
start - the lower bound of the range of d d m template versions
end - the upper bound of the range of d d m template versions (not inclusive)
Returns:
the range of matching d d m template versions

findByT_S

public static List<DDMTemplateVersion> findByT_S(long templateId,
                                                 int status,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns an ordered range of all the d d m template versions where templateId = ? and status = ?.

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

Parameters:
templateId - the template ID
status - the status
start - the lower bound of the range of d d m template versions
end - the upper bound of the range of d d m template versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m template versions

findByT_S_First

public static DDMTemplateVersion findByT_S_First(long templateId,
                                                 int status,
                                                 OrderByComparator<DDMTemplateVersion> orderByComparator)
                                          throws NoSuchTemplateVersionException
Returns the first d d m template version in the ordered set where templateId = ? and status = ?.

Parameters:
templateId - the template ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template version
Throws:
NoSuchTemplateVersionException - if a matching d d m template version could not be found

fetchByT_S_First

public static DDMTemplateVersion fetchByT_S_First(long templateId,
                                                  int status,
                                                  OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the first d d m template version in the ordered set where templateId = ? and status = ?.

Parameters:
templateId - the template ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template version, or null if a matching d d m template version could not be found

findByT_S_Last

public static DDMTemplateVersion findByT_S_Last(long templateId,
                                                int status,
                                                OrderByComparator<DDMTemplateVersion> orderByComparator)
                                         throws NoSuchTemplateVersionException
Returns the last d d m template version in the ordered set where templateId = ? and status = ?.

Parameters:
templateId - the template ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template version
Throws:
NoSuchTemplateVersionException - if a matching d d m template version could not be found

fetchByT_S_Last

public static DDMTemplateVersion fetchByT_S_Last(long templateId,
                                                 int status,
                                                 OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the last d d m template version in the ordered set where templateId = ? and status = ?.

Parameters:
templateId - the template ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template version, or null if a matching d d m template version could not be found

findByT_S_PrevAndNext

public static DDMTemplateVersion[] findByT_S_PrevAndNext(long templateVersionId,
                                                         long templateId,
                                                         int status,
                                                         OrderByComparator<DDMTemplateVersion> orderByComparator)
                                                  throws NoSuchTemplateVersionException
Returns the d d m template versions before and after the current d d m template version in the ordered set where templateId = ? and status = ?.

Parameters:
templateVersionId - the primary key of the current d d m template version
templateId - the template ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template version
Throws:
NoSuchTemplateVersionException - if a d d m template version with the primary key could not be found

removeByT_S

public static void removeByT_S(long templateId,
                               int status)
Removes all the d d m template versions where templateId = ? and status = ? from the database.

Parameters:
templateId - the template ID
status - the status

countByT_S

public static int countByT_S(long templateId,
                             int status)
Returns the number of d d m template versions where templateId = ? and status = ?.

Parameters:
templateId - the template ID
status - the status
Returns:
the number of matching d d m template versions

cacheResult

public static void cacheResult(DDMTemplateVersion ddmTemplateVersion)
Caches the d d m template version in the entity cache if it is enabled.

Parameters:
ddmTemplateVersion - the d d m template version

cacheResult

public static void cacheResult(List<DDMTemplateVersion> ddmTemplateVersions)
Caches the d d m template versions in the entity cache if it is enabled.

Parameters:
ddmTemplateVersions - the d d m template versions

create

public static DDMTemplateVersion create(long templateVersionId)
Creates a new d d m template version with the primary key. Does not add the d d m template version to the database.

Parameters:
templateVersionId - the primary key for the new d d m template version
Returns:
the new d d m template version

remove

public static DDMTemplateVersion remove(long templateVersionId)
                                 throws NoSuchTemplateVersionException
Removes the d d m template version with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
templateVersionId - the primary key of the d d m template version
Returns:
the d d m template version that was removed
Throws:
NoSuchTemplateVersionException - if a d d m template version with the primary key could not be found

updateImpl

public static DDMTemplateVersion updateImpl(DDMTemplateVersion ddmTemplateVersion)

findByPrimaryKey

public static DDMTemplateVersion findByPrimaryKey(long templateVersionId)
                                           throws NoSuchTemplateVersionException
Returns the d d m template version with the primary key or throws a NoSuchTemplateVersionException if it could not be found.

Parameters:
templateVersionId - the primary key of the d d m template version
Returns:
the d d m template version
Throws:
NoSuchTemplateVersionException - if a d d m template version with the primary key could not be found

fetchByPrimaryKey

public static DDMTemplateVersion fetchByPrimaryKey(long templateVersionId)
Returns the d d m template version with the primary key or returns null if it could not be found.

Parameters:
templateVersionId - the primary key of the d d m template version
Returns:
the d d m template version, or null if a d d m template version with the primary key could not be found

fetchByPrimaryKeys

public static Map<Serializable,DDMTemplateVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys)

findAll

public static List<DDMTemplateVersion> findAll()
Returns all the d d m template versions.

Returns:
the d d m template versions

findAll

public static List<DDMTemplateVersion> findAll(int start,
                                               int end)
Returns a range of all the d d m template versions.

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

Parameters:
start - the lower bound of the range of d d m template versions
end - the upper bound of the range of d d m template versions (not inclusive)
Returns:
the range of d d m template versions

findAll

public static List<DDMTemplateVersion> findAll(int start,
                                               int end,
                                               OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns an ordered range of all the d d m template versions.

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

Parameters:
start - the lower bound of the range of d d m template versions
end - the upper bound of the range of d d m template versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of d d m template versions

removeAll

public static void removeAll()
Removes all the d d m template versions from the database.


countAll

public static int countAll()
Returns the number of d d m template versions.

Returns:
the number of d d m template versions

getPersistence

public static DDMTemplateVersionPersistence getPersistence()

setPersistence

@Deprecated
public void setPersistence(DDMTemplateVersionPersistence persistence)
Deprecated. As of 6.2.0


Liferay 7.0-ce-m6