|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<DDMTemplateVersion>
com.liferay.portlet.dynamicdatamapping.service.persistence.impl.DDMTemplateVersionPersistenceImpl
@ProviderType public class DDMTemplateVersionPersistenceImpl
The persistence implementation for the d d m template version service.
Caching information and settings can be found in portal.properties
DDMTemplateVersionPersistence,
DDMTemplateVersionUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
DDMTemplateVersionPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the d d m template version persistence. |
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. |
protected void |
cacheUniqueFindersCache(DDMTemplateVersion ddmTemplateVersion)
|
void |
clearCache()
Clears the cache for all d d m template versions. |
void |
clearCache(DDMTemplateVersion ddmTemplateVersion)
Clears the cache for the d d m template version. |
void |
clearCache(List<DDMTemplateVersion> ddmTemplateVersions)
Clears the cache for a List instances of this model. |
protected void |
clearUniqueFindersCache(DDMTemplateVersion ddmTemplateVersion)
|
int |
countAll()
Returns the number of d d m template versions. |
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. |
void |
destroy()
|
DDMTemplateVersion |
fetchByPrimaryKey(long templateVersionId)
Returns the d d m template version with the primary key or returns null if it could not be found. |
DDMTemplateVersion |
fetchByPrimaryKey(Serializable primaryKey)
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_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 |
findByPrimaryKey(Serializable primaryKey)
Returns the d d m template version with the primary key or throws a NoSuchModelException if it could not be found. |
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 = ?. |
protected DDMTemplateVersion |
getByTemplateId_PrevAndNext(Session session,
DDMTemplateVersion ddmTemplateVersion,
long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator,
boolean previous)
|
DDMTemplateVersion |
remove(long templateVersionId)
Removes the d d m template version with the primary key from the database. |
DDMTemplateVersion |
remove(Serializable primaryKey)
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. |
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. |
protected DDMTemplateVersion |
removeImpl(DDMTemplateVersion ddmTemplateVersion)
Removes the model instance from the database. |
protected DDMTemplateVersion |
toUnwrappedModel(DDMTemplateVersion ddmTemplateVersion)
|
DDMTemplateVersion |
updateImpl(DDMTemplateVersion ddmTemplateVersion)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TEMPLATEID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TEMPLATEID
public static final FinderPath FINDER_PATH_COUNT_BY_TEMPLATEID
public static final FinderPath FINDER_PATH_FETCH_BY_T_V
public static final FinderPath FINDER_PATH_COUNT_BY_T_V
| Constructor Detail |
|---|
public DDMTemplateVersionPersistenceImpl()
| Method Detail |
|---|
public List<DDMTemplateVersion> findByTemplateId(long templateId)
findByTemplateId in interface DDMTemplateVersionPersistencetemplateId - the template ID
public 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.
findByTemplateId in interface DDMTemplateVersionPersistencetemplateId - 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)
public 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.
findByTemplateId in interface DDMTemplateVersionPersistencetemplateId - 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)
public DDMTemplateVersion findByTemplateId_First(long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
throws NoSuchTemplateVersionException
findByTemplateId_First in interface DDMTemplateVersionPersistencetemplateId - 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
public DDMTemplateVersion fetchByTemplateId_First(long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
fetchByTemplateId_First in interface DDMTemplateVersionPersistencetemplateId - 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
public DDMTemplateVersion findByTemplateId_Last(long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
throws NoSuchTemplateVersionException
findByTemplateId_Last in interface DDMTemplateVersionPersistencetemplateId - 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
public DDMTemplateVersion fetchByTemplateId_Last(long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
fetchByTemplateId_Last in interface DDMTemplateVersionPersistencetemplateId - 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
public DDMTemplateVersion[] findByTemplateId_PrevAndNext(long templateVersionId,
long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
throws NoSuchTemplateVersionException
findByTemplateId_PrevAndNext in interface DDMTemplateVersionPersistencetemplateVersionId - 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 found
protected DDMTemplateVersion getByTemplateId_PrevAndNext(Session session,
DDMTemplateVersion ddmTemplateVersion,
long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator,
boolean previous)
public void removeByTemplateId(long templateId)
removeByTemplateId in interface DDMTemplateVersionPersistencetemplateId - the template IDpublic int countByTemplateId(long templateId)
countByTemplateId in interface DDMTemplateVersionPersistencetemplateId - the template ID
public DDMTemplateVersion findByT_V(long templateId,
String version)
throws NoSuchTemplateVersionException
NoSuchTemplateVersionException if it could not be found.
findByT_V in interface DDMTemplateVersionPersistencetemplateId - the template IDversion - the version
NoSuchTemplateVersionException - if a matching d d m template version could not be found
public DDMTemplateVersion fetchByT_V(long templateId,
String version)
null if it could not be found. Uses the finder cache.
fetchByT_V in interface DDMTemplateVersionPersistencetemplateId - the template IDversion - the version
null if a matching d d m template version could not be found
public DDMTemplateVersion fetchByT_V(long templateId,
String version,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByT_V in interface DDMTemplateVersionPersistencetemplateId - the template IDversion - the versionretrieveFromCache - whether to use the finder cache
null if a matching d d m template version could not be found
public DDMTemplateVersion removeByT_V(long templateId,
String version)
throws NoSuchTemplateVersionException
removeByT_V in interface DDMTemplateVersionPersistencetemplateId - the template IDversion - the version
NoSuchTemplateVersionException
public int countByT_V(long templateId,
String version)
countByT_V in interface DDMTemplateVersionPersistencetemplateId - the template IDversion - the version
public void cacheResult(DDMTemplateVersion ddmTemplateVersion)
cacheResult in interface DDMTemplateVersionPersistenceddmTemplateVersion - the d d m template versionpublic void cacheResult(List<DDMTemplateVersion> ddmTemplateVersions)
cacheResult in interface DDMTemplateVersionPersistenceddmTemplateVersions - the d d m template versionspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<DDMTemplateVersion>clearCache in class BasePersistenceImpl<DDMTemplateVersion>public void clearCache(DDMTemplateVersion ddmTemplateVersion)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<DDMTemplateVersion>clearCache in class BasePersistenceImpl<DDMTemplateVersion>ddmTemplateVersion - the instance of this model to clear the cache forpublic void clearCache(List<DDMTemplateVersion> ddmTemplateVersions)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<DDMTemplateVersion>clearCache in class BasePersistenceImpl<DDMTemplateVersion>ddmTemplateVersions - the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(DDMTemplateVersion ddmTemplateVersion)
protected void clearUniqueFindersCache(DDMTemplateVersion ddmTemplateVersion)
public DDMTemplateVersion create(long templateVersionId)
create in interface DDMTemplateVersionPersistencetemplateVersionId - the primary key for the new d d m template version
public DDMTemplateVersion remove(long templateVersionId)
throws NoSuchTemplateVersionException
remove in interface DDMTemplateVersionPersistencetemplateVersionId - 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 found
public DDMTemplateVersion remove(Serializable primaryKey)
throws NoSuchTemplateVersionException
remove in interface BasePersistence<DDMTemplateVersion>remove in class BasePersistenceImpl<DDMTemplateVersion>primaryKey - 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 foundprotected DDMTemplateVersion removeImpl(DDMTemplateVersion ddmTemplateVersion)
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<DDMTemplateVersion>ddmTemplateVersion - the model instance to remove
public DDMTemplateVersion updateImpl(DDMTemplateVersion ddmTemplateVersion)
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface DDMTemplateVersionPersistenceupdateImpl in class BasePersistenceImpl<DDMTemplateVersion>ddmTemplateVersion - the model instance to update
protected DDMTemplateVersion toUnwrappedModel(DDMTemplateVersion ddmTemplateVersion)
public DDMTemplateVersion findByPrimaryKey(Serializable primaryKey)
throws NoSuchTemplateVersionException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<DDMTemplateVersion>findByPrimaryKey in class BasePersistenceImpl<DDMTemplateVersion>primaryKey - 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 found
public DDMTemplateVersion findByPrimaryKey(long templateVersionId)
throws NoSuchTemplateVersionException
NoSuchTemplateVersionException if it could not be found.
findByPrimaryKey in interface DDMTemplateVersionPersistencetemplateVersionId - 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 foundpublic DDMTemplateVersion fetchByPrimaryKey(Serializable primaryKey)
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<DDMTemplateVersion>fetchByPrimaryKey in class BasePersistenceImpl<DDMTemplateVersion>primaryKey - 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 foundpublic DDMTemplateVersion fetchByPrimaryKey(long templateVersionId)
null if it could not be found.
fetchByPrimaryKey in interface DDMTemplateVersionPersistencetemplateVersionId - 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 foundpublic Map<Serializable,DDMTemplateVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<DDMTemplateVersion>fetchByPrimaryKeys in interface DDMTemplateVersionPersistencefetchByPrimaryKeys in class BasePersistenceImpl<DDMTemplateVersion>public List<DDMTemplateVersion> findAll()
findAll in interface DDMTemplateVersionPersistence
public 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.
findAll in interface DDMTemplateVersionPersistencestart - 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)
public 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.
findAll in interface DDMTemplateVersionPersistencestart - 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)
public void removeAll()
removeAll in interface DDMTemplateVersionPersistencepublic int countAll()
countAll in interface DDMTemplateVersionPersistencepublic void afterPropertiesSet()
public void destroy()
|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||