Class DDLRecordSetVersionUtil
com.liferay.dynamic.data.lists.service.persistence.impl.DDLRecordSetVersionPersistenceImpl 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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(DDLRecordSetVersion ddlRecordSetVersion) Caches the ddl record set version in the entity cache if it is enabled.static voidcacheResult(List<DDLRecordSetVersion> ddlRecordSetVersions) Caches the ddl record set versions in the entity cache if it is enabled.static voidstatic voidclearCache(DDLRecordSetVersion ddlRecordSetVersion) static intcountAll()Returns the number of ddl record set versions.static intcountByRecordSetId(long recordSetId) Returns the number of ddl record set versions where recordSetId = ?.static intcountByRS_S(long recordSetId, int status) Returns the number of ddl record set versions where recordSetId = ? and status = ?.static intcountByRS_V(long recordSetId, String version) Returns the number of ddl record set versions where recordSetId = ? and version = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static DDLRecordSetVersioncreate(long recordSetVersionId) Creates a new ddl record set version with the primary key.static DDLRecordSetVersionfetchByPrimaryKey(long recordSetVersionId) Returns the ddl record set version with the primary key or returnsnullif it could not be found.static Map<Serializable,DDLRecordSetVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static DDLRecordSetVersionfetchByRecordSetId_First(long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns the first ddl record set version in the ordered set where recordSetId = ?.static DDLRecordSetVersionfetchByRecordSetId_Last(long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns the last ddl record set version in the ordered set where recordSetId = ?.static DDLRecordSetVersionfetchByRS_S_First(long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns the first ddl record set version in the ordered set where recordSetId = ? and status = ?.static DDLRecordSetVersionfetchByRS_S_Last(long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns the last ddl record set version in the ordered set where recordSetId = ? and status = ?.static DDLRecordSetVersionfetchByRS_V(long recordSetId, String version) Returns the ddl record set version where recordSetId = ? and version = ? or returnsnullif it could not be found.static DDLRecordSetVersionfetchByRS_V(long recordSetId, String version, boolean useFinderCache) Returns the ddl record set version where recordSetId = ? and version = ? or returnsnullif it could not be found, optionally using the finder cache.static List<DDLRecordSetVersion>findAll()Returns all the ddl record set versions.static List<DDLRecordSetVersion>findAll(int start, int end) Returns a range of all the ddl record set versions.static List<DDLRecordSetVersion>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns an ordered range of all the ddl record set versions.static List<DDLRecordSetVersion>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddl record set versions.static DDLRecordSetVersionfindByPrimaryKey(long recordSetVersionId) Returns the ddl record set version with the primary key or throws aNoSuchRecordSetVersionExceptionif it could not be found.static List<DDLRecordSetVersion>findByRecordSetId(long recordSetId) Returns all the ddl record set versions where recordSetId = ?.static List<DDLRecordSetVersion>findByRecordSetId(long recordSetId, int start, int end) Returns a range of all the ddl record set versions where recordSetId = ?.static List<DDLRecordSetVersion>findByRecordSetId(long recordSetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns an ordered range of all the ddl record set versions where recordSetId = ?.static List<DDLRecordSetVersion>findByRecordSetId(long recordSetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddl record set versions where recordSetId = ?.static DDLRecordSetVersionfindByRecordSetId_First(long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns the first ddl record set version in the ordered set where recordSetId = ?.static DDLRecordSetVersionfindByRecordSetId_Last(long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns the last ddl record set version in the ordered set where recordSetId = ?.static DDLRecordSetVersion[]findByRecordSetId_PrevAndNext(long recordSetVersionId, long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns the ddl record set versions before and after the current ddl record set version in the ordered set where recordSetId = ?.static List<DDLRecordSetVersion>findByRS_S(long recordSetId, int status) Returns all the ddl record set versions where recordSetId = ? and status = ?.static List<DDLRecordSetVersion>findByRS_S(long recordSetId, int status, int start, int end) Returns a range of all the ddl record set versions where recordSetId = ? and status = ?.static List<DDLRecordSetVersion>findByRS_S(long recordSetId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns an ordered range of all the ddl record set versions where recordSetId = ? and status = ?.static List<DDLRecordSetVersion>findByRS_S(long recordSetId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddl record set versions where recordSetId = ? and status = ?.static DDLRecordSetVersionfindByRS_S_First(long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns the first ddl record set version in the ordered set where recordSetId = ? and status = ?.static DDLRecordSetVersionfindByRS_S_Last(long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns the last ddl record set version in the ordered set where recordSetId = ? and status = ?.static DDLRecordSetVersion[]findByRS_S_PrevAndNext(long recordSetVersionId, long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns the ddl record set versions before and after the current ddl record set version in the ordered set where recordSetId = ? and status = ?.static DDLRecordSetVersionfindByRS_V(long recordSetId, String version) Returns the ddl record set version where recordSetId = ? and version = ? or throws aNoSuchRecordSetVersionExceptionif it could not be found.static List<DDLRecordSetVersion>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<DDLRecordSetVersion>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<DDLRecordSetVersion>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) static DDLRecordSetVersionremove(long recordSetVersionId) Removes the ddl record set version with the primary key from the database.static voidRemoves all the ddl record set versions from the database.static voidremoveByRecordSetId(long recordSetId) Removes all the ddl record set versions where recordSetId = ? from the database.static voidremoveByRS_S(long recordSetId, int status) Removes all the ddl record set versions where recordSetId = ? and status = ? from the database.static DDLRecordSetVersionremoveByRS_V(long recordSetId, String version) Removes the ddl record set version where recordSetId = ? and version = ? from the database.static voidsetPersistence(DDLRecordSetVersionPersistence persistence) static DDLRecordSetVersionupdate(DDLRecordSetVersion ddlRecordSetVersion) static DDLRecordSetVersionupdate(DDLRecordSetVersion ddlRecordSetVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DDLRecordSetVersionupdateImpl(DDLRecordSetVersion ddlRecordSetVersion)
-
Constructor Details
-
DDLRecordSetVersionUtil
public DDLRecordSetVersionUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,DDLRecordSetVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<DDLRecordSetVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<DDLRecordSetVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<DDLRecordSetVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static DDLRecordSetVersion update(DDLRecordSetVersion ddlRecordSetVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByRecordSetId
Returns all the ddl record set versions where recordSetId = ?.- Parameters:
recordSetId- the record set ID- Returns:
- the matching ddl record set versions
-
findByRecordSetId
Returns a range of all the ddl record set versions where recordSetId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDDLRecordSetVersionModelImpl.- Parameters:
recordSetId- the record set IDstart- the lower bound of the range of ddl record set versionsend- the upper bound of the range of ddl record set versions (not inclusive)- Returns:
- the range of matching ddl record set versions
-
findByRecordSetId
public static List<DDLRecordSetVersion> findByRecordSetId(long recordSetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns an ordered range of all the ddl record set versions where recordSetId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDDLRecordSetVersionModelImpl.- Parameters:
recordSetId- the record set IDstart- the lower bound of the range of ddl record set versionsend- the upper bound of the range of ddl record set versions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching ddl record set versions
-
findByRecordSetId
public static List<DDLRecordSetVersion> findByRecordSetId(long recordSetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddl record set versions where recordSetId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDDLRecordSetVersionModelImpl.- Parameters:
recordSetId- the record set IDstart- the lower bound of the range of ddl record set versionsend- the upper bound of the range of ddl record set versions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching ddl record set versions
-
findByRecordSetId_First
public static DDLRecordSetVersion findByRecordSetId_First(long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) throws NoSuchRecordSetVersionException Returns the first ddl record set version in the ordered set where recordSetId = ?.- Parameters:
recordSetId- the record set IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching ddl record set version
- Throws:
NoSuchRecordSetVersionException- if a matching ddl record set version could not be foundNoSuchRecordSetVersionException
-
fetchByRecordSetId_First
public static DDLRecordSetVersion fetchByRecordSetId_First(long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns the first ddl record set version in the ordered set where recordSetId = ?.- Parameters:
recordSetId- the record set IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching ddl record set version, or
nullif a matching ddl record set version could not be found
-
findByRecordSetId_Last
public static DDLRecordSetVersion findByRecordSetId_Last(long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) throws NoSuchRecordSetVersionException Returns the last ddl record set version in the ordered set where recordSetId = ?.- Parameters:
recordSetId- the record set IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching ddl record set version
- Throws:
NoSuchRecordSetVersionException- if a matching ddl record set version could not be foundNoSuchRecordSetVersionException
-
fetchByRecordSetId_Last
public static DDLRecordSetVersion fetchByRecordSetId_Last(long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns the last ddl record set version in the ordered set where recordSetId = ?.- Parameters:
recordSetId- the record set IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching ddl record set version, or
nullif a matching ddl record set version could not be found
-
findByRecordSetId_PrevAndNext
public static DDLRecordSetVersion[] findByRecordSetId_PrevAndNext(long recordSetVersionId, long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) throws NoSuchRecordSetVersionException Returns the ddl record set versions before and after the current ddl record set version in the ordered set where recordSetId = ?.- Parameters:
recordSetVersionId- the primary key of the current ddl record set versionrecordSetId- the record set IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next ddl record set version
- Throws:
NoSuchRecordSetVersionException- if a ddl record set version with the primary key could not be foundNoSuchRecordSetVersionException
-
removeByRecordSetId
public static void removeByRecordSetId(long recordSetId) Removes all the ddl record set versions where recordSetId = ? from the database.- Parameters:
recordSetId- the record set ID
-
countByRecordSetId
public static int countByRecordSetId(long recordSetId) Returns the number of ddl record set versions where recordSetId = ?.- Parameters:
recordSetId- the record set ID- Returns:
- the number of matching ddl record set versions
-
findByRS_V
public static DDLRecordSetVersion findByRS_V(long recordSetId, String version) throws NoSuchRecordSetVersionException Returns the ddl record set version where recordSetId = ? and version = ? or throws aNoSuchRecordSetVersionExceptionif it could not be found.- Parameters:
recordSetId- the record set IDversion- the version- Returns:
- the matching ddl record set version
- Throws:
NoSuchRecordSetVersionException- if a matching ddl record set version could not be foundNoSuchRecordSetVersionException
-
fetchByRS_V
Returns the ddl record set version where recordSetId = ? and version = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
recordSetId- the record set IDversion- the version- Returns:
- the matching ddl record set version, or
nullif a matching ddl record set version could not be found
-
fetchByRS_V
public static DDLRecordSetVersion fetchByRS_V(long recordSetId, String version, boolean useFinderCache) Returns the ddl record set version where recordSetId = ? and version = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
recordSetId- the record set IDversion- the versionuseFinderCache- whether to use the finder cache- Returns:
- the matching ddl record set version, or
nullif a matching ddl record set version could not be found
-
removeByRS_V
public static DDLRecordSetVersion removeByRS_V(long recordSetId, String version) throws NoSuchRecordSetVersionException Removes the ddl record set version where recordSetId = ? and version = ? from the database.- Parameters:
recordSetId- the record set IDversion- the version- Returns:
- the ddl record set version that was removed
- Throws:
NoSuchRecordSetVersionException
-
countByRS_V
Returns the number of ddl record set versions where recordSetId = ? and version = ?.- Parameters:
recordSetId- the record set IDversion- the version- Returns:
- the number of matching ddl record set versions
-
findByRS_S
Returns all the ddl record set versions where recordSetId = ? and status = ?.- Parameters:
recordSetId- the record set IDstatus- the status- Returns:
- the matching ddl record set versions
-
findByRS_S
public static List<DDLRecordSetVersion> findByRS_S(long recordSetId, int status, int start, int end) Returns a range of all the ddl record set versions where recordSetId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDDLRecordSetVersionModelImpl.- Parameters:
recordSetId- the record set IDstatus- the statusstart- the lower bound of the range of ddl record set versionsend- the upper bound of the range of ddl record set versions (not inclusive)- Returns:
- the range of matching ddl record set versions
-
findByRS_S
public static List<DDLRecordSetVersion> findByRS_S(long recordSetId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns an ordered range of all the ddl record set versions where recordSetId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDDLRecordSetVersionModelImpl.- Parameters:
recordSetId- the record set IDstatus- the statusstart- the lower bound of the range of ddl record set versionsend- the upper bound of the range of ddl record set versions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching ddl record set versions
-
findByRS_S
public static List<DDLRecordSetVersion> findByRS_S(long recordSetId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddl record set versions where recordSetId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDDLRecordSetVersionModelImpl.- Parameters:
recordSetId- the record set IDstatus- the statusstart- the lower bound of the range of ddl record set versionsend- the upper bound of the range of ddl record set versions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching ddl record set versions
-
findByRS_S_First
public static DDLRecordSetVersion findByRS_S_First(long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) throws NoSuchRecordSetVersionException Returns the first ddl record set version in the ordered set where recordSetId = ? and status = ?.- Parameters:
recordSetId- the record set IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching ddl record set version
- Throws:
NoSuchRecordSetVersionException- if a matching ddl record set version could not be foundNoSuchRecordSetVersionException
-
fetchByRS_S_First
public static DDLRecordSetVersion fetchByRS_S_First(long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns the first ddl record set version in the ordered set where recordSetId = ? and status = ?.- Parameters:
recordSetId- the record set IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching ddl record set version, or
nullif a matching ddl record set version could not be found
-
findByRS_S_Last
public static DDLRecordSetVersion findByRS_S_Last(long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) throws NoSuchRecordSetVersionException Returns the last ddl record set version in the ordered set where recordSetId = ? and status = ?.- Parameters:
recordSetId- the record set IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching ddl record set version
- Throws:
NoSuchRecordSetVersionException- if a matching ddl record set version could not be foundNoSuchRecordSetVersionException
-
fetchByRS_S_Last
public static DDLRecordSetVersion fetchByRS_S_Last(long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns the last ddl record set version in the ordered set where recordSetId = ? and status = ?.- Parameters:
recordSetId- the record set IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching ddl record set version, or
nullif a matching ddl record set version could not be found
-
findByRS_S_PrevAndNext
public static DDLRecordSetVersion[] findByRS_S_PrevAndNext(long recordSetVersionId, long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) throws NoSuchRecordSetVersionException Returns the ddl record set versions before and after the current ddl record set version in the ordered set where recordSetId = ? and status = ?.- Parameters:
recordSetVersionId- the primary key of the current ddl record set versionrecordSetId- the record set IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next ddl record set version
- Throws:
NoSuchRecordSetVersionException- if a ddl record set version with the primary key could not be foundNoSuchRecordSetVersionException
-
removeByRS_S
public static void removeByRS_S(long recordSetId, int status) Removes all the ddl record set versions where recordSetId = ? and status = ? from the database.- Parameters:
recordSetId- the record set IDstatus- the status
-
countByRS_S
public static int countByRS_S(long recordSetId, int status) Returns the number of ddl record set versions where recordSetId = ? and status = ?.- Parameters:
recordSetId- the record set IDstatus- the status- Returns:
- the number of matching ddl record set versions
-
cacheResult
Caches the ddl record set version in the entity cache if it is enabled.- Parameters:
ddlRecordSetVersion- the ddl record set version
-
cacheResult
Caches the ddl record set versions in the entity cache if it is enabled.- Parameters:
ddlRecordSetVersions- the ddl record set versions
-
create
Creates a new ddl record set version with the primary key. Does not add the ddl record set version to the database.- Parameters:
recordSetVersionId- the primary key for the new ddl record set version- Returns:
- the new ddl record set version
-
remove
public static DDLRecordSetVersion remove(long recordSetVersionId) throws NoSuchRecordSetVersionException Removes the ddl record set version with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
recordSetVersionId- the primary key of the ddl record set version- Returns:
- the ddl record set version that was removed
- Throws:
NoSuchRecordSetVersionException- if a ddl record set version with the primary key could not be foundNoSuchRecordSetVersionException
-
updateImpl
-
findByPrimaryKey
public static DDLRecordSetVersion findByPrimaryKey(long recordSetVersionId) throws NoSuchRecordSetVersionException Returns the ddl record set version with the primary key or throws aNoSuchRecordSetVersionExceptionif it could not be found.- Parameters:
recordSetVersionId- the primary key of the ddl record set version- Returns:
- the ddl record set version
- Throws:
NoSuchRecordSetVersionException- if a ddl record set version with the primary key could not be foundNoSuchRecordSetVersionException
-
fetchByPrimaryKey
Returns the ddl record set version with the primary key or returnsnullif it could not be found.- Parameters:
recordSetVersionId- the primary key of the ddl record set version- Returns:
- the ddl record set version, or
nullif a ddl record set version with the primary key could not be found
-
findAll
Returns all the ddl record set versions.- Returns:
- the ddl record set versions
-
findAll
Returns a range of all the ddl record set versions.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDDLRecordSetVersionModelImpl.- Parameters:
start- the lower bound of the range of ddl record set versionsend- the upper bound of the range of ddl record set versions (not inclusive)- Returns:
- the range of ddl record set versions
-
findAll
public static List<DDLRecordSetVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) Returns an ordered range of all the ddl record set versions.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDDLRecordSetVersionModelImpl.- Parameters:
start- the lower bound of the range of ddl record set versionsend- the upper bound of the range of ddl record set versions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of ddl record set versions
-
findAll
public static List<DDLRecordSetVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddl record set versions.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDDLRecordSetVersionModelImpl.- Parameters:
start- the lower bound of the range of ddl record set versionsend- the upper bound of the range of ddl record set versions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of ddl record set versions
-
removeAll
public static void removeAll()Removes all the ddl record set versions from the database. -
countAll
public static int countAll()Returns the number of ddl record set versions.- Returns:
- the number of ddl record set versions
-
getPersistence
-
setPersistence
-