|
Liferay 7.0-ce-m6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@ProviderType public interface DDMTemplateVersionPersistence
The persistence interface for the d d m template version service.
Caching information and settings can be found in portal.properties
com.liferay.portlet.dynamicdatamapping.service.persistence.impl.DDMTemplateVersionPersistenceImpl,
DDMTemplateVersionUtil| Method Summary | |
|---|---|
void |
cacheResult(DDMTemplateVersion ddmTemplateVersion)
Caches the d d m template version in the entity cache if it is enabled. |
void |
cacheResult(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,
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. |
Map<Serializable,DDMTemplateVersion> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
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 = ?. |
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 = ?. |
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. |
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. |
DDMTemplateVersion |
fetchByTemplateId_First(long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the first d d m template version in the ordered set where templateId = ?. |
DDMTemplateVersion |
fetchByTemplateId_Last(long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the last d d m template version in the ordered set where templateId = ?. |
List<DDMTemplateVersion> |
findAll()
Returns all the d d m template versions. |
List<DDMTemplateVersion> |
findAll(int start,
int end)
Returns a range of all the d d m template versions. |
List<DDMTemplateVersion> |
findAll(int start,
int end,
OrderByComparator<DDMTemplateVersion> orderByComparator)
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,
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,
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,
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 = ?. |
List<DDMTemplateVersion> |
findByT_S(long templateId,
int status)
Returns all the d d m template versions where templateId = ? and status = ?. |
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 = ?. |
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 = ?. |
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. |
DDMTemplateVersion |
findByTemplateId_First(long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the first d d m template version in the ordered set where templateId = ?. |
DDMTemplateVersion |
findByTemplateId_Last(long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the last d d m template version in the ordered set where templateId = ?. |
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 = ?. |
List<DDMTemplateVersion> |
findByTemplateId(long templateId)
Returns all the d d m template versions where templateId = ?. |
List<DDMTemplateVersion> |
findByTemplateId(long templateId,
int start,
int end)
Returns a range of all the d d m template versions where templateId = ?. |
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 = ?. |
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,
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)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update |
| Method Detail |
|---|
List<DDMTemplateVersion> findByTemplateId(long templateId)
templateId - the template ID
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)
List<DDMTemplateVersion> findByTemplateId(long templateId,
int start,
int end,
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)
DDMTemplateVersion findByTemplateId_First(long templateId,
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 found
DDMTemplateVersion fetchByTemplateId_First(long templateId,
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 found
DDMTemplateVersion findByTemplateId_Last(long templateId,
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 found
DDMTemplateVersion fetchByTemplateId_Last(long templateId,
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 found
DDMTemplateVersion[] findByTemplateId_PrevAndNext(long templateVersionId,
long templateId,
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 ID
DDMTemplateVersion findByT_V(long templateId,
String version)
throws NoSuchTemplateVersionException
NoSuchTemplateVersionException if it could not be found.
templateId - the template IDversion - the version
NoSuchTemplateVersionException - if a matching d d m template version could not be found
DDMTemplateVersion fetchByT_V(long templateId,
String version)
null if it could not be found. Uses the finder cache.
templateId - the template IDversion - the version
null if a matching d d m template version could not be found
DDMTemplateVersion fetchByT_V(long templateId,
String version,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
templateId - the template IDversion - the versionretrieveFromCache - whether to use the finder cache
null if a matching d d m template version could not be found
DDMTemplateVersion removeByT_V(long templateId,
String version)
throws NoSuchTemplateVersionException
templateId - the template IDversion - the version
NoSuchTemplateVersionException
int countByT_V(long templateId,
String version)
templateId - the template IDversion - the version
List<DDMTemplateVersion> findByT_S(long templateId,
int status)
templateId - the template IDstatus - the status
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)
List<DDMTemplateVersion> findByT_S(long templateId,
int status,
int start,
int end,
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)
DDMTemplateVersion findByT_S_First(long templateId,
int status,
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 found
DDMTemplateVersion fetchByT_S_First(long templateId,
int status,
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 found
DDMTemplateVersion findByT_S_Last(long templateId,
int status,
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 found
DDMTemplateVersion fetchByT_S_Last(long templateId,
int status,
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 found
DDMTemplateVersion[] findByT_S_PrevAndNext(long templateVersionId,
long templateId,
int status,
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 found
void removeByT_S(long templateId,
int status)
templateId - the template IDstatus - the status
int countByT_S(long templateId,
int status)
templateId - the template IDstatus - the status
void cacheResult(DDMTemplateVersion ddmTemplateVersion)
ddmTemplateVersion - the d d m template versionvoid cacheResult(List<DDMTemplateVersion> ddmTemplateVersions)
ddmTemplateVersions - the d d m template versionsDDMTemplateVersion create(long templateVersionId)
templateVersionId - the primary key for the new d d m template version
DDMTemplateVersion remove(long templateVersionId)
throws NoSuchTemplateVersionException
templateVersionId - the primary key of the d d m template version
NoSuchTemplateVersionException - 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 version
NoSuchTemplateVersionException - 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 version
null if a d d m template version with the primary key could not be foundMap<Serializable,DDMTemplateVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<DDMTemplateVersion>List<DDMTemplateVersion> findAll()
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)
List<DDMTemplateVersion> findAll(int start,
int end,
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)
void removeAll()
int countAll()
|
Liferay 7.0-ce-m6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||