@ProviderType
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,
com.liferay.commerce.discount.service.persistence.impl.CommerceDiscountPersistenceImpl| 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 |
countByG_C(long groupId,
java.lang.String couponCode)
Returns the number of commerce discounts where groupId = ? and couponCode = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of commerce discounts where groupId = ?.
|
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_G(java.lang.String uuid,
long groupId)
Returns the number of commerce discounts where uuid = ? and groupId = ?.
|
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 |
fetchByG_C_First(long groupId,
java.lang.String couponCode,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the first commerce discount in the ordered set where groupId = ? and couponCode = ?.
|
static CommerceDiscount |
fetchByG_C_Last(long groupId,
java.lang.String couponCode,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the last commerce discount in the ordered set where groupId = ? and couponCode = ?.
|
static CommerceDiscount |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the first commerce discount in the ordered set where groupId = ?.
|
static CommerceDiscount |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the last commerce discount in the ordered set where groupId = ?.
|
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_G(java.lang.String uuid,
long groupId)
Returns the commerce discount where uuid = ? and groupId = ? or returns
null if it could not be found. |
static CommerceDiscount |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean retrieveFromCache)
Returns the commerce discount where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
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 |
filterCountByG_C(long groupId,
java.lang.String couponCode)
Returns the number of commerce discounts that the user has permission to view where groupId = ? and couponCode = ?.
|
static int |
filterCountByGroupId(long groupId)
Returns the number of commerce discounts that the user has permission to view where groupId = ?.
|
static CommerceDiscount[] |
filterFindByG_C_PrevAndNext(long commerceDiscountId,
long groupId,
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 groupId = ? and couponCode = ?.
|
static java.util.List<CommerceDiscount> |
filterFindByG_C(long groupId,
java.lang.String couponCode)
Returns all the commerce discounts that the user has permission to view where groupId = ? and couponCode = ?.
|
static java.util.List<CommerceDiscount> |
filterFindByG_C(long groupId,
java.lang.String couponCode,
int start,
int end)
Returns a range of all the commerce discounts that the user has permission to view where groupId = ? and couponCode = ?.
|
static java.util.List<CommerceDiscount> |
filterFindByG_C(long groupId,
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 groupId = ? and couponCode = ?.
|
static CommerceDiscount[] |
filterFindByGroupId_PrevAndNext(long commerceDiscountId,
long groupId,
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 groupId = ?.
|
static java.util.List<CommerceDiscount> |
filterFindByGroupId(long groupId)
Returns all the commerce discounts that the user has permission to view where groupId = ?.
|
static java.util.List<CommerceDiscount> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the commerce discounts that the user has permission to view where groupId = ?.
|
static java.util.List<CommerceDiscount> |
filterFindByGroupId(long groupId,
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 groupId = ?.
|
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 retrieveFromCache)
Returns an ordered range of all the commerce discounts.
|
static CommerceDiscount |
findByG_C_First(long groupId,
java.lang.String couponCode,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the first commerce discount in the ordered set where groupId = ? and couponCode = ?.
|
static CommerceDiscount |
findByG_C_Last(long groupId,
java.lang.String couponCode,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the last commerce discount in the ordered set where groupId = ? and couponCode = ?.
|
static CommerceDiscount[] |
findByG_C_PrevAndNext(long commerceDiscountId,
long groupId,
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 groupId = ? and couponCode = ?.
|
static java.util.List<CommerceDiscount> |
findByG_C(long groupId,
java.lang.String couponCode)
Returns all the commerce discounts where groupId = ? and couponCode = ?.
|
static java.util.List<CommerceDiscount> |
findByG_C(long groupId,
java.lang.String couponCode,
int start,
int end)
Returns a range of all the commerce discounts where groupId = ? and couponCode = ?.
|
static java.util.List<CommerceDiscount> |
findByG_C(long groupId,
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 groupId = ? and couponCode = ?.
|
static java.util.List<CommerceDiscount> |
findByG_C(long groupId,
java.lang.String couponCode,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce discounts where groupId = ? and couponCode = ?.
|
static CommerceDiscount |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the first commerce discount in the ordered set where groupId = ?.
|
static CommerceDiscount |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the last commerce discount in the ordered set where groupId = ?.
|
static CommerceDiscount[] |
findByGroupId_PrevAndNext(long commerceDiscountId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the commerce discounts before and after the current commerce discount in the ordered set where groupId = ?.
|
static java.util.List<CommerceDiscount> |
findByGroupId(long groupId)
Returns all the commerce discounts where groupId = ?.
|
static java.util.List<CommerceDiscount> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the commerce discounts where groupId = ?.
|
static java.util.List<CommerceDiscount> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns an ordered range of all the commerce discounts where groupId = ?.
|
static java.util.List<CommerceDiscount> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce discounts where groupId = ?.
|
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 retrieveFromCache)
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 retrieveFromCache)
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 retrieveFromCache)
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_G(java.lang.String uuid,
long groupId)
Returns the commerce discount where uuid = ? and groupId = ? or throws a
NoSuchDiscountException if it could not be found. |
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 retrieveFromCache)
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 java.util.Set<java.lang.String> |
getBadColumnNames() |
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 void |
removeByG_C(long groupId,
java.lang.String couponCode)
Removes all the commerce discounts where groupId = ? and couponCode = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the commerce discounts where groupId = ? 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 CommerceDiscount |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the commerce discount where uuid = ? and groupId = ? 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.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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)retrieveFromCache - whether to retrieve from 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 void removeByUuid(java.lang.String uuid)
uuid - the uuidpublic static int countByUuid(java.lang.String uuid)
uuid - the uuidpublic static CommerceDiscount findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchDiscountException
NoSuchDiscountException if it could not be found.uuid - the uuidgroupId - the group IDNoSuchDiscountException - if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByUUID_G(java.lang.String uuid, long groupId)
null if it could not be found. Uses the finder cache.uuid - the uuidgroupId - the group IDnull if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByUUID_G(java.lang.String uuid, long groupId, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.uuid - the uuidgroupId - the group IDretrieveFromCache - whether to retrieve from the finder cachenull if a matching commerce discount could not be foundpublic static CommerceDiscount removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchDiscountException
uuid - the uuidgroupId - the group IDNoSuchDiscountExceptionpublic static int countByUUID_G(java.lang.String uuid,
long groupId)
uuid - the uuidgroupId - the group IDpublic 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)retrieveFromCache - whether to retrieve from 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 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 java.util.List<CommerceDiscount> findByGroupId(long groupId)
groupId - the group IDpublic static java.util.List<CommerceDiscount> findByGroupId(long groupId, 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group 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> findByGroupId(long groupId, 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group 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> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group 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)retrieveFromCache - whether to retrieve from the finder cachepublic static CommerceDiscount findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchDiscountException - if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce discount could not be foundpublic static CommerceDiscount findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchDiscountException - if a matching commerce discount could not be foundpublic static CommerceDiscount fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce discount could not be foundpublic static CommerceDiscount[] findByGroupId_PrevAndNext(long commerceDiscountId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
commerceDiscountId - the primary key of the current commerce discountgroupId - the group 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> filterFindByGroupId(long groupId)
groupId - the group IDpublic static java.util.List<CommerceDiscount> filterFindByGroupId(long groupId, 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group 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> filterFindByGroupId(long groupId, 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group 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[] filterFindByGroupId_PrevAndNext(long commerceDiscountId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
commerceDiscountId - the primary key of the current commerce discountgroupId - the group 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 removeByGroupId(long groupId)
groupId - the group IDpublic static int countByGroupId(long groupId)
groupId - the group IDpublic static int filterCountByGroupId(long groupId)
groupId - the group IDpublic static java.util.List<CommerceDiscount> findByG_C(long groupId, java.lang.String couponCode)
groupId - the group IDcouponCode - the coupon codepublic static java.util.List<CommerceDiscount> findByG_C(long groupId, 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group 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> findByG_C(long groupId, 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group 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> findByG_C(long groupId, java.lang.String couponCode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group 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)retrieveFromCache - whether to retrieve from the finder cachepublic static CommerceDiscount findByG_C_First(long groupId, java.lang.String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
groupId - the group 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 fetchByG_C_First(long groupId, java.lang.String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
groupId - the group 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 findByG_C_Last(long groupId, java.lang.String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
groupId - the group 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 fetchByG_C_Last(long groupId, java.lang.String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
groupId - the group 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[] findByG_C_PrevAndNext(long commerceDiscountId, long groupId, java.lang.String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
commerceDiscountId - the primary key of the current commerce discountgroupId - the group 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> filterFindByG_C(long groupId, java.lang.String couponCode)
groupId - the group IDcouponCode - the coupon codepublic static java.util.List<CommerceDiscount> filterFindByG_C(long groupId, 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group 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> filterFindByG_C(long groupId, 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group 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[] filterFindByG_C_PrevAndNext(long commerceDiscountId, long groupId, java.lang.String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException
commerceDiscountId - the primary key of the current commerce discountgroupId - the group 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 removeByG_C(long groupId,
java.lang.String couponCode)
groupId - the group IDcouponCode - the coupon codepublic static int countByG_C(long groupId,
java.lang.String couponCode)
groupId - the group IDcouponCode - the coupon codepublic static int filterCountByG_C(long groupId,
java.lang.String couponCode)
groupId - the group 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)retrieveFromCache - whether to retrieve from 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 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 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)retrieveFromCache - whether to retrieve from 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 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 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.Map<java.io.Serializable,CommerceDiscount> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)retrieveFromCache - whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static java.util.Set<java.lang.String> getBadColumnNames()
public static CommerceDiscountPersistence getPersistence()