Liferay 6.2.0

com.liferay.portlet.dynamicdatalists.service.persistence
Interface DDLRecordVersionPersistence

All Superinterfaces:
BasePersistence<DDLRecordVersion>
All Known Implementing Classes:
DDLRecordVersionPersistenceImpl

@ProviderType
public interface DDLRecordVersionPersistence
extends BasePersistence<DDLRecordVersion>

The persistence interface for the d d l record version service.

Caching information and settings can be found in portal.properties

See Also:
DDLRecordVersionPersistenceImpl, DDLRecordVersionUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
abstract  void cacheResult(DDLRecordVersion ddlRecordVersion)
          Caches the d d l record version in the entity cache if it is enabled.
abstract  void cacheResult(List<DDLRecordVersion> ddlRecordVersions)
          Caches the d d l record versions in the entity cache if it is enabled.
abstract  int countAll()
          Returns the number of d d l record versions.
abstract  int countByR_S(long recordId, int status)
          Returns the number of d d l record versions where recordId = ? and status = ?.
abstract  int countByR_V(long recordId, String version)
          Returns the number of d d l record versions where recordId = ? and version = ?.
abstract  int countByRecordId(long recordId)
          Returns the number of d d l record versions where recordId = ?.
abstract  DDLRecordVersion create(long recordVersionId)
          Creates a new d d l record version with the primary key.
abstract  DDLRecordVersion fetchByPrimaryKey(long recordVersionId)
          Returns the d d l record version with the primary key or returns null if it could not be found.
abstract  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 = ?.
abstract  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 = ?.
abstract  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.
abstract  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.
abstract  DDLRecordVersion fetchByRecordId_First(long recordId, OrderByComparator orderByComparator)
          Returns the first d d l record version in the ordered set where recordId = ?.
abstract  DDLRecordVersion fetchByRecordId_Last(long recordId, OrderByComparator orderByComparator)
          Returns the last d d l record version in the ordered set where recordId = ?.
abstract  List<DDLRecordVersion> findAll()
          Returns all the d d l record versions.
abstract  List<DDLRecordVersion> findAll(int start, int end)
          Returns a range of all the d d l record versions.
abstract  List<DDLRecordVersion> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d l record versions.
abstract  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.
abstract  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 = ?.
abstract  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 = ?.
abstract  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 = ?.
abstract  List<DDLRecordVersion> findByR_S(long recordId, int status)
          Returns all the d d l record versions where recordId = ? and status = ?.
abstract  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 = ?.
abstract  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 = ?.
abstract  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.
abstract  DDLRecordVersion findByRecordId_First(long recordId, OrderByComparator orderByComparator)
          Returns the first d d l record version in the ordered set where recordId = ?.
abstract  DDLRecordVersion findByRecordId_Last(long recordId, OrderByComparator orderByComparator)
          Returns the last d d l record version in the ordered set where recordId = ?.
abstract  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 = ?.
abstract  List<DDLRecordVersion> findByRecordId(long recordId)
          Returns all the d d l record versions where recordId = ?.
abstract  List<DDLRecordVersion> findByRecordId(long recordId, int start, int end)
          Returns a range of all the d d l record versions where recordId = ?.
abstract  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 = ?.
abstract  DDLRecordVersion remove(long recordVersionId)
          Removes the d d l record version with the primary key from the database.
abstract  void removeAll()
          Removes all the d d l record versions from the database.
abstract  void removeByR_S(long recordId, int status)
          Removes all the d d l record versions where recordId = ? and status = ? from the database.
abstract  DDLRecordVersion removeByR_V(long recordId, String version)
          Removes the d d l record version where recordId = ? and version = ? from the database.
abstract  void removeByRecordId(long recordId)
          Removes all the d d l record versions where recordId = ? from the database.
abstract  DDLRecordVersion updateImpl(DDLRecordVersion ddlRecordVersion)
           
 
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

findByRecordId

