@ProviderType public interface DDMTemplateVersionPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<DDMTemplateVersion>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDMTemplateVersion>
Caching information and settings can be found in portal.properties
DDMTemplateVersionUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(DDMTemplateVersion ddmTemplateVersion)
Caches the ddm template version in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<DDMTemplateVersion> ddmTemplateVersions)
Caches the ddm template versions in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of ddm template versions.
|
int |
countByT_S(long templateId,
int status)
Returns the number of ddm template versions where templateId = ? and status = ?.
|
int |
countByT_V(long templateId,
java.lang.String version)
Returns the number of ddm template versions where templateId = ? and version = ?.
|
int |
countByTemplateId(long templateId)
Returns the number of ddm template versions where templateId = ?.
|
DDMTemplateVersion |
create(long templateVersionId)
Creates a new ddm template version with the primary key.
|
DDMTemplateVersion |
fetchByPrimaryKey(long templateVersionId)
Returns the ddm template version with the primary key or returns
null if it could not be found. |
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 = ?.
|
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 = ?.
|
DDMTemplateVersion |
fetchByT_V(long templateId,
java.lang.String version)
Returns the ddm template version where templateId = ? and version = ? or returns
null if it could not be found. |
DDMTemplateVersion |
fetchByT_V(long templateId,
java.lang.String version,
boolean useFinderCache)
Returns the ddm template version where templateId = ? and version = ? or returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
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 = ?.
|
java.util.List<DDMTemplateVersion> |
findAll()
Returns all the ddm template versions.
|
java.util.List<DDMTemplateVersion> |
findAll(int start,
int end)
Returns a range of all the ddm template versions.
|
java.util.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.
|
java.util.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.
|
DDMTemplateVersion |
findByPrimaryKey(long templateVersionId)
Returns the ddm template version with the primary key or throws a
NoSuchTemplateVersionException if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<DDMTemplateVersion> |
findByT_S(long templateId,
int status)
Returns all the ddm template versions where templateId = ? and status = ?.
|
java.util.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 = ?.
|
java.util.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 = ?.
|
java.util.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 = ?.
|
DDMTemplateVersion |
findByT_V(long templateId,
java.lang.String version)
Returns the ddm template version where templateId = ? and version = ? or throws a
NoSuchTemplateVersionException if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<DDMTemplateVersion> |
findByTemplateId(long templateId)
Returns all the ddm template versions where templateId = ?.
|
java.util.List<DDMTemplateVersion> |
findByTemplateId(long templateId,
int start,
int end)
Returns a range of all the ddm template versions where templateId = ?.
|
java.util.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 = ?.
|
java.util.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 = ?.
|
DDMTemplateVersion |
remove(long templateVersionId)
Removes the ddm template version with the primary key from the database.
|
void |
removeAll()
Removes all the ddm template versions from the database.
|
void |
removeByT_S(long templateId,
int status)
Removes all the ddm template versions where templateId = ? and status = ? from the database.
|
DDMTemplateVersion |
removeByT_V(long templateId,
java.lang.String version)
Removes the ddm template version where templateId = ? and version = ? from the database.
|
void |
removeByTemplateId(long templateId)
Removes all the ddm template versions where templateId = ? from the database.
|
DDMTemplateVersion |
updateImpl(DDMTemplateVersion ddmTemplateVersion) |
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<DDMTemplateVersion> findByTemplateId(long templateId)
templateId
- the template IDjava.util.List<DDMTemplateVersion> findByTemplateId(long templateId, int start, int end)
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, then the query will include the default ORDER BY logic from DDMTemplateVersionModelImpl
.
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)java.util.List<DDMTemplateVersion> findByTemplateId(long templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator)
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, then the query will include the default ORDER BY logic from DDMTemplateVersionModelImpl
.
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 (optionally null
)java.util.List<DDMTemplateVersion> findByTemplateId(long templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DDMTemplateVersionModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheDDMTemplateVersion findByTemplateId_First(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) throws NoSuchTemplateVersionException
templateId
- the template IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTemplateVersionException
- if a matching ddm template version could not be foundDDMTemplateVersion fetchByTemplateId_First(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator)
templateId
- the template IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm template version could not be foundDDMTemplateVersion findByTemplateId_Last(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) throws NoSuchTemplateVersionException
templateId
- the template IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTemplateVersionException
- if a matching ddm template version could not be foundDDMTemplateVersion fetchByTemplateId_Last(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator)
templateId
- the template IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm template version could not be foundDDMTemplateVersion[] findByTemplateId_PrevAndNext(long templateVersionId, long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) throws NoSuchTemplateVersionException
templateVersionId
- the primary key of the current ddm template versiontemplateId
- the template IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTemplateVersionException
- if a ddm template version with the primary key could not be foundvoid removeByTemplateId(long templateId)
templateId
- the template IDint countByTemplateId(long templateId)
templateId
- the template IDDDMTemplateVersion findByT_V(long templateId, java.lang.String version) throws NoSuchTemplateVersionException
NoSuchTemplateVersionException
if it could not be found.templateId
- the template IDversion
- the versionNoSuchTemplateVersionException
- if a matching ddm template version could not be foundDDMTemplateVersion fetchByT_V(long templateId, java.lang.String version)
null
if it could not be found. Uses the finder cache.templateId
- the template IDversion
- the versionnull
if a matching ddm template version could not be foundDDMTemplateVersion fetchByT_V(long templateId, java.lang.String version, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.templateId
- the template IDversion
- the versionuseFinderCache
- whether to use the finder cachenull
if a matching ddm template version could not be foundDDMTemplateVersion removeByT_V(long templateId, java.lang.String version) throws NoSuchTemplateVersionException
templateId
- the template IDversion
- the versionNoSuchTemplateVersionException
int countByT_V(long templateId, java.lang.String version)
templateId
- the template IDversion
- the versionjava.util.List<DDMTemplateVersion> findByT_S(long templateId, int status)
templateId
- the template IDstatus
- the statusjava.util.List<DDMTemplateVersion> findByT_S(long templateId, int status, int start, int end)
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, then the query will include the default ORDER BY logic from DDMTemplateVersionModelImpl
.
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)java.util.List<DDMTemplateVersion> findByT_S(long templateId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator)
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, then the query will include the default ORDER BY logic from DDMTemplateVersionModelImpl
.
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 (optionally null
)java.util.List<DDMTemplateVersion> findByT_S(long templateId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DDMTemplateVersionModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheDDMTemplateVersion findByT_S_First(long templateId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) throws NoSuchTemplateVersionException
templateId
- the template IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTemplateVersionException
- if a matching ddm template version could not be foundDDMTemplateVersion fetchByT_S_First(long templateId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator)
templateId
- the template IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm template version could not be foundDDMTemplateVersion findByT_S_Last(long templateId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) throws NoSuchTemplateVersionException
templateId
- the template IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTemplateVersionException
- if a matching ddm template version could not be foundDDMTemplateVersion fetchByT_S_Last(long templateId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator)
templateId
- the template IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm template version could not be foundDDMTemplateVersion[] findByT_S_PrevAndNext(long templateVersionId, long templateId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator) throws NoSuchTemplateVersionException
templateVersionId
- the primary key of the current ddm template versiontemplateId
- the template IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTemplateVersionException
- if a ddm template version with the primary key could not be foundvoid removeByT_S(long templateId, int status)
templateId
- the template IDstatus
- the statusint countByT_S(long templateId, int status)
templateId
- the template IDstatus
- the statusvoid cacheResult(DDMTemplateVersion ddmTemplateVersion)
ddmTemplateVersion
- the ddm template versionvoid cacheResult(java.util.List<DDMTemplateVersion> ddmTemplateVersions)
ddmTemplateVersions
- the ddm template versionsDDMTemplateVersion create(long templateVersionId)
templateVersionId
- the primary key for the new ddm template versionDDMTemplateVersion remove(long templateVersionId) throws NoSuchTemplateVersionException
templateVersionId
- the primary key of the ddm template versionNoSuchTemplateVersionException
- if a ddm template version with the primary key could not be foundDDMTemplateVersion updateImpl(DDMTemplateVersion ddmTemplateVersion)
DDMTemplateVersion findByPrimaryKey(long templateVersionId) throws NoSuchTemplateVersionException
NoSuchTemplateVersionException
if it could not be found.templateVersionId
- the primary key of the ddm template versionNoSuchTemplateVersionException
- if a ddm template version with the primary key could not be foundDDMTemplateVersion fetchByPrimaryKey(long templateVersionId)
null
if it could not be found.templateVersionId
- the primary key of the ddm template versionnull
if a ddm template version with the primary key could not be foundjava.util.List<DDMTemplateVersion> findAll()
java.util.List<DDMTemplateVersion> findAll(int start, int end)
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, then the query will include the default ORDER BY logic from DDMTemplateVersionModelImpl
.
start
- the lower bound of the range of ddm template versionsend
- the upper bound of the range of ddm template versions (not inclusive)java.util.List<DDMTemplateVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator)
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, then the query will include the default ORDER BY logic from DDMTemplateVersionModelImpl
.
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 (optionally null
)java.util.List<DDMTemplateVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DDMTemplateVersionModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()