public class CommerceDiscountUtil
extends java.lang.Object
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
CommerceDiscountPersistence
Constructor and Description |
---|
CommerceDiscountUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceDiscount commerceDiscount)
Caches the commerce discount in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceDiscount> commerceDiscounts)
Caches the commerce discounts in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceDiscount commerceDiscount) |
static int |
countAll()
Returns the number of commerce discounts.
|
static int |
countByC_C_A(long companyId,
java.lang.String couponCode,
boolean active)
Returns the number of commerce discounts where companyId = ? and couponCode = ? and active = ?.
|
static int |
countByC_C(long companyId,
java.lang.String couponCode)
Returns the number of commerce discounts where companyId = ? and couponCode = ?.
|
static int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce discounts where companyId = ? and externalReferenceCode = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of commerce discounts where companyId = ?.
|
static int |
countByLtD_S(java.util.Date displayDate,
int status)
Returns the number of commerce discounts where displayDate < ? and status = ?.
|
static int |
countByLtE_S(java.util.Date expirationDate,
int status)
Returns the number of commerce discounts where expirationDate < ? and status = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce discounts where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce discounts where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceDiscount |
create(long commerceDiscountId)
Creates a new commerce discount with the primary key.
|
static CommerceDiscount |
fetchByC_C_A(long companyId,
java.lang.String couponCode,
boolean active)
Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or returns
null if it could not be found. |
static CommerceDiscount |
fetchByC_C_A(long companyId,
java.lang.String couponCode,
boolean active,
boolean useFinderCache)
Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceDiscount |
fetchByC_C_First(long companyId,
java.lang.String couponCode,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the first commerce discount in the ordered set where companyId = ? and couponCode = ?.
|
static CommerceDiscount |
fetchByC_C_Last(long companyId,
java.lang.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 |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce discount where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
static CommerceDiscount |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the commerce discount where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
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 = ?.
|
static CommerceDiscount |
fetchByLtD_S_First(java.util.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 CommerceDiscount |
fetchByLtD_S_Last(java.util.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 |
fetchByLtE_S_First(java.util.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 CommerceDiscount |
fetchByLtE_S_Last(java.util.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 |
fetchByPrimaryKey(long commerceDiscountId)
Returns the commerce discount with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceDiscount> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommerceDiscount |
fetchByUuid_C_First(java.lang.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 CommerceDiscount |
fetchByUuid_C_Last(java.lang.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 |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the first commerce discount in the ordered set where uuid = ?.
|
static CommerceDiscount |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the last commerce discount in the ordered set where uuid = ?.
|
static int |
filterCountByC_C(long companyId,
java.lang.String couponCode)
Returns the number of commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.
|
static int |
filterCountByCompanyId(long companyId)
Returns the number of commerce discounts that the user has permission to view where companyId = ?.
|
static int |
filterCountByLtD_S(java.util.Date displayDate,
int status)
Returns the number of commerce discounts that the user has permission to view where displayDate < ? and status = ?.
|
static int |
filterCountByLtE_S(java.util.Date expirationDate,
int status)
Returns the number of commerce discounts that the user has permission to view where expirationDate < ? and status = ?.
|
static int |
filterCountByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce discounts that the user has permission to view where uuid = ? and companyId = ?.
|
static int |
filterCountByUuid(java.lang.String uuid)
Returns the number of commerce discounts that the user has permission to view where uuid = ?.
|
static CommerceDiscount[] |
filterFindByC_C_PrevAndNext(long commerceDiscountId,
long companyId,
java.lang.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 java.util.List<CommerceDiscount> |
filterFindByC_C(long companyId,
java.lang.String couponCode)
Returns all the commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.
|
static java.util.List<CommerceDiscount> |
filterFindByC_C(long companyId,
java.lang.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 java.util.List<CommerceDiscount> |
filterFindByC_C(long companyId,
java.lang.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[] |
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 java.util.List<CommerceDiscount> |
filterFindByCompanyId(long companyId)
Returns all the commerce discounts that the user has permission to view where companyId = ?.
|
static java.util.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 java.util.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[] |
filterFindByLtD_S_PrevAndNext(long commerceDiscountId,
java.util.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 java.util.List<CommerceDiscount> |
filterFindByLtD_S(java.util.Date displayDate,
int status)
Returns all the commerce discounts that the user has permission to view where displayDate < ? and status = ?.
|
static java.util.List<CommerceDiscount> |
filterFindByLtD_S(java.util.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 java.util.List<CommerceDiscount> |
filterFindByLtD_S(java.util.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[] |
filterFindByLtE_S_PrevAndNext(long commerceDiscountId,
java.util.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 java.util.List<CommerceDiscount> |
filterFindByLtE_S(java.util.Date expirationDate,
int status)
Returns all the commerce discounts that the user has permission to view where expirationDate < ? and status = ?.
|
static java.util.List<CommerceDiscount> |
filterFindByLtE_S(java.util.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 java.util.List<CommerceDiscount> |
filterFindByLtE_S(java.util.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[] |
filterFindByUuid_C_PrevAndNext(long commerceDiscountId,
java.lang.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 java.util.List<CommerceDiscount> |
filterFindByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce discounts that the user has permission to view where uuid = ? and companyId = ?.
|
static java.util.List<CommerceDiscount> |
filterFindByUuid_C(java.lang.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 java.util.List<CommerceDiscount> |
filterFindByUuid_C(java.lang.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_PrevAndNext(long commerceDiscountId,
java.lang.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 java.util.List<CommerceDiscount> |
filterFindByUuid(java.lang.String uuid)
Returns all the commerce discounts that the user has permission to view where uuid = ?.
|
static java.util.List<CommerceDiscount> |
filterFindByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce discounts that the user has permission to view where uuid = ?.
|
static java.util.List<CommerceDiscount> |
filterFindByUuid(java.lang.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 java.util.List<CommerceDiscount> |
findAll()
Returns all the commerce discounts.
|
static java.util.List<CommerceDiscount> |
findAll(int start,
int end)
Returns a range of all the commerce discounts.
|
static java.util.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 java.util.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 CommerceDiscount |
findByC_C_A(long companyId,
java.lang.String couponCode,
boolean active)
Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or throws a
NoSuchDiscountException if it could not be found. |
static CommerceDiscount |
findByC_C_First(long companyId,
java.lang.String couponCode,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the first commerce discount in the ordered set where companyId = ? and couponCode = ?.
|
static CommerceDiscount |
findByC_C_Last(long companyId,
java.lang.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,
java.lang.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 java.util.List<CommerceDiscount> |
findByC_C(long companyId,
java.lang.String couponCode)
Returns all the commerce discounts where companyId = ? and couponCode = ?.
|
static java.util.List<CommerceDiscount> |
findByC_C(long companyId,
java.lang.String couponCode,
int start,
int end)
Returns a range of all the commerce discounts where companyId = ? and couponCode = ?.
|
static java.util.List<CommerceDiscount> |
findByC_C(long companyId,
java.lang.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 java.util.List<CommerceDiscount> |
findByC_C(long companyId,
java.lang.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 CommerceDiscount |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce discount where companyId = ? and externalReferenceCode = ? or throws a
NoSuchDiscountException if it could not be found. |
static CommerceDiscount |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the first commerce discount in the ordered set where companyId = ?.
|
static CommerceDiscount |
findByCompanyId_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 java.util.List<CommerceDiscount> |
findByCompanyId(long companyId)
Returns all the commerce discounts where companyId = ?.
|
static java.util.List<CommerceDiscount> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce discounts where companyId = ?.
|
static java.util.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 java.util.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 CommerceDiscount |
findByLtD_S_First(java.util.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 CommerceDiscount |
findByLtD_S_Last(java.util.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,
java.util.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 java.util.List<CommerceDiscount> |
findByLtD_S(java.util.Date displayDate,
int status)
Returns all the commerce discounts where displayDate < ? and status = ?.
|
static java.util.List<CommerceDiscount> |
findByLtD_S(java.util.Date displayDate,
int status,
int start,
int end)
Returns a range of all the commerce discounts where displayDate < ? and status = ?.
|
static java.util.List<CommerceDiscount> |
findByLtD_S(java.util.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 java.util.List<CommerceDiscount> |
findByLtD_S(java.util.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 CommerceDiscount |
findByLtE_S_First(java.util.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 CommerceDiscount |
findByLtE_S_Last(java.util.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,
java.util.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 java.util.List<CommerceDiscount> |
findByLtE_S(java.util.Date expirationDate,
int status)
Returns all the commerce discounts where expirationDate < ? and status = ?.
|
static java.util.List<CommerceDiscount> |
findByLtE_S(java.util.Date expirationDate,
int status,
int start,
int end)
Returns a range of all the commerce discounts where expirationDate < ? and status = ?.
|
static java.util.List<CommerceDiscount> |
findByLtE_S(java.util.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 java.util.List<CommerceDiscount> |
findByLtE_S(java.util.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 CommerceDiscount |
findByPrimaryKey(long commerceDiscountId)
Returns the commerce discount with the primary key or throws a
NoSuchDiscountException if it could not be found. |
static CommerceDiscount |
findByUuid_C_First(java.lang.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 CommerceDiscount |
findByUuid_C_Last(java.lang.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,
java.lang.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 java.util.List<CommerceDiscount> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce discounts where uuid = ? and companyId = ?.
|
static java.util.List<CommerceDiscount> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce discounts where uuid = ? and companyId = ?.
|
static java.util.List<CommerceDiscount> |
findByUuid_C(java.lang.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 java.util.List<CommerceDiscount> |
findByUuid_C(java.lang.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 CommerceDiscount |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the first commerce discount in the ordered set where uuid = ?.
|
static CommerceDiscount |
findByUuid_Last(java.lang.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,
java.lang.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 java.util.List<CommerceDiscount> |
findByUuid(java.lang.String uuid)
Returns all the commerce discounts where uuid = ?.
|
static java.util.List<CommerceDiscount> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce discounts where uuid = ?.
|
static java.util.List<CommerceDiscount> |
findByUuid(java.lang.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 java.util.List<CommerceDiscount> |
findByUuid(java.lang.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 java.util.List<CommerceDiscount> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceDiscount> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceDiscount> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) |
static CommerceDiscountPersistence |
getPersistence() |
static CommerceDiscount |
remove(long commerceDiscountId)
Removes the commerce discount with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce discounts from the database.
|
static CommerceDiscount |
removeByC_C_A(long companyId,
java.lang.String couponCode,
boolean active)
Removes the commerce discount where companyId = ? and couponCode = ? and active = ? from the database.
|
static void |
removeByC_C(long companyId,
java.lang.String couponCode)
Removes all the commerce discounts where companyId = ? and couponCode = ? from the database.
|
static CommerceDiscount |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the commerce discount where companyId = ? and externalReferenceCode = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the commerce discounts where companyId = ? from the database.
|
static void |
removeByLtD_S(java.util.Date displayDate,
int status)
Removes all the commerce discounts where displayDate < ? and status = ? from the database.
|
static void |
removeByLtE_S(java.util.Date expirationDate,
int status)
Removes all the commerce discounts where expirationDate < ? and status = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce discounts where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce discounts where uuid = ? from the database.
|
static CommerceDiscount |
update(CommerceDiscount commerceDiscount) |
static CommerceDiscount |
update(CommerceDiscount commerceDiscount,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceDiscount |
updateImpl(CommerceDiscount commerceDiscount) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceDiscount commerceDiscount)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CommerceDiscount> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceDiscount> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceDiscount> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceDiscount> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceDiscount update(CommerceDiscount commerceDiscount)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceDiscount update(CommerceDiscount commerceDiscount, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceDiscount> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceDiscount> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)public static java.util.List<CommerceDiscount> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)public static java.util.List<CommerceDiscount> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceDiscount findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount could not be foundpublic static CommerceDiscount findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount could not be foundpublic static CommerceDiscount[] findByUuid_PrevAndNext(long commerceDiscountId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
commerceDiscountId
- the primary key of the current commerce discountuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a commerce discount with the primary key could not be foundpublic static java.util.List<CommerceDiscount> filterFindByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceDiscount> filterFindByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)public static java.util.List<CommerceDiscount> filterFindByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)public static CommerceDiscount[] filterFindByUuid_PrevAndNext(long commerceDiscountId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
commerceDiscountId
- the primary key of the current commerce discountuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a commerce discount with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int filterCountByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceDiscount> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceDiscount> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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)public static java.util.List<CommerceDiscount> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)public static java.util.List<CommerceDiscount> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceDiscount findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount could not be foundpublic static CommerceDiscount findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount could not be foundpublic static CommerceDiscount[] findByUuid_C_PrevAndNext(long commerceDiscountId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
commerceDiscountId
- the primary key of the current commerce discountuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a commerce discount with the primary key could not be foundpublic static java.util.List<CommerceDiscount> filterFindByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceDiscount> filterFindByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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)public static java.util.List<CommerceDiscount> filterFindByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)public static CommerceDiscount[] filterFindByUuid_C_PrevAndNext(long commerceDiscountId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
commerceDiscountId
- the primary key of the current commerce discountuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a commerce discount with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int filterCountByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceDiscount> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommerceDiscount> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)public static java.util.List<CommerceDiscount> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)public static java.util.List<CommerceDiscount> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceDiscount findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount could not be foundpublic static CommerceDiscount findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount could not be foundpublic static CommerceDiscount[] findByCompanyId_PrevAndNext(long commerceDiscountId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
commerceDiscountId
- the primary key of the current commerce discountcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a commerce discount with the primary key could not be foundpublic static java.util.List<CommerceDiscount> filterFindByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommerceDiscount> filterFindByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)public static java.util.List<CommerceDiscount> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)public static CommerceDiscount[] filterFindByCompanyId_PrevAndNext(long commerceDiscountId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
commerceDiscountId
- the primary key of the current commerce discountcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a commerce discount with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static int filterCountByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommerceDiscount> findByC_C(long companyId, java.lang.String couponCode)
companyId
- the company IDcouponCode
- the coupon codepublic static java.util.List<CommerceDiscount> findByC_C(long companyId, java.lang.String couponCode, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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)public static java.util.List<CommerceDiscount> findByC_C(long companyId, java.lang.String couponCode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)public static java.util.List<CommerceDiscount> findByC_C(long companyId, java.lang.String couponCode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceDiscount findByC_C_First(long companyId, java.lang.String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
companyId
- the company IDcouponCode
- the coupon codeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByC_C_First(long companyId, java.lang.String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
companyId
- the company IDcouponCode
- the coupon codeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount could not be foundpublic static CommerceDiscount findByC_C_Last(long companyId, java.lang.String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
companyId
- the company IDcouponCode
- the coupon codeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByC_C_Last(long companyId, java.lang.String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
companyId
- the company IDcouponCode
- the coupon codeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount could not be foundpublic static CommerceDiscount[] findByC_C_PrevAndNext(long commerceDiscountId, long companyId, java.lang.String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
commerceDiscountId
- the primary key of the current commerce discountcompanyId
- the company IDcouponCode
- the coupon codeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a commerce discount with the primary key could not be foundpublic static java.util.List<CommerceDiscount> filterFindByC_C(long companyId, java.lang.String couponCode)
companyId
- the company IDcouponCode
- the coupon codepublic static java.util.List<CommerceDiscount> filterFindByC_C(long companyId, java.lang.String couponCode, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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)public static java.util.List<CommerceDiscount> filterFindByC_C(long companyId, java.lang.String couponCode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)public static CommerceDiscount[] filterFindByC_C_PrevAndNext(long commerceDiscountId, long companyId, java.lang.String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
commerceDiscountId
- the primary key of the current commerce discountcompanyId
- the company IDcouponCode
- the coupon codeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a commerce discount with the primary key could not be foundpublic static void removeByC_C(long companyId, java.lang.String couponCode)
companyId
- the company IDcouponCode
- the coupon codepublic static int countByC_C(long companyId, java.lang.String couponCode)
companyId
- the company IDcouponCode
- the coupon codepublic static int filterCountByC_C(long companyId, java.lang.String couponCode)
companyId
- the company IDcouponCode
- the coupon codepublic static java.util.List<CommerceDiscount> findByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statuspublic static java.util.List<CommerceDiscount> findByLtD_S(java.util.Date displayDate, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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)public static java.util.List<CommerceDiscount> findByLtD_S(java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)public static java.util.List<CommerceDiscount> findByLtD_S(java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceDiscount findByLtD_S_First(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByLtD_S_First(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount could not be foundpublic static CommerceDiscount findByLtD_S_Last(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByLtD_S_Last(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount could not be foundpublic static CommerceDiscount[] findByLtD_S_PrevAndNext(long commerceDiscountId, java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
commerceDiscountId
- the primary key of the current commerce discountdisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a commerce discount with the primary key could not be foundpublic static java.util.List<CommerceDiscount> filterFindByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statuspublic static java.util.List<CommerceDiscount> filterFindByLtD_S(java.util.Date displayDate, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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)public static java.util.List<CommerceDiscount> filterFindByLtD_S(java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)public static CommerceDiscount[] filterFindByLtD_S_PrevAndNext(long commerceDiscountId, java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
commerceDiscountId
- the primary key of the current commerce discountdisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a commerce discount with the primary key could not be foundpublic static void removeByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statuspublic static int countByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statuspublic static int filterCountByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statuspublic static java.util.List<CommerceDiscount> findByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statuspublic static java.util.List<CommerceDiscount> findByLtE_S(java.util.Date expirationDate, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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)public static java.util.List<CommerceDiscount> findByLtE_S(java.util.Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)public static java.util.List<CommerceDiscount> findByLtE_S(java.util.Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceDiscount findByLtE_S_First(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByLtE_S_First(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount could not be foundpublic static CommerceDiscount findByLtE_S_Last(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByLtE_S_Last(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount could not be foundpublic static CommerceDiscount[] findByLtE_S_PrevAndNext(long commerceDiscountId, java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
commerceDiscountId
- the primary key of the current commerce discountexpirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a commerce discount with the primary key could not be foundpublic static java.util.List<CommerceDiscount> filterFindByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statuspublic static java.util.List<CommerceDiscount> filterFindByLtE_S(java.util.Date expirationDate, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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)public static java.util.List<CommerceDiscount> filterFindByLtE_S(java.util.Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)public static CommerceDiscount[] filterFindByLtE_S_PrevAndNext(long commerceDiscountId, java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
commerceDiscountId
- the primary key of the current commerce discountexpirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountException
- if a commerce discount with the primary key could not be foundpublic static void removeByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statuspublic static int countByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statuspublic static int filterCountByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statuspublic static CommerceDiscount findByC_C_A(long companyId, java.lang.String couponCode, boolean active) throws NoSuchDiscountException
NoSuchDiscountException
if it could not be found.companyId
- the company IDcouponCode
- the coupon codeactive
- the activeNoSuchDiscountException
- if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByC_C_A(long companyId, java.lang.String couponCode, boolean active)
null
if it could not be found. Uses the finder cache.companyId
- the company IDcouponCode
- the coupon codeactive
- the activenull
if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByC_C_A(long companyId, java.lang.String couponCode, boolean active, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDcouponCode
- the coupon codeactive
- the activeuseFinderCache
- whether to use the finder cachenull
if a matching commerce discount could not be foundpublic static CommerceDiscount removeByC_C_A(long companyId, java.lang.String couponCode, boolean active) throws NoSuchDiscountException
companyId
- the company IDcouponCode
- the coupon codeactive
- the activeNoSuchDiscountException
public static int countByC_C_A(long companyId, java.lang.String couponCode, boolean active)
companyId
- the company IDcouponCode
- the coupon codeactive
- the activepublic static CommerceDiscount findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchDiscountException
NoSuchDiscountException
if it could not be found.companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchDiscountException
- if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByC_ERC(long companyId, java.lang.String externalReferenceCode)
null
if it could not be found. Uses the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codenull
if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByC_ERC(long companyId, java.lang.String externalReferenceCode, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codeuseFinderCache
- whether to use the finder cachenull
if a matching commerce discount could not be foundpublic static CommerceDiscount removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchDiscountException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchDiscountException
public static int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codepublic static void cacheResult(CommerceDiscount commerceDiscount)
commerceDiscount
- the commerce discountpublic static void cacheResult(java.util.List<CommerceDiscount> commerceDiscounts)
commerceDiscounts
- the commerce discountspublic static CommerceDiscount create(long commerceDiscountId)
commerceDiscountId
- the primary key for the new commerce discountpublic static CommerceDiscount remove(long commerceDiscountId) throws NoSuchDiscountException
commerceDiscountId
- the primary key of the commerce discountNoSuchDiscountException
- if a commerce discount with the primary key could not be foundpublic static CommerceDiscount updateImpl(CommerceDiscount commerceDiscount)
public static CommerceDiscount findByPrimaryKey(long commerceDiscountId) throws NoSuchDiscountException
NoSuchDiscountException
if it could not be found.commerceDiscountId
- the primary key of the commerce discountNoSuchDiscountException
- if a commerce discount with the primary key could not be foundpublic static CommerceDiscount fetchByPrimaryKey(long commerceDiscountId)
null
if it could not be found.commerceDiscountId
- the primary key of the commerce discountnull
if a commerce discount with the primary key could not be foundpublic static java.util.List<CommerceDiscount> findAll()
public static java.util.List<CommerceDiscount> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
start
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)public static java.util.List<CommerceDiscount> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)public static java.util.List<CommerceDiscount> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceDiscountModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceDiscountPersistence getPersistence()