Class BatchPlannerPolicyUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(BatchPlannerPolicy batchPlannerPolicy) Caches the batch planner policy in the entity cache if it is enabled.static voidcacheResult(List<BatchPlannerPolicy> batchPlannerPolicies) Caches the batch planner policies in the entity cache if it is enabled.static voidstatic voidclearCache(BatchPlannerPolicy batchPlannerPolicy) static intcountAll()Returns the number of batch planner policies.static intcountByBatchPlannerPlanId(long batchPlannerPlanId) Returns the number of batch planner policies where batchPlannerPlanId = ?.static intcountByBPPI_N(long batchPlannerPlanId, String name) Returns the number of batch planner policies where batchPlannerPlanId = ? and name = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static BatchPlannerPolicycreate(long batchPlannerPolicyId) Creates a new batch planner policy with the primary key.static BatchPlannerPolicyfetchByBatchPlannerPlanId_First(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator) Returns the first batch planner policy in the ordered set where batchPlannerPlanId = ?.static BatchPlannerPolicyfetchByBatchPlannerPlanId_Last(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator) Returns the last batch planner policy in the ordered set where batchPlannerPlanId = ?.static BatchPlannerPolicyfetchByBPPI_N(long batchPlannerPlanId, String name) Returns the batch planner policy where batchPlannerPlanId = ? and name = ? or returnsnullif it could not be found.static BatchPlannerPolicyfetchByBPPI_N(long batchPlannerPlanId, String name, boolean useFinderCache) Returns the batch planner policy where batchPlannerPlanId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.static BatchPlannerPolicyfetchByPrimaryKey(long batchPlannerPolicyId) Returns the batch planner policy with the primary key or returnsnullif it could not be found.static Map<Serializable,BatchPlannerPolicy> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<BatchPlannerPolicy>findAll()Returns all the batch planner policies.static List<BatchPlannerPolicy>findAll(int start, int end) Returns a range of all the batch planner policies.static 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 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 List<BatchPlannerPolicy>findByBatchPlannerPlanId(long batchPlannerPlanId) Returns all the batch planner policies where batchPlannerPlanId = ?.static List<BatchPlannerPolicy>findByBatchPlannerPlanId(long batchPlannerPlanId, int start, int end) Returns a range of all the batch planner policies where batchPlannerPlanId = ?.static 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 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 BatchPlannerPolicyfindByBatchPlannerPlanId_First(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator) Returns the first batch planner policy in the ordered set where batchPlannerPlanId = ?.static BatchPlannerPolicyfindByBatchPlannerPlanId_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 BatchPlannerPolicyfindByBPPI_N(long batchPlannerPlanId, String name) Returns the batch planner policy where batchPlannerPlanId = ? and name = ? or throws aNoSuchPolicyExceptionif it could not be found.static BatchPlannerPolicyfindByPrimaryKey(long batchPlannerPolicyId) Returns the batch planner policy with the primary key or throws aNoSuchPolicyExceptionif it could not be found.static List<BatchPlannerPolicy>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<BatchPlannerPolicy>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<BatchPlannerPolicy>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator) static BatchPlannerPolicyremove(long batchPlannerPolicyId) Removes the batch planner policy with the primary key from the database.static voidRemoves all the batch planner policies from the database.static voidremoveByBatchPlannerPlanId(long batchPlannerPlanId) Removes all the batch planner policies where batchPlannerPlanId = ? from the database.static BatchPlannerPolicyremoveByBPPI_N(long batchPlannerPlanId, String name) Removes the batch planner policy where batchPlannerPlanId = ? and name = ? from the database.static voidsetPersistence(BatchPlannerPolicyPersistence persistence) static BatchPlannerPolicyupdate(BatchPlannerPolicy batchPlannerPolicy) static BatchPlannerPolicyupdate(BatchPlannerPolicy batchPlannerPolicy, com.liferay.portal.kernel.service.ServiceContext serviceContext) static BatchPlannerPolicyupdateImpl(BatchPlannerPolicy batchPlannerPolicy)
-
Constructor Details
-
BatchPlannerPolicyUtil
public BatchPlannerPolicyUtil()
-
-
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,BatchPlannerPolicy> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<BatchPlannerPolicy> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<BatchPlannerPolicy> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<BatchPlannerPolicy> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static BatchPlannerPolicy update(BatchPlannerPolicy batchPlannerPolicy, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByBatchPlannerPlanId
Returns all the batch planner policies where batchPlannerPlanId = ?.- Parameters:
batchPlannerPlanId- the batch planner plan ID- Returns:
- the matching batch planner policies
-
findByBatchPlannerPlanId
public static List<BatchPlannerPolicy> findByBatchPlannerPlanId(long batchPlannerPlanId, int start, int end) Returns a range of all the batch planner policies where batchPlannerPlanId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromBatchPlannerPolicyModelImpl.- Parameters:
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)- Returns:
- the range of matching batch planner policies
-
findByBatchPlannerPlanId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromBatchPlannerPolicyModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching batch planner policies
-
findByBatchPlannerPlanId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromBatchPlannerPolicyModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching batch planner policies
-
findByBatchPlannerPlanId_First
public static BatchPlannerPolicy findByBatchPlannerPlanId_First(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator) throws NoSuchPolicyException Returns the first batch planner policy in the ordered set where batchPlannerPlanId = ?.- Parameters:
batchPlannerPlanId- the batch planner plan IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching batch planner policy
- Throws:
NoSuchPolicyException- if a matching batch planner policy could not be foundNoSuchPolicyException
-
fetchByBatchPlannerPlanId_First
public 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 = ?.- Parameters:
batchPlannerPlanId- the batch planner plan IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching batch planner policy, or
nullif a matching batch planner policy could not be found
-
findByBatchPlannerPlanId_Last
public static BatchPlannerPolicy findByBatchPlannerPlanId_Last(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator) throws NoSuchPolicyException Returns the last batch planner policy in the ordered set where batchPlannerPlanId = ?.- Parameters:
batchPlannerPlanId- the batch planner plan IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching batch planner policy
- Throws:
NoSuchPolicyException- if a matching batch planner policy could not be foundNoSuchPolicyException
-
fetchByBatchPlannerPlanId_Last
public 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 = ?.- Parameters:
batchPlannerPlanId- the batch planner plan IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching batch planner policy, or
nullif a matching batch planner policy could not be found
-
findByBatchPlannerPlanId_PrevAndNext
public static BatchPlannerPolicy[] findByBatchPlannerPlanId_PrevAndNext(long batchPlannerPolicyId, long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerPolicy> orderByComparator) throws NoSuchPolicyException Returns the batch planner policies before and after the current batch planner policy in the ordered set where batchPlannerPlanId = ?.- Parameters:
batchPlannerPolicyId- the primary key of the current batch planner policybatchPlannerPlanId- the batch planner plan IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next batch planner policy
- Throws:
NoSuchPolicyException- if a batch planner policy with the primary key could not be foundNoSuchPolicyException
-
removeByBatchPlannerPlanId
public static void removeByBatchPlannerPlanId(long batchPlannerPlanId) Removes all the batch planner policies where batchPlannerPlanId = ? from the database.- Parameters:
batchPlannerPlanId- the batch planner plan ID
-
countByBatchPlannerPlanId
public static int countByBatchPlannerPlanId(long batchPlannerPlanId) Returns the number of batch planner policies where batchPlannerPlanId = ?.- Parameters:
batchPlannerPlanId- the batch planner plan ID- Returns:
- the number of matching batch planner policies
-
findByBPPI_N
public static BatchPlannerPolicy findByBPPI_N(long batchPlannerPlanId, String name) throws NoSuchPolicyException Returns the batch planner policy where batchPlannerPlanId = ? and name = ? or throws aNoSuchPolicyExceptionif it could not be found.- Parameters:
batchPlannerPlanId- the batch planner plan IDname- the name- Returns:
- the matching batch planner policy
- Throws:
NoSuchPolicyException- if a matching batch planner policy could not be foundNoSuchPolicyException
-
fetchByBPPI_N
Returns the batch planner policy where batchPlannerPlanId = ? and name = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
batchPlannerPlanId- the batch planner plan IDname- the name- Returns:
- the matching batch planner policy, or
nullif a matching batch planner policy could not be found
-
fetchByBPPI_N
public static BatchPlannerPolicy fetchByBPPI_N(long batchPlannerPlanId, String name, boolean useFinderCache) Returns the batch planner policy where batchPlannerPlanId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
batchPlannerPlanId- the batch planner plan IDname- the nameuseFinderCache- whether to use the finder cache- Returns:
- the matching batch planner policy, or
nullif a matching batch planner policy could not be found
-
removeByBPPI_N
public static BatchPlannerPolicy removeByBPPI_N(long batchPlannerPlanId, String name) throws NoSuchPolicyException Removes the batch planner policy where batchPlannerPlanId = ? and name = ? from the database.- Parameters:
batchPlannerPlanId- the batch planner plan IDname- the name- Returns:
- the batch planner policy that was removed
- Throws:
NoSuchPolicyException
-
countByBPPI_N
Returns the number of batch planner policies where batchPlannerPlanId = ? and name = ?.- Parameters:
batchPlannerPlanId- the batch planner plan IDname- the name- Returns:
- the number of matching batch planner policies
-
cacheResult
Caches the batch planner policy in the entity cache if it is enabled.- Parameters:
batchPlannerPolicy- the batch planner policy
-
cacheResult
Caches the batch planner policies in the entity cache if it is enabled.- Parameters:
batchPlannerPolicies- the batch planner policies
-
create
Creates a new batch planner policy with the primary key. Does not add the batch planner policy to the database.- Parameters:
batchPlannerPolicyId- the primary key for the new batch planner policy- Returns:
- the new batch planner policy
-
remove
Removes the batch planner policy with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
batchPlannerPolicyId- the primary key of the batch planner policy- Returns:
- the batch planner policy that was removed
- Throws:
NoSuchPolicyException- if a batch planner policy with the primary key could not be foundNoSuchPolicyException
-
updateImpl
-
findByPrimaryKey
public static BatchPlannerPolicy findByPrimaryKey(long batchPlannerPolicyId) throws NoSuchPolicyException Returns the batch planner policy with the primary key or throws aNoSuchPolicyExceptionif it could not be found.- Parameters:
batchPlannerPolicyId- the primary key of the batch planner policy- Returns:
- the batch planner policy
- Throws:
NoSuchPolicyException- if a batch planner policy with the primary key could not be foundNoSuchPolicyException
-
fetchByPrimaryKey
Returns the batch planner policy with the primary key or returnsnullif it could not be found.- Parameters:
batchPlannerPolicyId- the primary key of the batch planner policy- Returns:
- the batch planner policy, or
nullif a batch planner policy with the primary key could not be found
-
findAll
Returns all the batch planner policies.- Returns:
- the batch planner policies
-
findAll
Returns a range of all the batch planner policies.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromBatchPlannerPolicyModelImpl.- Parameters:
start- the lower bound of the range of batch planner policiesend- the upper bound of the range of batch planner policies (not inclusive)- Returns:
- the range of batch planner policies
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromBatchPlannerPolicyModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of batch planner policies
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromBatchPlannerPolicyModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of batch planner policies
-
removeAll
public static void removeAll()Removes all the batch planner policies from the database. -
countAll
public static int countAll()Returns the number of batch planner policies.- Returns:
- the number of batch planner policies
-
getPersistence
-
setPersistence
-