@ProviderType public interface BatchPlannerPolicyPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<BatchPlannerPolicy>
Caching information and settings can be found in portal.properties
BatchPlannerPolicyUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(BatchPlannerPolicy batchPlannerPolicy)
Caches the batch planner policy in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<BatchPlannerPolicy> batchPlannerPolicies)
Caches the batch planner policies in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of batch planner policies.
|
int |
countByBatchPlannerPlanId(long batchPlannerPlanId)
Returns the number of batch planner policies where batchPlannerPlanId = ?.
|
int |
countByBPPI_N(long batchPlannerPlanId,
java.lang.String name)
Returns the number of batch planner policies where batchPlannerPlanId = ? and name = ?.
|
BatchPlannerPolicy |
create(long batchPlannerPolicyId)
Creates a new batch planner policy with the primary key.
|
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 = ?.
|
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 = ?.
|
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. |
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. |
BatchPlannerPolicy |
fetchByPrimaryKey(long batchPlannerPolicyId)
Returns the batch planner policy with the primary key or returns
null if it could not be found. |
java.util.List<BatchPlannerPolicy> |
findAll()
Returns all the batch planner policies.
|
java.util.List<BatchPlannerPolicy> |
findAll(int start,
int end)
Returns a range of all the batch planner policies.
|
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.
|
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.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<BatchPlannerPolicy> |
findByBatchPlannerPlanId(long batchPlannerPlanId)
Returns all the batch planner policies where batchPlannerPlanId = ?.
|
java.util.List<BatchPlannerPolicy> |
findByBatchPlannerPlanId(long batchPlannerPlanId,
int start,
int end)
Returns a range of all the batch planner policies where batchPlannerPlanId = ?.
|
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 = ?.
|
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 = ?.
|
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. |
BatchPlannerPolicy |
findByPrimaryKey(long batchPlannerPolicyId)
Returns the batch planner policy with the primary key or throws a
NoSuchPolicyException if it could not be found. |
BatchPlannerPolicy |
remove(long batchPlannerPolicyId)
Removes the batch planner policy with the primary key from the database.
|
void |
removeAll()
Removes all the batch planner policies from the database.
|
void |
removeByBatchPlannerPlanId(long batchPlannerPlanId)
Removes all the batch planner policies where batchPlannerPlanId = ? from the database.
|
BatchPlannerPolicy |
removeByBPPI_N(long batchPlannerPlanId,
java.lang.String name)
Removes the batch planner policy where batchPlannerPlanId = ? and name = ? from the database.
|
BatchPlannerPolicy |
updateImpl(BatchPlannerPolicy batchPlannerPolicy) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<BatchPlannerPolicy> findByBatchPlannerPlanId(long batchPlannerPlanId)
batchPlannerPlanId
- the batch planner plan IDjava.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)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
)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 cacheBatchPlannerPolicy 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 foundBatchPlannerPolicy 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 foundBatchPlannerPolicy 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 foundBatchPlannerPolicy 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 foundBatchPlannerPolicy[] 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 foundvoid removeByBatchPlannerPlanId(long batchPlannerPlanId)
batchPlannerPlanId
- the batch planner plan IDint countByBatchPlannerPlanId(long batchPlannerPlanId)
batchPlannerPlanId
- the batch planner plan IDBatchPlannerPolicy 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 foundBatchPlannerPolicy 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 foundBatchPlannerPolicy 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 foundBatchPlannerPolicy removeByBPPI_N(long batchPlannerPlanId, java.lang.String name) throws NoSuchPolicyException
batchPlannerPlanId
- the batch planner plan IDname
- the nameNoSuchPolicyException
int countByBPPI_N(long batchPlannerPlanId, java.lang.String name)
batchPlannerPlanId
- the batch planner plan IDname
- the namevoid cacheResult(BatchPlannerPolicy batchPlannerPolicy)
batchPlannerPolicy
- the batch planner policyvoid cacheResult(java.util.List<BatchPlannerPolicy> batchPlannerPolicies)
batchPlannerPolicies
- the batch planner policiesBatchPlannerPolicy create(long batchPlannerPolicyId)
batchPlannerPolicyId
- the primary key for the new batch planner policyBatchPlannerPolicy 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 foundBatchPlannerPolicy updateImpl(BatchPlannerPolicy batchPlannerPolicy)
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 foundBatchPlannerPolicy 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 foundjava.util.List<BatchPlannerPolicy> findAll()
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)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
)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 cachevoid removeAll()
int countAll()