@ProviderType public interface DDMTemplateVersionPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<DDMTemplateVersion>
Caching information and settings can be found in portal.properties
com.liferay.dynamic.data.mapping.service.persistence.impl.DDMTemplateVersionPersistenceImpl,
DDMTemplateVersionUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(DDMTemplateVersion ddmTemplateVersion)
Caches the d d m template version in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<DDMTemplateVersion> ddmTemplateVersions)
Caches the d d m template versions in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of d d m template versions.
|
int |
countByT_S(long templateId,
int status)
Returns the number of d d m template versions where templateId = ? and status = ?.
|
int |
countByT_V(long templateId,
java.lang.String version)
Returns the number of d d m template versions where templateId = ? and version = ?.
|
int |
countByTemplateId(long templateId)
Returns the number of d d m template versions where templateId = ?.
|
DDMTemplateVersion |
create(long templateVersionId)
Creates a new d d m template version with the primary key.
|
DDMTemplateVersion |
fetchByPrimaryKey(long templateVersionId)
Returns the d d m template version with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,DDMTemplateVersion> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
DDMTemplateVersion |
fetchByT_S_First(long templateId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the first d d m 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 d d m template version in the ordered set where templateId = ? and status = ?.
|
DDMTemplateVersion |
fetchByT_V(long templateId,
java.lang.String version)
Returns the d d m 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 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. |
DDMTemplateVersion |
fetchByTemplateId_First(long templateId,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the first d d m template version in the ordered set where templateId = ?.
|
DDMTemplateVersion |
fetchByTemplateId_Last(long templateId,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the last d d m template version in the ordered set where templateId = ?.
|
java.util.List<DDMTemplateVersion> |
findAll()
Returns all the d d m template versions.
|
java.util.List<DDMTemplateVersion> |
findAll(int start,
int end)
Returns a range of all the d d m 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 d d m template versions.
|
java.util.List<DDMTemplateVersion> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the d d m template versions.
|
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. |
DDMTemplateVersion |
findByT_S_First(long templateId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the first d d m 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 d d m 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 d d m template versions before and after the current d d m template version in the ordered set where templateId = ? and status = ?.
|
java.util.List<DDMTemplateVersion> |
findByT_S(long templateId,
int status)
Returns all the d d m 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 d d m 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 d d m 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 retrieveFromCache)
Returns an ordered range of all the d d m template versions where templateId = ? and status = ?.
|
DDMTemplateVersion |
findByT_V(long templateId,
java.lang.String version)
Returns the d d m 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 d d m template version in the ordered set where templateId = ?.
|
DDMTemplateVersion |
findByTemplateId_Last(long templateId,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the last d d m 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 d d m template versions before and after the current d d m template version in the ordered set where templateId = ?.
|
java.util.List<DDMTemplateVersion> |
findByTemplateId(long templateId)
Returns all the d d m template versions where templateId = ?.
|
java.util.List<DDMTemplateVersion> |
findByTemplateId(long templateId,
int start,
int end)
Returns a range of all the d d m 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 d d m template versions where templateId = ?.
|
java.util.List<DDMTemplateVersion> |
findByTemplateId(long templateId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateVersion> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the d d m template versions where templateId = ?.
|
DDMTemplateVersion |
remove(long templateVersionId)
Removes the d d m template version with the primary key from the database.
|
void |
removeAll()
Removes all the d d m template versions from the database.
|
void |
removeByT_S(long templateId,
int status)
Removes all the d d m template versions where templateId = ? and status = ? from the database.
|
DDMTemplateVersion |
removeByT_V(long templateId,
java.lang.String version)
Removes the d d m template version where templateId = ? and version = ? from the database.
|
void |
removeByTemplateId(long templateId)
Removes all the d d m template versions where templateId = ? from the database.
|
DDMTemplateVersion |
updateImpl(DDMTemplateVersion ddmTemplateVersion) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, updatejava.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 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.
templateId - the template IDstart - the lower bound of the range of d d m template versionsend - the upper bound of the range of d d m 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 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.
templateId - the template IDstart - the lower bound of the range of d d m template versionsend - the upper bound of the range of d d m 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 retrieveFromCache)
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.
templateId - the template IDstart - the lower bound of the range of d d m template versionsend - the upper bound of the range of d d m template versions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from 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 d d m 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 d d m 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 d d m 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 d d m 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 d d m template versiontemplateId - the template IDorderByComparator - the comparator to order the set by (optionally null)NoSuchTemplateVersionException - if a d d m 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 d d m 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 d d m template version could not be foundDDMTemplateVersion fetchByT_V(long templateId, java.lang.String version, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.templateId - the template IDversion - the versionretrieveFromCache - whether to retrieve from the finder cachenull if a matching d d m template version could not be foundDDMTemplateVersion removeByT_V(long templateId, java.lang.String version) throws NoSuchTemplateVersionException
templateId - the template IDversion - the versionNoSuchTemplateVersionExceptionint 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 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.
templateId - the template IDstatus - the statusstart - the lower bound of the range of d d m template versionsend - the upper bound of the range of d d m 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 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.
templateId - the template IDstatus - the statusstart - the lower bound of the range of d d m template versionsend - the upper bound of the range of d d m 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 retrieveFromCache)
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.
templateId - the template IDstatus - the statusstart - the lower bound of the range of d d m template versionsend - the upper bound of the range of d d m template versions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from 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 d d m 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 d d m 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 d d m 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 d d m 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 d d m template versiontemplateId - the template IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)NoSuchTemplateVersionException - if a d d m 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 d d m template versionvoid cacheResult(java.util.List<DDMTemplateVersion> ddmTemplateVersions)
ddmTemplateVersions - the d d m template versionsDDMTemplateVersion create(long templateVersionId)
templateVersionId - the primary key for the new d d m template versionDDMTemplateVersion remove(long templateVersionId) throws NoSuchTemplateVersionException
templateVersionId - the primary key of the d d m template versionNoSuchTemplateVersionException - if a d d m 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 d d m template versionNoSuchTemplateVersionException - if a d d m 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 d d m template versionnull if a d d m template version with the primary key could not be foundjava.util.Map<java.io.Serializable,DDMTemplateVersion> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<DDMTemplateVersion>java.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 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.
start - the lower bound of the range of d d m template versionsend - the upper bound of the range of d d m 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 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.
start - the lower bound of the range of d d m template versionsend - the upper bound of the range of d d m 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 retrieveFromCache)
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.
start - the lower bound of the range of d d m template versionsend - the upper bound of the range of d d m template versions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachevoid removeAll()
int countAll()