|
Liferay 6.2.0-ce-b2 | |||||||||
| 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<DDLRecordVersion>
com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordVersionPersistenceImpl
public class DDLRecordVersionPersistenceImpl
The persistence implementation for the d d l record version service.
Caching information and settings can be found in portal.properties
DDLRecordVersionPersistence,
DDLRecordVersionUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, 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 | |
|---|---|
DDLRecordVersionPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the d d l record version persistence. |
void |
cacheResult(DDLRecordVersion ddlRecordVersion)
Caches the d d l record version in the entity cache if it is enabled. |
void |
cacheResult(List<DDLRecordVersion> ddlRecordVersions)
Caches the d d l record versions in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(DDLRecordVersion ddlRecordVersion)
|
void |
clearCache()
Clears the cache for all d d l record versions. |
void |
clearCache(DDLRecordVersion ddlRecordVersion)
Clears the cache for the d d l record version. |
void |
clearCache(List<DDLRecordVersion> ddlRecordVersions)
Clears the cache for a List instances of this model. |
protected void |
clearUniqueFindersCache(DDLRecordVersion ddlRecordVersion)
|
int |
countAll()
Returns the number of d d l record versions. |
int |
countByR_S(long recordId,
int status)
Returns the number of d d l record versions where recordId = ? and status = ?. |
int |
countByR_V(long recordId,
String version)
Returns the number of d d l record versions where recordId = ? and version = ?. |
int |
countByRecordId(long recordId)
Returns the number of d d l record versions where recordId = ?. |
DDLRecordVersion |
create(long recordVersionId)
Creates a new d d l record version with the primary key. |
void |
destroy()
|
DDLRecordVersion |
fetchByPrimaryKey(long recordVersionId)
Returns the d d l record version with the primary key or returns null if it could not be found. |
DDLRecordVersion |
fetchByPrimaryKey(Serializable primaryKey)
Returns the d d l record version with the primary key or returns null if it could not be found. |
DDLRecordVersion |
fetchByR_S_First(long recordId,
int status,
OrderByComparator orderByComparator)
Returns the first d d l record version in the ordered set where recordId = ? and status = ?. |
DDLRecordVersion |
fetchByR_S_Last(long recordId,
int status,
OrderByComparator orderByComparator)
Returns the last d d l record version in the ordered set where recordId = ? and status = ?. |
DDLRecordVersion |
fetchByR_V(long recordId,
String version)
Returns the d d l record version where recordId = ? and version = ? or returns null if it could not be found. |
DDLRecordVersion |
fetchByR_V(long recordId,
String version,
boolean retrieveFromCache)
Returns the d d l record version where recordId = ? and version = ? or returns null if it could not be found, optionally using the finder cache. |
DDLRecordVersion |
fetchByRecordId_First(long recordId,
OrderByComparator orderByComparator)
Returns the first d d l record version in the ordered set where recordId = ?. |
DDLRecordVersion |
fetchByRecordId_Last(long recordId,
OrderByComparator orderByComparator)
Returns the last d d l record version in the ordered set where recordId = ?. |
List<DDLRecordVersion> |
findAll()
Returns all the d d l record versions. |
List<DDLRecordVersion> |
findAll(int start,
int end)
Returns a range of all the d d l record versions. |
List<DDLRecordVersion> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the d d l record versions. |
DDLRecordVersion |
findByPrimaryKey(long recordVersionId)
Returns the d d l record version with the primary key or throws a NoSuchRecordVersionException if it could not be found. |
DDLRecordVersion |
findByPrimaryKey(Serializable primaryKey)
Returns the d d l record version with the primary key or throws a NoSuchModelException if it could not be found. |
DDLRecordVersion |
findByR_S_First(long recordId,
int status,
OrderByComparator orderByComparator)
Returns the first d d l record version in the ordered set where recordId = ? and status = ?. |
DDLRecordVersion |
findByR_S_Last(long recordId,
int status,
OrderByComparator orderByComparator)
Returns the last d d l record version in the ordered set where recordId = ? and status = ?. |
DDLRecordVersion[] |
findByR_S_PrevAndNext(long recordVersionId,
long recordId,
int status,
OrderByComparator orderByComparator)
Returns the d d l record versions before and after the current d d l record version in the ordered set where recordId = ? and status = ?. |
List<DDLRecordVersion> |
findByR_S(long recordId,
int status)
Returns all the d d l record versions where recordId = ? and status = ?. |
List<DDLRecordVersion> |
findByR_S(long recordId,
int status,
int start,
int end)
Returns a range of all the d d l record versions where recordId = ? and status = ?. |
List<DDLRecordVersion> |
findByR_S(long recordId,
int status,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the d d l record versions where recordId = ? and status = ?. |
DDLRecordVersion |
findByR_V(long recordId,
String version)
Returns the d d l record version where recordId = ? and version = ? or throws a NoSuchRecordVersionException if it could not be found. |
DDLRecordVersion |
findByRecordId_First(long recordId,
OrderByComparator orderByComparator)
Returns the first d d l record version in the ordered set where recordId = ?. |
DDLRecordVersion |
findByRecordId_Last(long recordId,
OrderByComparator orderByComparator)
Returns the last d d l record version in the ordered set where recordId = ?. |
DDLRecordVersion[] |
findByRecordId_PrevAndNext(long recordVersionId,
long recordId,
OrderByComparator orderByComparator)
Returns the d d l record versions before and after the current d d l record version in the ordered set where recordId = ?. |
List<DDLRecordVersion> |
findByRecordId(long recordId)
Returns all the d d l record versions where recordId = ?. |
List<DDLRecordVersion> |
findByRecordId(long recordId,
int start,
int end)
Returns a range of all the d d l record versions where recordId = ?. |
List<DDLRecordVersion> |
findByRecordId(long recordId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the d d l record versions where recordId = ?. |
protected DDLRecordVersion |
getByR_S_PrevAndNext(Session session,
DDLRecordVersion ddlRecordVersion,
long recordId,
int status,
OrderByComparator orderByComparator,
boolean previous)
|
protected DDLRecordVersion |
getByRecordId_PrevAndNext(Session session,
DDLRecordVersion ddlRecordVersion,
long recordId,
OrderByComparator orderByComparator,
boolean previous)
|
DDLRecordVersion |
remove(long recordVersionId)
Removes the d d l record version with the primary key from the database. |
DDLRecordVersion |
remove(Serializable primaryKey)
Removes the d d l record version with the primary key from the database. |
void |
removeAll()
Removes all the d d l record versions from the database. |
void |
removeByR_S(long recordId,
int status)
Removes all the d d l record versions where recordId = ? and status = ? from the database. |
DDLRecordVersion |
removeByR_V(long recordId,
String version)
Removes the d d l record version where recordId = ? and version = ? from the database. |
void |
removeByRecordId(long recordId)
Removes all the d d l record versions where recordId = ? from the database. |
protected DDLRecordVersion |
removeImpl(DDLRecordVersion ddlRecordVersion)
Removes the model instance from the database. |
protected DDLRecordVersion |
toUnwrappedModel(DDLRecordVersion ddlRecordVersion)
|
DDLRecordVersion |
updateImpl(DDLRecordVersion ddlRecordVersion)
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, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, 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, 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_RECORDID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_RECORDID
public static final FinderPath FINDER_PATH_COUNT_BY_RECORDID
public static final FinderPath FINDER_PATH_FETCH_BY_R_V
public static final FinderPath FINDER_PATH_COUNT_BY_R_V
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_R_S
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_R_S
public static final FinderPath FINDER_PATH_COUNT_BY_R_S
| Constructor Detail |
|---|
public DDLRecordVersionPersistenceImpl()
| Method Detail |
|---|
public List<DDLRecordVersion> findByRecordId(long recordId)
throws SystemException
findByRecordId in interface DDLRecordVersionPersistencerecordId - the record ID
SystemException - if a system exception occurred
public List<DDLRecordVersion> findByRecordId(long recordId,
int start,
int end)
throws SystemException
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 DDLRecordVersionModelImpl. 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.
findByRecordId in interface DDLRecordVersionPersistencerecordId - the record IDstart - the lower bound of the range of d d l record versionsend - the upper bound of the range of d d l record versions (not inclusive)
SystemException - if a system exception occurred
public List<DDLRecordVersion> findByRecordId(long recordId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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 DDLRecordVersionModelImpl. 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.
findByRecordId in interface DDLRecordVersionPersistencerecordId - the record IDstart - the lower bound of the range of d d l record versionsend - the upper bound of the range of d d l record versions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public DDLRecordVersion findByRecordId_First(long recordId,
OrderByComparator orderByComparator)
throws NoSuchRecordVersionException,
SystemException
findByRecordId_First in interface DDLRecordVersionPersistencerecordId - the record IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordVersionException - if a matching d d l record version could not be found
SystemException - if a system exception occurred
public DDLRecordVersion fetchByRecordId_First(long recordId,
OrderByComparator orderByComparator)
throws SystemException
fetchByRecordId_First in interface DDLRecordVersionPersistencerecordId - the record IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d l record version could not be found
SystemException - if a system exception occurred
public DDLRecordVersion findByRecordId_Last(long recordId,
OrderByComparator orderByComparator)
throws NoSuchRecordVersionException,
SystemException
findByRecordId_Last in interface DDLRecordVersionPersistencerecordId - the record IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordVersionException - if a matching d d l record version could not be found
SystemException - if a system exception occurred
public DDLRecordVersion fetchByRecordId_Last(long recordId,
OrderByComparator orderByComparator)
throws SystemException
fetchByRecordId_Last in interface DDLRecordVersionPersistencerecordId - the record IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d l record version could not be found
SystemException - if a system exception occurred
public DDLRecordVersion[] findByRecordId_PrevAndNext(long recordVersionId,
long recordId,
OrderByComparator orderByComparator)
throws NoSuchRecordVersionException,
SystemException
findByRecordId_PrevAndNext in interface DDLRecordVersionPersistencerecordVersionId - the primary key of the current d d l record versionrecordId - the record IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordVersionException - if a d d l record version with the primary key could not be found
SystemException - if a system exception occurred
protected DDLRecordVersion getByRecordId_PrevAndNext(Session session,
DDLRecordVersion ddlRecordVersion,
long recordId,
OrderByComparator orderByComparator,
boolean previous)
public void removeByRecordId(long recordId)
throws SystemException
removeByRecordId in interface DDLRecordVersionPersistencerecordId - the record ID
SystemException - if a system exception occurred
public int countByRecordId(long recordId)
throws SystemException
countByRecordId in interface DDLRecordVersionPersistencerecordId - the record ID
SystemException - if a system exception occurred
public DDLRecordVersion findByR_V(long recordId,
String version)
throws NoSuchRecordVersionException,
SystemException
NoSuchRecordVersionException if it could not be found.
findByR_V in interface DDLRecordVersionPersistencerecordId - the record IDversion - the version
NoSuchRecordVersionException - if a matching d d l record version could not be found
SystemException - if a system exception occurred
public DDLRecordVersion fetchByR_V(long recordId,
String version)
throws SystemException
null if it could not be found. Uses the finder cache.
fetchByR_V in interface DDLRecordVersionPersistencerecordId - the record IDversion - the version
null if a matching d d l record version could not be found
SystemException - if a system exception occurred
public DDLRecordVersion fetchByR_V(long recordId,
String version,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
fetchByR_V in interface DDLRecordVersionPersistencerecordId - the record IDversion - the versionretrieveFromCache - whether to use the finder cache
null if a matching d d l record version could not be found
SystemException - if a system exception occurred
public DDLRecordVersion removeByR_V(long recordId,
String version)
throws NoSuchRecordVersionException,
SystemException
removeByR_V in interface DDLRecordVersionPersistencerecordId - the record IDversion - the version
SystemException - if a system exception occurred
NoSuchRecordVersionException
public int countByR_V(long recordId,
String version)
throws SystemException
countByR_V in interface DDLRecordVersionPersistencerecordId - the record IDversion - the version
SystemException - if a system exception occurred
public List<DDLRecordVersion> findByR_S(long recordId,
int status)
throws SystemException
findByR_S in interface DDLRecordVersionPersistencerecordId - the record IDstatus - the status
SystemException - if a system exception occurred
public List<DDLRecordVersion> findByR_S(long recordId,
int status,
int start,
int end)
throws SystemException
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 DDLRecordVersionModelImpl. 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.
findByR_S in interface DDLRecordVersionPersistencerecordId - the record IDstatus - the statusstart - the lower bound of the range of d d l record versionsend - the upper bound of the range of d d l record versions (not inclusive)
SystemException - if a system exception occurred
public List<DDLRecordVersion> findByR_S(long recordId,
int status,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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 DDLRecordVersionModelImpl. 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.
findByR_S in interface DDLRecordVersionPersistencerecordId - the record IDstatus - the statusstart - the lower bound of the range of d d l record versionsend - the upper bound of the range of d d l record versions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public DDLRecordVersion findByR_S_First(long recordId,
int status,
OrderByComparator orderByComparator)
throws NoSuchRecordVersionException,
SystemException
findByR_S_First in interface DDLRecordVersionPersistencerecordId - the record IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordVersionException - if a matching d d l record version could not be found
SystemException - if a system exception occurred
public DDLRecordVersion fetchByR_S_First(long recordId,
int status,
OrderByComparator orderByComparator)
throws SystemException
fetchByR_S_First in interface DDLRecordVersionPersistencerecordId - the record IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d l record version could not be found
SystemException - if a system exception occurred
public DDLRecordVersion findByR_S_Last(long recordId,
int status,
OrderByComparator orderByComparator)
throws NoSuchRecordVersionException,
SystemException
findByR_S_Last in interface DDLRecordVersionPersistencerecordId - the record IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordVersionException - if a matching d d l record version could not be found
SystemException - if a system exception occurred
public DDLRecordVersion fetchByR_S_Last(long recordId,
int status,
OrderByComparator orderByComparator)
throws SystemException
fetchByR_S_Last in interface DDLRecordVersionPersistencerecordId - the record IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d l record version could not be found
SystemException - if a system exception occurred
public DDLRecordVersion[] findByR_S_PrevAndNext(long recordVersionId,
long recordId,
int status,
OrderByComparator orderByComparator)
throws NoSuchRecordVersionException,
SystemException
findByR_S_PrevAndNext in interface DDLRecordVersionPersistencerecordVersionId - the primary key of the current d d l record versionrecordId - the record IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordVersionException - if a d d l record version with the primary key could not be found
SystemException - if a system exception occurred
protected DDLRecordVersion getByR_S_PrevAndNext(Session session,
DDLRecordVersion ddlRecordVersion,
long recordId,
int status,
OrderByComparator orderByComparator,
boolean previous)
public void removeByR_S(long recordId,
int status)
throws SystemException
removeByR_S in interface DDLRecordVersionPersistencerecordId - the record IDstatus - the status
SystemException - if a system exception occurred
public int countByR_S(long recordId,
int status)
throws SystemException
countByR_S in interface DDLRecordVersionPersistencerecordId - the record IDstatus - the status
SystemException - if a system exception occurredpublic void cacheResult(DDLRecordVersion ddlRecordVersion)
cacheResult in interface DDLRecordVersionPersistenceddlRecordVersion - the d d l record versionpublic void cacheResult(List<DDLRecordVersion> ddlRecordVersions)
cacheResult in interface DDLRecordVersionPersistenceddlRecordVersions - the d d l record versionspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<DDLRecordVersion>clearCache in class BasePersistenceImpl<DDLRecordVersion>public void clearCache(DDLRecordVersion ddlRecordVersion)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<DDLRecordVersion>clearCache in class BasePersistenceImpl<DDLRecordVersion>ddlRecordVersion - the instance of this model to clear the cache forpublic void clearCache(List<DDLRecordVersion> ddlRecordVersions)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<DDLRecordVersion>clearCache in class BasePersistenceImpl<DDLRecordVersion>ddlRecordVersions - the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(DDLRecordVersion ddlRecordVersion)
protected void clearUniqueFindersCache(DDLRecordVersion ddlRecordVersion)
public DDLRecordVersion create(long recordVersionId)
create in interface DDLRecordVersionPersistencerecordVersionId - the primary key for the new d d l record version
public DDLRecordVersion remove(long recordVersionId)
throws NoSuchRecordVersionException,
SystemException
remove in interface DDLRecordVersionPersistencerecordVersionId - the primary key of the d d l record version
NoSuchRecordVersionException - if a d d l record version with the primary key could not be found
SystemException - if a system exception occurred
public DDLRecordVersion remove(Serializable primaryKey)
throws NoSuchRecordVersionException,
SystemException
remove in interface BasePersistence<DDLRecordVersion>remove in class BasePersistenceImpl<DDLRecordVersion>primaryKey - the primary key of the d d l record version
NoSuchRecordVersionException - if a d d l record version with the primary key could not be found
SystemException - if a system exception occurred
protected DDLRecordVersion removeImpl(DDLRecordVersion ddlRecordVersion)
throws SystemException
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<DDLRecordVersion>ddlRecordVersion - the model instance to remove
SystemException - if a system exception occurred
public DDLRecordVersion updateImpl(DDLRecordVersion ddlRecordVersion)
throws SystemException
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface DDLRecordVersionPersistenceupdateImpl in class BasePersistenceImpl<DDLRecordVersion>ddlRecordVersion - the model instance to update
SystemException - if a system exception occurredprotected DDLRecordVersion toUnwrappedModel(DDLRecordVersion ddlRecordVersion)
public DDLRecordVersion findByPrimaryKey(Serializable primaryKey)
throws NoSuchRecordVersionException,
SystemException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<DDLRecordVersion>findByPrimaryKey in class BasePersistenceImpl<DDLRecordVersion>primaryKey - the primary key of the d d l record version
NoSuchRecordVersionException - if a d d l record version with the primary key could not be found
SystemException - if a system exception occurred
public DDLRecordVersion findByPrimaryKey(long recordVersionId)
throws NoSuchRecordVersionException,
SystemException
NoSuchRecordVersionException if it could not be found.
findByPrimaryKey in interface DDLRecordVersionPersistencerecordVersionId - the primary key of the d d l record version
NoSuchRecordVersionException - if a d d l record version with the primary key could not be found
SystemException - if a system exception occurred
public DDLRecordVersion fetchByPrimaryKey(Serializable primaryKey)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<DDLRecordVersion>fetchByPrimaryKey in class BasePersistenceImpl<DDLRecordVersion>primaryKey - the primary key of the d d l record version
null if a d d l record version with the primary key could not be found
SystemException - if a system exception occurred
public DDLRecordVersion fetchByPrimaryKey(long recordVersionId)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface DDLRecordVersionPersistencerecordVersionId - the primary key of the d d l record version
null if a d d l record version with the primary key could not be found
SystemException - if a system exception occurred
public List<DDLRecordVersion> findAll()
throws SystemException
findAll in interface DDLRecordVersionPersistenceSystemException - if a system exception occurred
public List<DDLRecordVersion> findAll(int start,
int end)
throws SystemException
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 DDLRecordVersionModelImpl. 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 DDLRecordVersionPersistencestart - the lower bound of the range of d d l record versionsend - the upper bound of the range of d d l record versions (not inclusive)
SystemException - if a system exception occurred
public List<DDLRecordVersion> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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 DDLRecordVersionModelImpl. 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 DDLRecordVersionPersistencestart - the lower bound of the range of d d l record versionsend - the upper bound of the range of d d l record versions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public void removeAll()
throws SystemException
removeAll in interface DDLRecordVersionPersistenceSystemException - if a system exception occurred
public int countAll()
throws SystemException
countAll in interface DDLRecordVersionPersistenceSystemException - if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.2.0-ce-b2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||