Class DDMFormInstanceReportUtil
com.liferay.dynamic.data.mapping.service.persistence.impl.DDMFormInstanceReportPersistenceImpl
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
(DDMFormInstanceReport ddmFormInstanceReport) Caches the ddm form instance report in the entity cache if it is enabled.static void
cacheResult
(List<DDMFormInstanceReport> ddmFormInstanceReports) Caches the ddm form instance reports in the entity cache if it is enabled.static void
static void
clearCache
(DDMFormInstanceReport ddmFormInstanceReport) static int
countAll()
Returns the number of ddm form instance reports.static int
countByFormInstanceId
(long formInstanceId) Returns the number of ddm form instance reports where formInstanceId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static DDMFormInstanceReport
create
(long formInstanceReportId) Creates a new ddm form instance report with the primary key.static DDMFormInstanceReport
fetchByFormInstanceId
(long formInstanceId) Returns the ddm form instance report where formInstanceId = ? or returnsnull
if it could not be found.static DDMFormInstanceReport
fetchByFormInstanceId
(long formInstanceId, boolean useFinderCache) Returns the ddm form instance report where formInstanceId = ? or returnsnull
if it could not be found, optionally using the finder cache.static DDMFormInstanceReport
fetchByPrimaryKey
(long formInstanceReportId) Returns the ddm form instance report with the primary key or returnsnull
if it could not be found.static Map<Serializable,
DDMFormInstanceReport> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<DDMFormInstanceReport>
findAll()
Returns all the ddm form instance reports.static List<DDMFormInstanceReport>
findAll
(int start, int end) Returns a range of all the ddm form instance reports.static List<DDMFormInstanceReport>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceReport> orderByComparator) Returns an ordered range of all the ddm form instance reports.static List<DDMFormInstanceReport>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceReport> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm form instance reports.static DDMFormInstanceReport
findByFormInstanceId
(long formInstanceId) Returns the ddm form instance report where formInstanceId = ? or throws aNoSuchFormInstanceReportException
if it could not be found.static DDMFormInstanceReport
findByPrimaryKey
(long formInstanceReportId) Returns the ddm form instance report with the primary key or throws aNoSuchFormInstanceReportException
if it could not be found.static List<DDMFormInstanceReport>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<DDMFormInstanceReport>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<DDMFormInstanceReport>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceReport> orderByComparator) static DDMFormInstanceReport
remove
(long formInstanceReportId) Removes the ddm form instance report with the primary key from the database.static void
Removes all the ddm form instance reports from the database.static DDMFormInstanceReport
removeByFormInstanceId
(long formInstanceId) Removes the ddm form instance report where formInstanceId = ? from the database.static void
setPersistence
(DDMFormInstanceReportPersistence persistence) static DDMFormInstanceReport
update
(DDMFormInstanceReport ddmFormInstanceReport) static DDMFormInstanceReport
update
(DDMFormInstanceReport ddmFormInstanceReport, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DDMFormInstanceReport
updateImpl
(DDMFormInstanceReport ddmFormInstanceReport)
-
Constructor Details
-
DDMFormInstanceReportUtil
public DDMFormInstanceReportUtil()
-
-
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,DDMFormInstanceReport> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<DDMFormInstanceReport> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<DDMFormInstanceReport> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<DDMFormInstanceReport> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceReport> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static DDMFormInstanceReport update(DDMFormInstanceReport ddmFormInstanceReport, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByFormInstanceId
public static DDMFormInstanceReport findByFormInstanceId(long formInstanceId) throws NoSuchFormInstanceReportException Returns the ddm form instance report where formInstanceId = ? or throws aNoSuchFormInstanceReportException
if it could not be found.- Parameters:
formInstanceId
- the form instance ID- Returns:
- the matching ddm form instance report
- Throws:
NoSuchFormInstanceReportException
- if a matching ddm form instance report could not be foundNoSuchFormInstanceReportException
-
fetchByFormInstanceId
Returns the ddm form instance report where formInstanceId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
formInstanceId
- the form instance ID- Returns:
- the matching ddm form instance report, or
null
if a matching ddm form instance report could not be found
-
fetchByFormInstanceId
public static DDMFormInstanceReport fetchByFormInstanceId(long formInstanceId, boolean useFinderCache) Returns the ddm form instance report where formInstanceId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
formInstanceId
- the form instance IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching ddm form instance report, or
null
if a matching ddm form instance report could not be found
-
removeByFormInstanceId
public static DDMFormInstanceReport removeByFormInstanceId(long formInstanceId) throws NoSuchFormInstanceReportException Removes the ddm form instance report where formInstanceId = ? from the database.- Parameters:
formInstanceId
- the form instance ID- Returns:
- the ddm form instance report that was removed
- Throws:
NoSuchFormInstanceReportException
-
countByFormInstanceId
public static int countByFormInstanceId(long formInstanceId) Returns the number of ddm form instance reports where formInstanceId = ?.- Parameters:
formInstanceId
- the form instance ID- Returns:
- the number of matching ddm form instance reports
-
cacheResult
Caches the ddm form instance report in the entity cache if it is enabled.- Parameters:
ddmFormInstanceReport
- the ddm form instance report
-
cacheResult
Caches the ddm form instance reports in the entity cache if it is enabled.- Parameters:
ddmFormInstanceReports
- the ddm form instance reports
-
create
Creates a new ddm form instance report with the primary key. Does not add the ddm form instance report to the database.- Parameters:
formInstanceReportId
- the primary key for the new ddm form instance report- Returns:
- the new ddm form instance report
-
remove
public static DDMFormInstanceReport remove(long formInstanceReportId) throws NoSuchFormInstanceReportException Removes the ddm form instance report with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
formInstanceReportId
- the primary key of the ddm form instance report- Returns:
- the ddm form instance report that was removed
- Throws:
NoSuchFormInstanceReportException
- if a ddm form instance report with the primary key could not be foundNoSuchFormInstanceReportException
-
updateImpl
-
findByPrimaryKey
public static DDMFormInstanceReport findByPrimaryKey(long formInstanceReportId) throws NoSuchFormInstanceReportException Returns the ddm form instance report with the primary key or throws aNoSuchFormInstanceReportException
if it could not be found.- Parameters:
formInstanceReportId
- the primary key of the ddm form instance report- Returns:
- the ddm form instance report
- Throws:
NoSuchFormInstanceReportException
- if a ddm form instance report with the primary key could not be foundNoSuchFormInstanceReportException
-
fetchByPrimaryKey
Returns the ddm form instance report with the primary key or returnsnull
if it could not be found.- Parameters:
formInstanceReportId
- the primary key of the ddm form instance report- Returns:
- the ddm form instance report, or
null
if a ddm form instance report with the primary key could not be found
-
findAll
Returns all the ddm form instance reports.- Returns:
- the ddm form instance reports
-
findAll
Returns a range of all the ddm form instance reports.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 fromDDMFormInstanceReportModelImpl
.- Parameters:
start
- the lower bound of the range of ddm form instance reportsend
- the upper bound of the range of ddm form instance reports (not inclusive)- Returns:
- the range of ddm form instance reports
-
findAll
public static List<DDMFormInstanceReport> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceReport> orderByComparator) Returns an ordered range of all the ddm form instance reports.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 fromDDMFormInstanceReportModelImpl
.- Parameters:
start
- the lower bound of the range of ddm form instance reportsend
- the upper bound of the range of ddm form instance reports (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of ddm form instance reports
-
findAll
public static List<DDMFormInstanceReport> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceReport> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm form instance reports.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 fromDDMFormInstanceReportModelImpl
.- Parameters:
start
- the lower bound of the range of ddm form instance reportsend
- the upper bound of the range of ddm form instance reports (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 reports
-
removeAll
public static void removeAll()Removes all the ddm form instance reports from the database. -
countAll
public static int countAll()Returns the number of ddm form instance reports.- Returns:
- the number of ddm form instance reports
-
getPersistence
-
setPersistence
-