List<DDLRecordVersion> findByRecordId(long recordId)
                                      throws SystemException
Returns all the d d l record versions where recordId = ?.

Parameters:
recordId - the record ID
Returns:
the matching d d l record versions
Throws:
SystemException - if a system exception occurred

findByRecordId

List<DDLRecordVersion> findByRecordId(long recordId,
                                      int start,
                                      int end)
                                      throws SystemException
Returns a range of all the d d l record versions where recordId = ?.

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.

Parameters:
recordId - the record ID
start - the lower bound of the range of d d l record versions
end - the upper bound of the range of d d l record versions (not inclusive)
Returns:
the range of matching d d l record versions
Throws:
SystemException - if a system exception occurred

findByRecordId

List<DDLRecordVersion> findByRecordId(long recordId,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                                      throws SystemException
Returns an ordered range of all the d d l record versions where recordId = ?.

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.

Parameters:
recordId - the record ID
start - the lower bound of the range of d d l record versions
end - the upper bound of the range of d d l record versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d l record versions
Throws:
SystemException - if a system exception occurred

findByRecordId_First

DDLRecordVersion findByRecordId_First(long recordId,
                                      OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchRecordVersionException
Returns the first d d l record version in the ordered set where recordId = ?.

Parameters:
recordId - the record ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d l record version
Throws:
NoSuchRecordVersionException - if a matching d d l record version could not be found
SystemException - if a system exception occurred

fetchByRecordId_First

DDLRecordVersion fetchByRecordId_First(long recordId,
                                       OrderByComparator orderByComparator)
                                       throws SystemException
Returns the first d d l record version in the ordered set where recordId = ?.

Parameters:
recordId - the record ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d l record version, or null if a matching d d l record version could not be found
Throws:
SystemException - if a system exception occurred

findByRecordId_Last

DDLRecordVersion findByRecordId_Last(long recordId,
                                     OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchRecordVersionException
Returns the last d d l record version in the ordered set where recordId = ?.

Parameters:
recordId - the record ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d l record version
Throws:
NoSuchRecordVersionException - if a matching d d l record version could not be found
SystemException - if a system exception occurred

fetchByRecordId_Last

DDLRecordVersion fetchByRecordId_Last(long recordId,
                                      OrderByComparator orderByComparator)
                                      throws SystemException
Returns the last d d l record version in the ordered set where recordId = ?.

Parameters:
recordId - the record ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d l record version, or null if a matching d d l record version could not be found
Throws:
SystemException - if a system exception occurred

findByRecordId_PrevAndNext

DDLRecordVersion[] findByRecordId_PrevAndNext(long recordVersionId,
                                              long recordId,
                                              OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     NoSuchRecordVersionException
Returns the d d l record versions before and after the current d d l record version in the ordered set where recordId = ?.

Parameters:
recordVersionId - the primary key of the current d d l record version
recordId - the record ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d l record version
Throws:
NoSuchRecordVersionException - if a d d l record version with the primary key could not be found
SystemException - if a system exception occurred

removeByRecordId

void removeByRecordId(long recordId)
                      throws SystemException
Removes all the d d l record versions where recordId = ? from the database.

Parameters:
recordId - the record ID
Throws:
SystemException - if a system exception occurred

countByRecordId

int countByRecordId(long recordId)
                    throws SystemException
Returns the number of d d l record versions where recordId = ?.

Parameters:
recordId - the record ID
Returns:
the number of matching d d l record versions
Throws:
SystemException - if a system exception occurred

findByR_V

DDLRecordVersion findByR_V(long recordId,
                           String version)
                           throws SystemException,
                                  NoSuchRecordVersionException
Returns the d d l record version where recordId = ? and version = ? or throws a NoSuchRecordVersionException if it could not be found.

Parameters:
recordId - the record ID
version - the version
Returns:
the matching d d l record version
Throws:
NoSuchRecordVersionException - if a matching d d l record version could not be found
SystemException - if a system exception occurred

fetchByR_V

DDLRecordVersion fetchByR_V(long recordId,
                            String version)
                            throws SystemException
Returns the d d l record version where recordId = ? and version = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
recordId - the record ID
version - the version
Returns:
the matching d d l record version, or null if a matching d d l record version could not be found
Throws:
SystemException - if a system exception occurred

fetchByR_V

DDLRecordVersion fetchByR_V(long recordId,
                            String version,
                            boolean retrieveFromCache)
                            throws SystemException
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.

Parameters:
recordId - the record ID
version - the version
retrieveFromCache - whether to use the finder cache
Returns:
the matching d d l record version, or null if a matching d d l record version could not be found
Throws:
SystemException - if a system exception occurred

removeByR_V

DDLRecordVersion removeByR_V(long recordId,
                             String version)
                             throws SystemException,
                                    NoSuchRecordVersionException
Removes the d d l record version where recordId = ? and version = ? from the database.

Parameters:
recordId - the record ID
version - the version
Returns:
the d d l record version that was removed
Throws:
SystemException - if a system exception occurred
NoSuchRecordVersionException

countByR_V

int countByR_V(long recordId,
               String version)
               throws SystemException
Returns the number of d d l record versions where recordId = ? and version = ?.

Parameters:
recordId - the record ID
version - the version
Returns:
the number of matching d d l record versions
Throws:
SystemException - if a system exception occurred

findByR_S

List<DDLRecordVersion> findByR_S(long recordId,
                                 int status)
                                 throws SystemException
Returns all the d d l record versions where recordId = ? and status = ?.

Parameters:
recordId - the record ID
status - the status
Returns:
the matching d d l record versions
Throws:
SystemException - if a system exception occurred

findByR_S

List<DDLRecordVersion> findByR_S(long recordId,
                                 int status,
                                 int start,
                                 int end)
                                 throws SystemException
Returns a range of all the d d l record versions where recordId = ? and status = ?.

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.

Parameters:
recordId - the record ID
status - the status
start - the lower bound of the range of d d l record versions
end - the upper bound of the range of d d l record versions (not inclusive)
Returns:
the range of matching d d l record versions
Throws:
SystemException - if a system exception occurred

findByR_S

List<DDLRecordVersion> findByR_S(long recordId,
                                 int status,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns an ordered range of all the d d l record versions where recordId = ? and status = ?.

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.

Parameters:
recordId - the record ID
status - the status
start - the lower bound of the range of d d l record versions
end - the upper bound of the range of d d l record versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d l record versions
Throws:
SystemException - if a system exception occurred

findByR_S_First

DDLRecordVersion findByR_S_First(long recordId,
                                 int status,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchRecordVersionException
Returns the first d d l record version in the ordered set where recordId = ? and status = ?.

Parameters:
recordId - the record ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d l record version
Throws:
NoSuchRecordVersionException - if a matching d d l record version could not be found
SystemException - if a system exception occurred

fetchByR_S_First

DDLRecordVersion fetchByR_S_First(long recordId,
                                  int status,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
Returns the first d d l record version in the ordered set where recordId = ? and status = ?.

Parameters:
recordId - the record ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d l record version, or null if a matching d d l record version could not be found
Throws:
SystemException - if a system exception occurred

findByR_S_Last

DDLRecordVersion findByR_S_Last(long recordId,
                                int status,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchRecordVersionException
Returns the last d d l record version in the ordered set where recordId = ? and status = ?.

Parameters:
recordId - the record ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d l record version
Throws:
NoSuchRecordVersionException - if a matching d d l record version could not be found
SystemException - if a system exception occurred

fetchByR_S_Last

DDLRecordVersion fetchByR_S_Last(long recordId,
                                 int status,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns the last d d l record version in the ordered set where recordId = ? and status = ?.

Parameters:
recordId - the record ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d l record version, or null if a matching d d l record version could not be found
Throws:
SystemException - if a system exception occurred

findByR_S_PrevAndNext

DDLRecordVersion[] findByR_S_PrevAndNext(long recordVersionId,
                                         long recordId,
                                         int status,
                                         OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchRecordVersionException
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 = ?.

Parameters:
recordVersionId - the primary key of the current d d l record version
recordId - the record ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d l record version
Throws:
NoSuchRecordVersionException - if a d d l record version with the primary key could not be found
SystemException - if a system exception occurred

removeByR_S

void removeByR_S(long recordId,
                 int status)
                 throws SystemException
Removes all the d d l record versions where recordId = ? and status = ? from the database.

Parameters:
recordId - the record ID
status - the status
Throws:
SystemException - if a system exception occurred

countByR_S

int countByR_S(long recordId,
               int status)
               throws SystemException
Returns the number of d d l record versions where recordId = ? and status = ?.

Parameters:
recordId - the record ID
status - the status
Returns:
the number of matching d d l record versions
Throws:
SystemException - if a system exception occurred

cacheResult

void cacheResult(DDLRecordVersion ddlRecordVersion)
Caches the d d l record version in the entity cache if it is enabled.

Parameters:
ddlRecordVersion - the d d l record version

cacheResult

void cacheResult(List<DDLRecordVersion> ddlRecordVersions)
Caches the d d l record versions in the entity cache if it is enabled.

Parameters:
ddlRecordVersions - the d d l record versions

create

DDLRecordVersion create(long recordVersionId)
Creates a new d d l record version with the primary key. Does not add the d d l record version to the database.

Parameters:
recordVersionId - the primary key for the new d d l record version
Returns:
the new d d l record version

remove

DDLRecordVersion remove(long recordVersionId)
                        throws SystemException,
                               NoSuchRecordVersionException
Removes the d d l record version with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
recordVersionId - the primary key of the d d l record version
Returns:
the d d l record version that was removed
Throws:
NoSuchRecordVersionException - if a d d l record version with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

DDLRecordVersion updateImpl(DDLRecordVersion ddlRecordVersion)
                            throws SystemException
Throws:
SystemException

findByPrimaryKey

DDLRecordVersion findByPrimaryKey(long recordVersionId)
                                  throws SystemException,
                                         NoSuchRecordVersionException
Returns the d d l record version with the primary key or throws a NoSuchRecordVersionException if it could not be found.

Parameters:
recordVersionId - the primary key of the d d l record version
Returns:
the d d l record version
Throws:
NoSuchRecordVersionException - if a d d l record version with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

DDLRecordVersion fetchByPrimaryKey(long recordVersionId)
                                   throws SystemException
Returns the d d l record version with the primary key or returns null if it could not be found.

Parameters:
recordVersionId - the primary key of the d d l record version
Returns:
the d d l record version, or null if a d d l record version with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findAll

List<DDLRecordVersion> findAll()
                               throws SystemException
Returns all the d d l record versions.

Returns:
the d d l record versions
Throws:
SystemException - if a system exception occurred

findAll

List<DDLRecordVersion> findAll(int start,
                               int end)
                               throws SystemException
Returns a range of all the d d l record versions.

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.

Parameters:
start - the lower bound of the range of d d l record versions
end - the upper bound of the range of d d l record versions (not inclusive)
Returns:
the range of d d l record versions
Throws:
SystemException - if a system exception occurred

findAll

List<DDLRecordVersion> findAll(int start,
                               int end,
                               OrderByComparator orderByComparator)
                               throws SystemException
Returns an ordered range of all the d d l record versions.

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.

Parameters:
start - the lower bound of the range of d d l record versions
end - the upper bound of the range of d d l record versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of d d l record versions
Throws:
SystemException - if a system exception occurred

removeAll

void removeAll()
               throws SystemException
Removes all the d d l record versions from the database.

Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Returns the number of d d l record versions.

Returns:
the number of d d l record versions
Throws:
SystemException - if a system exception occurred

Liferay 6.2.0