Class BatchPlannerPolicyUtil

java.lang.Object
com.liferay.batch.planner.service.persistence.BatchPlannerPolicyUtil

public class BatchPlannerPolicyUtil extends Object
The persistence utility for the batch planner policy service. This utility wraps 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 Details

    • BatchPlannerPolicyUtil

      public BatchPlannerPolicyUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(BatchPlannerPolicy batchPlannerPolicy)
      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

      public static BatchPlannerPolicy update(BatchPlannerPolicy batchPlannerPolicy)
      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

      public static List<BatchPlannerPolicy> findByBatchPlannerPlanId(long batchPlannerPlanId)
      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 - 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.batch.planner.model.impl.BatchPlannerPolicyModelImpl.

      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      start - the lower bound of the range of batch planner policies
      end - 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 - 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.batch.planner.model.impl.BatchPlannerPolicyModelImpl.

      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      start - the lower bound of the range of batch planner policies
      end - the upper bound of the range of batch planner policies (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 - 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.batch.planner.model.impl.BatchPlannerPolicyModelImpl.

      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      start - the lower bound of the range of batch planner policies
      end - 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 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching batch planner policy
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching batch planner policy, or null if a matching batch planner policy could not be found
    • 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 a NoSuchPolicyException if it could not be found.
      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      name - the name
      Returns:
      the matching batch planner policy
    • fetchByBPPI_N

      public static BatchPlannerPolicy fetchByBPPI_N(long batchPlannerPlanId, String name)
      Returns the batch planner policy where batchPlannerPlanId = ? and name = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      name - the name
      Returns:
      the matching batch planner policy, or null if 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 returns null if it could not be found, optionally using the finder cache.
      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      name - the name
      useFinderCache - whether to use the finder cache
      Returns:
      the matching batch planner policy, or null if 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 ID
      name - the name
      Returns:
      the batch planner policy that was removed
      Throws:
      NoSuchPolicyException
    • countByBPPI_N

      public static int countByBPPI_N(long batchPlannerPlanId, String name)
      Returns the number of batch planner policies where batchPlannerPlanId = ? and name = ?.
      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      name - the name
      Returns:
      the number of matching batch planner policies
    • cacheResult

      public static void cacheResult(BatchPlannerPolicy batchPlannerPolicy)
      Caches the batch planner policy in the entity cache if it is enabled.
      Parameters:
      batchPlannerPolicy - the batch planner policy
    • cacheResult

      public static void cacheResult(List<BatchPlannerPolicy> batchPlannerPolicies)
      Caches the batch planner policies in the entity cache if it is enabled.
      Parameters:
      batchPlannerPolicies - the batch planner policies
    • create

      public static BatchPlannerPolicy create(long batchPlannerPolicyId)
      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

      public static BatchPlannerPolicy remove(long batchPlannerPolicyId) throws NoSuchPolicyException
      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
    • updateImpl

      public static BatchPlannerPolicy updateImpl(BatchPlannerPolicy batchPlannerPolicy)
    • findByPrimaryKey

      public static BatchPlannerPolicy findByPrimaryKey(long batchPlannerPolicyId) throws NoSuchPolicyException
      Returns the batch planner policy with the primary key or throws a NoSuchPolicyException if it could not be found.
      Parameters:
      batchPlannerPolicyId - the primary key of the batch planner policy
      Returns:
      the batch planner policy
    • fetchByPrimaryKey

      public static BatchPlannerPolicy fetchByPrimaryKey(long batchPlannerPolicyId)
      Returns the batch planner policy with the primary key or returns null if it could not be found.
      Parameters:
      batchPlannerPolicyId - the primary key of the batch planner policy
      Returns:
      the batch planner policy, or null if a batch planner policy with the primary key could not be found
    • findAll

      public static List<BatchPlannerPolicy> findAll()
      Returns all the batch planner policies.
      Returns:
      the batch planner policies
    • findAll

      public static List<BatchPlannerPolicy> findAll(int start, int end)
      Returns a range of all the batch planner policies.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.batch.planner.model.impl.BatchPlannerPolicyModelImpl.

      Parameters:
      start - the lower bound of the range of batch planner policies
      end - 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 - 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.batch.planner.model.impl.BatchPlannerPolicyModelImpl.

      Parameters:
      start - the lower bound of the range of batch planner policies
      end - the upper bound of the range of batch planner policies (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 - 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.batch.planner.model.impl.BatchPlannerPolicyModelImpl.

      Parameters:
      start - the lower bound of the range of batch planner policies
      end - 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 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

      public static BatchPlannerPolicyPersistence getPersistence()
    • setPersistence

      public static void setPersistence(BatchPlannerPolicyPersistence persistence)