Class DDMFormInstanceVersionUtil
com.liferay.dynamic.data.mapping.service.persistence.impl.DDMFormInstanceVersionPersistenceImpl
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 void
cacheResult
(DDMFormInstanceVersion ddmFormInstanceVersion) Caches the ddm form instance version in the entity cache if it is enabled.static void
cacheResult
(List<DDMFormInstanceVersion> ddmFormInstanceVersions) Caches the ddm form instance versions in the entity cache if it is enabled.static void
static void
clearCache
(DDMFormInstanceVersion ddmFormInstanceVersion) static int
countAll()
Returns the number of ddm form instance versions.static int
countByF_S
(long formInstanceId, int status) Returns the number of ddm form instance versions where formInstanceId = ? and status = ?.static int
countByF_V
(long formInstanceId, String version) Returns the number of ddm form instance versions where formInstanceId = ? and version = ?.static int
countByFormInstanceId
(long formInstanceId) Returns the number of ddm form instance versions where formInstanceId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static DDMFormInstanceVersion
create
(long formInstanceVersionId) Creates a new ddm form instance version with the primary key.static DDMFormInstanceVersion
fetchByF_S_First
(long formInstanceId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns the first ddm form instance version in the ordered set where formInstanceId = ? and status = ?.static DDMFormInstanceVersion
fetchByF_S_Last
(long formInstanceId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns the last ddm form instance version in the ordered set where formInstanceId = ? and status = ?.static DDMFormInstanceVersion
fetchByF_V
(long formInstanceId, String version) Returns the ddm form instance version where formInstanceId = ? and version = ? or returnsnull
if it could not be found.static DDMFormInstanceVersion
fetchByF_V
(long formInstanceId, String version, boolean useFinderCache) Returns the ddm form instance version where formInstanceId = ? and version = ? or returnsnull
if it could not be found, optionally using the finder cache.static DDMFormInstanceVersion
fetchByFormInstanceId_First
(long formInstanceId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns the first ddm form instance version in the ordered set where formInstanceId = ?.static DDMFormInstanceVersion
fetchByFormInstanceId_Last
(long formInstanceId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns the last ddm form instance version in the ordered set where formInstanceId = ?.static DDMFormInstanceVersion
fetchByPrimaryKey
(long formInstanceVersionId) Returns the ddm form instance version with the primary key or returnsnull
if it could not be found.static Map<Serializable,
DDMFormInstanceVersion> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<DDMFormInstanceVersion>
findAll()
Returns all the ddm form instance versions.static List<DDMFormInstanceVersion>
findAll
(int start, int end) Returns a range of all the ddm form instance versions.static List<DDMFormInstanceVersion>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns an ordered range of all the ddm form instance versions.static List<DDMFormInstanceVersion>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm form instance versions.static List<DDMFormInstanceVersion>
findByF_S
(long formInstanceId, int status) Returns all the ddm form instance versions where formInstanceId = ? and status = ?.static List<DDMFormInstanceVersion>
findByF_S
(long formInstanceId, int status, int start, int end) Returns a range of all the ddm form instance versions where formInstanceId = ? and status = ?.static List<DDMFormInstanceVersion>
findByF_S
(long formInstanceId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns an ordered range of all the ddm form instance versions where formInstanceId = ? and status = ?.static List<DDMFormInstanceVersion>
findByF_S
(long formInstanceId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm form instance versions where formInstanceId = ? and status = ?.static DDMFormInstanceVersion
findByF_S_First
(long formInstanceId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns the first ddm form instance version in the ordered set where formInstanceId = ? and status = ?.static DDMFormInstanceVersion
findByF_S_Last
(long formInstanceId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns the last ddm form instance version in the ordered set where formInstanceId = ? and status = ?.static DDMFormInstanceVersion[]
findByF_S_PrevAndNext
(long formInstanceVersionId, long formInstanceId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns the ddm form instance versions before and after the current ddm form instance version in the ordered set where formInstanceId = ? and status = ?.static DDMFormInstanceVersion
Returns the ddm form instance version where formInstanceId = ? and version = ? or throws aNoSuchFormInstanceVersionException
if it could not be found.static List<DDMFormInstanceVersion>
findByFormInstanceId
(long formInstanceId) Returns all the ddm form instance versions where formInstanceId = ?.static List<DDMFormInstanceVersion>
findByFormInstanceId
(long formInstanceId, int start, int end) Returns a range of all the ddm form instance versions where formInstanceId = ?.static List<DDMFormInstanceVersion>
findByFormInstanceId
(long formInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns an ordered range of all the ddm form instance versions where formInstanceId = ?.static List<DDMFormInstanceVersion>
findByFormInstanceId
(long formInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm form instance versions where formInstanceId = ?.static DDMFormInstanceVersion
findByFormInstanceId_First
(long formInstanceId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns the first ddm form instance version in the ordered set where formInstanceId = ?.static DDMFormInstanceVersion
findByFormInstanceId_Last
(long formInstanceId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns the last ddm form instance version in the ordered set where formInstanceId = ?.static DDMFormInstanceVersion[]
findByFormInstanceId_PrevAndNext
(long formInstanceVersionId, long formInstanceId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns the ddm form instance versions before and after the current ddm form instance version in the ordered set where formInstanceId = ?.static DDMFormInstanceVersion
findByPrimaryKey
(long formInstanceVersionId) Returns the ddm form instance version with the primary key or throws aNoSuchFormInstanceVersionException
if it could not be found.static List<DDMFormInstanceVersion>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<DDMFormInstanceVersion>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<DDMFormInstanceVersion>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) static DDMFormInstanceVersion
remove
(long formInstanceVersionId) Removes the ddm form instance version with the primary key from the database.static void
Removes all the ddm form instance versions from the database.static void
removeByF_S
(long formInstanceId, int status) Removes all the ddm form instance versions where formInstanceId = ? and status = ? from the database.static DDMFormInstanceVersion
removeByF_V
(long formInstanceId, String version) Removes the ddm form instance version where formInstanceId = ? and version = ? from the database.static void
removeByFormInstanceId
(long formInstanceId) Removes all the ddm form instance versions where formInstanceId = ? from the database.static void
setPersistence
(DDMFormInstanceVersionPersistence persistence) static DDMFormInstanceVersion
update
(DDMFormInstanceVersion ddmFormInstanceVersion) static DDMFormInstanceVersion
update
(DDMFormInstanceVersion ddmFormInstanceVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DDMFormInstanceVersion
updateImpl
(DDMFormInstanceVersion ddmFormInstanceVersion)
-
Constructor Details
-
DDMFormInstanceVersionUtil
public DDMFormInstanceVersionUtil()
-
-
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,DDMFormInstanceVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<DDMFormInstanceVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<DDMFormInstanceVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<DDMFormInstanceVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static DDMFormInstanceVersion update(DDMFormInstanceVersion ddmFormInstanceVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByFormInstanceId
Returns all the ddm form instance versions where formInstanceId = ?.- Parameters:
formInstanceId
- the form instance ID- Returns:
- the matching ddm form instance versions
-
findByFormInstanceId
public static List<DDMFormInstanceVersion> findByFormInstanceId(long formInstanceId, int start, int end) Returns a range of all the ddm form instance versions where formInstanceId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceVersionModelImpl
.- Parameters:
formInstanceId
- the form instance IDstart
- the lower bound of the range of ddm form instance versionsend
- the upper bound of the range of ddm form instance versions (not inclusive)- Returns:
- the range of matching ddm form instance versions
-
findByFormInstanceId
public static List<DDMFormInstanceVersion> findByFormInstanceId(long formInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns an ordered range of all the ddm form instance versions where formInstanceId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceVersionModelImpl
.- Parameters:
formInstanceId
- the form instance IDstart
- the lower bound of the range of ddm form instance versionsend
- the upper bound of the range of ddm form instance versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching ddm form instance versions
-
findByFormInstanceId
public static List<DDMFormInstanceVersion> findByFormInstanceId(long formInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm form instance versions where formInstanceId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceVersionModelImpl
.- Parameters:
formInstanceId
- the form instance IDstart
- the lower bound of the range of ddm form instance versionsend
- the upper bound of the range of ddm form instance 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 ddm form instance versions
-
findByFormInstanceId_First
public static DDMFormInstanceVersion findByFormInstanceId_First(long formInstanceId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) throws NoSuchFormInstanceVersionException Returns the first ddm form instance version in the ordered set where formInstanceId = ?.- Parameters:
formInstanceId
- the form instance IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm form instance version
- Throws:
NoSuchFormInstanceVersionException
- if a matching ddm form instance version could not be foundNoSuchFormInstanceVersionException
-
fetchByFormInstanceId_First
public static DDMFormInstanceVersion fetchByFormInstanceId_First(long formInstanceId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns the first ddm form instance version in the ordered set where formInstanceId = ?.- Parameters:
formInstanceId
- the form instance IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm form instance version, or
null
if a matching ddm form instance version could not be found
-
findByFormInstanceId_Last
public static DDMFormInstanceVersion findByFormInstanceId_Last(long formInstanceId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) throws NoSuchFormInstanceVersionException Returns the last ddm form instance version in the ordered set where formInstanceId = ?.- Parameters:
formInstanceId
- the form instance IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm form instance version
- Throws:
NoSuchFormInstanceVersionException
- if a matching ddm form instance version could not be foundNoSuchFormInstanceVersionException
-
fetchByFormInstanceId_Last
public static DDMFormInstanceVersion fetchByFormInstanceId_Last(long formInstanceId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns the last ddm form instance version in the ordered set where formInstanceId = ?.- Parameters:
formInstanceId
- the form instance IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm form instance version, or
null
if a matching ddm form instance version could not be found
-
findByFormInstanceId_PrevAndNext
public static DDMFormInstanceVersion[] findByFormInstanceId_PrevAndNext(long formInstanceVersionId, long formInstanceId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) throws NoSuchFormInstanceVersionException Returns the ddm form instance versions before and after the current ddm form instance version in the ordered set where formInstanceId = ?.- Parameters:
formInstanceVersionId
- the primary key of the current ddm form instance versionformInstanceId
- the form instance IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ddm form instance version
- Throws:
NoSuchFormInstanceVersionException
- if a ddm form instance version with the primary key could not be foundNoSuchFormInstanceVersionException
-
removeByFormInstanceId
public static void removeByFormInstanceId(long formInstanceId) Removes all the ddm form instance versions where formInstanceId = ? from the database.- Parameters:
formInstanceId
- the form instance ID
-
countByFormInstanceId
public static int countByFormInstanceId(long formInstanceId) Returns the number of ddm form instance versions where formInstanceId = ?.- Parameters:
formInstanceId
- the form instance ID- Returns:
- the number of matching ddm form instance versions
-
findByF_V
public static DDMFormInstanceVersion findByF_V(long formInstanceId, String version) throws NoSuchFormInstanceVersionException Returns the ddm form instance version where formInstanceId = ? and version = ? or throws aNoSuchFormInstanceVersionException
if it could not be found.- Parameters:
formInstanceId
- the form instance IDversion
- the version- Returns:
- the matching ddm form instance version
- Throws:
NoSuchFormInstanceVersionException
- if a matching ddm form instance version could not be foundNoSuchFormInstanceVersionException
-
fetchByF_V
Returns the ddm form instance version where formInstanceId = ? and version = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
formInstanceId
- the form instance IDversion
- the version- Returns:
- the matching ddm form instance version, or
null
if a matching ddm form instance version could not be found
-
fetchByF_V
public static DDMFormInstanceVersion fetchByF_V(long formInstanceId, String version, boolean useFinderCache) Returns the ddm form instance version where formInstanceId = ? and version = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
formInstanceId
- the form instance IDversion
- the versionuseFinderCache
- whether to use the finder cache- Returns:
- the matching ddm form instance version, or
null
if a matching ddm form instance version could not be found
-
removeByF_V
public static DDMFormInstanceVersion removeByF_V(long formInstanceId, String version) throws NoSuchFormInstanceVersionException Removes the ddm form instance version where formInstanceId = ? and version = ? from the database.- Parameters:
formInstanceId
- the form instance IDversion
- the version- Returns:
- the ddm form instance version that was removed
- Throws:
NoSuchFormInstanceVersionException
-
countByF_V
Returns the number of ddm form instance versions where formInstanceId = ? and version = ?.- Parameters:
formInstanceId
- the form instance IDversion
- the version- Returns:
- the number of matching ddm form instance versions
-
findByF_S
Returns all the ddm form instance versions where formInstanceId = ? and status = ?.- Parameters:
formInstanceId
- the form instance IDstatus
- the status- Returns:
- the matching ddm form instance versions
-
findByF_S
public static List<DDMFormInstanceVersion> findByF_S(long formInstanceId, int status, int start, int end) Returns a range of all the ddm form instance versions where formInstanceId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceVersionModelImpl
.- Parameters:
formInstanceId
- the form instance IDstatus
- the statusstart
- the lower bound of the range of ddm form instance versionsend
- the upper bound of the range of ddm form instance versions (not inclusive)- Returns:
- the range of matching ddm form instance versions
-
findByF_S
public static List<DDMFormInstanceVersion> findByF_S(long formInstanceId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns an ordered range of all the ddm form instance versions where formInstanceId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceVersionModelImpl
.- Parameters:
formInstanceId
- the form instance IDstatus
- the statusstart
- the lower bound of the range of ddm form instance versionsend
- the upper bound of the range of ddm form instance versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching ddm form instance versions
-
findByF_S
public static List<DDMFormInstanceVersion> findByF_S(long formInstanceId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm form instance versions where formInstanceId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceVersionModelImpl
.- Parameters:
formInstanceId
- the form instance IDstatus
- the statusstart
- the lower bound of the range of ddm form instance versionsend
- the upper bound of the range of ddm form instance 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 ddm form instance versions
-
findByF_S_First
public static DDMFormInstanceVersion findByF_S_First(long formInstanceId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) throws NoSuchFormInstanceVersionException Returns the first ddm form instance version in the ordered set where formInstanceId = ? and status = ?.- Parameters:
formInstanceId
- the form instance IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm form instance version
- Throws:
NoSuchFormInstanceVersionException
- if a matching ddm form instance version could not be foundNoSuchFormInstanceVersionException
-
fetchByF_S_First
public static DDMFormInstanceVersion fetchByF_S_First(long formInstanceId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns the first ddm form instance version in the ordered set where formInstanceId = ? and status = ?.- Parameters:
formInstanceId
- the form instance IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm form instance version, or
null
if a matching ddm form instance version could not be found
-
findByF_S_Last
public static DDMFormInstanceVersion findByF_S_Last(long formInstanceId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) throws NoSuchFormInstanceVersionException Returns the last ddm form instance version in the ordered set where formInstanceId = ? and status = ?.- Parameters:
formInstanceId
- the form instance IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm form instance version
- Throws:
NoSuchFormInstanceVersionException
- if a matching ddm form instance version could not be foundNoSuchFormInstanceVersionException
-
fetchByF_S_Last
public static DDMFormInstanceVersion fetchByF_S_Last(long formInstanceId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns the last ddm form instance version in the ordered set where formInstanceId = ? and status = ?.- Parameters:
formInstanceId
- the form instance IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm form instance version, or
null
if a matching ddm form instance version could not be found
-
findByF_S_PrevAndNext
public static DDMFormInstanceVersion[] findByF_S_PrevAndNext(long formInstanceVersionId, long formInstanceId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) throws NoSuchFormInstanceVersionException Returns the ddm form instance versions before and after the current ddm form instance version in the ordered set where formInstanceId = ? and status = ?.- Parameters:
formInstanceVersionId
- the primary key of the current ddm form instance versionformInstanceId
- the form instance IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ddm form instance version
- Throws:
NoSuchFormInstanceVersionException
- if a ddm form instance version with the primary key could not be foundNoSuchFormInstanceVersionException
-
removeByF_S
public static void removeByF_S(long formInstanceId, int status) Removes all the ddm form instance versions where formInstanceId = ? and status = ? from the database.- Parameters:
formInstanceId
- the form instance IDstatus
- the status
-
countByF_S
public static int countByF_S(long formInstanceId, int status) Returns the number of ddm form instance versions where formInstanceId = ? and status = ?.- Parameters:
formInstanceId
- the form instance IDstatus
- the status- Returns:
- the number of matching ddm form instance versions
-
cacheResult
Caches the ddm form instance version in the entity cache if it is enabled.- Parameters:
ddmFormInstanceVersion
- the ddm form instance version
-
cacheResult
Caches the ddm form instance versions in the entity cache if it is enabled.- Parameters:
ddmFormInstanceVersions
- the ddm form instance versions
-
create
Creates a new ddm form instance version with the primary key. Does not add the ddm form instance version to the database.- Parameters:
formInstanceVersionId
- the primary key for the new ddm form instance version- Returns:
- the new ddm form instance version
-
remove
public static DDMFormInstanceVersion remove(long formInstanceVersionId) throws NoSuchFormInstanceVersionException Removes the ddm form instance version with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
formInstanceVersionId
- the primary key of the ddm form instance version- Returns:
- the ddm form instance version that was removed
- Throws:
NoSuchFormInstanceVersionException
- if a ddm form instance version with the primary key could not be foundNoSuchFormInstanceVersionException
-
updateImpl
-
findByPrimaryKey
public static DDMFormInstanceVersion findByPrimaryKey(long formInstanceVersionId) throws NoSuchFormInstanceVersionException Returns the ddm form instance version with the primary key or throws aNoSuchFormInstanceVersionException
if it could not be found.- Parameters:
formInstanceVersionId
- the primary key of the ddm form instance version- Returns:
- the ddm form instance version
- Throws:
NoSuchFormInstanceVersionException
- if a ddm form instance version with the primary key could not be foundNoSuchFormInstanceVersionException
-
fetchByPrimaryKey
Returns the ddm form instance version with the primary key or returnsnull
if it could not be found.- Parameters:
formInstanceVersionId
- the primary key of the ddm form instance version- Returns:
- the ddm form instance version, or
null
if a ddm form instance version with the primary key could not be found
-
findAll
Returns all the ddm form instance versions.- Returns:
- the ddm form instance versions
-
findAll
Returns a range of all the ddm form instance versions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceVersionModelImpl
.- Parameters:
start
- the lower bound of the range of ddm form instance versionsend
- the upper bound of the range of ddm form instance versions (not inclusive)- Returns:
- the range of ddm form instance versions
-
findAll
public static List<DDMFormInstanceVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator) Returns an ordered range of all the ddm form instance versions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceVersionModelImpl
.- Parameters:
start
- the lower bound of the range of ddm form instance versionsend
- the upper bound of the range of ddm form instance versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of ddm form instance versions
-
findAll
public static List<DDMFormInstanceVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm form instance versions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceVersionModelImpl
.- Parameters:
start
- the lower bound of the range of ddm form instance versionsend
- the upper bound of the range of ddm form instance versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of ddm form instance versions
-
removeAll
public static void removeAll()Removes all the ddm form instance versions from the database. -
countAll
public static int countAll()Returns the number of ddm form instance versions.- Returns:
- the number of ddm form instance versions
-
getPersistence
-
setPersistence
-