Class CommerceDiscountUsageEntryUtil

java.lang.Object
com.liferay.commerce.discount.service.persistence.CommerceDiscountUsageEntryUtil

public class CommerceDiscountUsageEntryUtil extends Object
The persistence utility for the commerce discount usage entry service. This utility wraps com.liferay.commerce.discount.service.persistence.impl.CommerceDiscountUsageEntryPersistenceImpl 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

    • CommerceDiscountUsageEntryUtil

      public CommerceDiscountUsageEntryUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static CommerceDiscountUsageEntry update(CommerceDiscountUsageEntry commerceDiscountUsageEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByCommerceDiscountId

      public static List<CommerceDiscountUsageEntry> findByCommerceDiscountId(long commerceDiscountId)
      Returns all the commerce discount usage entries where commerceDiscountId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      Returns:
      the matching commerce discount usage entries
    • findByCommerceDiscountId

      public static List<CommerceDiscountUsageEntry> findByCommerceDiscountId(long commerceDiscountId, int start, int end)
      Returns a range of all the commerce discount usage entries where commerceDiscountId = ?.

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

      Parameters:
      commerceDiscountId - the commerce discount ID
      start - the lower bound of the range of commerce discount usage entries
      end - the upper bound of the range of commerce discount usage entries (not inclusive)
      Returns:
      the range of matching commerce discount usage entries
    • findByCommerceDiscountId

      public static List<CommerceDiscountUsageEntry> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
      Returns an ordered range of all the commerce discount usage entries where commerceDiscountId = ?.

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

      Parameters:
      commerceDiscountId - the commerce discount ID
      start - the lower bound of the range of commerce discount usage entries
      end - the upper bound of the range of commerce discount usage entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discount usage entries
    • findByCommerceDiscountId

      public static List<CommerceDiscountUsageEntry> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discount usage entries where commerceDiscountId = ?.

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

      Parameters:
      commerceDiscountId - the commerce discount ID
      start - the lower bound of the range of commerce discount usage entries
      end - the upper bound of the range of commerce discount usage entries (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 discount usage entries
    • findByCommerceDiscountId_First

      public static CommerceDiscountUsageEntry findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
      Returns the first commerce discount usage entry in the ordered set where commerceDiscountId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount usage entry
      Throws:
      NoSuchDiscountUsageEntryException - if a matching commerce discount usage entry could not be found
      NoSuchDiscountUsageEntryException
    • fetchByCommerceDiscountId_First

      public static CommerceDiscountUsageEntry fetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
      Returns the first commerce discount usage entry in the ordered set where commerceDiscountId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount usage entry, or null if a matching commerce discount usage entry could not be found
    • findByCommerceDiscountId_Last

      public static CommerceDiscountUsageEntry findByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
      Returns the last commerce discount usage entry in the ordered set where commerceDiscountId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount usage entry
      Throws:
      NoSuchDiscountUsageEntryException - if a matching commerce discount usage entry could not be found
      NoSuchDiscountUsageEntryException
    • fetchByCommerceDiscountId_Last

      public static CommerceDiscountUsageEntry fetchByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
      Returns the last commerce discount usage entry in the ordered set where commerceDiscountId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount usage entry, or null if a matching commerce discount usage entry could not be found
    • findByCommerceDiscountId_PrevAndNext

      public static CommerceDiscountUsageEntry[] findByCommerceDiscountId_PrevAndNext(long commerceDiscountUsageEntryId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
      Returns the commerce discount usage entries before and after the current commerce discount usage entry in the ordered set where commerceDiscountId = ?.
      Parameters:
      commerceDiscountUsageEntryId - the primary key of the current commerce discount usage entry
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount usage entry
      Throws:
      NoSuchDiscountUsageEntryException - if a commerce discount usage entry with the primary key could not be found
      NoSuchDiscountUsageEntryException
    • removeByCommerceDiscountId

      public static void removeByCommerceDiscountId(long commerceDiscountId)
      Removes all the commerce discount usage entries where commerceDiscountId = ? from the database.
      Parameters:
      commerceDiscountId - the commerce discount ID
    • countByCommerceDiscountId

      public static int countByCommerceDiscountId(long commerceDiscountId)
      Returns the number of commerce discount usage entries where commerceDiscountId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      Returns:
      the number of matching commerce discount usage entries
    • findByCAI_CDI

      public static List<CommerceDiscountUsageEntry> findByCAI_CDI(long commerceAccountId, long commerceDiscountId)
      Returns all the commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceDiscountId - the commerce discount ID
      Returns:
      the matching commerce discount usage entries
    • findByCAI_CDI

      public static List<CommerceDiscountUsageEntry> findByCAI_CDI(long commerceAccountId, long commerceDiscountId, int start, int end)
      Returns a range of all the commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ?.

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

      Parameters:
      commerceAccountId - the commerce account ID
      commerceDiscountId - the commerce discount ID
      start - the lower bound of the range of commerce discount usage entries
      end - the upper bound of the range of commerce discount usage entries (not inclusive)
      Returns:
      the range of matching commerce discount usage entries
    • findByCAI_CDI

      public static List<CommerceDiscountUsageEntry> findByCAI_CDI(long commerceAccountId, long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
      Returns an ordered range of all the commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ?.

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

      Parameters:
      commerceAccountId - the commerce account ID
      commerceDiscountId - the commerce discount ID
      start - the lower bound of the range of commerce discount usage entries
      end - the upper bound of the range of commerce discount usage entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discount usage entries
    • findByCAI_CDI

      public static List<CommerceDiscountUsageEntry> findByCAI_CDI(long commerceAccountId, long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ?.

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

      Parameters:
      commerceAccountId - the commerce account ID
      commerceDiscountId - the commerce discount ID
      start - the lower bound of the range of commerce discount usage entries
      end - the upper bound of the range of commerce discount usage entries (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 discount usage entries
    • findByCAI_CDI_First

      public static CommerceDiscountUsageEntry findByCAI_CDI_First(long commerceAccountId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
      Returns the first commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceDiscountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount usage entry
      Throws:
      NoSuchDiscountUsageEntryException - if a matching commerce discount usage entry could not be found
      NoSuchDiscountUsageEntryException
    • fetchByCAI_CDI_First

      public static CommerceDiscountUsageEntry fetchByCAI_CDI_First(long commerceAccountId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
      Returns the first commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceDiscountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount usage entry, or null if a matching commerce discount usage entry could not be found
    • findByCAI_CDI_Last

      public static CommerceDiscountUsageEntry findByCAI_CDI_Last(long commerceAccountId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
      Returns the last commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceDiscountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount usage entry
      Throws:
      NoSuchDiscountUsageEntryException - if a matching commerce discount usage entry could not be found
      NoSuchDiscountUsageEntryException
    • fetchByCAI_CDI_Last

      public static CommerceDiscountUsageEntry fetchByCAI_CDI_Last(long commerceAccountId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
      Returns the last commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceDiscountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount usage entry, or null if a matching commerce discount usage entry could not be found
    • findByCAI_CDI_PrevAndNext

      public static CommerceDiscountUsageEntry[] findByCAI_CDI_PrevAndNext(long commerceDiscountUsageEntryId, long commerceAccountId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
      Returns the commerce discount usage entries before and after the current commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceDiscountId = ?.
      Parameters:
      commerceDiscountUsageEntryId - the primary key of the current commerce discount usage entry
      commerceAccountId - the commerce account ID
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount usage entry
      Throws:
      NoSuchDiscountUsageEntryException - if a commerce discount usage entry with the primary key could not be found
      NoSuchDiscountUsageEntryException
    • removeByCAI_CDI

      public static void removeByCAI_CDI(long commerceAccountId, long commerceDiscountId)
      Removes all the commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ? from the database.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceDiscountId - the commerce discount ID
    • countByCAI_CDI

      public static int countByCAI_CDI(long commerceAccountId, long commerceDiscountId)
      Returns the number of commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceDiscountId - the commerce discount ID
      Returns:
      the number of matching commerce discount usage entries
    • findByCOI_CDI

      public static List<CommerceDiscountUsageEntry> findByCOI_CDI(long commerceOrderId, long commerceDiscountId)
      Returns all the commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      Returns:
      the matching commerce discount usage entries
    • findByCOI_CDI

      public static List<CommerceDiscountUsageEntry> findByCOI_CDI(long commerceOrderId, long commerceDiscountId, int start, int end)
      Returns a range of all the commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ?.

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

      Parameters:
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      start - the lower bound of the range of commerce discount usage entries
      end - the upper bound of the range of commerce discount usage entries (not inclusive)
      Returns:
      the range of matching commerce discount usage entries
    • findByCOI_CDI

      public static List<CommerceDiscountUsageEntry> findByCOI_CDI(long commerceOrderId, long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
      Returns an ordered range of all the commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ?.

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

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

      public static List<CommerceDiscountUsageEntry> findByCOI_CDI(long commerceOrderId, long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ?.

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

      Parameters:
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      start - the lower bound of the range of commerce discount usage entries
      end - the upper bound of the range of commerce discount usage entries (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 discount usage entries
    • findByCOI_CDI_First

      public static CommerceDiscountUsageEntry findByCOI_CDI_First(long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
      Returns the first commerce discount usage entry in the ordered set where commerceOrderId = ? and commerceDiscountId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount usage entry
      Throws:
      NoSuchDiscountUsageEntryException - if a matching commerce discount usage entry could not be found
      NoSuchDiscountUsageEntryException
    • fetchByCOI_CDI_First

      public static CommerceDiscountUsageEntry fetchByCOI_CDI_First(long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
      Returns the first commerce discount usage entry in the ordered set where commerceOrderId = ? and commerceDiscountId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount usage entry, or null if a matching commerce discount usage entry could not be found
    • findByCOI_CDI_Last

      public static CommerceDiscountUsageEntry findByCOI_CDI_Last(long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
      Returns the last commerce discount usage entry in the ordered set where commerceOrderId = ? and commerceDiscountId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount usage entry
      Throws:
      NoSuchDiscountUsageEntryException - if a matching commerce discount usage entry could not be found
      NoSuchDiscountUsageEntryException
    • fetchByCOI_CDI_Last

      public static CommerceDiscountUsageEntry fetchByCOI_CDI_Last(long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
      Returns the last commerce discount usage entry in the ordered set where commerceOrderId = ? and commerceDiscountId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount usage entry, or null if a matching commerce discount usage entry could not be found
    • findByCOI_CDI_PrevAndNext

      public static CommerceDiscountUsageEntry[] findByCOI_CDI_PrevAndNext(long commerceDiscountUsageEntryId, long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
      Returns the commerce discount usage entries before and after the current commerce discount usage entry in the ordered set where commerceOrderId = ? and commerceDiscountId = ?.
      Parameters:
      commerceDiscountUsageEntryId - the primary key of the current commerce discount usage entry
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount usage entry
      Throws:
      NoSuchDiscountUsageEntryException - if a commerce discount usage entry with the primary key could not be found
      NoSuchDiscountUsageEntryException
    • removeByCOI_CDI

      public static void removeByCOI_CDI(long commerceOrderId, long commerceDiscountId)
      Removes all the commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ? from the database.
      Parameters:
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
    • countByCOI_CDI

      public static int countByCOI_CDI(long commerceOrderId, long commerceDiscountId)
      Returns the number of commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      Returns:
      the number of matching commerce discount usage entries
    • findByCAI_COI_CDI

      public static List<CommerceDiscountUsageEntry> findByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId)
      Returns all the commerce discount usage entries where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      Returns:
      the matching commerce discount usage entries
    • findByCAI_COI_CDI

      public static List<CommerceDiscountUsageEntry> findByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId, int start, int end)
      Returns a range of all the commerce discount usage entries where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.

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

      Parameters:
      commerceAccountId - the commerce account ID
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      start - the lower bound of the range of commerce discount usage entries
      end - the upper bound of the range of commerce discount usage entries (not inclusive)
      Returns:
      the range of matching commerce discount usage entries
    • findByCAI_COI_CDI

      public static List<CommerceDiscountUsageEntry> findByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
      Returns an ordered range of all the commerce discount usage entries where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.

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

      Parameters:
      commerceAccountId - the commerce account ID
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      start - the lower bound of the range of commerce discount usage entries
      end - the upper bound of the range of commerce discount usage entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discount usage entries
    • findByCAI_COI_CDI

      public static List<CommerceDiscountUsageEntry> findByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discount usage entries where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.

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

      Parameters:
      commerceAccountId - the commerce account ID
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      start - the lower bound of the range of commerce discount usage entries
      end - the upper bound of the range of commerce discount usage entries (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 discount usage entries
    • findByCAI_COI_CDI_First

      public static CommerceDiscountUsageEntry findByCAI_COI_CDI_First(long commerceAccountId, long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
      Returns the first commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount usage entry
      Throws:
      NoSuchDiscountUsageEntryException - if a matching commerce discount usage entry could not be found
      NoSuchDiscountUsageEntryException
    • fetchByCAI_COI_CDI_First

      public static CommerceDiscountUsageEntry fetchByCAI_COI_CDI_First(long commerceAccountId, long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
      Returns the first commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount usage entry, or null if a matching commerce discount usage entry could not be found
    • findByCAI_COI_CDI_Last

      public static CommerceDiscountUsageEntry findByCAI_COI_CDI_Last(long commerceAccountId, long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
      Returns the last commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount usage entry
      Throws:
      NoSuchDiscountUsageEntryException - if a matching commerce discount usage entry could not be found
      NoSuchDiscountUsageEntryException
    • fetchByCAI_COI_CDI_Last

      public static CommerceDiscountUsageEntry fetchByCAI_COI_CDI_Last(long commerceAccountId, long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
      Returns the last commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount usage entry, or null if a matching commerce discount usage entry could not be found
    • findByCAI_COI_CDI_PrevAndNext

      public static CommerceDiscountUsageEntry[] findByCAI_COI_CDI_PrevAndNext(long commerceDiscountUsageEntryId, long commerceAccountId, long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
      Returns the commerce discount usage entries before and after the current commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
      Parameters:
      commerceDiscountUsageEntryId - the primary key of the current commerce discount usage entry
      commerceAccountId - the commerce account ID
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount usage entry
      Throws:
      NoSuchDiscountUsageEntryException - if a commerce discount usage entry with the primary key could not be found
      NoSuchDiscountUsageEntryException
    • removeByCAI_COI_CDI

      public static void removeByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId)
      Removes all the commerce discount usage entries where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ? from the database.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
    • countByCAI_COI_CDI

      public static int countByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId)
      Returns the number of commerce discount usage entries where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceOrderId - the commerce order ID
      commerceDiscountId - the commerce discount ID
      Returns:
      the number of matching commerce discount usage entries
    • cacheResult

      public static void cacheResult(CommerceDiscountUsageEntry commerceDiscountUsageEntry)
      Caches the commerce discount usage entry in the entity cache if it is enabled.
      Parameters:
      commerceDiscountUsageEntry - the commerce discount usage entry
    • cacheResult

      public static void cacheResult(List<CommerceDiscountUsageEntry> commerceDiscountUsageEntries)
      Caches the commerce discount usage entries in the entity cache if it is enabled.
      Parameters:
      commerceDiscountUsageEntries - the commerce discount usage entries
    • create

      public static CommerceDiscountUsageEntry create(long commerceDiscountUsageEntryId)
      Creates a new commerce discount usage entry with the primary key. Does not add the commerce discount usage entry to the database.
      Parameters:
      commerceDiscountUsageEntryId - the primary key for the new commerce discount usage entry
      Returns:
      the new commerce discount usage entry
    • remove

      public static CommerceDiscountUsageEntry remove(long commerceDiscountUsageEntryId) throws NoSuchDiscountUsageEntryException
      Removes the commerce discount usage entry with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      commerceDiscountUsageEntryId - the primary key of the commerce discount usage entry
      Returns:
      the commerce discount usage entry that was removed
      Throws:
      NoSuchDiscountUsageEntryException - if a commerce discount usage entry with the primary key could not be found
      NoSuchDiscountUsageEntryException
    • updateImpl

      public static CommerceDiscountUsageEntry updateImpl(CommerceDiscountUsageEntry commerceDiscountUsageEntry)
    • findByPrimaryKey

      public static CommerceDiscountUsageEntry findByPrimaryKey(long commerceDiscountUsageEntryId) throws NoSuchDiscountUsageEntryException
      Returns the commerce discount usage entry with the primary key or throws a NoSuchDiscountUsageEntryException if it could not be found.
      Parameters:
      commerceDiscountUsageEntryId - the primary key of the commerce discount usage entry
      Returns:
      the commerce discount usage entry
      Throws:
      NoSuchDiscountUsageEntryException - if a commerce discount usage entry with the primary key could not be found
      NoSuchDiscountUsageEntryException
    • fetchByPrimaryKey

      public static CommerceDiscountUsageEntry fetchByPrimaryKey(long commerceDiscountUsageEntryId)
      Returns the commerce discount usage entry with the primary key or returns null if it could not be found.
      Parameters:
      commerceDiscountUsageEntryId - the primary key of the commerce discount usage entry
      Returns:
      the commerce discount usage entry, or null if a commerce discount usage entry with the primary key could not be found
    • findAll

      public static List<CommerceDiscountUsageEntry> findAll()
      Returns all the commerce discount usage entries.
      Returns:
      the commerce discount usage entries
    • findAll

      public static List<CommerceDiscountUsageEntry> findAll(int start, int end)
      Returns a range of all the commerce discount usage entries.

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

      Parameters:
      start - the lower bound of the range of commerce discount usage entries
      end - the upper bound of the range of commerce discount usage entries (not inclusive)
      Returns:
      the range of commerce discount usage entries
    • findAll

      public static List<CommerceDiscountUsageEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
      Returns an ordered range of all the commerce discount usage entries.

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

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

      public static List<CommerceDiscountUsageEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discount usage entries.

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

      Parameters:
      start - the lower bound of the range of commerce discount usage entries
      end - the upper bound of the range of commerce discount usage entries (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 discount usage entries
    • removeAll

      public static void removeAll()
      Removes all the commerce discount usage entries from the database.
    • countAll

      public static int countAll()
      Returns the number of commerce discount usage entries.
      Returns:
      the number of commerce discount usage entries
    • getPersistence

      public static CommerceDiscountUsageEntryPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommerceDiscountUsageEntryPersistence persistence)