Interface BatchPlannerPolicyPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<BatchPlannerPolicy>

@ProviderType public interface BatchPlannerPolicyPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<BatchPlannerPolicy>
The persistence interface for the batch planner policy service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Details

    • findByBatchPlannerPlanId

      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

      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 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.

      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

      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 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.

      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

      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 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.

      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

      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
      Throws:
      NoSuchPolicyException - if a matching batch planner policy could not be found
    • fetchByBatchPlannerPlanId_First

      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
    • findByBatchPlannerPlanId_Last

      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching batch planner policy
      Throws:
      NoSuchPolicyException - if a matching batch planner policy could not be found
    • fetchByBatchPlannerPlanId_Last

      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching batch planner policy, or null if a matching batch planner policy could not be found
    • findByBatchPlannerPlanId_PrevAndNext

      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 policy
      batchPlannerPlanId - the batch planner plan ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next batch planner policy
      Throws:
      NoSuchPolicyException - if a batch planner policy with the primary key could not be found
    • removeByBatchPlannerPlanId

      void removeByBatchPlannerPlanId(long batchPlannerPlanId)
      Removes all the batch planner policies where batchPlannerPlanId = ? from the database.
      Parameters:
      batchPlannerPlanId - the batch planner plan ID
    • countByBatchPlannerPlanId

      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

      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
      Throws:
      NoSuchPolicyException - if a matching batch planner policy could not be found
    • fetchByBPPI_N

      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

      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

      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

      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

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

      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

      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

      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
      Throws:
      NoSuchPolicyException - if a batch planner policy with the primary key could not be found
    • updateImpl

      BatchPlannerPolicy updateImpl(BatchPlannerPolicy batchPlannerPolicy)
    • findByPrimaryKey

      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
      Throws:
      NoSuchPolicyException - if a batch planner policy with the primary key could not be found
    • fetchByPrimaryKey

      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

      Returns all the batch planner policies.
      Returns:
      the batch planner policies
    • findAll

      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 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.

      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

      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 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.

      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

      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 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.

      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

      void removeAll()
      Removes all the batch planner policies from the database.
    • countAll

      int countAll()
      Returns the number of batch planner policies.
      Returns:
      the number of batch planner policies