@ProviderType
public class DDLRecordVersionUtil
extends java.lang.Object
DDLRecordVersionPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
DDLRecordVersionPersistence,
DDLRecordVersionPersistenceImpl| Constructor and Description |
|---|
DDLRecordVersionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(DDLRecordVersion ddlRecordVersion)
Caches the d d l record version in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<DDLRecordVersion> ddlRecordVersions)
Caches the d d l record versions in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(DDLRecordVersion ddlRecordVersion) |
static int |
countAll()
Returns the number of d d l record versions.
|
static int |
countByR_S(long recordId,
int status)
Returns the number of d d l record versions where recordId = ? and status = ?.
|
static int |
countByR_V(long recordId,
java.lang.String version)
Returns the number of d d l record versions where recordId = ? and version = ?.
|
static int |
countByRecordId(long recordId)
Returns the number of d d l record versions where recordId = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static DDLRecordVersion |
create(long recordVersionId)
Creates a new d d l record version with the primary key.
|
static DDLRecordVersion |
fetchByPrimaryKey(long recordVersionId)
Returns the d d l record version with the primary key or returns
null if it could not be found. |
static 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 = ?.
|
static 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 = ?.
|
static DDLRecordVersion |
fetchByR_V(long recordId,
java.lang.String version)
Returns the d d l record version where recordId = ? and version = ? or returns
null if it could not be found. |
static DDLRecordVersion |
fetchByR_V(long recordId,
java.lang.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. |
static DDLRecordVersion |
fetchByRecordId_First(long recordId,
OrderByComparator orderByComparator)
Returns the first d d l record version in the ordered set where recordId = ?.
|
static DDLRecordVersion |
fetchByRecordId_Last(long recordId,
OrderByComparator orderByComparator)
Returns the last d d l record version in the ordered set where recordId = ?.
|
static java.util.List<DDLRecordVersion> |
findAll()
Returns all the d d l record versions.
|
static java.util.List<DDLRecordVersion> |
findAll(int start,
int end)
Returns a range of all the d d l record versions.
|
static java.util.List<DDLRecordVersion> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the d d l record versions.
|
static 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. |
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<DDLRecordVersion> |
findByR_S(long recordId,
int status)
Returns all the d d l record versions where recordId = ? and status = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static DDLRecordVersion |
findByR_V(long recordId,
java.lang.String version)
Returns the d d l record version where recordId = ? and version = ? or throws a
NoSuchRecordVersionException if it could not be found. |
static DDLRecordVersion |
findByRecordId_First(long recordId,
OrderByComparator orderByComparator)
Returns the first d d l record version in the ordered set where recordId = ?.
|
static DDLRecordVersion |
findByRecordId_Last(long recordId,
OrderByComparator orderByComparator)
Returns the last d d l record version in the ordered set where recordId = ?.
|
static 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 = ?.
|
static java.util.List<DDLRecordVersion> |
findByRecordId(long recordId)
Returns all the d d l record versions where recordId = ?.
|
static java.util.List<DDLRecordVersion> |
findByRecordId(long recordId,
int start,
int end)
Returns a range of all the d d l record versions where recordId = ?.
|
static java.util.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 = ?.
|
static java.util.List<DDLRecordVersion> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static java.util.List<DDLRecordVersion> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<DDLRecordVersion> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator) |
static DDLRecordVersionPersistence |
getPersistence() |
static DDLRecordVersion |
remove(long recordVersionId)
Removes the d d l record version with the primary key from the database.
|
static void |
removeAll()
Removes all the d d l record versions from the database.
|
static void |
removeByR_S(long recordId,
int status)
Removes all the d d l record versions where recordId = ? and status = ? from the database.
|
static DDLRecordVersion |
removeByR_V(long recordId,
java.lang.String version)
Removes the d d l record version where recordId = ? and version = ? from the database.
|
static void |
removeByRecordId(long recordId)
Removes all the d d l record versions where recordId = ? from the database.
|
void |
setPersistence(DDLRecordVersionPersistence persistence)
Deprecated.
As of 6.2.0
|
static DDLRecordVersion |
update(DDLRecordVersion ddlRecordVersion) |
static DDLRecordVersion |
update(DDLRecordVersion ddlRecordVersion,
ServiceContext serviceContext) |
static DDLRecordVersion |
updateImpl(DDLRecordVersion ddlRecordVersion) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(DDLRecordVersion ddlRecordVersion)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemExceptionBasePersistence.countWithDynamicQuery(DynamicQuery)public static java.util.List<DDLRecordVersion> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<DDLRecordVersion> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
public static java.util.List<DDLRecordVersion> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
public static DDLRecordVersion update(DDLRecordVersion ddlRecordVersion) throws SystemException
public static DDLRecordVersion update(DDLRecordVersion ddlRecordVersion, ServiceContext serviceContext) throws SystemException
public static java.util.List<DDLRecordVersion> findByRecordId(long recordId) throws SystemException
recordId - the record IDSystemException - if a system exception occurredpublic static java.util.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.
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 occurredpublic static java.util.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.
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 occurredpublic static DDLRecordVersion 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 foundSystemException - if a system exception occurredpublic static DDLRecordVersion 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 foundSystemException - if a system exception occurredpublic static DDLRecordVersion 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 foundSystemException - if a system exception occurredpublic static DDLRecordVersion 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 foundSystemException - if a system exception occurredpublic static DDLRecordVersion[] 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 foundSystemException - if a system exception occurredpublic static void removeByRecordId(long recordId)
throws SystemException
recordId - the record IDSystemException - if a system exception occurredpublic static int countByRecordId(long recordId)
throws SystemException
recordId - the record IDSystemException - if a system exception occurredpublic static DDLRecordVersion findByR_V(long recordId, java.lang.String version) throws SystemException, NoSuchRecordVersionException
NoSuchRecordVersionException if it could not be found.recordId - the record IDversion - the versionNoSuchRecordVersionException - if a matching d d l record version could not be foundSystemException - if a system exception occurredpublic static DDLRecordVersion fetchByR_V(long recordId, java.lang.String version) throws SystemException
null if it could not be found. Uses the finder cache.recordId - the record IDversion - the versionnull if a matching d d l record version could not be foundSystemException - if a system exception occurredpublic static DDLRecordVersion fetchByR_V(long recordId, java.lang.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 cachenull if a matching d d l record version could not be foundSystemException - if a system exception occurredpublic static DDLRecordVersion removeByR_V(long recordId, java.lang.String version) throws SystemException, NoSuchRecordVersionException
recordId - the record IDversion - the versionSystemException - if a system exception occurredNoSuchRecordVersionExceptionpublic static int countByR_V(long recordId,
java.lang.String version)
throws SystemException
recordId - the record IDversion - the versionSystemException - if a system exception occurredpublic static java.util.List<DDLRecordVersion> findByR_S(long recordId, int status) throws SystemException
recordId - the record IDstatus - the statusSystemException - if a system exception occurredpublic static java.util.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.
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 occurredpublic static java.util.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.
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 occurredpublic static DDLRecordVersion 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 foundSystemException - if a system exception occurredpublic static DDLRecordVersion 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 foundSystemException - if a system exception occurredpublic static DDLRecordVersion 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 foundSystemException - if a system exception occurredpublic static DDLRecordVersion 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 foundSystemException - if a system exception occurredpublic static DDLRecordVersion[] 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 foundSystemException - if a system exception occurredpublic static void removeByR_S(long recordId,
int status)
throws SystemException
recordId - the record IDstatus - the statusSystemException - if a system exception occurredpublic static int countByR_S(long recordId,
int status)
throws SystemException
recordId - the record IDstatus - the statusSystemException - if a system exception occurredpublic static void cacheResult(DDLRecordVersion ddlRecordVersion)
ddlRecordVersion - the d d l record versionpublic static void cacheResult(java.util.List<DDLRecordVersion> ddlRecordVersions)
ddlRecordVersions - the d d l record versionspublic static DDLRecordVersion create(long recordVersionId)
recordVersionId - the primary key for the new d d l record versionpublic static DDLRecordVersion remove(long recordVersionId) throws SystemException, NoSuchRecordVersionException
recordVersionId - the primary key of the d d l record versionNoSuchRecordVersionException - if a d d l record version with the primary key could not be foundSystemException - if a system exception occurredpublic static DDLRecordVersion updateImpl(DDLRecordVersion ddlRecordVersion) throws SystemException
SystemExceptionpublic static DDLRecordVersion findByPrimaryKey(long recordVersionId) throws SystemException, NoSuchRecordVersionException
NoSuchRecordVersionException if it could not be found.recordVersionId - the primary key of the d d l record versionNoSuchRecordVersionException - if a d d l record version with the primary key could not be foundSystemException - if a system exception occurredpublic static DDLRecordVersion fetchByPrimaryKey(long recordVersionId) throws SystemException
null if it could not be found.recordVersionId - the primary key of the d d l record versionnull if a d d l record version with the primary key could not be foundSystemException - if a system exception occurredpublic static java.util.List<DDLRecordVersion> findAll() throws SystemException
SystemException - if a system exception occurredpublic static java.util.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.
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 occurredpublic static java.util.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.
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 occurredpublic static void removeAll()
throws SystemException
SystemException - if a system exception occurredpublic static int countAll()
throws SystemException
SystemException - if a system exception occurredpublic static DDLRecordVersionPersistence getPersistence()
public void setPersistence(DDLRecordVersionPersistence persistence)