public class DDMFormInstanceReportUtil
extends java.lang.Object
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
DDMFormInstanceReportPersistence
Constructor and Description |
---|
DDMFormInstanceReportUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(DDMFormInstanceReport ddmFormInstanceReport)
Caches the ddm form instance report in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<DDMFormInstanceReport> ddmFormInstanceReports)
Caches the ddm form instance reports in the entity cache if it is enabled.
|
static void |
clearCache() |
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 returns
null if it could not be found. |
static DDMFormInstanceReport |
fetchByFormInstanceId(long formInstanceId,
boolean useFinderCache)
Returns the ddm form instance report where formInstanceId = ? or returns
null 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 returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,DDMFormInstanceReport> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<DDMFormInstanceReport> |
findAll()
Returns all the ddm form instance reports.
|
static java.util.List<DDMFormInstanceReport> |
findAll(int start,
int end)
Returns a range of all the ddm form instance reports.
|
static java.util.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 java.util.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 a
NoSuchFormInstanceReportException if it could not be found. |
static DDMFormInstanceReport |
findByPrimaryKey(long formInstanceReportId)
Returns the ddm form instance report with the primary key or throws a
NoSuchFormInstanceReportException if it could not be found. |
static java.util.List<DDMFormInstanceReport> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<DDMFormInstanceReport> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<DDMFormInstanceReport> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceReport> orderByComparator) |
static DDMFormInstanceReportPersistence |
getPersistence() |
static DDMFormInstanceReport |
remove(long formInstanceReportId)
Removes the ddm form instance report with the primary key from the database.
|
static void |
removeAll()
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 DDMFormInstanceReport |
update(DDMFormInstanceReport ddmFormInstanceReport) |
static DDMFormInstanceReport |
update(DDMFormInstanceReport ddmFormInstanceReport,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static DDMFormInstanceReport |
updateImpl(DDMFormInstanceReport ddmFormInstanceReport) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(DDMFormInstanceReport ddmFormInstanceReport)
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,DDMFormInstanceReport> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<DDMFormInstanceReport> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<DDMFormInstanceReport> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<DDMFormInstanceReport> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceReport> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static DDMFormInstanceReport update(DDMFormInstanceReport ddmFormInstanceReport)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static DDMFormInstanceReport update(DDMFormInstanceReport ddmFormInstanceReport, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static DDMFormInstanceReport findByFormInstanceId(long formInstanceId) throws NoSuchFormInstanceReportException
NoSuchFormInstanceReportException
if it could not be found.formInstanceId
- the form instance IDNoSuchFormInstanceReportException
- if a matching ddm form instance report could not be foundpublic static DDMFormInstanceReport fetchByFormInstanceId(long formInstanceId)
null
if it could not be found. Uses the finder cache.formInstanceId
- the form instance IDnull
if a matching ddm form instance report could not be foundpublic static DDMFormInstanceReport fetchByFormInstanceId(long formInstanceId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.formInstanceId
- the form instance IDuseFinderCache
- whether to use the finder cachenull
if a matching ddm form instance report could not be foundpublic static DDMFormInstanceReport removeByFormInstanceId(long formInstanceId) throws NoSuchFormInstanceReportException
formInstanceId
- the form instance IDNoSuchFormInstanceReportException
public static int countByFormInstanceId(long formInstanceId)
formInstanceId
- the form instance IDpublic static void cacheResult(DDMFormInstanceReport ddmFormInstanceReport)
ddmFormInstanceReport
- the ddm form instance reportpublic static void cacheResult(java.util.List<DDMFormInstanceReport> ddmFormInstanceReports)
ddmFormInstanceReports
- the ddm form instance reportspublic static DDMFormInstanceReport create(long formInstanceReportId)
formInstanceReportId
- the primary key for the new ddm form instance reportpublic static DDMFormInstanceReport remove(long formInstanceReportId) throws NoSuchFormInstanceReportException
formInstanceReportId
- the primary key of the ddm form instance reportNoSuchFormInstanceReportException
- if a ddm form instance report with the primary key could not be foundpublic static DDMFormInstanceReport updateImpl(DDMFormInstanceReport ddmFormInstanceReport)
public static DDMFormInstanceReport findByPrimaryKey(long formInstanceReportId) throws NoSuchFormInstanceReportException
NoSuchFormInstanceReportException
if it could not be found.formInstanceReportId
- the primary key of the ddm form instance reportNoSuchFormInstanceReportException
- if a ddm form instance report with the primary key could not be foundpublic static DDMFormInstanceReport fetchByPrimaryKey(long formInstanceReportId)
null
if it could not be found.formInstanceReportId
- the primary key of the ddm form instance reportnull
if a ddm form instance report with the primary key could not be foundpublic static java.util.List<DDMFormInstanceReport> findAll()
public static java.util.List<DDMFormInstanceReport> 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 DDMFormInstanceReportModelImpl
.
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)public static java.util.List<DDMFormInstanceReport> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceReport> 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 DDMFormInstanceReportModelImpl
.
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 (optionally null
)public static java.util.List<DDMFormInstanceReport> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceReport> 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 DDMFormInstanceReportModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static DDMFormInstanceReportPersistence getPersistence()