public class DDLRecordVersionUtil
extends java.lang.Object
com.liferay.dynamic.data.lists.service.persistence.impl.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
Constructor and Description |
---|
DDLRecordVersionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(DDLRecordVersion ddlRecordVersion)
Caches the ddl record version in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<DDLRecordVersion> ddlRecordVersions)
Caches the ddl 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 ddl record versions.
|
static int |
countByR_R(long recordSetId,
java.lang.String recordSetVersion)
Returns the number of ddl record versions where recordSetId = ? and recordSetVersion = ?.
|
static int |
countByR_S(long recordId,
int status)
Returns the number of ddl record versions where recordId = ? and status = ?.
|
static int |
countByR_V(long recordId,
java.lang.String version)
Returns the number of ddl record versions where recordId = ? and version = ?.
|
static int |
countByRecordId(long recordId)
Returns the number of ddl record versions where recordId = ?.
|
static int |
countByU_R_R_S(long userId,
long recordSetId,
java.lang.String recordSetVersion,
int status)
Returns the number of ddl record versions where userId = ? and recordSetId = ? and recordSetVersion = ? and status = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static DDLRecordVersion |
create(long recordVersionId)
Creates a new ddl record version with the primary key.
|
static DDLRecordVersion |
fetchByPrimaryKey(long recordVersionId)
Returns the ddl record version with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,DDLRecordVersion> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static DDLRecordVersion |
fetchByR_R_First(long recordSetId,
java.lang.String recordSetVersion,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the first ddl record version in the ordered set where recordSetId = ? and recordSetVersion = ?.
|
static DDLRecordVersion |
fetchByR_R_Last(long recordSetId,
java.lang.String recordSetVersion,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the last ddl record version in the ordered set where recordSetId = ? and recordSetVersion = ?.
|
static DDLRecordVersion |
fetchByR_S_First(long recordId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the first ddl record version in the ordered set where recordId = ? and status = ?.
|
static DDLRecordVersion |
fetchByR_S_Last(long recordId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the last ddl record version in the ordered set where recordId = ? and status = ?.
|
static DDLRecordVersion |
fetchByR_V(long recordId,
java.lang.String version)
Returns the ddl 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 useFinderCache)
Returns the ddl 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,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the first ddl record version in the ordered set where recordId = ?.
|
static DDLRecordVersion |
fetchByRecordId_Last(long recordId,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the last ddl record version in the ordered set where recordId = ?.
|
static DDLRecordVersion |
fetchByU_R_R_S_First(long userId,
long recordSetId,
java.lang.String recordSetVersion,
int status,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the first ddl record version in the ordered set where userId = ? and recordSetId = ? and recordSetVersion = ? and status = ?.
|
static DDLRecordVersion |
fetchByU_R_R_S_Last(long userId,
long recordSetId,
java.lang.String recordSetVersion,
int status,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the last ddl record version in the ordered set where userId = ? and recordSetId = ? and recordSetVersion = ? and status = ?.
|
static java.util.List<DDLRecordVersion> |
findAll()
Returns all the ddl record versions.
|
static java.util.List<DDLRecordVersion> |
findAll(int start,
int end)
Returns a range of all the ddl record versions.
|
static java.util.List<DDLRecordVersion> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns an ordered range of all the ddl record versions.
|
static java.util.List<DDLRecordVersion> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ddl record versions.
|
static DDLRecordVersion |
findByPrimaryKey(long recordVersionId)
Returns the ddl record version with the primary key or throws a
NoSuchRecordVersionException if it could not be found. |
static DDLRecordVersion |
findByR_R_First(long recordSetId,
java.lang.String recordSetVersion,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the first ddl record version in the ordered set where recordSetId = ? and recordSetVersion = ?.
|
static DDLRecordVersion |
findByR_R_Last(long recordSetId,
java.lang.String recordSetVersion,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the last ddl record version in the ordered set where recordSetId = ? and recordSetVersion = ?.
|
static DDLRecordVersion[] |
findByR_R_PrevAndNext(long recordVersionId,
long recordSetId,
java.lang.String recordSetVersion,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the ddl record versions before and after the current ddl record version in the ordered set where recordSetId = ? and recordSetVersion = ?.
|
static java.util.List<DDLRecordVersion> |
findByR_R(long recordSetId,
java.lang.String recordSetVersion)
Returns all the ddl record versions where recordSetId = ? and recordSetVersion = ?.
|
static java.util.List<DDLRecordVersion> |
findByR_R(long recordSetId,
java.lang.String recordSetVersion,
int start,
int end)
Returns a range of all the ddl record versions where recordSetId = ? and recordSetVersion = ?.
|
static java.util.List<DDLRecordVersion> |
findByR_R(long recordSetId,
java.lang.String recordSetVersion,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns an ordered range of all the ddl record versions where recordSetId = ? and recordSetVersion = ?.
|
static java.util.List<DDLRecordVersion> |
findByR_R(long recordSetId,
java.lang.String recordSetVersion,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ddl record versions where recordSetId = ? and recordSetVersion = ?.
|
static DDLRecordVersion |
findByR_S_First(long recordId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the first ddl record version in the ordered set where recordId = ? and status = ?.
|
static DDLRecordVersion |
findByR_S_Last(long recordId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the last ddl record version in the ordered set where recordId = ? and status = ?.
|
static DDLRecordVersion[] |
findByR_S_PrevAndNext(long recordVersionId,
long recordId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the ddl record versions before and after the current ddl record version in the ordered set where recordId = ? and status = ?.
|
static java.util.List<DDLRecordVersion> |
findByR_S(long recordId,
int status)
Returns all the ddl 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 ddl record versions where recordId = ? and status = ?.
|
static java.util.List<DDLRecordVersion> |
findByR_S(long recordId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns an ordered range of all the ddl record versions where recordId = ? and status = ?.
|
static java.util.List<DDLRecordVersion> |
findByR_S(long recordId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ddl record versions where recordId = ? and status = ?.
|
static DDLRecordVersion |
findByR_V(long recordId,
java.lang.String version)
Returns the ddl record version where recordId = ? and version = ? or throws a
NoSuchRecordVersionException if it could not be found. |
static DDLRecordVersion |
findByRecordId_First(long recordId,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the first ddl record version in the ordered set where recordId = ?.
|
static DDLRecordVersion |
findByRecordId_Last(long recordId,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the last ddl record version in the ordered set where recordId = ?.
|
static DDLRecordVersion[] |
findByRecordId_PrevAndNext(long recordVersionId,
long recordId,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the ddl record versions before and after the current ddl record version in the ordered set where recordId = ?.
|
static java.util.List<DDLRecordVersion> |
findByRecordId(long recordId)
Returns all the ddl record versions where recordId = ?.
|
static java.util.List<DDLRecordVersion> |
findByRecordId(long recordId,
int start,
int end)
Returns a range of all the ddl record versions where recordId = ?.
|
static java.util.List<DDLRecordVersion> |
findByRecordId(long recordId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns an ordered range of all the ddl record versions where recordId = ?.
|
static java.util.List<DDLRecordVersion> |
findByRecordId(long recordId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ddl record versions where recordId = ?.
|
static DDLRecordVersion |
findByU_R_R_S_First(long userId,
long recordSetId,
java.lang.String recordSetVersion,
int status,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the first ddl record version in the ordered set where userId = ? and recordSetId = ? and recordSetVersion = ? and status = ?.
|
static DDLRecordVersion |
findByU_R_R_S_Last(long userId,
long recordSetId,
java.lang.String recordSetVersion,
int status,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the last ddl record version in the ordered set where userId = ? and recordSetId = ? and recordSetVersion = ? and status = ?.
|
static DDLRecordVersion[] |
findByU_R_R_S_PrevAndNext(long recordVersionId,
long userId,
long recordSetId,
java.lang.String recordSetVersion,
int status,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns the ddl record versions before and after the current ddl record version in the ordered set where userId = ? and recordSetId = ? and recordSetVersion = ? and status = ?.
|
static java.util.List<DDLRecordVersion> |
findByU_R_R_S(long userId,
long recordSetId,
java.lang.String recordSetVersion,
int status)
Returns all the ddl record versions where userId = ? and recordSetId = ? and recordSetVersion = ? and status = ?.
|
static java.util.List<DDLRecordVersion> |
findByU_R_R_S(long userId,
long recordSetId,
java.lang.String recordSetVersion,
int status,
int start,
int end)
Returns a range of all the ddl record versions where userId = ? and recordSetId = ? and recordSetVersion = ? and status = ?.
|
static java.util.List<DDLRecordVersion> |
findByU_R_R_S(long userId,
long recordSetId,
java.lang.String recordSetVersion,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns an ordered range of all the ddl record versions where userId = ? and recordSetId = ? and recordSetVersion = ? and status = ?.
|
static java.util.List<DDLRecordVersion> |
findByU_R_R_S(long userId,
long recordSetId,
java.lang.String recordSetVersion,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ddl record versions where userId = ? and recordSetId = ? and recordSetVersion = ? and status = ?.
|
static java.util.List<DDLRecordVersion> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<DDLRecordVersion> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<DDLRecordVersion> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator) |
static DDLRecordVersionPersistence |
getPersistence() |
static DDLRecordVersion |
remove(long recordVersionId)
Removes the ddl record version with the primary key from the database.
|
static void |
removeAll()
Removes all the ddl record versions from the database.
|
static void |
removeByR_R(long recordSetId,
java.lang.String recordSetVersion)
Removes all the ddl record versions where recordSetId = ? and recordSetVersion = ? from the database.
|
static void |
removeByR_S(long recordId,
int status)
Removes all the ddl record versions where recordId = ? and status = ? from the database.
|
static DDLRecordVersion |
removeByR_V(long recordId,
java.lang.String version)
Removes the ddl record version where recordId = ? and version = ? from the database.
|
static void |
removeByRecordId(long recordId)
Removes all the ddl record versions where recordId = ? from the database.
|
static void |
removeByU_R_R_S(long userId,
long recordSetId,
java.lang.String recordSetVersion,
int status)
Removes all the ddl record versions where userId = ? and recordSetId = ? and recordSetVersion = ? and status = ? from the database.
|
static DDLRecordVersion |
update(DDLRecordVersion ddlRecordVersion) |
static DDLRecordVersion |
update(DDLRecordVersion ddlRecordVersion,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static DDLRecordVersion |
updateImpl(DDLRecordVersion ddlRecordVersion) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(DDLRecordVersion ddlRecordVersion)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,DDLRecordVersion> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<DDLRecordVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<DDLRecordVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<DDLRecordVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static DDLRecordVersion update(DDLRecordVersion ddlRecordVersion)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static DDLRecordVersion update(DDLRecordVersion ddlRecordVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<DDLRecordVersion> findByRecordId(long recordId)
recordId
- the record IDpublic static java.util.List<DDLRecordVersion> findByRecordId(long recordId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from DDLRecordVersionModelImpl
.
recordId
- the record IDstart
- the lower bound of the range of ddl record versionsend
- the upper bound of the range of ddl record versions (not inclusive)public static java.util.List<DDLRecordVersion> findByRecordId(long recordId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from DDLRecordVersionModelImpl
.
recordId
- the record IDstart
- the lower bound of the range of ddl record versionsend
- the upper bound of the range of ddl record versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<DDLRecordVersion> findByRecordId(long recordId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DDLRecordVersionModelImpl
.
recordId
- the record IDstart
- the lower bound of the range of ddl record versionsend
- the upper bound of the range of ddl record versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static DDLRecordVersion findByRecordId_First(long recordId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator) throws NoSuchRecordVersionException
recordId
- the record IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecordVersionException
- if a matching ddl record version could not be foundpublic static DDLRecordVersion fetchByRecordId_First(long recordId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
recordId
- the record IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddl record version could not be foundpublic static DDLRecordVersion findByRecordId_Last(long recordId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator) throws NoSuchRecordVersionException
recordId
- the record IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecordVersionException
- if a matching ddl record version could not be foundpublic static DDLRecordVersion fetchByRecordId_Last(long recordId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
recordId
- the record IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddl record version could not be foundpublic static DDLRecordVersion[] findByRecordId_PrevAndNext(long recordVersionId, long recordId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator) throws NoSuchRecordVersionException
recordVersionId
- the primary key of the current ddl record versionrecordId
- the record IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecordVersionException
- if a ddl record version with the primary key could not be foundpublic static void removeByRecordId(long recordId)
recordId
- the record IDpublic static int countByRecordId(long recordId)
recordId
- the record IDpublic static java.util.List<DDLRecordVersion> findByR_R(long recordSetId, java.lang.String recordSetVersion)
recordSetId
- the record set IDrecordSetVersion
- the record set versionpublic static java.util.List<DDLRecordVersion> findByR_R(long recordSetId, java.lang.String recordSetVersion, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from DDLRecordVersionModelImpl
.
recordSetId
- the record set IDrecordSetVersion
- the record set versionstart
- the lower bound of the range of ddl record versionsend
- the upper bound of the range of ddl record versions (not inclusive)public static java.util.List<DDLRecordVersion> findByR_R(long recordSetId, java.lang.String recordSetVersion, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from DDLRecordVersionModelImpl
.
recordSetId
- the record set IDrecordSetVersion
- the record set versionstart
- the lower bound of the range of ddl record versionsend
- the upper bound of the range of ddl record versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<DDLRecordVersion> findByR_R(long recordSetId, java.lang.String recordSetVersion, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DDLRecordVersionModelImpl
.
recordSetId
- the record set IDrecordSetVersion
- the record set versionstart
- the lower bound of the range of ddl record versionsend
- the upper bound of the range of ddl record versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static DDLRecordVersion findByR_R_First(long recordSetId, java.lang.String recordSetVersion, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator) throws NoSuchRecordVersionException
recordSetId
- the record set IDrecordSetVersion
- the record set versionorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecordVersionException
- if a matching ddl record version could not be foundpublic static DDLRecordVersion fetchByR_R_First(long recordSetId, java.lang.String recordSetVersion, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
recordSetId
- the record set IDrecordSetVersion
- the record set versionorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddl record version could not be foundpublic static DDLRecordVersion findByR_R_Last(long recordSetId, java.lang.String recordSetVersion, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator) throws NoSuchRecordVersionException
recordSetId
- the record set IDrecordSetVersion
- the record set versionorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecordVersionException
- if a matching ddl record version could not be foundpublic static DDLRecordVersion fetchByR_R_Last(long recordSetId, java.lang.String recordSetVersion, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
recordSetId
- the record set IDrecordSetVersion
- the record set versionorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddl record version could not be foundpublic static DDLRecordVersion[] findByR_R_PrevAndNext(long recordVersionId, long recordSetId, java.lang.String recordSetVersion, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator) throws NoSuchRecordVersionException
recordVersionId
- the primary key of the current ddl record versionrecordSetId
- the record set IDrecordSetVersion
- the record set versionorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecordVersionException
- if a ddl record version with the primary key could not be foundpublic static void removeByR_R(long recordSetId, java.lang.String recordSetVersion)
recordSetId
- the record set IDrecordSetVersion
- the record set versionpublic static int countByR_R(long recordSetId, java.lang.String recordSetVersion)
recordSetId
- the record set IDrecordSetVersion
- the record set versionpublic static DDLRecordVersion findByR_V(long recordId, java.lang.String version) throws NoSuchRecordVersionException
NoSuchRecordVersionException
if it could not be found.recordId
- the record IDversion
- the versionNoSuchRecordVersionException
- if a matching ddl record version could not be foundpublic static DDLRecordVersion fetchByR_V(long recordId, java.lang.String version)
null
if it could not be found. Uses the finder cache.recordId
- the record IDversion
- the versionnull
if a matching ddl record version could not be foundpublic static DDLRecordVersion fetchByR_V(long recordId, java.lang.String version, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.recordId
- the record IDversion
- the versionuseFinderCache
- whether to use the finder cachenull
if a matching ddl record version could not be foundpublic static DDLRecordVersion removeByR_V(long recordId, java.lang.String version) throws NoSuchRecordVersionException
recordId
- the record IDversion
- the versionNoSuchRecordVersionException
public static int countByR_V(long recordId, java.lang.String version)
recordId
- the record IDversion
- the versionpublic static java.util.List<DDLRecordVersion> findByR_S(long recordId, int status)
recordId
- the record IDstatus
- the statuspublic static java.util.List<DDLRecordVersion> findByR_S(long recordId, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from DDLRecordVersionModelImpl
.
recordId
- the record IDstatus
- the statusstart
- the lower bound of the range of ddl record versionsend
- the upper bound of the range of ddl record versions (not inclusive)public static java.util.List<DDLRecordVersion> findByR_S(long recordId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from DDLRecordVersionModelImpl
.
recordId
- the record IDstatus
- the statusstart
- the lower bound of the range of ddl record versionsend
- the upper bound of the range of ddl record versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<DDLRecordVersion> findByR_S(long recordId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DDLRecordVersionModelImpl
.
recordId
- the record IDstatus
- the statusstart
- the lower bound of the range of ddl record versionsend
- the upper bound of the range of ddl record versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static DDLRecordVersion findByR_S_First(long recordId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator) throws NoSuchRecordVersionException
recordId
- the record IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecordVersionException
- if a matching ddl record version could not be foundpublic static DDLRecordVersion fetchByR_S_First(long recordId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
recordId
- the record IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddl record version could not be foundpublic static DDLRecordVersion findByR_S_Last(long recordId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator) throws NoSuchRecordVersionException
recordId
- the record IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecordVersionException
- if a matching ddl record version could not be foundpublic static DDLRecordVersion fetchByR_S_Last(long recordId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
recordId
- the record IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddl record version could not be foundpublic static DDLRecordVersion[] findByR_S_PrevAndNext(long recordVersionId, long recordId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator) throws NoSuchRecordVersionException
recordVersionId
- the primary key of the current ddl record versionrecordId
- the record IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecordVersionException
- if a ddl record version with the primary key could not be foundpublic static void removeByR_S(long recordId, int status)
recordId
- the record IDstatus
- the statuspublic static int countByR_S(long recordId, int status)
recordId
- the record IDstatus
- the statuspublic static java.util.List<DDLRecordVersion> findByU_R_R_S(long userId, long recordSetId, java.lang.String recordSetVersion, int status)
userId
- the user IDrecordSetId
- the record set IDrecordSetVersion
- the record set versionstatus
- the statuspublic static java.util.List<DDLRecordVersion> findByU_R_R_S(long userId, long recordSetId, java.lang.String recordSetVersion, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from DDLRecordVersionModelImpl
.
userId
- the user IDrecordSetId
- the record set IDrecordSetVersion
- the record set versionstatus
- the statusstart
- the lower bound of the range of ddl record versionsend
- the upper bound of the range of ddl record versions (not inclusive)public static java.util.List<DDLRecordVersion> findByU_R_R_S(long userId, long recordSetId, java.lang.String recordSetVersion, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from DDLRecordVersionModelImpl
.
userId
- the user IDrecordSetId
- the record set IDrecordSetVersion
- the record set versionstatus
- the statusstart
- the lower bound of the range of ddl record versionsend
- the upper bound of the range of ddl record versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<DDLRecordVersion> findByU_R_R_S(long userId, long recordSetId, java.lang.String recordSetVersion, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DDLRecordVersionModelImpl
.
userId
- the user IDrecordSetId
- the record set IDrecordSetVersion
- the record set versionstatus
- the statusstart
- the lower bound of the range of ddl record versionsend
- the upper bound of the range of ddl record versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static DDLRecordVersion findByU_R_R_S_First(long userId, long recordSetId, java.lang.String recordSetVersion, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator) throws NoSuchRecordVersionException
userId
- the user IDrecordSetId
- the record set IDrecordSetVersion
- the record set versionstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecordVersionException
- if a matching ddl record version could not be foundpublic static DDLRecordVersion fetchByU_R_R_S_First(long userId, long recordSetId, java.lang.String recordSetVersion, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
userId
- the user IDrecordSetId
- the record set IDrecordSetVersion
- the record set versionstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddl record version could not be foundpublic static DDLRecordVersion findByU_R_R_S_Last(long userId, long recordSetId, java.lang.String recordSetVersion, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator) throws NoSuchRecordVersionException
userId
- the user IDrecordSetId
- the record set IDrecordSetVersion
- the record set versionstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecordVersionException
- if a matching ddl record version could not be foundpublic static DDLRecordVersion fetchByU_R_R_S_Last(long userId, long recordSetId, java.lang.String recordSetVersion, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
userId
- the user IDrecordSetId
- the record set IDrecordSetVersion
- the record set versionstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddl record version could not be foundpublic static DDLRecordVersion[] findByU_R_R_S_PrevAndNext(long recordVersionId, long userId, long recordSetId, java.lang.String recordSetVersion, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator) throws NoSuchRecordVersionException
recordVersionId
- the primary key of the current ddl record versionuserId
- the user IDrecordSetId
- the record set IDrecordSetVersion
- the record set versionstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecordVersionException
- if a ddl record version with the primary key could not be foundpublic static void removeByU_R_R_S(long userId, long recordSetId, java.lang.String recordSetVersion, int status)
userId
- the user IDrecordSetId
- the record set IDrecordSetVersion
- the record set versionstatus
- the statuspublic static int countByU_R_R_S(long userId, long recordSetId, java.lang.String recordSetVersion, int status)
userId
- the user IDrecordSetId
- the record set IDrecordSetVersion
- the record set versionstatus
- the statuspublic static void cacheResult(DDLRecordVersion ddlRecordVersion)
ddlRecordVersion
- the ddl record versionpublic static void cacheResult(java.util.List<DDLRecordVersion> ddlRecordVersions)
ddlRecordVersions
- the ddl record versionspublic static DDLRecordVersion create(long recordVersionId)
recordVersionId
- the primary key for the new ddl record versionpublic static DDLRecordVersion remove(long recordVersionId) throws NoSuchRecordVersionException
recordVersionId
- the primary key of the ddl record versionNoSuchRecordVersionException
- if a ddl record version with the primary key could not be foundpublic static DDLRecordVersion updateImpl(DDLRecordVersion ddlRecordVersion)
public static DDLRecordVersion findByPrimaryKey(long recordVersionId) throws NoSuchRecordVersionException
NoSuchRecordVersionException
if it could not be found.recordVersionId
- the primary key of the ddl record versionNoSuchRecordVersionException
- if a ddl record version with the primary key could not be foundpublic static DDLRecordVersion fetchByPrimaryKey(long recordVersionId)
null
if it could not be found.recordVersionId
- the primary key of the ddl record versionnull
if a ddl record version with the primary key could not be foundpublic static java.util.List<DDLRecordVersion> findAll()
public static java.util.List<DDLRecordVersion> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from DDLRecordVersionModelImpl
.
start
- the lower bound of the range of ddl record versionsend
- the upper bound of the range of ddl record versions (not inclusive)public static java.util.List<DDLRecordVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from DDLRecordVersionModelImpl
.
start
- the lower bound of the range of ddl record versionsend
- the upper bound of the range of ddl record versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<DDLRecordVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DDLRecordVersionModelImpl
.
start
- the lower bound of the range of ddl record versionsend
- the upper bound of the range of ddl record versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static DDLRecordVersionPersistence getPersistence()