Interface CommerceDiscountPersistence

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

@ProviderType public interface CommerceDiscountPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscount>
The persistence interface for the commerce discount service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(CommerceDiscount commerceDiscount)
    Caches the commerce discount in the entity cache if it is enabled.
    void
    cacheResult(List<CommerceDiscount> commerceDiscounts)
    Caches the commerce discounts in the entity cache if it is enabled.
    int
    Returns the number of commerce discounts.
    int
    countByC_C(long companyId, String couponCode)
    Returns the number of commerce discounts where companyId = ? and couponCode = ?.
    int
    countByC_C_A(long companyId, String couponCode, boolean active)
    Returns the number of commerce discounts where companyId = ? and couponCode = ? and active = ?.
    int
    countByC_L_A_S(long companyId, String level, boolean active, int status)
    Returns the number of commerce discounts where companyId = ? and level = ? and active = ? and status = ?.
    int
    countByCompanyId(long companyId)
    Returns the number of commerce discounts where companyId = ?.
    int
    countByERC_C(String externalReferenceCode, long companyId)
    Returns the number of commerce discounts where externalReferenceCode = ? and companyId = ?.
    int
    countByLtD_S(Date displayDate, int status)
    Returns the number of commerce discounts where displayDate < ? and status = ?.
    int
    countByLtE_S(Date expirationDate, int status)
    Returns the number of commerce discounts where expirationDate < ? and status = ?.
    int
    Returns the number of commerce discounts where uuid = ?.
    int
    countByUuid_C(String uuid, long companyId)
    Returns the number of commerce discounts where uuid = ? and companyId = ?.
    create(long commerceDiscountId)
    Creates a new commerce discount with the primary key.
    fetchByC_C_A(long companyId, String couponCode, boolean active)
    Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or returns null if it could not be found.
    fetchByC_C_A(long companyId, String couponCode, boolean active, boolean useFinderCache)
    Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByC_C_First(long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the first commerce discount in the ordered set where companyId = ? and couponCode = ?.
    fetchByC_C_Last(long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the last commerce discount in the ordered set where companyId = ? and couponCode = ?.
    fetchByC_L_A_S_First(long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the first commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.
    fetchByC_L_A_S_Last(long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the last commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the first commerce discount in the ordered set where companyId = ?.
    fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the last commerce discount in the ordered set where companyId = ?.
    fetchByERC_C(String externalReferenceCode, long companyId)
    Returns the commerce discount where externalReferenceCode = ? and companyId = ? or returns null if it could not be found.
    fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
    Returns the commerce discount where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the first commerce discount in the ordered set where displayDate < ? and status = ?.
    fetchByLtD_S_Last(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the last commerce discount in the ordered set where displayDate < ? and status = ?.
    fetchByLtE_S_First(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the first commerce discount in the ordered set where expirationDate < ? and status = ?.
    fetchByLtE_S_Last(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the last commerce discount in the ordered set where expirationDate < ? and status = ?.
    fetchByPrimaryKey(long commerceDiscountId)
    Returns the commerce discount with the primary key or returns null if it could not be found.
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the first commerce discount in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the last commerce discount in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the first commerce discount in the ordered set where uuid = ?.
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the last commerce discount in the ordered set where uuid = ?.
    int
    filterCountByC_C(long companyId, String couponCode)
    Returns the number of commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.
    int
    filterCountByC_L_A_S(long companyId, String level, boolean active, int status)
    Returns the number of commerce discounts that the user has permission to view where companyId = ? and level = ? and active = ? and status = ?.
    int
    filterCountByCompanyId(long companyId)
    Returns the number of commerce discounts that the user has permission to view where companyId = ?.
    int
    filterCountByLtD_S(Date displayDate, int status)
    Returns the number of commerce discounts that the user has permission to view where displayDate < ? and status = ?.
    int
    filterCountByLtE_S(Date expirationDate, int status)
    Returns the number of commerce discounts that the user has permission to view where expirationDate < ? and status = ?.
    int
    Returns the number of commerce discounts that the user has permission to view where uuid = ?.
    int
    filterCountByUuid_C(String uuid, long companyId)
    Returns the number of commerce discounts that the user has permission to view where uuid = ? and companyId = ?.
    filterFindByC_C(long companyId, String couponCode)
    Returns all the commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.
    filterFindByC_C(long companyId, String couponCode, int start, int end)
    Returns a range of all the commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.
    filterFindByC_C(long companyId, String couponCode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns an ordered range of all the commerce discounts that the user has permissions to view where companyId = ? and couponCode = ?.
    filterFindByC_C_PrevAndNext(long commerceDiscountId, long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.
    filterFindByC_L_A_S(long companyId, String level, boolean active, int status)
    Returns all the commerce discounts that the user has permission to view where companyId = ? and level = ? and active = ? and status = ?.
    filterFindByC_L_A_S(long companyId, String level, boolean active, int status, int start, int end)
    Returns a range of all the commerce discounts that the user has permission to view where companyId = ? and level = ? and active = ? and status = ?.
    filterFindByC_L_A_S(long companyId, String level, boolean active, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns an ordered range of all the commerce discounts that the user has permissions to view where companyId = ? and level = ? and active = ? and status = ?.
    filterFindByC_L_A_S_PrevAndNext(long commerceDiscountId, long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where companyId = ? and level = ? and active = ? and status = ?.
    filterFindByCompanyId(long companyId)
    Returns all the commerce discounts that the user has permission to view where companyId = ?.
    filterFindByCompanyId(long companyId, int start, int end)
    Returns a range of all the commerce discounts that the user has permission to view where companyId = ?.
    filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns an ordered range of all the commerce discounts that the user has permissions to view where companyId = ?.
    filterFindByCompanyId_PrevAndNext(long commerceDiscountId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where companyId = ?.
    filterFindByLtD_S(Date displayDate, int status)
    Returns all the commerce discounts that the user has permission to view where displayDate < ? and status = ?.
    filterFindByLtD_S(Date displayDate, int status, int start, int end)
    Returns a range of all the commerce discounts that the user has permission to view where displayDate < ? and status = ?.
    filterFindByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns an ordered range of all the commerce discounts that the user has permissions to view where displayDate < ? and status = ?.
    filterFindByLtD_S_PrevAndNext(long commerceDiscountId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where displayDate < ? and status = ?.
    filterFindByLtE_S(Date expirationDate, int status)
    Returns all the commerce discounts that the user has permission to view where expirationDate < ? and status = ?.
    filterFindByLtE_S(Date expirationDate, int status, int start, int end)
    Returns a range of all the commerce discounts that the user has permission to view where expirationDate < ? and status = ?.
    filterFindByLtE_S(Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns an ordered range of all the commerce discounts that the user has permissions to view where expirationDate < ? and status = ?.
    filterFindByLtE_S_PrevAndNext(long commerceDiscountId, Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where expirationDate < ? and status = ?.
    Returns all the commerce discounts that the user has permission to view where uuid = ?.
    filterFindByUuid(String uuid, int start, int end)
    Returns a range of all the commerce discounts that the user has permission to view where uuid = ?.
    filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns an ordered range of all the commerce discounts that the user has permissions to view where uuid = ?.
    filterFindByUuid_C(String uuid, long companyId)
    Returns all the commerce discounts that the user has permission to view where uuid = ? and companyId = ?.
    filterFindByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the commerce discounts that the user has permission to view where uuid = ? and companyId = ?.
    filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns an ordered range of all the commerce discounts that the user has permissions to view where uuid = ? and companyId = ?.
    filterFindByUuid_C_PrevAndNext(long commerceDiscountId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where uuid = ? and companyId = ?.
    filterFindByUuid_PrevAndNext(long commerceDiscountId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where uuid = ?.
    Returns all the commerce discounts.
    findAll(int start, int end)
    Returns a range of all the commerce discounts.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns an ordered range of all the commerce discounts.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce discounts.
    findByC_C(long companyId, String couponCode)
    Returns all the commerce discounts where companyId = ? and couponCode = ?.
    findByC_C(long companyId, String couponCode, int start, int end)
    Returns a range of all the commerce discounts where companyId = ? and couponCode = ?.
    findByC_C(long companyId, String couponCode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns an ordered range of all the commerce discounts where companyId = ? and couponCode = ?.
    findByC_C(long companyId, String couponCode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce discounts where companyId = ? and couponCode = ?.
    findByC_C_A(long companyId, String couponCode, boolean active)
    Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or throws a NoSuchDiscountException if it could not be found.
    findByC_C_First(long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the first commerce discount in the ordered set where companyId = ? and couponCode = ?.
    findByC_C_Last(long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the last commerce discount in the ordered set where companyId = ? and couponCode = ?.
    findByC_C_PrevAndNext(long commerceDiscountId, long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the commerce discounts before and after the current commerce discount in the ordered set where companyId = ? and couponCode = ?.
    findByC_L_A_S(long companyId, String level, boolean active, int status)
    Returns all the commerce discounts where companyId = ? and level = ? and active = ? and status = ?.
    findByC_L_A_S(long companyId, String level, boolean active, int status, int start, int end)
    Returns a range of all the commerce discounts where companyId = ? and level = ? and active = ? and status = ?.
    findByC_L_A_S(long companyId, String level, boolean active, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns an ordered range of all the commerce discounts where companyId = ? and level = ? and active = ? and status = ?.
    findByC_L_A_S(long companyId, String level, boolean active, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce discounts where companyId = ? and level = ? and active = ? and status = ?.
    findByC_L_A_S_First(long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the first commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.
    findByC_L_A_S_Last(long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the last commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.
    findByC_L_A_S_PrevAndNext(long commerceDiscountId, long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the commerce discounts before and after the current commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.
    findByCompanyId(long companyId)
    Returns all the commerce discounts where companyId = ?.
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the commerce discounts where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns an ordered range of all the commerce discounts where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce discounts where companyId = ?.
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the first commerce discount in the ordered set where companyId = ?.
    findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the last commerce discount in the ordered set where companyId = ?.
    findByCompanyId_PrevAndNext(long commerceDiscountId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the commerce discounts before and after the current commerce discount in the ordered set where companyId = ?.
    findByERC_C(String externalReferenceCode, long companyId)
    Returns the commerce discount where externalReferenceCode = ? and companyId = ? or throws a NoSuchDiscountException if it could not be found.
    findByLtD_S(Date displayDate, int status)
    Returns all the commerce discounts where displayDate < ? and status = ?.
    findByLtD_S(Date displayDate, int status, int start, int end)
    Returns a range of all the commerce discounts where displayDate < ? and status = ?.
    findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns an ordered range of all the commerce discounts where displayDate < ? and status = ?.
    findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce discounts where displayDate < ? and status = ?.
    findByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the first commerce discount in the ordered set where displayDate < ? and status = ?.
    findByLtD_S_Last(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the last commerce discount in the ordered set where displayDate < ? and status = ?.
    findByLtD_S_PrevAndNext(long commerceDiscountId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the commerce discounts before and after the current commerce discount in the ordered set where displayDate < ? and status = ?.
    findByLtE_S(Date expirationDate, int status)
    Returns all the commerce discounts where expirationDate < ? and status = ?.
    findByLtE_S(Date expirationDate, int status, int start, int end)
    Returns a range of all the commerce discounts where expirationDate < ? and status = ?.
    findByLtE_S(Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns an ordered range of all the commerce discounts where expirationDate < ? and status = ?.
    findByLtE_S(Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce discounts where expirationDate < ? and status = ?.
    findByLtE_S_First(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the first commerce discount in the ordered set where expirationDate < ? and status = ?.
    findByLtE_S_Last(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the last commerce discount in the ordered set where expirationDate < ? and status = ?.
    findByLtE_S_PrevAndNext(long commerceDiscountId, Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the commerce discounts before and after the current commerce discount in the ordered set where expirationDate < ? and status = ?.
    findByPrimaryKey(long commerceDiscountId)
    Returns the commerce discount with the primary key or throws a NoSuchDiscountException if it could not be found.
    Returns all the commerce discounts where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the commerce discounts where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns an ordered range of all the commerce discounts where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce discounts where uuid = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the commerce discounts where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the commerce discounts where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns an ordered range of all the commerce discounts where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce discounts where uuid = ? and companyId = ?.
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the first commerce discount in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the last commerce discount in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_PrevAndNext(long commerceDiscountId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the commerce discounts before and after the current commerce discount in the ordered set where uuid = ? and companyId = ?.
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the first commerce discount in the ordered set where uuid = ?.
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the last commerce discount in the ordered set where uuid = ?.
    findByUuid_PrevAndNext(long commerceDiscountId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
    Returns the commerce discounts before and after the current commerce discount in the ordered set where uuid = ?.
    remove(long commerceDiscountId)
    Removes the commerce discount with the primary key from the database.
    void
    Removes all the commerce discounts from the database.
    void
    removeByC_C(long companyId, String couponCode)
    Removes all the commerce discounts where companyId = ? and couponCode = ? from the database.
    removeByC_C_A(long companyId, String couponCode, boolean active)
    Removes the commerce discount where companyId = ? and couponCode = ? and active = ? from the database.
    void
    removeByC_L_A_S(long companyId, String level, boolean active, int status)
    Removes all the commerce discounts where companyId = ? and level = ? and active = ? and status = ? from the database.
    void
    removeByCompanyId(long companyId)
    Removes all the commerce discounts where companyId = ? from the database.
    removeByERC_C(String externalReferenceCode, long companyId)
    Removes the commerce discount where externalReferenceCode = ? and companyId = ? from the database.
    void
    removeByLtD_S(Date displayDate, int status)
    Removes all the commerce discounts where displayDate < ? and status = ? from the database.
    void
    removeByLtE_S(Date expirationDate, int status)
    Removes all the commerce discounts where expirationDate < ? and status = ? from the database.
    void
    Removes all the commerce discounts where uuid = ? from the database.
    void
    removeByUuid_C(String uuid, long companyId)
    Removes all the commerce discounts where uuid = ? and companyId = ? from the database.
    updateImpl(CommerceDiscount commerceDiscount)
     

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

    clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, 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

    • findByUuid

      List<CommerceDiscount> findByUuid(String uuid)
      Returns all the commerce discounts where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching commerce discounts
    • findByUuid

      List<CommerceDiscount> findByUuid(String uuid, int start, int end)
      Returns a range of all the commerce discounts where uuid = ?.

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

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      Returns:
      the range of matching commerce discounts
    • findByUuid

      List<CommerceDiscount> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns an ordered range of all the commerce discounts where uuid = ?.

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

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

      List<CommerceDiscount> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discounts where uuid = ?.

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

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (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 discounts
    • findByUuid_First

      CommerceDiscount findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the first commerce discount in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount
      Throws:
      NoSuchDiscountException - if a matching commerce discount could not be found
    • fetchByUuid_First

      CommerceDiscount fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns the first commerce discount in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount, or null if a matching commerce discount could not be found
    • findByUuid_Last

      CommerceDiscount findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the last commerce discount in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount
      Throws:
      NoSuchDiscountException - if a matching commerce discount could not be found
    • fetchByUuid_Last

      CommerceDiscount fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns the last commerce discount in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount, or null if a matching commerce discount could not be found
    • findByUuid_PrevAndNext

      CommerceDiscount[] findByUuid_PrevAndNext(long commerceDiscountId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the commerce discounts before and after the current commerce discount in the ordered set where uuid = ?.
      Parameters:
      commerceDiscountId - the primary key of the current commerce discount
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount
      Throws:
      NoSuchDiscountException - if a commerce discount with the primary key could not be found
    • filterFindByUuid

      List<CommerceDiscount> filterFindByUuid(String uuid)
      Returns all the commerce discounts that the user has permission to view where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching commerce discounts that the user has permission to view
    • filterFindByUuid

      List<CommerceDiscount> filterFindByUuid(String uuid, int start, int end)
      Returns a range of all the commerce discounts that the user has permission to view where uuid = ?.

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

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      Returns:
      the range of matching commerce discounts that the user has permission to view
    • filterFindByUuid

      List<CommerceDiscount> filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns an ordered range of all the commerce discounts that the user has permissions to view where uuid = ?.

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

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discounts that the user has permission to view
    • filterFindByUuid_PrevAndNext

      CommerceDiscount[] filterFindByUuid_PrevAndNext(long commerceDiscountId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where uuid = ?.
      Parameters:
      commerceDiscountId - the primary key of the current commerce discount
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount
      Throws:
      NoSuchDiscountException - if a commerce discount with the primary key could not be found
    • removeByUuid

      void removeByUuid(String uuid)
      Removes all the commerce discounts where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      int countByUuid(String uuid)
      Returns the number of commerce discounts where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching commerce discounts
    • filterCountByUuid

      int filterCountByUuid(String uuid)
      Returns the number of commerce discounts that the user has permission to view where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching commerce discounts that the user has permission to view
    • findByUuid_C

      List<CommerceDiscount> findByUuid_C(String uuid, long companyId)
      Returns all the commerce discounts where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching commerce discounts
    • findByUuid_C

      List<CommerceDiscount> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the commerce discounts where uuid = ? and companyId = ?.

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

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      Returns:
      the range of matching commerce discounts
    • findByUuid_C

      List<CommerceDiscount> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns an ordered range of all the commerce discounts where uuid = ? and companyId = ?.

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

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discounts
    • findByUuid_C

      List<CommerceDiscount> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discounts where uuid = ? and companyId = ?.

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

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (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 discounts
    • findByUuid_C_First

      CommerceDiscount findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the first commerce discount in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount
      Throws:
      NoSuchDiscountException - if a matching commerce discount could not be found
    • fetchByUuid_C_First

      CommerceDiscount fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns the first commerce discount in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount, or null if a matching commerce discount could not be found
    • findByUuid_C_Last

      CommerceDiscount findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the last commerce discount in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount
      Throws:
      NoSuchDiscountException - if a matching commerce discount could not be found
    • fetchByUuid_C_Last

      CommerceDiscount fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns the last commerce discount in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount, or null if a matching commerce discount could not be found
    • findByUuid_C_PrevAndNext

      CommerceDiscount[] findByUuid_C_PrevAndNext(long commerceDiscountId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the commerce discounts before and after the current commerce discount in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      commerceDiscountId - the primary key of the current commerce discount
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount
      Throws:
      NoSuchDiscountException - if a commerce discount with the primary key could not be found
    • filterFindByUuid_C

      List<CommerceDiscount> filterFindByUuid_C(String uuid, long companyId)
      Returns all the commerce discounts that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching commerce discounts that the user has permission to view
    • filterFindByUuid_C

      List<CommerceDiscount> filterFindByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the commerce discounts that the user has permission to view where uuid = ? and companyId = ?.

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

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      Returns:
      the range of matching commerce discounts that the user has permission to view
    • filterFindByUuid_C

      List<CommerceDiscount> filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns an ordered range of all the commerce discounts that the user has permissions to view where uuid = ? and companyId = ?.

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

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discounts that the user has permission to view
    • filterFindByUuid_C_PrevAndNext

      CommerceDiscount[] filterFindByUuid_C_PrevAndNext(long commerceDiscountId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      commerceDiscountId - the primary key of the current commerce discount
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount
      Throws:
      NoSuchDiscountException - if a commerce discount with the primary key could not be found
    • removeByUuid_C

      void removeByUuid_C(String uuid, long companyId)
      Removes all the commerce discounts where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      int countByUuid_C(String uuid, long companyId)
      Returns the number of commerce discounts where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching commerce discounts
    • filterCountByUuid_C

      int filterCountByUuid_C(String uuid, long companyId)
      Returns the number of commerce discounts that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching commerce discounts that the user has permission to view
    • findByCompanyId

      List<CommerceDiscount> findByCompanyId(long companyId)
      Returns all the commerce discounts where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching commerce discounts
    • findByCompanyId

      List<CommerceDiscount> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the commerce discounts where companyId = ?.

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

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      Returns:
      the range of matching commerce discounts
    • findByCompanyId

      List<CommerceDiscount> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns an ordered range of all the commerce discounts where companyId = ?.

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

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

      List<CommerceDiscount> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discounts where companyId = ?.

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

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (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 discounts
    • findByCompanyId_First

      CommerceDiscount findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the first commerce discount in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount
      Throws:
      NoSuchDiscountException - if a matching commerce discount could not be found
    • fetchByCompanyId_First

      CommerceDiscount fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns the first commerce discount in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount, or null if a matching commerce discount could not be found
    • findByCompanyId_Last

      CommerceDiscount findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the last commerce discount in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount
      Throws:
      NoSuchDiscountException - if a matching commerce discount could not be found
    • fetchByCompanyId_Last

      CommerceDiscount fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns the last commerce discount in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount, or null if a matching commerce discount could not be found
    • findByCompanyId_PrevAndNext

      CommerceDiscount[] findByCompanyId_PrevAndNext(long commerceDiscountId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the commerce discounts before and after the current commerce discount in the ordered set where companyId = ?.
      Parameters:
      commerceDiscountId - the primary key of the current commerce discount
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount
      Throws:
      NoSuchDiscountException - if a commerce discount with the primary key could not be found
    • filterFindByCompanyId

      List<CommerceDiscount> filterFindByCompanyId(long companyId)
      Returns all the commerce discounts that the user has permission to view where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching commerce discounts that the user has permission to view
    • filterFindByCompanyId

      List<CommerceDiscount> filterFindByCompanyId(long companyId, int start, int end)
      Returns a range of all the commerce discounts that the user has permission to view where companyId = ?.

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

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      Returns:
      the range of matching commerce discounts that the user has permission to view
    • filterFindByCompanyId

      List<CommerceDiscount> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns an ordered range of all the commerce discounts that the user has permissions to view where companyId = ?.

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

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discounts that the user has permission to view
    • filterFindByCompanyId_PrevAndNext

      CommerceDiscount[] filterFindByCompanyId_PrevAndNext(long commerceDiscountId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where companyId = ?.
      Parameters:
      commerceDiscountId - the primary key of the current commerce discount
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount
      Throws:
      NoSuchDiscountException - if a commerce discount with the primary key could not be found
    • removeByCompanyId

      void removeByCompanyId(long companyId)
      Removes all the commerce discounts where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      int countByCompanyId(long companyId)
      Returns the number of commerce discounts where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching commerce discounts
    • filterCountByCompanyId

      int filterCountByCompanyId(long companyId)
      Returns the number of commerce discounts that the user has permission to view where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching commerce discounts that the user has permission to view
    • findByC_C

      List<CommerceDiscount> findByC_C(long companyId, String couponCode)
      Returns all the commerce discounts where companyId = ? and couponCode = ?.
      Parameters:
      companyId - the company ID
      couponCode - the coupon code
      Returns:
      the matching commerce discounts
    • findByC_C

      List<CommerceDiscount> findByC_C(long companyId, String couponCode, int start, int end)
      Returns a range of all the commerce discounts where companyId = ? and couponCode = ?.

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

      Parameters:
      companyId - the company ID
      couponCode - the coupon code
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      Returns:
      the range of matching commerce discounts
    • findByC_C

      List<CommerceDiscount> findByC_C(long companyId, String couponCode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns an ordered range of all the commerce discounts where companyId = ? and couponCode = ?.

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

      Parameters:
      companyId - the company ID
      couponCode - the coupon code
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discounts
    • findByC_C

      List<CommerceDiscount> findByC_C(long companyId, String couponCode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discounts where companyId = ? and couponCode = ?.

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

      Parameters:
      companyId - the company ID
      couponCode - the coupon code
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (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 discounts
    • findByC_C_First

      CommerceDiscount findByC_C_First(long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the first commerce discount in the ordered set where companyId = ? and couponCode = ?.
      Parameters:
      companyId - the company ID
      couponCode - the coupon code
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount
      Throws:
      NoSuchDiscountException - if a matching commerce discount could not be found
    • fetchByC_C_First

      CommerceDiscount fetchByC_C_First(long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns the first commerce discount in the ordered set where companyId = ? and couponCode = ?.
      Parameters:
      companyId - the company ID
      couponCode - the coupon code
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount, or null if a matching commerce discount could not be found
    • findByC_C_Last

      CommerceDiscount findByC_C_Last(long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the last commerce discount in the ordered set where companyId = ? and couponCode = ?.
      Parameters:
      companyId - the company ID
      couponCode - the coupon code
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount
      Throws:
      NoSuchDiscountException - if a matching commerce discount could not be found
    • fetchByC_C_Last

      CommerceDiscount fetchByC_C_Last(long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns the last commerce discount in the ordered set where companyId = ? and couponCode = ?.
      Parameters:
      companyId - the company ID
      couponCode - the coupon code
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount, or null if a matching commerce discount could not be found
    • findByC_C_PrevAndNext

      CommerceDiscount[] findByC_C_PrevAndNext(long commerceDiscountId, long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the commerce discounts before and after the current commerce discount in the ordered set where companyId = ? and couponCode = ?.
      Parameters:
      commerceDiscountId - the primary key of the current commerce discount
      companyId - the company ID
      couponCode - the coupon code
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount
      Throws:
      NoSuchDiscountException - if a commerce discount with the primary key could not be found
    • filterFindByC_C

      List<CommerceDiscount> filterFindByC_C(long companyId, String couponCode)
      Returns all the commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.
      Parameters:
      companyId - the company ID
      couponCode - the coupon code
      Returns:
      the matching commerce discounts that the user has permission to view
    • filterFindByC_C

      List<CommerceDiscount> filterFindByC_C(long companyId, String couponCode, int start, int end)
      Returns a range of all the commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.

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

      Parameters:
      companyId - the company ID
      couponCode - the coupon code
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      Returns:
      the range of matching commerce discounts that the user has permission to view
    • filterFindByC_C

      List<CommerceDiscount> filterFindByC_C(long companyId, String couponCode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns an ordered range of all the commerce discounts that the user has permissions to view where companyId = ? and couponCode = ?.

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

      Parameters:
      companyId - the company ID
      couponCode - the coupon code
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discounts that the user has permission to view
    • filterFindByC_C_PrevAndNext

      CommerceDiscount[] filterFindByC_C_PrevAndNext(long commerceDiscountId, long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.
      Parameters:
      commerceDiscountId - the primary key of the current commerce discount
      companyId - the company ID
      couponCode - the coupon code
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount
      Throws:
      NoSuchDiscountException - if a commerce discount with the primary key could not be found
    • removeByC_C

      void removeByC_C(long companyId, String couponCode)
      Removes all the commerce discounts where companyId = ? and couponCode = ? from the database.
      Parameters:
      companyId - the company ID
      couponCode - the coupon code
    • countByC_C

      int countByC_C(long companyId, String couponCode)
      Returns the number of commerce discounts where companyId = ? and couponCode = ?.
      Parameters:
      companyId - the company ID
      couponCode - the coupon code
      Returns:
      the number of matching commerce discounts
    • filterCountByC_C

      int filterCountByC_C(long companyId, String couponCode)
      Returns the number of commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.
      Parameters:
      companyId - the company ID
      couponCode - the coupon code
      Returns:
      the number of matching commerce discounts that the user has permission to view
    • findByLtD_S

      List<CommerceDiscount> findByLtD_S(Date displayDate, int status)
      Returns all the commerce discounts where displayDate < ? and status = ?.
      Parameters:
      displayDate - the display date
      status - the status
      Returns:
      the matching commerce discounts
    • findByLtD_S

      List<CommerceDiscount> findByLtD_S(Date displayDate, int status, int start, int end)
      Returns a range of all the commerce discounts where displayDate < ? and status = ?.

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

      Parameters:
      displayDate - the display date
      status - the status
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      Returns:
      the range of matching commerce discounts
    • findByLtD_S

      List<CommerceDiscount> findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns an ordered range of all the commerce discounts where displayDate < ? and status = ?.

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

      Parameters:
      displayDate - the display date
      status - the status
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discounts
    • findByLtD_S

      List<CommerceDiscount> findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discounts where displayDate < ? and status = ?.

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

      Parameters:
      displayDate - the display date
      status - the status
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (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 discounts
    • findByLtD_S_First

      CommerceDiscount findByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the first commerce discount in the ordered set where displayDate < ? and status = ?.
      Parameters:
      displayDate - the display date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount
      Throws:
      NoSuchDiscountException - if a matching commerce discount could not be found
    • fetchByLtD_S_First

      CommerceDiscount fetchByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns the first commerce discount in the ordered set where displayDate < ? and status = ?.
      Parameters:
      displayDate - the display date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount, or null if a matching commerce discount could not be found
    • findByLtD_S_Last

      CommerceDiscount findByLtD_S_Last(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the last commerce discount in the ordered set where displayDate < ? and status = ?.
      Parameters:
      displayDate - the display date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount
      Throws:
      NoSuchDiscountException - if a matching commerce discount could not be found
    • fetchByLtD_S_Last

      CommerceDiscount fetchByLtD_S_Last(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns the last commerce discount in the ordered set where displayDate < ? and status = ?.
      Parameters:
      displayDate - the display date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount, or null if a matching commerce discount could not be found
    • findByLtD_S_PrevAndNext

      CommerceDiscount[] findByLtD_S_PrevAndNext(long commerceDiscountId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the commerce discounts before and after the current commerce discount in the ordered set where displayDate < ? and status = ?.
      Parameters:
      commerceDiscountId - the primary key of the current commerce discount
      displayDate - the display date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount
      Throws:
      NoSuchDiscountException - if a commerce discount with the primary key could not be found
    • filterFindByLtD_S

      List<CommerceDiscount> filterFindByLtD_S(Date displayDate, int status)
      Returns all the commerce discounts that the user has permission to view where displayDate < ? and status = ?.
      Parameters:
      displayDate - the display date
      status - the status
      Returns:
      the matching commerce discounts that the user has permission to view
    • filterFindByLtD_S

      List<CommerceDiscount> filterFindByLtD_S(Date displayDate, int status, int start, int end)
      Returns a range of all the commerce discounts that the user has permission to view where displayDate < ? and status = ?.

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

      Parameters:
      displayDate - the display date
      status - the status
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      Returns:
      the range of matching commerce discounts that the user has permission to view
    • filterFindByLtD_S

      List<CommerceDiscount> filterFindByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns an ordered range of all the commerce discounts that the user has permissions to view where displayDate < ? and status = ?.

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

      Parameters:
      displayDate - the display date
      status - the status
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discounts that the user has permission to view
    • filterFindByLtD_S_PrevAndNext

      CommerceDiscount[] filterFindByLtD_S_PrevAndNext(long commerceDiscountId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where displayDate < ? and status = ?.
      Parameters:
      commerceDiscountId - the primary key of the current commerce discount
      displayDate - the display date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount
      Throws:
      NoSuchDiscountException - if a commerce discount with the primary key could not be found
    • removeByLtD_S

      void removeByLtD_S(Date displayDate, int status)
      Removes all the commerce discounts where displayDate < ? and status = ? from the database.
      Parameters:
      displayDate - the display date
      status - the status
    • countByLtD_S

      int countByLtD_S(Date displayDate, int status)
      Returns the number of commerce discounts where displayDate < ? and status = ?.
      Parameters:
      displayDate - the display date
      status - the status
      Returns:
      the number of matching commerce discounts
    • filterCountByLtD_S

      int filterCountByLtD_S(Date displayDate, int status)
      Returns the number of commerce discounts that the user has permission to view where displayDate < ? and status = ?.
      Parameters:
      displayDate - the display date
      status - the status
      Returns:
      the number of matching commerce discounts that the user has permission to view
    • findByLtE_S

      List<CommerceDiscount> findByLtE_S(Date expirationDate, int status)
      Returns all the commerce discounts where expirationDate < ? and status = ?.
      Parameters:
      expirationDate - the expiration date
      status - the status
      Returns:
      the matching commerce discounts
    • findByLtE_S

      List<CommerceDiscount> findByLtE_S(Date expirationDate, int status, int start, int end)
      Returns a range of all the commerce discounts where expirationDate < ? and status = ?.

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

      Parameters:
      expirationDate - the expiration date
      status - the status
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      Returns:
      the range of matching commerce discounts
    • findByLtE_S

      List<CommerceDiscount> findByLtE_S(Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns an ordered range of all the commerce discounts where expirationDate < ? and status = ?.

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

      Parameters:
      expirationDate - the expiration date
      status - the status
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discounts
    • findByLtE_S

      List<CommerceDiscount> findByLtE_S(Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discounts where expirationDate < ? and status = ?.

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

      Parameters:
      expirationDate - the expiration date
      status - the status
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (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 discounts
    • findByLtE_S_First

      CommerceDiscount findByLtE_S_First(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the first commerce discount in the ordered set where expirationDate < ? and status = ?.
      Parameters:
      expirationDate - the expiration date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount
      Throws:
      NoSuchDiscountException - if a matching commerce discount could not be found
    • fetchByLtE_S_First

      CommerceDiscount fetchByLtE_S_First(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns the first commerce discount in the ordered set where expirationDate < ? and status = ?.
      Parameters:
      expirationDate - the expiration date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount, or null if a matching commerce discount could not be found
    • findByLtE_S_Last

      CommerceDiscount findByLtE_S_Last(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the last commerce discount in the ordered set where expirationDate < ? and status = ?.
      Parameters:
      expirationDate - the expiration date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount
      Throws:
      NoSuchDiscountException - if a matching commerce discount could not be found
    • fetchByLtE_S_Last

      CommerceDiscount fetchByLtE_S_Last(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns the last commerce discount in the ordered set where expirationDate < ? and status = ?.
      Parameters:
      expirationDate - the expiration date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount, or null if a matching commerce discount could not be found
    • findByLtE_S_PrevAndNext

      CommerceDiscount[] findByLtE_S_PrevAndNext(long commerceDiscountId, Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the commerce discounts before and after the current commerce discount in the ordered set where expirationDate < ? and status = ?.
      Parameters:
      commerceDiscountId - the primary key of the current commerce discount
      expirationDate - the expiration date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount
      Throws:
      NoSuchDiscountException - if a commerce discount with the primary key could not be found
    • filterFindByLtE_S

      List<CommerceDiscount> filterFindByLtE_S(Date expirationDate, int status)
      Returns all the commerce discounts that the user has permission to view where expirationDate < ? and status = ?.
      Parameters:
      expirationDate - the expiration date
      status - the status
      Returns:
      the matching commerce discounts that the user has permission to view
    • filterFindByLtE_S

      List<CommerceDiscount> filterFindByLtE_S(Date expirationDate, int status, int start, int end)
      Returns a range of all the commerce discounts that the user has permission to view where expirationDate < ? and status = ?.

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

      Parameters:
      expirationDate - the expiration date
      status - the status
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      Returns:
      the range of matching commerce discounts that the user has permission to view
    • filterFindByLtE_S

      List<CommerceDiscount> filterFindByLtE_S(Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns an ordered range of all the commerce discounts that the user has permissions to view where expirationDate < ? and status = ?.

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

      Parameters:
      expirationDate - the expiration date
      status - the status
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discounts that the user has permission to view
    • filterFindByLtE_S_PrevAndNext

      CommerceDiscount[] filterFindByLtE_S_PrevAndNext(long commerceDiscountId, Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where expirationDate < ? and status = ?.
      Parameters:
      commerceDiscountId - the primary key of the current commerce discount
      expirationDate - the expiration date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount
      Throws:
      NoSuchDiscountException - if a commerce discount with the primary key could not be found
    • removeByLtE_S

      void removeByLtE_S(Date expirationDate, int status)
      Removes all the commerce discounts where expirationDate < ? and status = ? from the database.
      Parameters:
      expirationDate - the expiration date
      status - the status
    • countByLtE_S

      int countByLtE_S(Date expirationDate, int status)
      Returns the number of commerce discounts where expirationDate < ? and status = ?.
      Parameters:
      expirationDate - the expiration date
      status - the status
      Returns:
      the number of matching commerce discounts
    • filterCountByLtE_S

      int filterCountByLtE_S(Date expirationDate, int status)
      Returns the number of commerce discounts that the user has permission to view where expirationDate < ? and status = ?.
      Parameters:
      expirationDate - the expiration date
      status - the status
      Returns:
      the number of matching commerce discounts that the user has permission to view
    • findByC_C_A

      CommerceDiscount findByC_C_A(long companyId, String couponCode, boolean active) throws NoSuchDiscountException
      Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or throws a NoSuchDiscountException if it could not be found.
      Parameters:
      companyId - the company ID
      couponCode - the coupon code
      active - the active
      Returns:
      the matching commerce discount
      Throws:
      NoSuchDiscountException - if a matching commerce discount could not be found
    • fetchByC_C_A

      CommerceDiscount fetchByC_C_A(long companyId, String couponCode, boolean active)
      Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      companyId - the company ID
      couponCode - the coupon code
      active - the active
      Returns:
      the matching commerce discount, or null if a matching commerce discount could not be found
    • fetchByC_C_A

      CommerceDiscount fetchByC_C_A(long companyId, String couponCode, boolean active, boolean useFinderCache)
      Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      companyId - the company ID
      couponCode - the coupon code
      active - the active
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce discount, or null if a matching commerce discount could not be found
    • removeByC_C_A

      CommerceDiscount removeByC_C_A(long companyId, String couponCode, boolean active) throws NoSuchDiscountException
      Removes the commerce discount where companyId = ? and couponCode = ? and active = ? from the database.
      Parameters:
      companyId - the company ID
      couponCode - the coupon code
      active - the active
      Returns:
      the commerce discount that was removed
      Throws:
      NoSuchDiscountException
    • countByC_C_A

      int countByC_C_A(long companyId, String couponCode, boolean active)
      Returns the number of commerce discounts where companyId = ? and couponCode = ? and active = ?.
      Parameters:
      companyId - the company ID
      couponCode - the coupon code
      active - the active
      Returns:
      the number of matching commerce discounts
    • findByC_L_A_S

      List<CommerceDiscount> findByC_L_A_S(long companyId, String level, boolean active, int status)
      Returns all the commerce discounts where companyId = ? and level = ? and active = ? and status = ?.
      Parameters:
      companyId - the company ID
      level - the level
      active - the active
      status - the status
      Returns:
      the matching commerce discounts
    • findByC_L_A_S

      List<CommerceDiscount> findByC_L_A_S(long companyId, String level, boolean active, int status, int start, int end)
      Returns a range of all the commerce discounts where companyId = ? and level = ? and active = ? and status = ?.

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

      Parameters:
      companyId - the company ID
      level - the level
      active - the active
      status - the status
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      Returns:
      the range of matching commerce discounts
    • findByC_L_A_S

      List<CommerceDiscount> findByC_L_A_S(long companyId, String level, boolean active, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns an ordered range of all the commerce discounts where companyId = ? and level = ? and active = ? and status = ?.

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

      Parameters:
      companyId - the company ID
      level - the level
      active - the active
      status - the status
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discounts
    • findByC_L_A_S

      List<CommerceDiscount> findByC_L_A_S(long companyId, String level, boolean active, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discounts where companyId = ? and level = ? and active = ? and status = ?.

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

      Parameters:
      companyId - the company ID
      level - the level
      active - the active
      status - the status
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (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 discounts
    • findByC_L_A_S_First

      CommerceDiscount findByC_L_A_S_First(long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the first commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.
      Parameters:
      companyId - the company ID
      level - the level
      active - the active
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount
      Throws:
      NoSuchDiscountException - if a matching commerce discount could not be found
    • fetchByC_L_A_S_First

      CommerceDiscount fetchByC_L_A_S_First(long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns the first commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.
      Parameters:
      companyId - the company ID
      level - the level
      active - the active
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount, or null if a matching commerce discount could not be found
    • findByC_L_A_S_Last

      CommerceDiscount findByC_L_A_S_Last(long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the last commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.
      Parameters:
      companyId - the company ID
      level - the level
      active - the active
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount
      Throws:
      NoSuchDiscountException - if a matching commerce discount could not be found
    • fetchByC_L_A_S_Last

      CommerceDiscount fetchByC_L_A_S_Last(long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns the last commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.
      Parameters:
      companyId - the company ID
      level - the level
      active - the active
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount, or null if a matching commerce discount could not be found
    • findByC_L_A_S_PrevAndNext

      CommerceDiscount[] findByC_L_A_S_PrevAndNext(long commerceDiscountId, long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the commerce discounts before and after the current commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.
      Parameters:
      commerceDiscountId - the primary key of the current commerce discount
      companyId - the company ID
      level - the level
      active - the active
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount
      Throws:
      NoSuchDiscountException - if a commerce discount with the primary key could not be found
    • filterFindByC_L_A_S

      List<CommerceDiscount> filterFindByC_L_A_S(long companyId, String level, boolean active, int status)
      Returns all the commerce discounts that the user has permission to view where companyId = ? and level = ? and active = ? and status = ?.
      Parameters:
      companyId - the company ID
      level - the level
      active - the active
      status - the status
      Returns:
      the matching commerce discounts that the user has permission to view
    • filterFindByC_L_A_S

      List<CommerceDiscount> filterFindByC_L_A_S(long companyId, String level, boolean active, int status, int start, int end)
      Returns a range of all the commerce discounts that the user has permission to view where companyId = ? and level = ? and active = ? and status = ?.

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

      Parameters:
      companyId - the company ID
      level - the level
      active - the active
      status - the status
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      Returns:
      the range of matching commerce discounts that the user has permission to view
    • filterFindByC_L_A_S

      List<CommerceDiscount> filterFindByC_L_A_S(long companyId, String level, boolean active, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
      Returns an ordered range of all the commerce discounts that the user has permissions to view where companyId = ? and level = ? and active = ? and status = ?.

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

      Parameters:
      companyId - the company ID
      level - the level
      active - the active
      status - the status
      start - the lower bound of the range of commerce discounts
      end - the upper bound of the range of commerce discounts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discounts that the user has permission to view
    • filterFindByC_L_A_S_PrevAndNext

      CommerceDiscount[] filterFindByC_L_A_S_PrevAndNext(long commerceDiscountId, long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
      Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where companyId = ? and level = ? and active = ? and status = ?.
      Parameters:
      commerceDiscountId - the primary key of the current commerce discount
      companyId - the company ID
      level - the level
      active - the active
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount
      Throws:
      NoSuchDiscountException - if a commerce discount with the primary key could not be found
    • removeByC_L_A_S

      void removeByC_L_A_S(long companyId, String level, boolean active, int status)
      Removes all the commerce discounts where companyId = ? and level = ? and active = ? and status = ? from the database.
      Parameters:
      companyId - the company ID
      level - the level
      active - the active
      status - the status
    • countByC_L_A_S

      int countByC_L_A_S(long companyId, String level, boolean active, int status)
      Returns the number of commerce discounts where companyId = ? and level = ? and active = ? and status = ?.
      Parameters:
      companyId - the company ID
      level - the level
      active - the active
      status - the status
      Returns:
      the number of matching commerce discounts
    • filterCountByC_L_A_S

      int filterCountByC_L_A_S(long companyId, String level, boolean active, int status)
      Returns the number of commerce discounts that the user has permission to view where companyId = ? and level = ? and active = ? and status = ?.
      Parameters:
      companyId - the company ID
      level - the level
      active - the active
      status - the status
      Returns:
      the number of matching commerce discounts that the user has permission to view
    • findByERC_C

      CommerceDiscount findByERC_C(String externalReferenceCode, long companyId) throws NoSuchDiscountException
      Returns the commerce discount where externalReferenceCode = ? and companyId = ? or throws a NoSuchDiscountException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching commerce discount
      Throws:
      NoSuchDiscountException - if a matching commerce discount could not be found
    • fetchByERC_C

      CommerceDiscount fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the commerce discount where externalReferenceCode = ? and companyId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching commerce discount, or null if a matching commerce discount could not be found
    • fetchByERC_C

      CommerceDiscount fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
      Returns the commerce discount where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce discount, or null if a matching commerce discount could not be found
    • removeByERC_C

      CommerceDiscount removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchDiscountException
      Removes the commerce discount where externalReferenceCode = ? and companyId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the commerce discount that was removed
      Throws:
      NoSuchDiscountException
    • countByERC_C

      int countByERC_C(String externalReferenceCode, long companyId)
      Returns the number of commerce discounts where externalReferenceCode = ? and companyId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the number of matching commerce discounts
    • cacheResult

      void cacheResult(CommerceDiscount commerceDiscount)
      Caches the commerce discount in the entity cache if it is enabled.
      Parameters:
      commerceDiscount - the commerce discount
    • cacheResult

      void cacheResult(List<CommerceDiscount> commerceDiscounts)
      Caches the commerce discounts in the entity cache if it is enabled.
      Parameters:
      commerceDiscounts - the commerce discounts
    • create

      CommerceDiscount create(long commerceDiscountId)
      Creates a new commerce discount with the primary key. Does not add the commerce discount to the database.
      Parameters:
      commerceDiscountId - the primary key for the new commerce discount
      Returns:
      the new commerce discount
    • remove

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

      CommerceDiscount updateImpl(CommerceDiscount commerceDiscount)
    • findByPrimaryKey

      CommerceDiscount findByPrimaryKey(long commerceDiscountId) throws NoSuchDiscountException
      Returns the commerce discount with the primary key or throws a NoSuchDiscountException if it could not be found.
      Parameters:
      commerceDiscountId - the primary key of the commerce discount
      Returns:
      the commerce discount
      Throws:
      NoSuchDiscountException - if a commerce discount with the primary key could not be found
    • fetchByPrimaryKey

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

      Returns all the commerce discounts.
      Returns:
      the commerce discounts
    • findAll

      List<CommerceDiscount> findAll(int start, int end)
      Returns a range of all the commerce discounts.

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

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

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

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

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

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

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

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

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

      int countAll()
      Returns the number of commerce discounts.
      Returns:
      the number of commerce discounts