Class DDMTemplateVersionUtil
com.liferay.dynamic.data.mapping.service.persistence.impl.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:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(DDMTemplateVersion ddmTemplateVersion) Caches the ddm template version in the entity cache if it is enabled.static void
cacheResult
(List<DDMTemplateVersion> ddmTemplateVersions) Caches the ddm template versions in the entity cache if it is enabled.static void
static void
clearCache
(DDMTemplateVersion ddmTemplateVersion) static int
countAll()
Returns the number of ddm template versions.static int
countByT_S
(long templateId, int status) Returns the number of ddm template versions where templateId = ? and status = ?.static int
countByT_V
(long templateId, String version) Returns the number of ddm template versions where templateId = ? and version = ?.static int
countByTemplateId
(long templateId) Returns the number of ddm template versions where templateId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static DDMTemplateVersion
create
(long templateVersionId) Creates a new ddm template version with the primary key.static DDMTemplateVersion
fetchByPrimaryKey
(long templateVersionId) Returns the ddm template version with the primary key or returnsnull
if it could not be found.static Map<Serializable,
DDMTemplateVersion> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static DDMTemplateVersion
fetchByT_S_First
(long templateId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns the first ddm template version in the ordered set where templateId = ? and status = ?.static DDMTemplateVersion
fetchByT_S_Last
(long templateId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns the last ddm template version in the ordered set where templateId = ? and status = ?.static DDMTemplateVersion
fetchByT_V
(long templateId, String version) Returns the ddm template version where templateId = ? and version = ? or returnsnull
if it could not be found.static DDMTemplateVersion
fetchByT_V
(long templateId, String version, boolean useFinderCache) Returns the ddm template version where templateId = ? and version = ? or returnsnull
if it could not be found, optionally using the finder cache.static DDMTemplateVersion
fetchByTemplateId_First
(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns the first ddm template version in the ordered set where templateId = ?.static DDMTemplateVersion
fetchByTemplateId_Last
(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns the last ddm template version in the ordered set where templateId = ?.static List<DDMTemplateVersion>
findAll()
Returns all the ddm template versions.static List<DDMTemplateVersion>
findAll
(int start, int end) Returns a range of all the ddm template versions.static List<DDMTemplateVersion>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns an ordered range of all the ddm template versions.static List<DDMTemplateVersion>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm template versions.static DDMTemplateVersion
findByPrimaryKey
(long templateVersionId) Returns the ddm template version with the primary key or throws aNoSuchTemplateVersionException
if it could not be found.static List<DDMTemplateVersion>
findByT_S
(long templateId, int status) Returns all the ddm 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 ddm template versions where templateId = ? and status = ?.static List<DDMTemplateVersion>
findByT_S
(long templateId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns an ordered range of all the ddm template versions where templateId = ? and status = ?.static List<DDMTemplateVersion>
findByT_S
(long templateId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm template versions where templateId = ? and status = ?.static DDMTemplateVersion
findByT_S_First
(long templateId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns the first ddm template version in the ordered set where templateId = ? and status = ?.static DDMTemplateVersion
findByT_S_Last
(long templateId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns the last ddm template version in the ordered set where templateId = ? and status = ?.static DDMTemplateVersion[]
findByT_S_PrevAndNext
(long templateVersionId, long templateId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns the ddm template versions before and after the current ddm template version in the ordered set where templateId = ? and status = ?.static DDMTemplateVersion
Returns the ddm template version where templateId = ? and version = ? or throws aNoSuchTemplateVersionException
if it could not be found.static List<DDMTemplateVersion>
findByTemplateId
(long templateId) Returns all the ddm template versions where templateId = ?.static List<DDMTemplateVersion>
findByTemplateId
(long templateId, int start, int end) Returns a range of all the ddm template versions where templateId = ?.static List<DDMTemplateVersion>
findByTemplateId
(long templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns an ordered range of all the ddm template versions where templateId = ?.static List<DDMTemplateVersion>
findByTemplateId
(long templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm template versions where templateId = ?.static DDMTemplateVersion
findByTemplateId_First
(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns the first ddm template version in the ordered set where templateId = ?.static DDMTemplateVersion
findByTemplateId_Last
(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns the last ddm template version in the ordered set where templateId = ?.static DDMTemplateVersion[]
findByTemplateId_PrevAndNext
(long templateVersionId, long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns the ddm template versions before and after the current ddm template version in the ordered set where templateId = ?.static List<DDMTemplateVersion>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<DDMTemplateVersion>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<DDMTemplateVersion>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) static DDMTemplateVersion
remove
(long templateVersionId) Removes the ddm template version with the primary key from the database.static void
Removes all the ddm template versions from the database.static void
removeByT_S
(long templateId, int status) Removes all the ddm template versions where templateId = ? and status = ? from the database.static DDMTemplateVersion
removeByT_V
(long templateId, String version) Removes the ddm template version where templateId = ? and version = ? from the database.static void
removeByTemplateId
(long templateId) Removes all the ddm template versions where templateId = ? from the database.static void
setPersistence
(DDMTemplateVersionPersistence persistence) static DDMTemplateVersion
update
(DDMTemplateVersion ddmTemplateVersion) static DDMTemplateVersion
update
(DDMTemplateVersion ddmTemplateVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DDMTemplateVersion
updateImpl
(DDMTemplateVersion ddmTemplateVersion)
-
Constructor Details
-
DDMTemplateVersionUtil
public DDMTemplateVersionUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,DDMTemplateVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<DDMTemplateVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<DDMTemplateVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<DDMTemplateVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static DDMTemplateVersion update(DDMTemplateVersion ddmTemplateVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByTemplateId
Returns all the ddm template versions where templateId = ?.- Parameters:
templateId
- the template ID- Returns:
- the matching ddm template versions
-
findByTemplateId
Returns a range of all the ddm template versions where templateId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMTemplateVersionModelImpl
.- Parameters:
templateId
- the template IDstart
- the lower bound of the range of ddm template versionsend
- the upper bound of the range of ddm template versions (not inclusive)- Returns:
- the range of matching ddm template versions
-
findByTemplateId
public static List<DDMTemplateVersion> findByTemplateId(long templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns an ordered range of all the ddm template versions where templateId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMTemplateVersionModelImpl
.- Parameters:
templateId
- the template IDstart
- the lower bound of the range of ddm template versionsend
- the upper bound of the range of ddm template versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching ddm template versions
-
findByTemplateId
public static List<DDMTemplateVersion> findByTemplateId(long templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm template versions where templateId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMTemplateVersionModelImpl
.- Parameters:
templateId
- the template IDstart
- the lower bound of the range of ddm template versionsend
- the upper bound of the range of ddm template versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching ddm template versions
-
findByTemplateId_First
public static DDMTemplateVersion findByTemplateId_First(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) throws NoSuchTemplateVersionException Returns the first ddm template version in the ordered set where templateId = ?.- Parameters:
templateId
- the template IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm template version
- Throws:
NoSuchTemplateVersionException
- if a matching ddm template version could not be foundNoSuchTemplateVersionException
-
fetchByTemplateId_First
public static DDMTemplateVersion fetchByTemplateId_First(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns the first ddm template version in the ordered set where templateId = ?.- Parameters:
templateId
- the template IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm template version, or
null
if a matching ddm template version could not be found
-
findByTemplateId_Last
public static DDMTemplateVersion findByTemplateId_Last(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) throws NoSuchTemplateVersionException Returns the last ddm template version in the ordered set where templateId = ?.- Parameters:
templateId
- the template IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm template version
- Throws:
NoSuchTemplateVersionException
- if a matching ddm template version could not be foundNoSuchTemplateVersionException
-
fetchByTemplateId_Last
public static DDMTemplateVersion fetchByTemplateId_Last(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns the last ddm template version in the ordered set where templateId = ?.- Parameters:
templateId
- the template IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm template version, or
null
if a matching ddm template version could not be found
-
findByTemplateId_PrevAndNext
public static DDMTemplateVersion[] findByTemplateId_PrevAndNext(long templateVersionId, long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) throws NoSuchTemplateVersionException Returns the ddm template versions before and after the current ddm template version in the ordered set where templateId = ?.- Parameters:
templateVersionId
- the primary key of the current ddm template versiontemplateId
- the template IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ddm template version
- Throws:
NoSuchTemplateVersionException
- if a ddm template version with the primary key could not be foundNoSuchTemplateVersionException
-
removeByTemplateId
public static void removeByTemplateId(long templateId) Removes all the ddm template versions where templateId = ? from the database.- Parameters:
templateId
- the template ID
-
countByTemplateId
public static int countByTemplateId(long templateId) Returns the number of ddm template versions where templateId = ?.- Parameters:
templateId
- the template ID- Returns:
- the number of matching ddm template versions
-
findByT_V
public static DDMTemplateVersion findByT_V(long templateId, String version) throws NoSuchTemplateVersionException Returns the ddm template version where templateId = ? and version = ? or throws aNoSuchTemplateVersionException
if it could not be found.- Parameters:
templateId
- the template IDversion
- the version- Returns:
- the matching ddm template version
- Throws:
NoSuchTemplateVersionException
- if a matching ddm template version could not be foundNoSuchTemplateVersionException
-
fetchByT_V
Returns the ddm template version where templateId = ? and version = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
templateId
- the template IDversion
- the version- Returns:
- the matching ddm template version, or
null
if a matching ddm template version could not be found
-
fetchByT_V
public static DDMTemplateVersion fetchByT_V(long templateId, String version, boolean useFinderCache) Returns the ddm template version where templateId = ? and version = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
templateId
- the template IDversion
- the versionuseFinderCache
- whether to use the finder cache- Returns:
- the matching ddm template version, or
null
if a matching ddm template version could not be found
-
removeByT_V
public static DDMTemplateVersion removeByT_V(long templateId, String version) throws NoSuchTemplateVersionException Removes the ddm template version where templateId = ? and version = ? from the database.- Parameters:
templateId
- the template IDversion
- the version- Returns:
- the ddm template version that was removed
- Throws:
NoSuchTemplateVersionException
-
countByT_V
Returns the number of ddm template versions where templateId = ? and version = ?.- Parameters:
templateId
- the template IDversion
- the version- Returns:
- the number of matching ddm template versions
-
findByT_S
Returns all the ddm template versions where templateId = ? and status = ?.- Parameters:
templateId
- the template IDstatus
- the status- Returns:
- the matching ddm template versions
-
findByT_S
Returns a range of all the ddm template versions where templateId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMTemplateVersionModelImpl
.- Parameters:
templateId
- the template IDstatus
- the statusstart
- the lower bound of the range of ddm template versionsend
- the upper bound of the range of ddm template versions (not inclusive)- Returns:
- the range of matching ddm template versions
-
findByT_S
public static List<DDMTemplateVersion> findByT_S(long templateId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns an ordered range of all the ddm template versions where templateId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMTemplateVersionModelImpl
.- Parameters:
templateId
- the template IDstatus
- the statusstart
- the lower bound of the range of ddm template versionsend
- the upper bound of the range of ddm template versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching ddm template versions
-
findByT_S
public static List<DDMTemplateVersion> findByT_S(long templateId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm template versions where templateId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMTemplateVersionModelImpl
.- Parameters:
templateId
- the template IDstatus
- the statusstart
- the lower bound of the range of ddm template versionsend
- the upper bound of the range of ddm template versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching ddm template versions
-
findByT_S_First
public static DDMTemplateVersion findByT_S_First(long templateId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) throws NoSuchTemplateVersionException Returns the first ddm template version in the ordered set where templateId = ? and status = ?.- Parameters:
templateId
- the template IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm template version
- Throws:
NoSuchTemplateVersionException
- if a matching ddm template version could not be foundNoSuchTemplateVersionException
-
fetchByT_S_First
public static DDMTemplateVersion fetchByT_S_First(long templateId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns the first ddm template version in the ordered set where templateId = ? and status = ?.- Parameters:
templateId
- the template IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm template version, or
null
if a matching ddm template version could not be found
-
findByT_S_Last
public static DDMTemplateVersion findByT_S_Last(long templateId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) throws NoSuchTemplateVersionException Returns the last ddm template version in the ordered set where templateId = ? and status = ?.- Parameters:
templateId
- the template IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm template version
- Throws:
NoSuchTemplateVersionException
- if a matching ddm template version could not be foundNoSuchTemplateVersionException
-
fetchByT_S_Last
public static DDMTemplateVersion fetchByT_S_Last(long templateId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns the last ddm template version in the ordered set where templateId = ? and status = ?.- Parameters:
templateId
- the template IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm template version, or
null
if a matching ddm template version could not be found
-
findByT_S_PrevAndNext
public static DDMTemplateVersion[] findByT_S_PrevAndNext(long templateVersionId, long templateId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) throws NoSuchTemplateVersionException Returns the ddm template versions before and after the current ddm template version in the ordered set where templateId = ? and status = ?.- Parameters:
templateVersionId
- the primary key of the current ddm template versiontemplateId
- the template IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ddm template version
- Throws:
NoSuchTemplateVersionException
- if a ddm template version with the primary key could not be foundNoSuchTemplateVersionException
-
removeByT_S
public static void removeByT_S(long templateId, int status) Removes all the ddm template versions where templateId = ? and status = ? from the database.- Parameters:
templateId
- the template IDstatus
- the status
-
countByT_S
public static int countByT_S(long templateId, int status) Returns the number of ddm template versions where templateId = ? and status = ?.- Parameters:
templateId
- the template IDstatus
- the status- Returns:
- the number of matching ddm template versions
-
cacheResult
Caches the ddm template version in the entity cache if it is enabled.- Parameters:
ddmTemplateVersion
- the ddm template version
-
cacheResult
Caches the ddm template versions in the entity cache if it is enabled.- Parameters:
ddmTemplateVersions
- the ddm template versions
-
create
Creates a new ddm template version with the primary key. Does not add the ddm template version to the database.- Parameters:
templateVersionId
- the primary key for the new ddm template version- Returns:
- the new ddm template version
-
remove
public static DDMTemplateVersion remove(long templateVersionId) throws NoSuchTemplateVersionException Removes the ddm template version with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
templateVersionId
- the primary key of the ddm template version- Returns:
- the ddm template version that was removed
- Throws:
NoSuchTemplateVersionException
- if a ddm template version with the primary key could not be foundNoSuchTemplateVersionException
-
updateImpl
-
findByPrimaryKey
public static DDMTemplateVersion findByPrimaryKey(long templateVersionId) throws NoSuchTemplateVersionException Returns the ddm template version with the primary key or throws aNoSuchTemplateVersionException
if it could not be found.- Parameters:
templateVersionId
- the primary key of the ddm template version- Returns:
- the ddm template version
- Throws:
NoSuchTemplateVersionException
- if a ddm template version with the primary key could not be foundNoSuchTemplateVersionException
-
fetchByPrimaryKey
Returns the ddm template version with the primary key or returnsnull
if it could not be found.- Parameters:
templateVersionId
- the primary key of the ddm template version- Returns:
- the ddm template version, or
null
if a ddm template version with the primary key could not be found
-
findAll
Returns all the ddm template versions.- Returns:
- the ddm template versions
-
findAll
Returns a range of all the ddm template versions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMTemplateVersionModelImpl
.- Parameters:
start
- the lower bound of the range of ddm template versionsend
- the upper bound of the range of ddm template versions (not inclusive)- Returns:
- the range of ddm template versions
-
findAll
public static List<DDMTemplateVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) Returns an ordered range of all the ddm template versions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMTemplateVersionModelImpl
.- Parameters:
start
- the lower bound of the range of ddm template versionsend
- the upper bound of the range of ddm template versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of ddm template versions
-
findAll
public static List<DDMTemplateVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm template versions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMTemplateVersionModelImpl
.- Parameters:
start
- the lower bound of the range of ddm template versionsend
- the upper bound of the range of ddm template versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of ddm template versions
-
removeAll
public static void removeAll()Removes all the ddm template versions from the database. -
countAll
public static int countAll()Returns the number of ddm template versions.- Returns:
- the number of ddm template versions
-
getPersistence
-
setPersistence
-