public class BatchPlannerPolicyUtil
extends java.lang.Object
com.liferay.batch.planner.service.persistence.impl.BatchPlannerPolicyPersistenceImpl
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
BatchPlannerPolicyPersistence
Constructor and Description |
---|
BatchPlannerPolicyUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(BatchPlannerPolicy batchPlannerPolicy)
Caches the batch planner policy in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<BatchPlannerPolicy> batchPlannerPolicies)
Caches the batch planner policies in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(BatchPlannerPolicy batchPlannerPolicy) |
static int |
countAll()
Returns the number of batch planner policies.
|
static int |
countByBatchPlannerPlanId(long batchPlannerPlanId)
Returns the number of batch planner policies where batchPlannerPlanId = ?.
|
static int |
countByBPPI_N(long batchPlannerPlanId,
java.lang.String name)
Returns the number of batch planner policies where batchPlannerPlanId = ? and name = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static BatchPlannerPolicy |
create(long batchPlannerPolicyId)
Creates a new batch planner policy with the primary key.
|
static BatchPlannerPolicy |
fetchByBatchPlannerPlanId_First(long batchPlannerPlanId,
com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator)
Returns the first batch planner policy in the ordered set where batchPlannerPlanId = ?.
|
static BatchPlannerPolicy |
fetchByBatchPlannerPlanId_Last(long batchPlannerPlanId,
com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator)
Returns the last batch planner policy in the ordered set where batchPlannerPlanId = ?.
|
static BatchPlannerPolicy |
fetchByBPPI_N(long batchPlannerPlanId,
java.lang.String name)
Returns the batch planner policy where batchPlannerPlanId = ? and name = ? or returns
null if it could not be found. |
static BatchPlannerPolicy |
fetchByBPPI_N(long batchPlannerPlanId,
java.lang.String name,
boolean useFinderCache)
Returns the batch planner policy where batchPlannerPlanId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
static BatchPlannerPolicy |
fetchByPrimaryKey(long batchPlannerPolicyId)
Returns the batch planner policy with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,BatchPlannerPolicy> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<BatchPlannerPolicy> |
findAll()
Returns all the batch planner policies.
|
static java.util.List<BatchPlannerPolicy> |
findAll(int start,
int end)
Returns a range of all the batch planner policies.
|
static java.util.List<BatchPlannerPolicy> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator)
Returns an ordered range of all the batch planner policies.
|
static java.util.List<BatchPlannerPolicy> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the batch planner policies.
|
static BatchPlannerPolicy |
findByBatchPlannerPlanId_First(long batchPlannerPlanId,
com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator)
Returns the first batch planner policy in the ordered set where batchPlannerPlanId = ?.
|
static BatchPlannerPolicy |
findByBatchPlannerPlanId_Last(long batchPlannerPlanId,
com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator)
Returns the last batch planner policy in the ordered set where batchPlannerPlanId = ?.
|
static BatchPlannerPolicy[] |
findByBatchPlannerPlanId_PrevAndNext(long batchPlannerPolicyId,
long batchPlannerPlanId,
com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator)
Returns the batch planner policies before and after the current batch planner policy in the ordered set where batchPlannerPlanId = ?.
|
static java.util.List<BatchPlannerPolicy> |
findByBatchPlannerPlanId(long batchPlannerPlanId)
Returns all the batch planner policies where batchPlannerPlanId = ?.
|
static java.util.List<BatchPlannerPolicy> |
findByBatchPlannerPlanId(long batchPlannerPlanId,
int start,
int end)
Returns a range of all the batch planner policies where batchPlannerPlanId = ?.
|
static java.util.List<BatchPlannerPolicy> |
findByBatchPlannerPlanId(long batchPlannerPlanId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator)
Returns an ordered range of all the batch planner policies where batchPlannerPlanId = ?.
|
static java.util.List<BatchPlannerPolicy> |
findByBatchPlannerPlanId(long batchPlannerPlanId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the batch planner policies where batchPlannerPlanId = ?.
|
static BatchPlannerPolicy |
findByBPPI_N(long batchPlannerPlanId,
java.lang.String name)
Returns the batch planner policy where batchPlannerPlanId = ? and name = ? or throws a
NoSuchPolicyException if it could not be found. |
static BatchPlannerPolicy |
findByPrimaryKey(long batchPlannerPolicyId)
Returns the batch planner policy with the primary key or throws a
NoSuchPolicyException if it could not be found. |
static java.util.List<BatchPlannerPolicy> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<BatchPlannerPolicy> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<BatchPlannerPolicy> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator) |
static BatchPlannerPolicyPersistence |
getPersistence() |
static BatchPlannerPolicy |
remove(long batchPlannerPolicyId)
Removes the batch planner policy with the primary key from the database.
|
static void |
removeAll()
Removes all the batch planner policies from the database.
|
static void |
removeByBatchPlannerPlanId(long batchPlannerPlanId)
Removes all the batch planner policies where batchPlannerPlanId = ? from the database.
|
static BatchPlannerPolicy |
removeByBPPI_N(long batchPlannerPlanId,
java.lang.String name)
Removes the batch planner policy where batchPlannerPlanId = ? and name = ? from the database.
|
static void |
setPersistence(BatchPlannerPolicyPersistence persistence) |
static BatchPlannerPolicy |
update(BatchPlannerPolicy batchPlannerPolicy) |
static BatchPlannerPolicy |
update(BatchPlannerPolicy batchPlannerPolicy,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static BatchPlannerPolicy |
updateImpl(BatchPlannerPolicy batchPlannerPolicy) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(BatchPlannerPolicy batchPlannerPolicy)
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,BatchPlannerPolicy> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<BatchPlannerPolicy> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<BatchPlannerPolicy> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<BatchPlannerPolicy> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static BatchPlannerPolicy update(BatchPlannerPolicy batchPlannerPolicy)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static BatchPlannerPolicy update(BatchPlannerPolicy batchPlannerPolicy, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<BatchPlannerPolicy> findByBatchPlannerPlanId(long batchPlannerPlanId)
batchPlannerPlanId
- the batch planner plan IDpublic static java.util.List<BatchPlannerPolicy> findByBatchPlannerPlanId(long batchPlannerPlanId, 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 BatchPlannerPolicyModelImpl
.
batchPlannerPlanId
- the batch planner plan IDstart
- the lower bound of the range of batch planner policiesend
- the upper bound of the range of batch planner policies (not inclusive)public static java.util.List<BatchPlannerPolicy> findByBatchPlannerPlanId(long batchPlannerPlanId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> 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 BatchPlannerPolicyModelImpl
.
batchPlannerPlanId
- the batch planner plan IDstart
- the lower bound of the range of batch planner policiesend
- the upper bound of the range of batch planner policies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<BatchPlannerPolicy> findByBatchPlannerPlanId(long batchPlannerPlanId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> 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 BatchPlannerPolicyModelImpl
.
batchPlannerPlanId
- the batch planner plan IDstart
- the lower bound of the range of batch planner policiesend
- the upper bound of the range of batch planner policies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static BatchPlannerPolicy findByBatchPlannerPlanId_First(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator) throws NoSuchPolicyException
batchPlannerPlanId
- the batch planner plan IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPolicyException
- if a matching batch planner policy could not be foundpublic static BatchPlannerPolicy fetchByBatchPlannerPlanId_First(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator)
batchPlannerPlanId
- the batch planner plan IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching batch planner policy could not be foundpublic static BatchPlannerPolicy findByBatchPlannerPlanId_Last(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator) throws NoSuchPolicyException
batchPlannerPlanId
- the batch planner plan IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPolicyException
- if a matching batch planner policy could not be foundpublic static BatchPlannerPolicy fetchByBatchPlannerPlanId_Last(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator)
batchPlannerPlanId
- the batch planner plan IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching batch planner policy could not be foundpublic static BatchPlannerPolicy[] findByBatchPlannerPlanId_PrevAndNext(long batchPlannerPolicyId, long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator) throws NoSuchPolicyException
batchPlannerPolicyId
- the primary key of the current batch planner policybatchPlannerPlanId
- the batch planner plan IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPolicyException
- if a batch planner policy with the primary key could not be foundpublic static void removeByBatchPlannerPlanId(long batchPlannerPlanId)
batchPlannerPlanId
- the batch planner plan IDpublic static int countByBatchPlannerPlanId(long batchPlannerPlanId)
batchPlannerPlanId
- the batch planner plan IDpublic static BatchPlannerPolicy findByBPPI_N(long batchPlannerPlanId, java.lang.String name) throws NoSuchPolicyException
NoSuchPolicyException
if it could not be found.batchPlannerPlanId
- the batch planner plan IDname
- the nameNoSuchPolicyException
- if a matching batch planner policy could not be foundpublic static BatchPlannerPolicy fetchByBPPI_N(long batchPlannerPlanId, java.lang.String name)
null
if it could not be found. Uses the finder cache.batchPlannerPlanId
- the batch planner plan IDname
- the namenull
if a matching batch planner policy could not be foundpublic static BatchPlannerPolicy fetchByBPPI_N(long batchPlannerPlanId, java.lang.String name, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.batchPlannerPlanId
- the batch planner plan IDname
- the nameuseFinderCache
- whether to use the finder cachenull
if a matching batch planner policy could not be foundpublic static BatchPlannerPolicy removeByBPPI_N(long batchPlannerPlanId, java.lang.String name) throws NoSuchPolicyException
batchPlannerPlanId
- the batch planner plan IDname
- the nameNoSuchPolicyException
public static int countByBPPI_N(long batchPlannerPlanId, java.lang.String name)
batchPlannerPlanId
- the batch planner plan IDname
- the namepublic static void cacheResult(BatchPlannerPolicy batchPlannerPolicy)
batchPlannerPolicy
- the batch planner policypublic static void cacheResult(java.util.List<BatchPlannerPolicy> batchPlannerPolicies)
batchPlannerPolicies
- the batch planner policiespublic static BatchPlannerPolicy create(long batchPlannerPolicyId)
batchPlannerPolicyId
- the primary key for the new batch planner policypublic static BatchPlannerPolicy remove(long batchPlannerPolicyId) throws NoSuchPolicyException
batchPlannerPolicyId
- the primary key of the batch planner policyNoSuchPolicyException
- if a batch planner policy with the primary key could not be foundpublic static BatchPlannerPolicy updateImpl(BatchPlannerPolicy batchPlannerPolicy)
public static BatchPlannerPolicy findByPrimaryKey(long batchPlannerPolicyId) throws NoSuchPolicyException
NoSuchPolicyException
if it could not be found.batchPlannerPolicyId
- the primary key of the batch planner policyNoSuchPolicyException
- if a batch planner policy with the primary key could not be foundpublic static BatchPlannerPolicy fetchByPrimaryKey(long batchPlannerPolicyId)
null
if it could not be found.batchPlannerPolicyId
- the primary key of the batch planner policynull
if a batch planner policy with the primary key could not be foundpublic static java.util.List<BatchPlannerPolicy> findAll()
public static java.util.List<BatchPlannerPolicy> 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 BatchPlannerPolicyModelImpl
.
start
- the lower bound of the range of batch planner policiesend
- the upper bound of the range of batch planner policies (not inclusive)public static java.util.List<BatchPlannerPolicy> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> 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 BatchPlannerPolicyModelImpl
.
start
- the lower bound of the range of batch planner policiesend
- the upper bound of the range of batch planner policies (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<BatchPlannerPolicy> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> 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 BatchPlannerPolicyModelImpl
.
start
- the lower bound of the range of batch planner policiesend
- the upper bound of the range of batch planner policies (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 BatchPlannerPolicyPersistence getPersistence()
public static void setPersistence(BatchPlannerPolicyPersistence persistence)