Interface CommerceOrderPaymentPersistence

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

@ProviderType public interface CommerceOrderPaymentPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceOrderPayment>
The persistence interface for the commerce order payment service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Details

    • findByCommerceOrderId

      List<CommerceOrderPayment> findByCommerceOrderId(long commerceOrderId)
      Returns all the commerce order payments where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      Returns:
      the matching commerce order payments
    • findByCommerceOrderId

      List<CommerceOrderPayment> findByCommerceOrderId(long commerceOrderId, int start, int end)
      Returns a range of all the commerce order payments where commerceOrderId = ?.

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

      Parameters:
      commerceOrderId - the commerce order ID
      start - the lower bound of the range of commerce order payments
      end - the upper bound of the range of commerce order payments (not inclusive)
      Returns:
      the range of matching commerce order payments
    • findByCommerceOrderId

      List<CommerceOrderPayment> findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator)
      Returns an ordered range of all the commerce order payments where commerceOrderId = ?.

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

      Parameters:
      commerceOrderId - the commerce order ID
      start - the lower bound of the range of commerce order payments
      end - the upper bound of the range of commerce order payments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce order payments
    • findByCommerceOrderId

      List<CommerceOrderPayment> findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order payments where commerceOrderId = ?.

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

      Parameters:
      commerceOrderId - the commerce order ID
      start - the lower bound of the range of commerce order payments
      end - the upper bound of the range of commerce order payments (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 commerce order payments
    • findByCommerceOrderId_First

      CommerceOrderPayment findByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator) throws NoSuchOrderPaymentException
      Returns the first commerce order payment in the ordered set where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order payment
      Throws:
      NoSuchOrderPaymentException - if a matching commerce order payment could not be found
    • fetchByCommerceOrderId_First

      CommerceOrderPayment fetchByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator)
      Returns the first commerce order payment in the ordered set where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order payment, or null if a matching commerce order payment could not be found
    • findByCommerceOrderId_Last

      CommerceOrderPayment findByCommerceOrderId_Last(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator) throws NoSuchOrderPaymentException
      Returns the last commerce order payment in the ordered set where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order payment
      Throws:
      NoSuchOrderPaymentException - if a matching commerce order payment could not be found
    • fetchByCommerceOrderId_Last

      CommerceOrderPayment fetchByCommerceOrderId_Last(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator)
      Returns the last commerce order payment in the ordered set where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order payment, or null if a matching commerce order payment could not be found
    • findByCommerceOrderId_PrevAndNext

      CommerceOrderPayment[] findByCommerceOrderId_PrevAndNext(long commerceOrderPaymentId, long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator) throws NoSuchOrderPaymentException
      Returns the commerce order payments before and after the current commerce order payment in the ordered set where commerceOrderId = ?.
      Parameters:
      commerceOrderPaymentId - the primary key of the current commerce order payment
      commerceOrderId - the commerce order ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order payment
      Throws:
      NoSuchOrderPaymentException - if a commerce order payment with the primary key could not be found
    • removeByCommerceOrderId

      void removeByCommerceOrderId(long commerceOrderId)
      Removes all the commerce order payments where commerceOrderId = ? from the database.
      Parameters:
      commerceOrderId - the commerce order ID
    • countByCommerceOrderId

      int countByCommerceOrderId(long commerceOrderId)
      Returns the number of commerce order payments where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      Returns:
      the number of matching commerce order payments
    • cacheResult

      void cacheResult(CommerceOrderPayment commerceOrderPayment)
      Caches the commerce order payment in the entity cache if it is enabled.
      Parameters:
      commerceOrderPayment - the commerce order payment
    • cacheResult

      void cacheResult(List<CommerceOrderPayment> commerceOrderPayments)
      Caches the commerce order payments in the entity cache if it is enabled.
      Parameters:
      commerceOrderPayments - the commerce order payments
    • create

      CommerceOrderPayment create(long commerceOrderPaymentId)
      Creates a new commerce order payment with the primary key. Does not add the commerce order payment to the database.
      Parameters:
      commerceOrderPaymentId - the primary key for the new commerce order payment
      Returns:
      the new commerce order payment
    • remove

      CommerceOrderPayment remove(long commerceOrderPaymentId) throws NoSuchOrderPaymentException
      Removes the commerce order payment with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      commerceOrderPaymentId - the primary key of the commerce order payment
      Returns:
      the commerce order payment that was removed
      Throws:
      NoSuchOrderPaymentException - if a commerce order payment with the primary key could not be found
    • updateImpl

      CommerceOrderPayment updateImpl(CommerceOrderPayment commerceOrderPayment)
    • findByPrimaryKey

      CommerceOrderPayment findByPrimaryKey(long commerceOrderPaymentId) throws NoSuchOrderPaymentException
      Returns the commerce order payment with the primary key or throws a NoSuchOrderPaymentException if it could not be found.
      Parameters:
      commerceOrderPaymentId - the primary key of the commerce order payment
      Returns:
      the commerce order payment
      Throws:
      NoSuchOrderPaymentException - if a commerce order payment with the primary key could not be found
    • fetchByPrimaryKey

      CommerceOrderPayment fetchByPrimaryKey(long commerceOrderPaymentId)
      Returns the commerce order payment with the primary key or returns null if it could not be found.
      Parameters:
      commerceOrderPaymentId - the primary key of the commerce order payment
      Returns:
      the commerce order payment, or null if a commerce order payment with the primary key could not be found
    • findAll

      Returns all the commerce order payments.
      Returns:
      the commerce order payments
    • findAll

      List<CommerceOrderPayment> findAll(int start, int end)
      Returns a range of all the commerce order payments.

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

      Parameters:
      start - the lower bound of the range of commerce order payments
      end - the upper bound of the range of commerce order payments (not inclusive)
      Returns:
      the range of commerce order payments
    • findAll

      List<CommerceOrderPayment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator)
      Returns an ordered range of all the commerce order payments.

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

      Parameters:
      start - the lower bound of the range of commerce order payments
      end - the upper bound of the range of commerce order payments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of commerce order payments
    • findAll

      List<CommerceOrderPayment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order payments.

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

      Parameters:
      start - the lower bound of the range of commerce order payments
      end - the upper bound of the range of commerce order payments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of commerce order payments
    • removeAll

      void removeAll()
      Removes all the commerce order payments from the database.
    • countAll

      int countAll()
      Returns the number of commerce order payments.
      Returns:
      the number of commerce order payments