|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DDLRecordVersionPersistence
The persistence interface for the d d l record version service.
Caching information and settings can be found in portal.properties
DDLRecordVersionPersistenceImpl
,
DDLRecordVersionUtil
Method Summary | |
---|---|
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. |
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. |
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 |
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 |
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 = ?. |
DDLRecordVersion |
remove(long recordVersionId)
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. |
DDLRecordVersion |
updateImpl(DDLRecordVersion ddlRecordVersion,
boolean merge)
|
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
---|
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update |
Method Detail |
---|
void cacheResult(DDLRecordVersion ddlRecordVersion)
ddlRecordVersion
- the d d l record versionvoid cacheResult(List<DDLRecordVersion> ddlRecordVersions)
ddlRecordVersions
- the d d l record versionsDDLRecordVersion create(long recordVersionId)
recordVersionId
- the primary key for the new d d l record version
DDLRecordVersion remove(long recordVersionId) throws SystemException, NoSuchRecordVersionException
recordVersionId
- 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 occurredDDLRecordVersion updateImpl(DDLRecordVersion ddlRecordVersion, boolean merge) throws SystemException
SystemException
DDLRecordVersion findByPrimaryKey(long recordVersionId) throws SystemException, NoSuchRecordVersionException
NoSuchRecordVersionException
if it could not be found.
recordVersionId
- 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 occurredDDLRecordVersion fetchByPrimaryKey(long recordVersionId) throws SystemException
null
if it could not be found.
recordVersionId
- 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 occurredList<DDLRecordVersion> findByRecordId(long recordId) throws SystemException
recordId
- the record ID
SystemException
- if a system exception occurredList<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.
recordId
- 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 occurredList<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.
recordId
- 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 occurredDDLRecordVersion findByRecordId_First(long recordId, OrderByComparator orderByComparator) throws SystemException, NoSuchRecordVersionException
recordId
- 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 occurredDDLRecordVersion fetchByRecordId_First(long recordId, OrderByComparator orderByComparator) throws SystemException
recordId
- 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 occurredDDLRecordVersion findByRecordId_Last(long recordId, OrderByComparator orderByComparator) throws SystemException, NoSuchRecordVersionException
recordId
- 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 occurredDDLRecordVersion fetchByRecordId_Last(long recordId, OrderByComparator orderByComparator) throws SystemException
recordId
- 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 occurredDDLRecordVersion[] findByRecordId_PrevAndNext(long recordVersionId, long recordId, OrderByComparator orderByComparator) throws SystemException, NoSuchRecordVersionException
recordVersionId
- 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 occurredDDLRecordVersion findByR_V(long recordId, String version) throws SystemException, NoSuchRecordVersionException
NoSuchRecordVersionException
if it could not be found.
recordId
- the record IDversion
- the version
NoSuchRecordVersionException
- if a matching d d l record version could not be found
SystemException
- if a system exception occurredDDLRecordVersion fetchByR_V(long recordId, String version) throws SystemException
null
if it could not be found. Uses the finder cache.
recordId
- the record IDversion
- the version
null
if a matching d d l record version could not be found
SystemException
- if a system exception occurredDDLRecordVersion fetchByR_V(long recordId, String version, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
recordId
- 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 occurredList<DDLRecordVersion> findByR_S(long recordId, int status) throws SystemException
recordId
- the record IDstatus
- the status
SystemException
- if a system exception occurredList<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.
recordId
- 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 occurredList<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.
recordId
- 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 occurredDDLRecordVersion findByR_S_First(long recordId, int status, OrderByComparator orderByComparator) throws SystemException, NoSuchRecordVersionException
recordId
- 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 occurredDDLRecordVersion fetchByR_S_First(long recordId, int status, OrderByComparator orderByComparator) throws SystemException
recordId
- 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 occurredDDLRecordVersion findByR_S_Last(long recordId, int status, OrderByComparator orderByComparator) throws SystemException, NoSuchRecordVersionException
recordId
- 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 occurredDDLRecordVersion fetchByR_S_Last(long recordId, int status, OrderByComparator orderByComparator) throws SystemException
recordId
- 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 occurredDDLRecordVersion[] findByR_S_PrevAndNext(long recordVersionId, long recordId, int status, OrderByComparator orderByComparator) throws SystemException, NoSuchRecordVersionException
recordVersionId
- 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 occurredList<DDLRecordVersion> findAll() throws SystemException
SystemException
- if a system exception occurredList<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.
start
- 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 occurredList<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.
start
- 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 occurredvoid removeByRecordId(long recordId) throws SystemException
recordId
- the record ID
SystemException
- if a system exception occurredDDLRecordVersion removeByR_V(long recordId, String version) throws SystemException, NoSuchRecordVersionException
recordId
- the record IDversion
- the version
SystemException
- if a system exception occurred
NoSuchRecordVersionException
void removeByR_S(long recordId, int status) throws SystemException
recordId
- the record IDstatus
- the status
SystemException
- if a system exception occurredvoid removeAll() throws SystemException
SystemException
- if a system exception occurredint countByRecordId(long recordId) throws SystemException
recordId
- the record ID
SystemException
- if a system exception occurredint countByR_V(long recordId, String version) throws SystemException
recordId
- the record IDversion
- the version
SystemException
- if a system exception occurredint countByR_S(long recordId, int status) throws SystemException
recordId
- the record IDstatus
- the status
SystemException
- if a system exception occurredint countAll() throws SystemException
SystemException
- if a system exception occurred
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |