Interface CommerceDiscountUsageEntryPersistence

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

@ProviderType public interface CommerceDiscountUsageEntryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscountUsageEntry>
The persistence interface for the commerce discount usage entry service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(CommerceDiscountUsageEntry commerceDiscountUsageEntry)
    Caches the commerce discount usage entry in the entity cache if it is enabled.
    void
    cacheResult(List<CommerceDiscountUsageEntry> commerceDiscountUsageEntries)
    Caches the commerce discount usage entries in the entity cache if it is enabled.
    int
    Returns the number of commerce discount usage entries.
    int
    countByCAI_CDI(long commerceAccountId, long commerceDiscountId)
    Returns the number of commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ?.
    int
    countByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId)
    Returns the number of commerce discount usage entries where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
    int
    countByCOI_CDI(long commerceOrderId, long commerceDiscountId)
    Returns the number of commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ?.
    int
    countByCommerceDiscountId(long commerceDiscountId)
    Returns the number of commerce discount usage entries where commerceDiscountId = ?.
    create(long commerceDiscountUsageEntryId)
    Creates a new commerce discount usage entry with the primary key.
    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 = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    fetchByPrimaryKey(long commerceDiscountUsageEntryId)
    Returns the commerce discount usage entry with the primary key or returns null if it could not be found.
    Returns all the commerce discount usage entries.
    findAll(int start, int end)
    Returns a range of all the commerce discount usage entries.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
    Returns an ordered range of all the commerce discount usage entries.
    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.
    findByCAI_CDI(long commerceAccountId, long commerceDiscountId)
    Returns all the commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ?.
    findByCAI_CDI(long commerceAccountId, long commerceDiscountId, int start, int end)
    Returns a range of all the commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ?.
    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 = ?.
    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 = ?.
    findByCAI_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 = ?.
    findByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId)
    Returns all the commerce discount usage entries where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    findByCAI_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 = ?.
    findByCOI_CDI(long commerceOrderId, long commerceDiscountId)
    Returns all the commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ?.
    findByCOI_CDI(long commerceOrderId, long commerceDiscountId, int start, int end)
    Returns a range of all the commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ?.
    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 = ?.
    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 = ?.
    findByCOI_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 = ?.
    findByCommerceDiscountId(long commerceDiscountId)
    Returns all the commerce discount usage entries where commerceDiscountId = ?.
    findByCommerceDiscountId(long commerceDiscountId, int start, int end)
    Returns a range of all the commerce discount usage entries where commerceDiscountId = ?.
    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 = ?.
    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 = ?.
    findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
    Returns the first commerce discount usage entry in the ordered set where commerceDiscountId = ?.
    findByPrimaryKey(long commerceDiscountUsageEntryId)
    Returns the commerce discount usage entry with the primary key or throws a NoSuchDiscountUsageEntryException if it could not be found.
    remove(long commerceDiscountUsageEntryId)
    Removes the commerce discount usage entry with the primary key from the database.
    void
    Removes all the commerce discount usage entries from the database.
    void
    removeByCAI_CDI(long commerceAccountId, long commerceDiscountId)
    Removes all the commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ? from the database.
    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.
    void
    removeByCOI_CDI(long commerceOrderId, long commerceDiscountId)
    Removes all the commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ? from the database.
    void
    removeByCommerceDiscountId(long commerceDiscountId)
    Removes all the commerce discount usage entries where commerceDiscountId = ? from the database.
    updateImpl(CommerceDiscountUsageEntry commerceDiscountUsageEntry)
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
  • Method Details

    • findByCommerceDiscountId

      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

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.discount.model.impl.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

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.discount.model.impl.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

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.discount.model.impl.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

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

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

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

      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

      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

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.discount.model.impl.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

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.discount.model.impl.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

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.discount.model.impl.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

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

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

      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

      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

      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

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.discount.model.impl.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

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.discount.model.impl.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

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.discount.model.impl.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

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

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

      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

      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

      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

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.discount.model.impl.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

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.discount.model.impl.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

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.discount.model.impl.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

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

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

      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

      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

      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

      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

      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

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

      CommerceDiscountUsageEntry updateImpl(CommerceDiscountUsageEntry commerceDiscountUsageEntry)
    • findByPrimaryKey

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

      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

      Returns all the commerce discount usage entries.
      Returns:
      the commerce discount usage entries
    • findAll

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.discount.model.impl.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

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.discount.model.impl.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

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.discount.model.impl.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

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

      int countAll()
      Returns the number of commerce discount usage entries.
      Returns:
      the number of commerce discount usage entries