Interface CommerceDiscountPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscount>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(CommerceDiscount commerceDiscount) Caches the commerce discount in the entity cache if it is enabled.void
cacheResult
(List<CommerceDiscount> commerceDiscounts) Caches the commerce discounts in the entity cache if it is enabled.int
countAll()
Returns the number of commerce discounts.int
countByC_C
(long companyId, String couponCode) Returns the number of commerce discounts where companyId = ? and couponCode = ?.int
countByC_C_A
(long companyId, String couponCode, boolean active) Returns the number of commerce discounts where companyId = ? and couponCode = ? and active = ?.int
countByC_L_A_S
(long companyId, String level, boolean active, int status) Returns the number of commerce discounts where companyId = ? and level = ? and active = ? and status = ?.int
countByCompanyId
(long companyId) Returns the number of commerce discounts where companyId = ?.int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of commerce discounts where externalReferenceCode = ? and companyId = ?.int
countByLtD_S
(Date displayDate, int status) Returns the number of commerce discounts where displayDate < ? and status = ?.int
countByLtE_S
(Date expirationDate, int status) Returns the number of commerce discounts where expirationDate < ? and status = ?.int
countByUuid
(String uuid) Returns the number of commerce discounts where uuid = ?.int
countByUuid_C
(String uuid, long companyId) Returns the number of commerce discounts where uuid = ? and companyId = ?.create
(long commerceDiscountId) Creates a new commerce discount with the primary key.fetchByC_C_A
(long companyId, String couponCode, boolean active) Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or returnsnull
if it could not be found.fetchByC_C_A
(long companyId, String couponCode, boolean active, boolean useFinderCache) Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByC_C_First
(long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where companyId = ? and couponCode = ?.fetchByC_C_Last
(long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where companyId = ? and couponCode = ?.fetchByC_L_A_S_First
(long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.fetchByC_L_A_S_Last
(long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.fetchByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where companyId = ?.fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where companyId = ?.fetchByERC_C
(String externalReferenceCode, long companyId) Returns the commerce discount where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce discount where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByLtD_S_First
(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where displayDate < ? and status = ?.fetchByLtD_S_Last
(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where displayDate < ? and status = ?.fetchByLtE_S_First
(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where expirationDate < ? and status = ?.fetchByLtE_S_Last
(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where expirationDate < ? and status = ?.fetchByPrimaryKey
(long commerceDiscountId) Returns the commerce discount with the primary key or returnsnull
if it could not be found.fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where uuid = ? and companyId = ?.fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where uuid = ? and companyId = ?.fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where uuid = ?.fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where uuid = ?.int
filterCountByC_C
(long companyId, String couponCode) Returns the number of commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.int
filterCountByC_L_A_S
(long companyId, String level, boolean active, int status) Returns the number of commerce discounts that the user has permission to view where companyId = ? and level = ? and active = ? and status = ?.int
filterCountByCompanyId
(long companyId) Returns the number of commerce discounts that the user has permission to view where companyId = ?.int
filterCountByLtD_S
(Date displayDate, int status) Returns the number of commerce discounts that the user has permission to view where displayDate < ? and status = ?.int
filterCountByLtE_S
(Date expirationDate, int status) Returns the number of commerce discounts that the user has permission to view where expirationDate < ? and status = ?.int
filterCountByUuid
(String uuid) Returns the number of commerce discounts that the user has permission to view where uuid = ?.int
filterCountByUuid_C
(String uuid, long companyId) Returns the number of commerce discounts that the user has permission to view where uuid = ? and companyId = ?.filterFindByC_C
(long companyId, String couponCode) Returns all the commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.filterFindByC_C
(long companyId, String couponCode, int start, int end) Returns a range of all the commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.filterFindByC_C
(long companyId, String couponCode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts that the user has permissions to view where companyId = ? and couponCode = ?.filterFindByC_C_PrevAndNext
(long commerceDiscountId, long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.filterFindByC_L_A_S
(long companyId, String level, boolean active, int status) Returns all the commerce discounts that the user has permission to view where companyId = ? and level = ? and active = ? and status = ?.filterFindByC_L_A_S
(long companyId, String level, boolean active, int status, int start, int end) Returns a range of all the commerce discounts that the user has permission to view where companyId = ? and level = ? and active = ? and status = ?.filterFindByC_L_A_S
(long companyId, String level, boolean active, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts that the user has permissions to view where companyId = ? and level = ? and active = ? and status = ?.filterFindByC_L_A_S_PrevAndNext
(long commerceDiscountId, long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where companyId = ? and level = ? and active = ? and status = ?.filterFindByCompanyId
(long companyId) Returns all the commerce discounts that the user has permission to view where companyId = ?.filterFindByCompanyId
(long companyId, int start, int end) Returns a range of all the commerce discounts that the user has permission to view where companyId = ?.filterFindByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts that the user has permissions to view where companyId = ?.filterFindByCompanyId_PrevAndNext
(long commerceDiscountId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where companyId = ?.filterFindByLtD_S
(Date displayDate, int status) Returns all the commerce discounts that the user has permission to view where displayDate < ? and status = ?.filterFindByLtD_S
(Date displayDate, int status, int start, int end) Returns a range of all the commerce discounts that the user has permission to view where displayDate < ? and status = ?.filterFindByLtD_S
(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts that the user has permissions to view where displayDate < ? and status = ?.filterFindByLtD_S_PrevAndNext
(long commerceDiscountId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where displayDate < ? and status = ?.filterFindByLtE_S
(Date expirationDate, int status) Returns all the commerce discounts that the user has permission to view where expirationDate < ? and status = ?.filterFindByLtE_S
(Date expirationDate, int status, int start, int end) Returns a range of all the commerce discounts that the user has permission to view where expirationDate < ? and status = ?.filterFindByLtE_S
(Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts that the user has permissions to view where expirationDate < ? and status = ?.filterFindByLtE_S_PrevAndNext
(long commerceDiscountId, Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where expirationDate < ? and status = ?.filterFindByUuid
(String uuid) Returns all the commerce discounts that the user has permission to view where uuid = ?.filterFindByUuid
(String uuid, int start, int end) Returns a range of all the commerce discounts that the user has permission to view where uuid = ?.filterFindByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts that the user has permissions to view where uuid = ?.filterFindByUuid_C
(String uuid, long companyId) Returns all the commerce discounts that the user has permission to view where uuid = ? and companyId = ?.filterFindByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce discounts that the user has permission to view where uuid = ? and companyId = ?.filterFindByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts that the user has permissions to view where uuid = ? and companyId = ?.filterFindByUuid_C_PrevAndNext
(long commerceDiscountId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where uuid = ? and companyId = ?.filterFindByUuid_PrevAndNext
(long commerceDiscountId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where uuid = ?.findAll()
Returns all the commerce discounts.findAll
(int start, int end) Returns a range of all the commerce discounts.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discounts.Returns all the commerce discounts where companyId = ? and couponCode = ?.Returns a range of all the commerce discounts where companyId = ? and couponCode = ?.findByC_C
(long companyId, String couponCode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts where companyId = ? and couponCode = ?.findByC_C
(long companyId, String couponCode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discounts where companyId = ? and couponCode = ?.findByC_C_A
(long companyId, String couponCode, boolean active) Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or throws aNoSuchDiscountException
if it could not be found.findByC_C_First
(long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where companyId = ? and couponCode = ?.findByC_C_Last
(long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where companyId = ? and couponCode = ?.findByC_C_PrevAndNext
(long commerceDiscountId, long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the commerce discounts before and after the current commerce discount in the ordered set where companyId = ? and couponCode = ?.findByC_L_A_S
(long companyId, String level, boolean active, int status) Returns all the commerce discounts where companyId = ? and level = ? and active = ? and status = ?.findByC_L_A_S
(long companyId, String level, boolean active, int status, int start, int end) Returns a range of all the commerce discounts where companyId = ? and level = ? and active = ? and status = ?.findByC_L_A_S
(long companyId, String level, boolean active, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts where companyId = ? and level = ? and active = ? and status = ?.findByC_L_A_S
(long companyId, String level, boolean active, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discounts where companyId = ? and level = ? and active = ? and status = ?.findByC_L_A_S_First
(long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.findByC_L_A_S_Last
(long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.findByC_L_A_S_PrevAndNext
(long commerceDiscountId, long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the commerce discounts before and after the current commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.findByCompanyId
(long companyId) Returns all the commerce discounts where companyId = ?.findByCompanyId
(long companyId, int start, int end) Returns a range of all the commerce discounts where companyId = ?.findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts where companyId = ?.findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discounts where companyId = ?.findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where companyId = ?.findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where companyId = ?.findByCompanyId_PrevAndNext
(long commerceDiscountId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the commerce discounts before and after the current commerce discount in the ordered set where companyId = ?.findByERC_C
(String externalReferenceCode, long companyId) Returns the commerce discount where externalReferenceCode = ? and companyId = ? or throws aNoSuchDiscountException
if it could not be found.findByLtD_S
(Date displayDate, int status) Returns all the commerce discounts where displayDate < ? and status = ?.findByLtD_S
(Date displayDate, int status, int start, int end) Returns a range of all the commerce discounts where displayDate < ? and status = ?.findByLtD_S
(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts where displayDate < ? and status = ?.findByLtD_S
(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discounts where displayDate < ? and status = ?.findByLtD_S_First
(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where displayDate < ? and status = ?.findByLtD_S_Last
(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where displayDate < ? and status = ?.findByLtD_S_PrevAndNext
(long commerceDiscountId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the commerce discounts before and after the current commerce discount in the ordered set where displayDate < ? and status = ?.findByLtE_S
(Date expirationDate, int status) Returns all the commerce discounts where expirationDate < ? and status = ?.findByLtE_S
(Date expirationDate, int status, int start, int end) Returns a range of all the commerce discounts where expirationDate < ? and status = ?.findByLtE_S
(Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts where expirationDate < ? and status = ?.findByLtE_S
(Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discounts where expirationDate < ? and status = ?.findByLtE_S_First
(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where expirationDate < ? and status = ?.findByLtE_S_Last
(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where expirationDate < ? and status = ?.findByLtE_S_PrevAndNext
(long commerceDiscountId, Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the commerce discounts before and after the current commerce discount in the ordered set where expirationDate < ? and status = ?.findByPrimaryKey
(long commerceDiscountId) Returns the commerce discount with the primary key or throws aNoSuchDiscountException
if it could not be found.findByUuid
(String uuid) Returns all the commerce discounts where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the commerce discounts where uuid = ?.findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts where uuid = ?.findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discounts where uuid = ?.findByUuid_C
(String uuid, long companyId) Returns all the commerce discounts where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce discounts where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discounts where uuid = ? and companyId = ?.findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where uuid = ? and companyId = ?.findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where uuid = ? and companyId = ?.findByUuid_C_PrevAndNext
(long commerceDiscountId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the commerce discounts before and after the current commerce discount in the ordered set where uuid = ? and companyId = ?.findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where uuid = ?.findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where uuid = ?.findByUuid_PrevAndNext
(long commerceDiscountId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the commerce discounts before and after the current commerce discount in the ordered set where uuid = ?.remove
(long commerceDiscountId) Removes the commerce discount with the primary key from the database.void
Removes all the commerce discounts from the database.void
removeByC_C
(long companyId, String couponCode) Removes all the commerce discounts where companyId = ? and couponCode = ? from the database.removeByC_C_A
(long companyId, String couponCode, boolean active) Removes the commerce discount where companyId = ? and couponCode = ? and active = ? from the database.void
removeByC_L_A_S
(long companyId, String level, boolean active, int status) Removes all the commerce discounts where companyId = ? and level = ? and active = ? and status = ? from the database.void
removeByCompanyId
(long companyId) Removes all the commerce discounts where companyId = ? from the database.removeByERC_C
(String externalReferenceCode, long companyId) Removes the commerce discount where externalReferenceCode = ? and companyId = ? from the database.void
removeByLtD_S
(Date displayDate, int status) Removes all the commerce discounts where displayDate < ? and status = ? from the database.void
removeByLtE_S
(Date expirationDate, int status) Removes all the commerce discounts where expirationDate < ? and status = ? from the database.void
removeByUuid
(String uuid) Removes all the commerce discounts where uuid = ? from the database.void
removeByUuid_C
(String uuid, long companyId) Removes all the commerce discounts where uuid = ? and companyId = ? from the database.updateImpl
(CommerceDiscount commerceDiscount) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByUuid
Returns all the commerce discounts where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce discounts
-
findByUuid
Returns a range of all the commerce discounts where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts
-
findByUuid
List<CommerceDiscount> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce discounts
-
findByUuid
List<CommerceDiscount> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discounts where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce discounts
-
findByUuid_First
CommerceDiscount findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the first commerce discount in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount
- Throws:
NoSuchDiscountException
- if a matching commerce discount could not be found
-
fetchByUuid_First
CommerceDiscount fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount, or
null
if a matching commerce discount could not be found
-
findByUuid_Last
CommerceDiscount findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the last commerce discount in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount
- Throws:
NoSuchDiscountException
- if a matching commerce discount could not be found
-
fetchByUuid_Last
CommerceDiscount fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount, or
null
if a matching commerce discount could not be found
-
findByUuid_PrevAndNext
CommerceDiscount[] findByUuid_PrevAndNext(long commerceDiscountId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the commerce discounts before and after the current commerce discount in the ordered set where uuid = ?.- Parameters:
commerceDiscountId
- the primary key of the current commerce discountuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException
- if a commerce discount with the primary key could not be found
-
filterFindByUuid
Returns all the commerce discounts that the user has permission to view where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce discounts that the user has permission to view
-
filterFindByUuid
Returns a range of all the commerce discounts that the user has permission to view where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts that the user has permission to view
-
filterFindByUuid
List<CommerceDiscount> filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts that the user has permissions to view where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce discounts that the user has permission to view
-
filterFindByUuid_PrevAndNext
CommerceDiscount[] filterFindByUuid_PrevAndNext(long commerceDiscountId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where uuid = ?.- Parameters:
commerceDiscountId
- the primary key of the current commerce discountuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException
- if a commerce discount with the primary key could not be found
-
removeByUuid
Removes all the commerce discounts where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of commerce discounts where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce discounts
-
filterCountByUuid
Returns the number of commerce discounts that the user has permission to view where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce discounts that the user has permission to view
-
findByUuid_C
Returns all the commerce discounts where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching commerce discounts
-
findByUuid_C
Returns a range of all the commerce discounts where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts
-
findByUuid_C
List<CommerceDiscount> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce discounts
-
findByUuid_C
List<CommerceDiscount> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discounts where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce discounts
-
findByUuid_C_First
CommerceDiscount findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the first commerce discount in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount
- Throws:
NoSuchDiscountException
- if a matching commerce discount could not be found
-
fetchByUuid_C_First
CommerceDiscount fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount, or
null
if a matching commerce discount could not be found
-
findByUuid_C_Last
CommerceDiscount findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the last commerce discount in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount
- Throws:
NoSuchDiscountException
- if a matching commerce discount could not be found
-
fetchByUuid_C_Last
CommerceDiscount fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount, or
null
if a matching commerce discount could not be found
-
findByUuid_C_PrevAndNext
CommerceDiscount[] findByUuid_C_PrevAndNext(long commerceDiscountId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the commerce discounts before and after the current commerce discount in the ordered set where uuid = ? and companyId = ?.- Parameters:
commerceDiscountId
- the primary key of the current commerce discountuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException
- if a commerce discount with the primary key could not be found
-
filterFindByUuid_C
Returns all the commerce discounts that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching commerce discounts that the user has permission to view
-
filterFindByUuid_C
Returns a range of all the commerce discounts that the user has permission to view where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts that the user has permission to view
-
filterFindByUuid_C
List<CommerceDiscount> filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts that the user has permissions to view where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce discounts that the user has permission to view
-
filterFindByUuid_C_PrevAndNext
CommerceDiscount[] filterFindByUuid_C_PrevAndNext(long commerceDiscountId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
commerceDiscountId
- the primary key of the current commerce discountuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException
- if a commerce discount with the primary key could not be found
-
removeByUuid_C
Removes all the commerce discounts where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of commerce discounts where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce discounts
-
filterCountByUuid_C
Returns the number of commerce discounts that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce discounts that the user has permission to view
-
findByCompanyId
Returns all the commerce discounts where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching commerce discounts
-
findByCompanyId
Returns a range of all the commerce discounts where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts
-
findByCompanyId
List<CommerceDiscount> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce discounts
-
findByCompanyId
List<CommerceDiscount> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discounts where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce discounts
-
findByCompanyId_First
CommerceDiscount findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the first commerce discount in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount
- Throws:
NoSuchDiscountException
- if a matching commerce discount could not be found
-
fetchByCompanyId_First
CommerceDiscount fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount, or
null
if a matching commerce discount could not be found
-
findByCompanyId_Last
CommerceDiscount findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the last commerce discount in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount
- Throws:
NoSuchDiscountException
- if a matching commerce discount could not be found
-
fetchByCompanyId_Last
CommerceDiscount fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount, or
null
if a matching commerce discount could not be found
-
findByCompanyId_PrevAndNext
CommerceDiscount[] findByCompanyId_PrevAndNext(long commerceDiscountId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the commerce discounts before and after the current commerce discount in the ordered set where companyId = ?.- Parameters:
commerceDiscountId
- the primary key of the current commerce discountcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException
- if a commerce discount with the primary key could not be found
-
filterFindByCompanyId
Returns all the commerce discounts that the user has permission to view where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching commerce discounts that the user has permission to view
-
filterFindByCompanyId
Returns a range of all the commerce discounts that the user has permission to view where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts that the user has permission to view
-
filterFindByCompanyId
List<CommerceDiscount> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts that the user has permissions to view where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce discounts that the user has permission to view
-
filterFindByCompanyId_PrevAndNext
CommerceDiscount[] filterFindByCompanyId_PrevAndNext(long commerceDiscountId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where companyId = ?.- Parameters:
commerceDiscountId
- the primary key of the current commerce discountcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException
- if a commerce discount with the primary key could not be found
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the commerce discounts where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
int countByCompanyId(long companyId) Returns the number of commerce discounts where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching commerce discounts
-
filterCountByCompanyId
int filterCountByCompanyId(long companyId) Returns the number of commerce discounts that the user has permission to view where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching commerce discounts that the user has permission to view
-
findByC_C
Returns all the commerce discounts where companyId = ? and couponCode = ?.- Parameters:
companyId
- the company IDcouponCode
- the coupon code- Returns:
- the matching commerce discounts
-
findByC_C
Returns a range of all the commerce discounts where companyId = ? and couponCode = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
companyId
- the company IDcouponCode
- the coupon codestart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts
-
findByC_C
List<CommerceDiscount> findByC_C(long companyId, String couponCode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts where companyId = ? and couponCode = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
companyId
- the company IDcouponCode
- the coupon codestart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce discounts
-
findByC_C
List<CommerceDiscount> findByC_C(long companyId, String couponCode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discounts where companyId = ? and couponCode = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
companyId
- the company IDcouponCode
- the coupon codestart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce discounts
-
findByC_C_First
CommerceDiscount findByC_C_First(long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the first commerce discount in the ordered set where companyId = ? and couponCode = ?.- Parameters:
companyId
- the company IDcouponCode
- the coupon codeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount
- Throws:
NoSuchDiscountException
- if a matching commerce discount could not be found
-
fetchByC_C_First
CommerceDiscount fetchByC_C_First(long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where companyId = ? and couponCode = ?.- Parameters:
companyId
- the company IDcouponCode
- the coupon codeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount, or
null
if a matching commerce discount could not be found
-
findByC_C_Last
CommerceDiscount findByC_C_Last(long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the last commerce discount in the ordered set where companyId = ? and couponCode = ?.- Parameters:
companyId
- the company IDcouponCode
- the coupon codeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount
- Throws:
NoSuchDiscountException
- if a matching commerce discount could not be found
-
fetchByC_C_Last
CommerceDiscount fetchByC_C_Last(long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where companyId = ? and couponCode = ?.- Parameters:
companyId
- the company IDcouponCode
- the coupon codeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount, or
null
if a matching commerce discount could not be found
-
findByC_C_PrevAndNext
CommerceDiscount[] findByC_C_PrevAndNext(long commerceDiscountId, long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the commerce discounts before and after the current commerce discount in the ordered set where companyId = ? and couponCode = ?.- Parameters:
commerceDiscountId
- the primary key of the current commerce discountcompanyId
- the company IDcouponCode
- the coupon codeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException
- if a commerce discount with the primary key could not be found
-
filterFindByC_C
Returns all the commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.- Parameters:
companyId
- the company IDcouponCode
- the coupon code- Returns:
- the matching commerce discounts that the user has permission to view
-
filterFindByC_C
Returns a range of all the commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
companyId
- the company IDcouponCode
- the coupon codestart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts that the user has permission to view
-
filterFindByC_C
List<CommerceDiscount> filterFindByC_C(long companyId, String couponCode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts that the user has permissions to view where companyId = ? and couponCode = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
companyId
- the company IDcouponCode
- the coupon codestart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce discounts that the user has permission to view
-
filterFindByC_C_PrevAndNext
CommerceDiscount[] filterFindByC_C_PrevAndNext(long commerceDiscountId, long companyId, String couponCode, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.- Parameters:
commerceDiscountId
- the primary key of the current commerce discountcompanyId
- the company IDcouponCode
- the coupon codeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException
- if a commerce discount with the primary key could not be found
-
removeByC_C
Removes all the commerce discounts where companyId = ? and couponCode = ? from the database.- Parameters:
companyId
- the company IDcouponCode
- the coupon code
-
countByC_C
Returns the number of commerce discounts where companyId = ? and couponCode = ?.- Parameters:
companyId
- the company IDcouponCode
- the coupon code- Returns:
- the number of matching commerce discounts
-
filterCountByC_C
Returns the number of commerce discounts that the user has permission to view where companyId = ? and couponCode = ?.- Parameters:
companyId
- the company IDcouponCode
- the coupon code- Returns:
- the number of matching commerce discounts that the user has permission to view
-
findByLtD_S
Returns all the commerce discounts where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the status- Returns:
- the matching commerce discounts
-
findByLtD_S
Returns a range of all the commerce discounts where displayDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts
-
findByLtD_S
List<CommerceDiscount> findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts where displayDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce discounts
-
findByLtD_S
List<CommerceDiscount> findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discounts where displayDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce discounts
-
findByLtD_S_First
CommerceDiscount findByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the first commerce discount in the ordered set where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount
- Throws:
NoSuchDiscountException
- if a matching commerce discount could not be found
-
fetchByLtD_S_First
CommerceDiscount fetchByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount, or
null
if a matching commerce discount could not be found
-
findByLtD_S_Last
CommerceDiscount findByLtD_S_Last(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the last commerce discount in the ordered set where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount
- Throws:
NoSuchDiscountException
- if a matching commerce discount could not be found
-
fetchByLtD_S_Last
CommerceDiscount fetchByLtD_S_Last(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount, or
null
if a matching commerce discount could not be found
-
findByLtD_S_PrevAndNext
CommerceDiscount[] findByLtD_S_PrevAndNext(long commerceDiscountId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the commerce discounts before and after the current commerce discount in the ordered set where displayDate < ? and status = ?.- Parameters:
commerceDiscountId
- the primary key of the current commerce discountdisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException
- if a commerce discount with the primary key could not be found
-
filterFindByLtD_S
Returns all the commerce discounts that the user has permission to view where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the status- Returns:
- the matching commerce discounts that the user has permission to view
-
filterFindByLtD_S
Returns a range of all the commerce discounts that the user has permission to view where displayDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts that the user has permission to view
-
filterFindByLtD_S
List<CommerceDiscount> filterFindByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts that the user has permissions to view where displayDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce discounts that the user has permission to view
-
filterFindByLtD_S_PrevAndNext
CommerceDiscount[] filterFindByLtD_S_PrevAndNext(long commerceDiscountId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where displayDate < ? and status = ?.- Parameters:
commerceDiscountId
- the primary key of the current commerce discountdisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException
- if a commerce discount with the primary key could not be found
-
removeByLtD_S
Removes all the commerce discounts where displayDate < ? and status = ? from the database.- Parameters:
displayDate
- the display datestatus
- the status
-
countByLtD_S
Returns the number of commerce discounts where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the status- Returns:
- the number of matching commerce discounts
-
filterCountByLtD_S
Returns the number of commerce discounts that the user has permission to view where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the status- Returns:
- the number of matching commerce discounts that the user has permission to view
-
findByLtE_S
Returns all the commerce discounts where expirationDate < ? and status = ?.- Parameters:
expirationDate
- the expiration datestatus
- the status- Returns:
- the matching commerce discounts
-
findByLtE_S
Returns a range of all the commerce discounts where expirationDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts
-
findByLtE_S
List<CommerceDiscount> findByLtE_S(Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts where expirationDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce discounts
-
findByLtE_S
List<CommerceDiscount> findByLtE_S(Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discounts where expirationDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce discounts
-
findByLtE_S_First
CommerceDiscount findByLtE_S_First(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the first commerce discount in the ordered set where expirationDate < ? and status = ?.- Parameters:
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount
- Throws:
NoSuchDiscountException
- if a matching commerce discount could not be found
-
fetchByLtE_S_First
CommerceDiscount fetchByLtE_S_First(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where expirationDate < ? and status = ?.- Parameters:
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount, or
null
if a matching commerce discount could not be found
-
findByLtE_S_Last
CommerceDiscount findByLtE_S_Last(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the last commerce discount in the ordered set where expirationDate < ? and status = ?.- Parameters:
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount
- Throws:
NoSuchDiscountException
- if a matching commerce discount could not be found
-
fetchByLtE_S_Last
CommerceDiscount fetchByLtE_S_Last(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where expirationDate < ? and status = ?.- Parameters:
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount, or
null
if a matching commerce discount could not be found
-
findByLtE_S_PrevAndNext
CommerceDiscount[] findByLtE_S_PrevAndNext(long commerceDiscountId, Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the commerce discounts before and after the current commerce discount in the ordered set where expirationDate < ? and status = ?.- Parameters:
commerceDiscountId
- the primary key of the current commerce discountexpirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException
- if a commerce discount with the primary key could not be found
-
filterFindByLtE_S
Returns all the commerce discounts that the user has permission to view where expirationDate < ? and status = ?.- Parameters:
expirationDate
- the expiration datestatus
- the status- Returns:
- the matching commerce discounts that the user has permission to view
-
filterFindByLtE_S
Returns a range of all the commerce discounts that the user has permission to view where expirationDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts that the user has permission to view
-
filterFindByLtE_S
List<CommerceDiscount> filterFindByLtE_S(Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts that the user has permissions to view where expirationDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce discounts that the user has permission to view
-
filterFindByLtE_S_PrevAndNext
CommerceDiscount[] filterFindByLtE_S_PrevAndNext(long commerceDiscountId, Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where expirationDate < ? and status = ?.- Parameters:
commerceDiscountId
- the primary key of the current commerce discountexpirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException
- if a commerce discount with the primary key could not be found
-
removeByLtE_S
Removes all the commerce discounts where expirationDate < ? and status = ? from the database.- Parameters:
expirationDate
- the expiration datestatus
- the status
-
countByLtE_S
Returns the number of commerce discounts where expirationDate < ? and status = ?.- Parameters:
expirationDate
- the expiration datestatus
- the status- Returns:
- the number of matching commerce discounts
-
filterCountByLtE_S
Returns the number of commerce discounts that the user has permission to view where expirationDate < ? and status = ?.- Parameters:
expirationDate
- the expiration datestatus
- the status- Returns:
- the number of matching commerce discounts that the user has permission to view
-
findByC_C_A
CommerceDiscount findByC_C_A(long companyId, String couponCode, boolean active) throws NoSuchDiscountException Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or throws aNoSuchDiscountException
if it could not be found.- Parameters:
companyId
- the company IDcouponCode
- the coupon codeactive
- the active- Returns:
- the matching commerce discount
- Throws:
NoSuchDiscountException
- if a matching commerce discount could not be found
-
fetchByC_C_A
Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDcouponCode
- the coupon codeactive
- the active- Returns:
- the matching commerce discount, or
null
if a matching commerce discount could not be found
-
fetchByC_C_A
CommerceDiscount fetchByC_C_A(long companyId, String couponCode, boolean active, boolean useFinderCache) Returns the commerce discount where companyId = ? and couponCode = ? and active = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDcouponCode
- the coupon codeactive
- the activeuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce discount, or
null
if a matching commerce discount could not be found
-
removeByC_C_A
CommerceDiscount removeByC_C_A(long companyId, String couponCode, boolean active) throws NoSuchDiscountException Removes the commerce discount where companyId = ? and couponCode = ? and active = ? from the database.- Parameters:
companyId
- the company IDcouponCode
- the coupon codeactive
- the active- Returns:
- the commerce discount that was removed
- Throws:
NoSuchDiscountException
-
countByC_C_A
Returns the number of commerce discounts where companyId = ? and couponCode = ? and active = ?.- Parameters:
companyId
- the company IDcouponCode
- the coupon codeactive
- the active- Returns:
- the number of matching commerce discounts
-
findByC_L_A_S
Returns all the commerce discounts where companyId = ? and level = ? and active = ? and status = ?.- Parameters:
companyId
- the company IDlevel
- the levelactive
- the activestatus
- the status- Returns:
- the matching commerce discounts
-
findByC_L_A_S
List<CommerceDiscount> findByC_L_A_S(long companyId, String level, boolean active, int status, int start, int end) Returns a range of all the commerce discounts where companyId = ? and level = ? and active = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
companyId
- the company IDlevel
- the levelactive
- the activestatus
- the statusstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts
-
findByC_L_A_S
List<CommerceDiscount> findByC_L_A_S(long companyId, String level, boolean active, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts where companyId = ? and level = ? and active = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
companyId
- the company IDlevel
- the levelactive
- the activestatus
- the statusstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce discounts
-
findByC_L_A_S
List<CommerceDiscount> findByC_L_A_S(long companyId, String level, boolean active, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discounts where companyId = ? and level = ? and active = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
companyId
- the company IDlevel
- the levelactive
- the activestatus
- the statusstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce discounts
-
findByC_L_A_S_First
CommerceDiscount findByC_L_A_S_First(long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the first commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.- Parameters:
companyId
- the company IDlevel
- the levelactive
- the activestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount
- Throws:
NoSuchDiscountException
- if a matching commerce discount could not be found
-
fetchByC_L_A_S_First
CommerceDiscount fetchByC_L_A_S_First(long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the first commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.- Parameters:
companyId
- the company IDlevel
- the levelactive
- the activestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount, or
null
if a matching commerce discount could not be found
-
findByC_L_A_S_Last
CommerceDiscount findByC_L_A_S_Last(long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the last commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.- Parameters:
companyId
- the company IDlevel
- the levelactive
- the activestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount
- Throws:
NoSuchDiscountException
- if a matching commerce discount could not be found
-
fetchByC_L_A_S_Last
CommerceDiscount fetchByC_L_A_S_Last(long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns the last commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.- Parameters:
companyId
- the company IDlevel
- the levelactive
- the activestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount, or
null
if a matching commerce discount could not be found
-
findByC_L_A_S_PrevAndNext
CommerceDiscount[] findByC_L_A_S_PrevAndNext(long commerceDiscountId, long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the commerce discounts before and after the current commerce discount in the ordered set where companyId = ? and level = ? and active = ? and status = ?.- Parameters:
commerceDiscountId
- the primary key of the current commerce discountcompanyId
- the company IDlevel
- the levelactive
- the activestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException
- if a commerce discount with the primary key could not be found
-
filterFindByC_L_A_S
List<CommerceDiscount> filterFindByC_L_A_S(long companyId, String level, boolean active, int status) Returns all the commerce discounts that the user has permission to view where companyId = ? and level = ? and active = ? and status = ?.- Parameters:
companyId
- the company IDlevel
- the levelactive
- the activestatus
- the status- Returns:
- the matching commerce discounts that the user has permission to view
-
filterFindByC_L_A_S
List<CommerceDiscount> filterFindByC_L_A_S(long companyId, String level, boolean active, int status, int start, int end) Returns a range of all the commerce discounts that the user has permission to view where companyId = ? and level = ? and active = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
companyId
- the company IDlevel
- the levelactive
- the activestatus
- the statusstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of matching commerce discounts that the user has permission to view
-
filterFindByC_L_A_S
List<CommerceDiscount> filterFindByC_L_A_S(long companyId, String level, boolean active, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts that the user has permissions to view where companyId = ? and level = ? and active = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
companyId
- the company IDlevel
- the levelactive
- the activestatus
- the statusstart
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce discounts that the user has permission to view
-
filterFindByC_L_A_S_PrevAndNext
CommerceDiscount[] filterFindByC_L_A_S_PrevAndNext(long commerceDiscountId, long companyId, String level, boolean active, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) throws NoSuchDiscountException Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where companyId = ? and level = ? and active = ? and status = ?.- Parameters:
commerceDiscountId
- the primary key of the current commerce discountcompanyId
- the company IDlevel
- the levelactive
- the activestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount
- Throws:
NoSuchDiscountException
- if a commerce discount with the primary key could not be found
-
removeByC_L_A_S
Removes all the commerce discounts where companyId = ? and level = ? and active = ? and status = ? from the database.- Parameters:
companyId
- the company IDlevel
- the levelactive
- the activestatus
- the status
-
countByC_L_A_S
Returns the number of commerce discounts where companyId = ? and level = ? and active = ? and status = ?.- Parameters:
companyId
- the company IDlevel
- the levelactive
- the activestatus
- the status- Returns:
- the number of matching commerce discounts
-
filterCountByC_L_A_S
Returns the number of commerce discounts that the user has permission to view where companyId = ? and level = ? and active = ? and status = ?.- Parameters:
companyId
- the company IDlevel
- the levelactive
- the activestatus
- the status- Returns:
- the number of matching commerce discounts that the user has permission to view
-
findByERC_C
CommerceDiscount findByERC_C(String externalReferenceCode, long companyId) throws NoSuchDiscountException Returns the commerce discount where externalReferenceCode = ? and companyId = ? or throws aNoSuchDiscountException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce discount
- Throws:
NoSuchDiscountException
- if a matching commerce discount could not be found
-
fetchByERC_C
Returns the commerce discount where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce discount, or
null
if a matching commerce discount could not be found
-
fetchByERC_C
Returns the commerce discount where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce discount, or
null
if a matching commerce discount could not be found
-
removeByERC_C
CommerceDiscount removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchDiscountException Removes the commerce discount where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the commerce discount that was removed
- Throws:
NoSuchDiscountException
-
countByERC_C
Returns the number of commerce discounts where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching commerce discounts
-
cacheResult
Caches the commerce discount in the entity cache if it is enabled.- Parameters:
commerceDiscount
- the commerce discount
-
cacheResult
Caches the commerce discounts in the entity cache if it is enabled.- Parameters:
commerceDiscounts
- the commerce discounts
-
create
Creates a new commerce discount with the primary key. Does not add the commerce discount to the database.- Parameters:
commerceDiscountId
- the primary key for the new commerce discount- Returns:
- the new commerce discount
-
remove
Removes the commerce discount with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceDiscountId
- the primary key of the commerce discount- Returns:
- the commerce discount that was removed
- Throws:
NoSuchDiscountException
- if a commerce discount with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the commerce discount with the primary key or throws aNoSuchDiscountException
if it could not be found.- Parameters:
commerceDiscountId
- the primary key of the commerce discount- Returns:
- the commerce discount
- Throws:
NoSuchDiscountException
- if a commerce discount with the primary key could not be found
-
fetchByPrimaryKey
Returns the commerce discount with the primary key or returnsnull
if it could not be found.- Parameters:
commerceDiscountId
- the primary key of the commerce discount- Returns:
- the commerce discount, or
null
if a commerce discount with the primary key could not be found
-
findAll
List<CommerceDiscount> findAll()Returns all the commerce discounts.- Returns:
- the commerce discounts
-
findAll
Returns a range of all the commerce discounts.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
start
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of commerce discounts
-
findAll
List<CommerceDiscount> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator) Returns an ordered range of all the commerce discounts.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
start
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of commerce discounts
-
findAll
List<CommerceDiscount> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscount> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discounts.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountModelImpl
.- Parameters:
start
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce discounts
-
removeAll
void removeAll()Removes all the commerce discounts from the database. -
countAll
int countAll()Returns the number of commerce discounts.- Returns:
- the number of commerce discounts
-