@ProviderType public interface CommerceDiscountPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscount>
Caching information and settings can be found in portal.properties
com.liferay.commerce.discount.service.persistence.impl.CommerceDiscountPersistenceImpl,
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 |
countByG_C(long groupId,
java.lang.String couponCode)
Returns the number of commerce discounts where groupId = ? and couponCode = ?.
|
int |
countByGroupId(long groupId)
Returns the number of commerce discounts where groupId = ?.
|
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_G(java.lang.String uuid,
long groupId)
Returns the number of commerce discounts where uuid = ? and groupId = ?.
|
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 |
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 = ?.
|
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 = ?.
|
CommerceDiscount |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the first commerce discount in the ordered set where groupId = ?.
|
CommerceDiscount |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the last commerce discount in the ordered set where groupId = ?.
|
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. |
java.util.Map<java.io.Serializable,CommerceDiscount> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
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_G(java.lang.String uuid,
long groupId)
Returns the commerce discount where uuid = ? and groupId = ? or returns
null if it could not be found. |
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. |
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 |
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 = ?.
|
int |
filterCountByGroupId(long groupId)
Returns the number of commerce discounts that the user has permission to view where groupId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceDiscount> |
filterFindByGroupId(long groupId)
Returns all the commerce discounts that the user has permission to view where groupId = ?.
|
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 = ?.
|
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 = ?.
|
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 retrieveFromCache)
Returns an ordered range of all the commerce discounts.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceDiscount> |
findByG_C(long groupId,
java.lang.String couponCode)
Returns all the commerce discounts where groupId = ? and couponCode = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
CommerceDiscount |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the first commerce discount in the ordered set where groupId = ?.
|
CommerceDiscount |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator)
Returns the last commerce discount in the ordered set where groupId = ?.
|
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 = ?.
|
java.util.List<CommerceDiscount> |
findByGroupId(long groupId)
Returns all the commerce discounts where groupId = ?.
|
java.util.List<CommerceDiscount> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the commerce discounts where groupId = ?.
|
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 = ?.
|
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 = ?.
|
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 retrieveFromCache)
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 retrieveFromCache)
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 retrieveFromCache)
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_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. |
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 retrieveFromCache)
Returns an ordered range of all the commerce discounts where uuid = ?.
|
java.util.Set<java.lang.String> |
getBadColumnNames() |
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.
|
void |
removeByG_C(long groupId,
java.lang.String couponCode)
Removes all the commerce discounts where groupId = ? and couponCode = ? from the database.
|
void |
removeByGroupId(long groupId)
Removes all the commerce discounts where groupId = ? 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.
|
CommerceDiscount |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the commerce discount where uuid = ? and groupId = ? 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, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, updatejava.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 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)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)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 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 foundvoid removeByUuid(java.lang.String uuid)
uuid - the uuidint countByUuid(java.lang.String uuid)
uuid - the uuidCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchDiscountException
uuid - the uuidgroupId - the group IDNoSuchDiscountExceptionint countByUUID_G(java.lang.String uuid,
long groupId)
uuid - the uuidgroupId - the group IDjava.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 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)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)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 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 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 IDjava.util.List<CommerceDiscount> findByGroupId(long groupId)
groupId - the group IDjava.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)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)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 cacheCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount[] 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 foundjava.util.List<CommerceDiscount> filterFindByGroupId(long groupId)
groupId - the group IDjava.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)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)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 foundvoid removeByGroupId(long groupId)
groupId - the group IDint countByGroupId(long groupId)
groupId - the group IDint filterCountByGroupId(long groupId)
groupId - the group IDjava.util.List<CommerceDiscount> findByG_C(long groupId, java.lang.String couponCode)
groupId - the group IDcouponCode - the coupon codejava.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)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)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 cacheCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount 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 foundCommerceDiscount[] 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 foundjava.util.List<CommerceDiscount> filterFindByG_C(long groupId, java.lang.String couponCode)
groupId - the group IDcouponCode - the coupon codejava.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)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)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 foundvoid removeByG_C(long groupId,
java.lang.String couponCode)
groupId - the group IDcouponCode - the coupon codeint countByG_C(long groupId,
java.lang.String couponCode)
groupId - the group IDcouponCode - the coupon codeint filterCountByG_C(long groupId,
java.lang.String couponCode)
groupId - the group 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 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)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)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 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 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 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 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)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)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 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 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 statusvoid 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.Map<java.io.Serializable,CommerceDiscount> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscount>java.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 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)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)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 cachevoid removeAll()
int countAll()
java.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscount>