Class CommerceDiscountUtil
com.liferay.commerce.discount.service.persistence.impl.CommerceDiscountPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(CommerceDiscount commerceDiscount) Caches the commerce discount in the entity cache if it is enabled.static voidcacheResult(List<CommerceDiscount> commerceDiscounts) Caches the commerce discounts in the entity cache if it is enabled.static voidstatic voidclearCache(CommerceDiscount commerceDiscount) static intcountAll()Returns the number of commerce discounts.static intcountByC_C(long companyId, String couponCode) Returns the number of commerce discounts where companyId = ? and couponCode = ?.static intcountByC_C_A(long companyId, String couponCode, boolean active) Returns the number of commerce discounts where companyId = ? and couponCode = ? and active = ?.static intcountByC_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 = ?.static intcountByCompanyId(long companyId) Returns the number of commerce discounts where companyId = ?.static intcountByERC_C(String externalReferenceCode, long companyId) Returns the number of commerce discounts where externalReferenceCode = ? and companyId = ?.static intcountByLtD_S(Date displayDate, int status) Returns the number of commerce discounts where displayDate < ? and status = ?.static intcountByLtE_S(Date expirationDate, int status) Returns the number of commerce discounts where expirationDate < ? and status = ?.static intcountByUuid(String uuid) Returns the number of commerce discounts where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of commerce discounts where uuid = ? and companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceDiscountcreate(long commerceDiscountId) Creates a new commerce discount with the primary key.static CommerceDiscountfetchByC_C_A(long companyId, String couponCode, boolean active) Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or returnsnullif it could not be found.static CommerceDiscountfetchByC_C_A(long companyId, String couponCode, boolean active, boolean useFinderCache) Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or returnsnullif it could not be found, optionally using the finder cache.static CommerceDiscountfetchByC_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 = ?.static CommerceDiscountfetchByC_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 = ?.static CommerceDiscountfetchByC_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 = ?.static CommerceDiscountfetchByC_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 = ?.static CommerceDiscountfetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where companyId = ?.static CommerceDiscountfetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where companyId = ?.static CommerceDiscountfetchByERC_C(String externalReferenceCode, long companyId) Returns the commerce discount where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found.static CommerceDiscountfetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce discount where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.static CommerceDiscountfetchByLtD_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 = ?.static CommerceDiscountfetchByLtD_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 = ?.static CommerceDiscountfetchByLtE_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 = ?.static CommerceDiscountfetchByLtE_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 = ?.static CommerceDiscountfetchByPrimaryKey(long commerceDiscountId) Returns the commerce discount with the primary key or returnsnullif it could not be found.static Map<Serializable,CommerceDiscount> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static CommerceDiscountfetchByUuid_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 = ?.static CommerceDiscountfetchByUuid_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 = ?.static CommerceDiscountfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where uuid = ?.static CommerceDiscountfetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where uuid = ?.static intfilterCountByC_C(long companyId, String couponCode) Returns the number of commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.static intfilterCountByC_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 = ?.static intfilterCountByCompanyId(long companyId) Returns the number of commerce discounts that the user has permission to view where companyId = ?.static intfilterCountByLtD_S(Date displayDate, int status) Returns the number of commerce discounts that the user has permission to view where displayDate < ? and status = ?.static intfilterCountByLtE_S(Date expirationDate, int status) Returns the number of commerce discounts that the user has permission to view where expirationDate < ? and status = ?.static intfilterCountByUuid(String uuid) Returns the number of commerce discounts that the user has permission to view where uuid = ?.static intfilterCountByUuid_C(String uuid, long companyId) Returns the number of commerce discounts that the user has permission to view where uuid = ? and companyId = ?.static List<CommerceDiscount>filterFindByC_C(long companyId, String couponCode) Returns all the commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.static 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 = ?.static 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 = ?.static CommerceDiscount[]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 = ?.static 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 = ?.static 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 = ?.static 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 = ?.static CommerceDiscount[]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 = ?.static List<CommerceDiscount>filterFindByCompanyId(long companyId) Returns all the commerce discounts that the user has permission to view where companyId = ?.static 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 = ?.static 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 = ?.static CommerceDiscount[]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 = ?.static List<CommerceDiscount>filterFindByLtD_S(Date displayDate, int status) Returns all the commerce discounts that the user has permission to view where displayDate < ? and status = ?.static 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 = ?.static 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 = ?.static CommerceDiscount[]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 = ?.static List<CommerceDiscount>filterFindByLtE_S(Date expirationDate, int status) Returns all the commerce discounts that the user has permission to view where expirationDate < ? and status = ?.static 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 = ?.static 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 = ?.static CommerceDiscount[]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 = ?.static List<CommerceDiscount>filterFindByUuid(String uuid) Returns all the commerce discounts that the user has permission to view where uuid = ?.static 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 = ?.static 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 = ?.static List<CommerceDiscount>filterFindByUuid_C(String uuid, long companyId) Returns all the commerce discounts that the user has permission to view where uuid = ? and companyId = ?.static 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 = ?.static 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 = ?.static CommerceDiscount[]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 = ?.static CommerceDiscount[]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 = ?.static List<CommerceDiscount>findAll()Returns all the commerce discounts.static List<CommerceDiscount>findAll(int start, int end) Returns a range of all the commerce discounts.static List<CommerceDiscount>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts.static 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.static List<CommerceDiscount>Returns all the commerce discounts where companyId = ? and couponCode = ?.static List<CommerceDiscount>Returns a range of all the commerce discounts where companyId = ? and couponCode = ?.static 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 = ?.static 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 = ?.static CommerceDiscountfindByC_C_A(long companyId, String couponCode, boolean active) Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or throws aNoSuchDiscountExceptionif it could not be found.static CommerceDiscountfindByC_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 = ?.static CommerceDiscountfindByC_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 = ?.static CommerceDiscount[]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 = ?.static 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 = ?.static 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 = ?.static 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 = ?.static 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 = ?.static CommerceDiscountfindByC_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 = ?.static CommerceDiscountfindByC_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 = ?.static CommerceDiscount[]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 = ?.static List<CommerceDiscount>findByCompanyId(long companyId) Returns all the commerce discounts where companyId = ?.static List<CommerceDiscount>findByCompanyId(long companyId, int start, int end) Returns a range of all the commerce discounts where companyId = ?.static 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 = ?.static 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 = ?.static CommerceDiscountfindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where companyId = ?.static CommerceDiscountfindByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where companyId = ?.static CommerceDiscount[]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 = ?.static CommerceDiscountfindByERC_C(String externalReferenceCode, long companyId) Returns the commerce discount where externalReferenceCode = ? and companyId = ? or throws aNoSuchDiscountExceptionif it could not be found.static List<CommerceDiscount>findByLtD_S(Date displayDate, int status) Returns all the commerce discounts where displayDate < ? and status = ?.static List<CommerceDiscount>findByLtD_S(Date displayDate, int status, int start, int end) Returns a range of all the commerce discounts where displayDate < ? and status = ?.static 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 = ?.static 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 = ?.static CommerceDiscountfindByLtD_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 = ?.static CommerceDiscountfindByLtD_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 = ?.static CommerceDiscount[]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 = ?.static List<CommerceDiscount>findByLtE_S(Date expirationDate, int status) Returns all the commerce discounts where expirationDate < ? and status = ?.static List<CommerceDiscount>findByLtE_S(Date expirationDate, int status, int start, int end) Returns a range of all the commerce discounts where expirationDate < ? and status = ?.static 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 = ?.static 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 = ?.static CommerceDiscountfindByLtE_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 = ?.static CommerceDiscountfindByLtE_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 = ?.static CommerceDiscount[]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 = ?.static CommerceDiscountfindByPrimaryKey(long commerceDiscountId) Returns the commerce discount with the primary key or throws aNoSuchDiscountExceptionif it could not be found.static List<CommerceDiscount>findByUuid(String uuid) Returns all the commerce discounts where uuid = ?.static List<CommerceDiscount>findByUuid(String uuid, int start, int end) Returns a range of all the commerce discounts where uuid = ?.static 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 = ?.static 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 = ?.static List<CommerceDiscount>findByUuid_C(String uuid, long companyId) Returns all the commerce discounts where uuid = ? and companyId = ?.static List<CommerceDiscount>findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the commerce discounts where uuid = ? and companyId = ?.static 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 = ?.static 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 = ?.static CommerceDiscountfindByUuid_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 = ?.static CommerceDiscountfindByUuid_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 = ?.static CommerceDiscount[]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 = ?.static CommerceDiscountfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where uuid = ?.static CommerceDiscountfindByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where uuid = ?.static CommerceDiscount[]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 = ?.static List<CommerceDiscount>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceDiscount>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceDiscount>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) static CommerceDiscountPersistencestatic CommerceDiscountremove(long commerceDiscountId) Removes the commerce discount with the primary key from the database.static voidRemoves all the commerce discounts from the database.static voidremoveByC_C(long companyId, String couponCode) Removes all the commerce discounts where companyId = ? and couponCode = ? from the database.static CommerceDiscountremoveByC_C_A(long companyId, String couponCode, boolean active) Removes the commerce discount where companyId = ? and couponCode = ? and active = ? from the database.static voidremoveByC_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.static voidremoveByCompanyId(long companyId) Removes all the commerce discounts where companyId = ? from the database.static CommerceDiscountremoveByERC_C(String externalReferenceCode, long companyId) Removes the commerce discount where externalReferenceCode = ? and companyId = ? from the database.static voidremoveByLtD_S(Date displayDate, int status) Removes all the commerce discounts where displayDate < ? and status = ? from the database.static voidremoveByLtE_S(Date expirationDate, int status) Removes all the commerce discounts where expirationDate < ? and status = ? from the database.static voidremoveByUuid(String uuid) Removes all the commerce discounts where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the commerce discounts where uuid = ? and companyId = ? from the database.static voidsetPersistence(CommerceDiscountPersistence persistence) static CommerceDiscountupdate(CommerceDiscount commerceDiscount) static CommerceDiscountupdate(CommerceDiscount commerceDiscount, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceDiscountupdateImpl(CommerceDiscount commerceDiscount)
-
Constructor Details
-
CommerceDiscountUtil
public CommerceDiscountUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceDiscount> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceDiscount> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceDiscount> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceDiscount update(CommerceDiscount commerceDiscount, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the commerce discounts where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching commerce discounts
-
findByUuid
Returns a range of all the commerce discounts where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts
-
findByUuid
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discounts
-
findByUuid
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching commerce discounts
-
findByUuid_First
public static 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 uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount
- Throws:
NoSuchDiscountException- if a matching commerce discount could not be foundNoSuchDiscountException
-
fetchByUuid_First
public static 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 uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount, or
nullif a matching commerce discount could not be found
-
findByUuid_Last
public static 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 uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount
- Throws:
NoSuchDiscountException- if a matching commerce discount could not be foundNoSuchDiscountException
-
fetchByUuid_Last
public static 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 uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount, or
nullif a matching commerce discount could not be found
-
findByUuid_PrevAndNext
public static 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 discountuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException- if a commerce discount with the primary key could not be foundNoSuchDiscountException
-
filterFindByUuid
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
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of commerce discountsend- 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discounts that the user has permission to view
-
filterFindByUuid_PrevAndNext
public static 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 discountuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException- if a commerce discount with the primary key could not be foundNoSuchDiscountException
-
removeByUuid
Removes all the commerce discounts where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of commerce discounts where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching commerce discounts
-
filterCountByUuid
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
Returns all the commerce discounts where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching commerce discounts
-
findByUuid_C
Returns a range of all the commerce discounts where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts
-
findByUuid_C
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discounts
-
findByUuid_C
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching commerce discounts
-
findByUuid_C_First
public static 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 uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount
- Throws:
NoSuchDiscountException- if a matching commerce discount could not be foundNoSuchDiscountException
-
fetchByUuid_C_First
public static 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 uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount, or
nullif a matching commerce discount could not be found
-
findByUuid_C_Last
public static 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 uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount
- Throws:
NoSuchDiscountException- if a matching commerce discount could not be foundNoSuchDiscountException
-
fetchByUuid_C_Last
public static 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 uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount, or
nullif a matching commerce discount could not be found
-
findByUuid_C_PrevAndNext
public static 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 discountuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException- if a commerce discount with the primary key could not be foundNoSuchDiscountException
-
filterFindByUuid_C
Returns all the commerce discounts that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching commerce discounts that the user has permission to view
-
filterFindByUuid_C
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of commerce discountsend- 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discounts that the user has permission to view
-
filterFindByUuid_C_PrevAndNext
public static 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 discountuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException- if a commerce discount with the primary key could not be foundNoSuchDiscountException
-
removeByUuid_C
Removes all the commerce discounts where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of commerce discounts where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching commerce discounts
-
filterCountByUuid_C
Returns the number of commerce discounts that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching commerce discounts that the user has permission to view
-
findByCompanyId
Returns all the commerce discounts where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching commerce discounts
-
findByCompanyId
Returns a range of all the commerce discounts where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts
-
findByCompanyId
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discounts
-
findByCompanyId
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching commerce discounts
-
findByCompanyId_First
public static 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount
- Throws:
NoSuchDiscountException- if a matching commerce discount could not be foundNoSuchDiscountException
-
fetchByCompanyId_First
public static 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount, or
nullif a matching commerce discount could not be found
-
findByCompanyId_Last
public static 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount
- Throws:
NoSuchDiscountException- if a matching commerce discount could not be foundNoSuchDiscountException
-
fetchByCompanyId_Last
public static 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount, or
nullif a matching commerce discount could not be found
-
findByCompanyId_PrevAndNext
public static 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 discountcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException- if a commerce discount with the primary key could not be foundNoSuchDiscountException
-
filterFindByCompanyId
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
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of commerce discountsend- 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discounts that the user has permission to view
-
filterFindByCompanyId_PrevAndNext
public static 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 discountcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException- if a commerce discount with the primary key could not be foundNoSuchDiscountException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the commerce discounts where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static 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
public static 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
Returns all the commerce discounts where companyId = ? and couponCode = ?.- Parameters:
companyId- the company IDcouponCode- the coupon code- Returns:
- the matching commerce discounts
-
findByC_C
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
companyId- the company IDcouponCode- the coupon codestart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts
-
findByC_C
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
companyId- the company IDcouponCode- the coupon codestart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discounts
-
findByC_C
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
companyId- the company IDcouponCode- the coupon codestart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching commerce discounts
-
findByC_C_First
public static 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 IDcouponCode- the coupon codeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount
- Throws:
NoSuchDiscountException- if a matching commerce discount could not be foundNoSuchDiscountException
-
fetchByC_C_First
public static 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 IDcouponCode- the coupon codeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount, or
nullif a matching commerce discount could not be found
-
findByC_C_Last
public static 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 IDcouponCode- the coupon codeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount
- Throws:
NoSuchDiscountException- if a matching commerce discount could not be foundNoSuchDiscountException
-
fetchByC_C_Last
public static 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 IDcouponCode- the coupon codeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount, or
nullif a matching commerce discount could not be found
-
findByC_C_PrevAndNext
public static 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 discountcompanyId- the company IDcouponCode- the coupon codeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException- if a commerce discount with the primary key could not be foundNoSuchDiscountException
-
filterFindByC_C
Returns all the commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.- Parameters:
companyId- the company IDcouponCode- the coupon code- Returns:
- the matching commerce discounts that the user has permission to view
-
filterFindByC_C
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
companyId- the company IDcouponCode- the coupon codestart- the lower bound of the range of commerce discountsend- 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
companyId- the company IDcouponCode- the coupon codestart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discounts that the user has permission to view
-
filterFindByC_C_PrevAndNext
public static 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 discountcompanyId- the company IDcouponCode- the coupon codeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException- if a commerce discount with the primary key could not be foundNoSuchDiscountException
-
removeByC_C
Removes all the commerce discounts where companyId = ? and couponCode = ? from the database.- Parameters:
companyId- the company IDcouponCode- the coupon code
-
countByC_C
Returns the number of commerce discounts where companyId = ? and couponCode = ?.- Parameters:
companyId- the company IDcouponCode- the coupon code- Returns:
- the number of matching commerce discounts
-
filterCountByC_C
Returns the number of commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.- Parameters:
companyId- the company IDcouponCode- the coupon code- Returns:
- the number of matching commerce discounts that the user has permission to view
-
findByLtD_S
Returns all the commerce discounts where displayDate < ? and status = ?.- Parameters:
displayDate- the display datestatus- the status- Returns:
- the matching commerce discounts
-
findByLtD_S
Returns a range of all the commerce discounts where displayDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
displayDate- the display datestatus- the statusstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts
-
findByLtD_S
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
displayDate- the display datestatus- the statusstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discounts
-
findByLtD_S
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
displayDate- the display datestatus- the statusstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching commerce discounts
-
findByLtD_S_First
public static 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 datestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount
- Throws:
NoSuchDiscountException- if a matching commerce discount could not be foundNoSuchDiscountException
-
fetchByLtD_S_First
public static 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 datestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount, or
nullif a matching commerce discount could not be found
-
findByLtD_S_Last
public static 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 datestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount
- Throws:
NoSuchDiscountException- if a matching commerce discount could not be foundNoSuchDiscountException
-
fetchByLtD_S_Last
public static 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 datestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount, or
nullif a matching commerce discount could not be found
-
findByLtD_S_PrevAndNext
public static 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 discountdisplayDate- the display datestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException- if a commerce discount with the primary key could not be foundNoSuchDiscountException
-
filterFindByLtD_S
Returns all the commerce discounts that the user has permission to view where displayDate < ? and status = ?.- Parameters:
displayDate- the display datestatus- the status- Returns:
- the matching commerce discounts that the user has permission to view
-
filterFindByLtD_S
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
displayDate- the display datestatus- the statusstart- the lower bound of the range of commerce discountsend- 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
displayDate- the display datestatus- the statusstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discounts that the user has permission to view
-
filterFindByLtD_S_PrevAndNext
public static 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 discountdisplayDate- the display datestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException- if a commerce discount with the primary key could not be foundNoSuchDiscountException
-
removeByLtD_S
Removes all the commerce discounts where displayDate < ? and status = ? from the database.- Parameters:
displayDate- the display datestatus- the status
-
countByLtD_S
Returns the number of commerce discounts where displayDate < ? and status = ?.- Parameters:
displayDate- the display datestatus- the status- Returns:
- the number of matching commerce discounts
-
filterCountByLtD_S
Returns the number of commerce discounts that the user has permission to view where displayDate < ? and status = ?.- Parameters:
displayDate- the display datestatus- the status- Returns:
- the number of matching commerce discounts that the user has permission to view
-
findByLtE_S
Returns all the commerce discounts where expirationDate < ? and status = ?.- Parameters:
expirationDate- the expiration datestatus- the status- Returns:
- the matching commerce discounts
-
findByLtE_S
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
expirationDate- the expiration datestatus- the statusstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts
-
findByLtE_S
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
expirationDate- the expiration datestatus- the statusstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discounts
-
findByLtE_S
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
expirationDate- the expiration datestatus- the statusstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching commerce discounts
-
findByLtE_S_First
public static 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 datestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount
- Throws:
NoSuchDiscountException- if a matching commerce discount could not be foundNoSuchDiscountException
-
fetchByLtE_S_First
public static 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 datestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount, or
nullif a matching commerce discount could not be found
-
findByLtE_S_Last
public static 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 datestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount
- Throws:
NoSuchDiscountException- if a matching commerce discount could not be foundNoSuchDiscountException
-
fetchByLtE_S_Last
public static 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 datestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount, or
nullif a matching commerce discount could not be found
-
findByLtE_S_PrevAndNext
public static 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 discountexpirationDate- the expiration datestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException- if a commerce discount with the primary key could not be foundNoSuchDiscountException
-
filterFindByLtE_S
Returns all the commerce discounts that the user has permission to view where expirationDate < ? and status = ?.- Parameters:
expirationDate- the expiration datestatus- the status- Returns:
- the matching commerce discounts that the user has permission to view
-
filterFindByLtE_S
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
expirationDate- the expiration datestatus- the statusstart- the lower bound of the range of commerce discountsend- 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
expirationDate- the expiration datestatus- the statusstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discounts that the user has permission to view
-
filterFindByLtE_S_PrevAndNext
public static 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 discountexpirationDate- the expiration datestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException- if a commerce discount with the primary key could not be foundNoSuchDiscountException
-
removeByLtE_S
Removes all the commerce discounts where expirationDate < ? and status = ? from the database.- Parameters:
expirationDate- the expiration datestatus- the status
-
countByLtE_S
Returns the number of commerce discounts where expirationDate < ? and status = ?.- Parameters:
expirationDate- the expiration datestatus- the status- Returns:
- the number of matching commerce discounts
-
filterCountByLtE_S
Returns the number of commerce discounts that the user has permission to view where expirationDate < ? and status = ?.- Parameters:
expirationDate- the expiration datestatus- the status- Returns:
- the number of matching commerce discounts that the user has permission to view
-
findByC_C_A
public static CommerceDiscount findByC_C_A(long companyId, String couponCode, boolean active) throws NoSuchDiscountException Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or throws aNoSuchDiscountExceptionif it could not be found.- Parameters:
companyId- the company IDcouponCode- the coupon codeactive- the active- Returns:
- the matching commerce discount
- Throws:
NoSuchDiscountException- if a matching commerce discount could not be foundNoSuchDiscountException
-
fetchByC_C_A
Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDcouponCode- the coupon codeactive- the active- Returns:
- the matching commerce discount, or
nullif a matching commerce discount could not be found
-
fetchByC_C_A
public static CommerceDiscount fetchByC_C_A(long companyId, String couponCode, boolean active, boolean useFinderCache) Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDcouponCode- the coupon codeactive- the activeuseFinderCache- whether to use the finder cache- Returns:
- the matching commerce discount, or
nullif a matching commerce discount could not be found
-
removeByC_C_A
public static 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 IDcouponCode- the coupon codeactive- the active- Returns:
- the commerce discount that was removed
- Throws:
NoSuchDiscountException
-
countByC_C_A
Returns the number of commerce discounts where companyId = ? and couponCode = ? and active = ?.- Parameters:
companyId- the company IDcouponCode- the coupon codeactive- the active- Returns:
- the number of matching commerce discounts
-
findByC_L_A_S
public static 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 IDlevel- the levelactive- the activestatus- the status- Returns:
- the matching commerce discounts
-
findByC_L_A_S
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
companyId- the company IDlevel- the levelactive- the activestatus- the statusstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts
-
findByC_L_A_S
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
companyId- the company IDlevel- the levelactive- the activestatus- the statusstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discounts
-
findByC_L_A_S
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
companyId- the company IDlevel- the levelactive- the activestatus- the statusstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching commerce discounts
-
findByC_L_A_S_First
public static 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 IDlevel- the levelactive- the activestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount
- Throws:
NoSuchDiscountException- if a matching commerce discount could not be foundNoSuchDiscountException
-
fetchByC_L_A_S_First
public static 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 IDlevel- the levelactive- the activestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount, or
nullif a matching commerce discount could not be found
-
findByC_L_A_S_Last
public static 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 IDlevel- the levelactive- the activestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount
- Throws:
NoSuchDiscountException- if a matching commerce discount could not be foundNoSuchDiscountException
-
fetchByC_L_A_S_Last
public static 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 IDlevel- the levelactive- the activestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce discount, or
nullif a matching commerce discount could not be found
-
findByC_L_A_S_PrevAndNext
public static 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 discountcompanyId- the company IDlevel- the levelactive- the activestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException- if a commerce discount with the primary key could not be foundNoSuchDiscountException
-
filterFindByC_L_A_S
public static 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 IDlevel- the levelactive- the activestatus- the status- Returns:
- the matching commerce discounts that the user has permission to view
-
filterFindByC_L_A_S
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
companyId- the company IDlevel- the levelactive- the activestatus- the statusstart- the lower bound of the range of commerce discountsend- 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
companyId- the company IDlevel- the levelactive- the activestatus- the statusstart- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discounts that the user has permission to view
-
filterFindByC_L_A_S_PrevAndNext
public static 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 discountcompanyId- the company IDlevel- the levelactive- the activestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException- if a commerce discount with the primary key could not be foundNoSuchDiscountException
-
removeByC_L_A_S
Removes all the commerce discounts where companyId = ? and level = ? and active = ? and status = ? from the database.- Parameters:
companyId- the company IDlevel- the levelactive- the activestatus- the status
-
countByC_L_A_S
Returns the number of commerce discounts where companyId = ? and level = ? and active = ? and status = ?.- Parameters:
companyId- the company IDlevel- the levelactive- the activestatus- the status- Returns:
- the number of matching commerce discounts
-
filterCountByC_L_A_S
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 IDlevel- the levelactive- the activestatus- the status- Returns:
- the number of matching commerce discounts that the user has permission to view
-
findByERC_C
public static CommerceDiscount findByERC_C(String externalReferenceCode, long companyId) throws NoSuchDiscountException Returns the commerce discount where externalReferenceCode = ? and companyId = ? or throws aNoSuchDiscountExceptionif it could not be found.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching commerce discount
- Throws:
NoSuchDiscountException- if a matching commerce discount could not be foundNoSuchDiscountException
-
fetchByERC_C
Returns the commerce discount where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching commerce discount, or
nullif a matching commerce discount could not be found
-
fetchByERC_C
public static CommerceDiscount fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce discount where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company IDuseFinderCache- whether to use the finder cache- Returns:
- the matching commerce discount, or
nullif a matching commerce discount could not be found
-
removeByERC_C
public static 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 codecompanyId- the company ID- Returns:
- the commerce discount that was removed
- Throws:
NoSuchDiscountException
-
countByERC_C
Returns the number of commerce discounts where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the number of matching commerce discounts
-
cacheResult
Caches the commerce discount in the entity cache if it is enabled.- Parameters:
commerceDiscount- the commerce discount
-
cacheResult
Caches the commerce discounts in the entity cache if it is enabled.- Parameters:
commerceDiscounts- the commerce discounts
-
create
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
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 foundNoSuchDiscountException
-
updateImpl
-
findByPrimaryKey
public static CommerceDiscount findByPrimaryKey(long commerceDiscountId) throws NoSuchDiscountException Returns the commerce discount with the primary key or throws aNoSuchDiscountExceptionif 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 foundNoSuchDiscountException
-
fetchByPrimaryKey
Returns the commerce discount with the primary key or returnsnullif it could not be found.- Parameters:
commerceDiscountId- the primary key of the commerce discount- Returns:
- the commerce discount, or
nullif a commerce discount with the primary key could not be found
-
findAll
Returns all the commerce discounts.- Returns:
- the commerce discounts
-
findAll
Returns a range of all the commerce discounts.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
start- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of commerce discounts
-
findAll
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
start- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of commerce discounts
-
findAll
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl.- Parameters:
start- the lower bound of the range of commerce discountsend- the upper bound of the range of commerce discounts (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of commerce discounts
-
removeAll
public static void removeAll()Removes all the commerce discounts from the database. -
countAll
public static int countAll()Returns the number of commerce discounts.- Returns:
- the number of commerce discounts
-
getPersistence
-
setPersistence
-