Class CommerceOrderPaymentUtil

java.lang.Object
com.liferay.commerce.service.persistence.CommerceOrderPaymentUtil

public class CommerceOrderPaymentUtil extends Object
The persistence utility for the commerce order payment service. This utility wraps com.liferay.commerce.service.persistence.impl.CommerceOrderPaymentPersistenceImpl 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

    • CommerceOrderPaymentUtil

      public CommerceOrderPaymentUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(CommerceOrderPayment commerceOrderPayment)
      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,CommerceOrderPayment> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<CommerceOrderPayment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<CommerceOrderPayment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<CommerceOrderPayment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static CommerceOrderPayment update(CommerceOrderPayment commerceOrderPayment)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static CommerceOrderPayment update(CommerceOrderPayment commerceOrderPayment, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByCommerceOrderId

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrderPaymentException
    • fetchByCommerceOrderId_First

      public static 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

      public static 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
      NoSuchOrderPaymentException
    • fetchByCommerceOrderId_Last

      public static 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

      public static 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
      NoSuchOrderPaymentException
    • removeByCommerceOrderId

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

      public static 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

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

      public static 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

      public static 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

      public static 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
      NoSuchOrderPaymentException
    • updateImpl

      public static CommerceOrderPayment updateImpl(CommerceOrderPayment commerceOrderPayment)
    • findByPrimaryKey

      public static 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
      NoSuchOrderPaymentException
    • fetchByPrimaryKey

      public static 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

      public static List<CommerceOrderPayment> findAll()
      Returns all the commerce order payments.
      Returns:
      the commerce order payments
    • findAll

      public static 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

      public static 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

      public static 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

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

      public static int countAll()
      Returns the number of commerce order payments.
      Returns:
      the number of commerce order payments
    • getPersistence

      public static CommerceOrderPaymentPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommerceOrderPaymentPersistence persistence)