@ProviderType public interface CommerceDiscountPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscount>
Caching information and settings can be found in portal.properties
CommerceDiscountUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CommerceDiscount commerceDiscount)
Caches the commerce discount in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceDiscount> commerceDiscounts)
Caches the commerce discounts in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce discounts.
|
int |
countByC_C_A(long companyId,
java.lang.String couponCode,
boolean active)
Returns the number of commerce discounts where companyId = ? and couponCode = ? and active = ?.
|
int |
countByC_C(long companyId,
java.lang.String couponCode)
Returns the number of commerce discounts where companyId = ? and couponCode = ?.
|
int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce discounts where companyId = ? and externalReferenceCode = ?.
|
int |
countByCompanyId(long companyId)
Returns the number of commerce discounts where companyId = ?.
|
int |
countByLtD_S(java.util.Date displayDate,
int status)
Returns the number of commerce discounts where displayDate < ? and status = ?.
|
int |
countByLtE_S(java.util.Date expirationDate,
int status)
Returns the number of commerce discounts where expirationDate < ? and status = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce discounts where uuid = ? and companyId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of commerce discounts where uuid = ?.
|
CommerceDiscount |
create(long commerceDiscountId)
Creates a new commerce discount with the primary key.
|
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. |
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. |
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 = ?.
|
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 = ?.
|
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. |
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. |
CommerceDiscount |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the first commerce discount in the ordered set where companyId = ?.
|
CommerceDiscount |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the last commerce discount in the ordered set where companyId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
CommerceDiscount |
fetchByPrimaryKey(long commerceDiscountId)
Returns the commerce discount with the primary key or returns
null if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
int |
filterCountByCompanyId(long companyId)
Returns the number of commerce discounts that the user has permission to view where companyId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
int |
filterCountByUuid(java.lang.String uuid)
Returns the number of commerce discounts that the user has permission to view where uuid = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceDiscount> |
filterFindByCompanyId(long companyId)
Returns all the commerce discounts that the user has permission to view where companyId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceDiscount> |
filterFindByUuid(java.lang.String uuid)
Returns all the commerce discounts that the user has permission to view where uuid = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceDiscount> |
findAll()
Returns all the commerce discounts.
|
java.util.List<CommerceDiscount> |
findAll(int start,
int end)
Returns a range of all the commerce discounts.
|
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.
|
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.
|
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. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceDiscount> |
findByC_C(long companyId,
java.lang.String couponCode)
Returns all the commerce discounts where companyId = ? and couponCode = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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. |
CommerceDiscount |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the first commerce discount in the ordered set where companyId = ?.
|
CommerceDiscount |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the last commerce discount in the ordered set where companyId = ?.
|
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 = ?.
|
java.util.List<CommerceDiscount> |
findByCompanyId(long companyId)
Returns all the commerce discounts where companyId = ?.
|
java.util.List<CommerceDiscount> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce discounts where companyId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceDiscount> |
findByLtD_S(java.util.Date displayDate,
int status)
Returns all the commerce discounts where displayDate < ? and status = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceDiscount> |
findByLtE_S(java.util.Date expirationDate,
int status)
Returns all the commerce discounts where expirationDate < ? and status = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
CommerceDiscount |
findByPrimaryKey(long commerceDiscountId)
Returns the commerce discount with the primary key or throws a
NoSuchDiscountException if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceDiscount> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce discounts where uuid = ? and companyId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceDiscount> |
findByUuid(java.lang.String uuid)
Returns all the commerce discounts where uuid = ?.
|
java.util.List<CommerceDiscount> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce discounts where uuid = ?.
|
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 = ?.
|
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 = ?.
|
CommerceDiscount |
remove(long commerceDiscountId)
Removes the commerce discount with the primary key from the database.
|
void |
removeAll()
Removes all the commerce discounts from the database.
|
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.
|
void |
removeByC_C(long companyId,
java.lang.String couponCode)
Removes all the commerce discounts where companyId = ? and couponCode = ? from the database.
|
CommerceDiscount |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the commerce discount where companyId = ? and externalReferenceCode = ? from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the commerce discounts where companyId = ? from the database.
|
void |
removeByLtD_S(java.util.Date displayDate,
int status)
Removes all the commerce discounts where displayDate < ? and status = ? from the database.
|
void |
removeByLtE_S(java.util.Date expirationDate,
int status)
Removes all the commerce discounts where expirationDate < ? and status = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce discounts where uuid = ? and companyId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the commerce discounts where uuid = ? from the database.
|
CommerceDiscount |
updateImpl(CommerceDiscount commerceDiscount) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<CommerceDiscount> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.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)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
)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 cacheCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount[] 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 foundjava.util.List<CommerceDiscount> filterFindByUuid(java.lang.String uuid)
uuid
- the uuidjava.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)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
)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 foundvoid removeByUuid(java.lang.String uuid)
uuid
- the uuidint countByUuid(java.lang.String uuid)
uuid
- the uuidint filterCountByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<CommerceDiscount> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.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)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
)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 cacheCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount[] 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 foundjava.util.List<CommerceDiscount> filterFindByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.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)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
)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 foundvoid removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint filterCountByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<CommerceDiscount> findByCompanyId(long companyId)
companyId
- the company IDjava.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)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
)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 cacheCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount[] 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 foundjava.util.List<CommerceDiscount> filterFindByCompanyId(long companyId)
companyId
- the company IDjava.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)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
)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 foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDint filterCountByCompanyId(long companyId)
companyId
- the company IDjava.util.List<CommerceDiscount> findByC_C(long companyId, java.lang.String couponCode)
companyId
- the company IDcouponCode
- the coupon codejava.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)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
)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 cacheCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount[] 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 foundjava.util.List<CommerceDiscount> filterFindByC_C(long companyId, java.lang.String couponCode)
companyId
- the company IDcouponCode
- the coupon codejava.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)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
)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 foundvoid removeByC_C(long companyId, java.lang.String couponCode)
companyId
- the company IDcouponCode
- the coupon codeint countByC_C(long companyId, java.lang.String couponCode)
companyId
- the company IDcouponCode
- the coupon codeint filterCountByC_C(long companyId, java.lang.String couponCode)
companyId
- the company IDcouponCode
- the coupon codejava.util.List<CommerceDiscount> findByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statusjava.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)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
)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 cacheCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount[] 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 foundjava.util.List<CommerceDiscount> filterFindByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statusjava.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)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
)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 foundvoid removeByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statusint countByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statusint filterCountByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statusjava.util.List<CommerceDiscount> findByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statusjava.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)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
)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 cacheCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount[] 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 foundjava.util.List<CommerceDiscount> filterFindByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statusjava.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)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
)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 foundvoid removeByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statusint countByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statusint filterCountByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statusCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount removeByC_C_A(long companyId, java.lang.String couponCode, boolean active) throws NoSuchDiscountException
companyId
- the company IDcouponCode
- the coupon codeactive
- the activeNoSuchDiscountException
int countByC_C_A(long companyId, java.lang.String couponCode, boolean active)
companyId
- the company IDcouponCode
- the coupon codeactive
- the activeCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchDiscountException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchDiscountException
int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codevoid cacheResult(CommerceDiscount commerceDiscount)
commerceDiscount
- the commerce discountvoid cacheResult(java.util.List<CommerceDiscount> commerceDiscounts)
commerceDiscounts
- the commerce discountsCommerceDiscount create(long commerceDiscountId)
commerceDiscountId
- the primary key for the new commerce discountCommerceDiscount remove(long commerceDiscountId) throws NoSuchDiscountException
commerceDiscountId
- the primary key of the commerce discountNoSuchDiscountException
- if a commerce discount with the primary key could not be foundCommerceDiscount updateImpl(CommerceDiscount commerceDiscount)
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 foundCommerceDiscount 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 foundjava.util.List<CommerceDiscount> findAll()
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)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
)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 cachevoid removeAll()
int countAll()