Class CommerceTierPriceEntryUtil
com.liferay.commerce.price.list.service.persistence.impl.CommerceTierPriceEntryPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommerceTierPriceEntry commerceTierPriceEntry) Caches the commerce tier price entry in the entity cache if it is enabled.static void
cacheResult
(List<CommerceTierPriceEntry> commerceTierPriceEntries) Caches the commerce tier price entries in the entity cache if it is enabled.static void
static void
clearCache
(CommerceTierPriceEntry commerceTierPriceEntry) static int
countAll()
Returns the number of commerce tier price entries.static int
countByC_LteM
(long commercePriceEntryId, BigDecimal minQuantity) Returns the number of commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ?.static int
countByC_LteM_S
(long commercePriceEntryId, BigDecimal minQuantity, int status) Returns the number of commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.static int
countByC_M
(long commercePriceEntryId, BigDecimal minQuantity) Returns the number of commerce tier price entries where commercePriceEntryId = ? and minQuantity = ?.static int
countByC_S
(long commercePriceEntryId, int status) Returns the number of commerce tier price entries where commercePriceEntryId = ? and status = ?.static int
countByCommercePriceEntryId
(long commercePriceEntryId) Returns the number of commerce tier price entries where commercePriceEntryId = ?.static int
countByCompanyId
(long companyId) Returns the number of commerce tier price entries where companyId = ?.static int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of commerce tier price entries where externalReferenceCode = ? and companyId = ?.static int
countByLtD_S
(Date displayDate, int status) Returns the number of commerce tier price entries where displayDate < ? and status = ?.static int
countByLtE_S
(Date expirationDate, int status) Returns the number of commerce tier price entries where expirationDate < ? and status = ?.static int
countByUuid
(String uuid) Returns the number of commerce tier price entries where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of commerce tier price entries where uuid = ? and companyId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceTierPriceEntry
create
(long commerceTierPriceEntryId) Creates a new commerce tier price entry with the primary key.static CommerceTierPriceEntry
fetchByC_LteM_First
(long commercePriceEntryId, BigDecimal minQuantity, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ?.static CommerceTierPriceEntry
fetchByC_LteM_Last
(long commercePriceEntryId, BigDecimal minQuantity, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ?.static CommerceTierPriceEntry
fetchByC_LteM_S_First
(long commercePriceEntryId, BigDecimal minQuantity, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.static CommerceTierPriceEntry
fetchByC_LteM_S_Last
(long commercePriceEntryId, BigDecimal minQuantity, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.static CommerceTierPriceEntry
fetchByC_M
(long commercePriceEntryId, BigDecimal minQuantity) Returns the commerce tier price entry where commercePriceEntryId = ? and minQuantity = ? or returnsnull
if it could not be found.static CommerceTierPriceEntry
fetchByC_M
(long commercePriceEntryId, BigDecimal minQuantity, boolean useFinderCache) Returns the commerce tier price entry where commercePriceEntryId = ? and minQuantity = ? or returnsnull
if it could not be found, optionally using the finder cache.static CommerceTierPriceEntry
fetchByC_S_First
(long commercePriceEntryId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where commercePriceEntryId = ? and status = ?.static CommerceTierPriceEntry
fetchByC_S_Last
(long commercePriceEntryId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where commercePriceEntryId = ? and status = ?.static CommerceTierPriceEntry
fetchByCommercePriceEntryId_First
(long commercePriceEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where commercePriceEntryId = ?.static CommerceTierPriceEntry
fetchByCommercePriceEntryId_Last
(long commercePriceEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where commercePriceEntryId = ?.static CommerceTierPriceEntry
fetchByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where companyId = ?.static CommerceTierPriceEntry
fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where companyId = ?.static CommerceTierPriceEntry
fetchByERC_C
(String externalReferenceCode, long companyId) Returns the commerce tier price entry where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.static CommerceTierPriceEntry
fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce tier price entry where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CommerceTierPriceEntry
fetchByLtD_S_First
(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where displayDate < ? and status = ?.static CommerceTierPriceEntry
fetchByLtD_S_Last
(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where displayDate < ? and status = ?.static CommerceTierPriceEntry
fetchByLtE_S_First
(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where expirationDate < ? and status = ?.static CommerceTierPriceEntry
fetchByLtE_S_Last
(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where expirationDate < ? and status = ?.static CommerceTierPriceEntry
fetchByPrimaryKey
(long commerceTierPriceEntryId) Returns the commerce tier price entry with the primary key or returnsnull
if it could not be found.static Map<Serializable,
CommerceTierPriceEntry> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static CommerceTierPriceEntry
fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where uuid = ? and companyId = ?.static CommerceTierPriceEntry
fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where uuid = ? and companyId = ?.static CommerceTierPriceEntry
fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where uuid = ?.static CommerceTierPriceEntry
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where uuid = ?.static List<CommerceTierPriceEntry>
findAll()
Returns all the commerce tier price entries.static List<CommerceTierPriceEntry>
findAll
(int start, int end) Returns a range of all the commerce tier price entries.static List<CommerceTierPriceEntry>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries.static List<CommerceTierPriceEntry>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries.static List<CommerceTierPriceEntry>
findByC_LteM
(long commercePriceEntryId, BigDecimal minQuantity) Returns all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ?.static List<CommerceTierPriceEntry>
findByC_LteM
(long commercePriceEntryId, BigDecimal minQuantity, int start, int end) Returns a range of all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ?.static List<CommerceTierPriceEntry>
findByC_LteM
(long commercePriceEntryId, BigDecimal minQuantity, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ?.static List<CommerceTierPriceEntry>
findByC_LteM
(long commercePriceEntryId, BigDecimal minQuantity, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ?.static CommerceTierPriceEntry
findByC_LteM_First
(long commercePriceEntryId, BigDecimal minQuantity, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ?.static CommerceTierPriceEntry
findByC_LteM_Last
(long commercePriceEntryId, BigDecimal minQuantity, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ?.static CommerceTierPriceEntry[]
findByC_LteM_PrevAndNext
(long commerceTierPriceEntryId, long commercePriceEntryId, BigDecimal minQuantity, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ?.static List<CommerceTierPriceEntry>
findByC_LteM_S
(long commercePriceEntryId, BigDecimal minQuantity, int status) Returns all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.static List<CommerceTierPriceEntry>
findByC_LteM_S
(long commercePriceEntryId, BigDecimal minQuantity, int status, int start, int end) Returns a range of all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.static List<CommerceTierPriceEntry>
findByC_LteM_S
(long commercePriceEntryId, BigDecimal minQuantity, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.static List<CommerceTierPriceEntry>
findByC_LteM_S
(long commercePriceEntryId, BigDecimal minQuantity, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.static CommerceTierPriceEntry
findByC_LteM_S_First
(long commercePriceEntryId, BigDecimal minQuantity, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.static CommerceTierPriceEntry
findByC_LteM_S_Last
(long commercePriceEntryId, BigDecimal minQuantity, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.static CommerceTierPriceEntry[]
findByC_LteM_S_PrevAndNext
(long commerceTierPriceEntryId, long commercePriceEntryId, BigDecimal minQuantity, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.static CommerceTierPriceEntry
findByC_M
(long commercePriceEntryId, BigDecimal minQuantity) Returns the commerce tier price entry where commercePriceEntryId = ? and minQuantity = ? or throws aNoSuchTierPriceEntryException
if it could not be found.static List<CommerceTierPriceEntry>
findByC_S
(long commercePriceEntryId, int status) Returns all the commerce tier price entries where commercePriceEntryId = ? and status = ?.static List<CommerceTierPriceEntry>
findByC_S
(long commercePriceEntryId, int status, int start, int end) Returns a range of all the commerce tier price entries where commercePriceEntryId = ? and status = ?.static List<CommerceTierPriceEntry>
findByC_S
(long commercePriceEntryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries where commercePriceEntryId = ? and status = ?.static List<CommerceTierPriceEntry>
findByC_S
(long commercePriceEntryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries where commercePriceEntryId = ? and status = ?.static CommerceTierPriceEntry
findByC_S_First
(long commercePriceEntryId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where commercePriceEntryId = ? and status = ?.static CommerceTierPriceEntry
findByC_S_Last
(long commercePriceEntryId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where commercePriceEntryId = ? and status = ?.static CommerceTierPriceEntry[]
findByC_S_PrevAndNext
(long commerceTierPriceEntryId, long commercePriceEntryId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where commercePriceEntryId = ? and status = ?.static List<CommerceTierPriceEntry>
findByCommercePriceEntryId
(long commercePriceEntryId) Returns all the commerce tier price entries where commercePriceEntryId = ?.static List<CommerceTierPriceEntry>
findByCommercePriceEntryId
(long commercePriceEntryId, int start, int end) Returns a range of all the commerce tier price entries where commercePriceEntryId = ?.static List<CommerceTierPriceEntry>
findByCommercePriceEntryId
(long commercePriceEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries where commercePriceEntryId = ?.static List<CommerceTierPriceEntry>
findByCommercePriceEntryId
(long commercePriceEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries where commercePriceEntryId = ?.static CommerceTierPriceEntry
findByCommercePriceEntryId_First
(long commercePriceEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where commercePriceEntryId = ?.static CommerceTierPriceEntry
findByCommercePriceEntryId_Last
(long commercePriceEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where commercePriceEntryId = ?.static CommerceTierPriceEntry[]
findByCommercePriceEntryId_PrevAndNext
(long commerceTierPriceEntryId, long commercePriceEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where commercePriceEntryId = ?.static List<CommerceTierPriceEntry>
findByCompanyId
(long companyId) Returns all the commerce tier price entries where companyId = ?.static List<CommerceTierPriceEntry>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the commerce tier price entries where companyId = ?.static List<CommerceTierPriceEntry>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries where companyId = ?.static List<CommerceTierPriceEntry>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries where companyId = ?.static CommerceTierPriceEntry
findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where companyId = ?.static CommerceTierPriceEntry
findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where companyId = ?.static CommerceTierPriceEntry[]
findByCompanyId_PrevAndNext
(long commerceTierPriceEntryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where companyId = ?.static CommerceTierPriceEntry
findByERC_C
(String externalReferenceCode, long companyId) Returns the commerce tier price entry where externalReferenceCode = ? and companyId = ? or throws aNoSuchTierPriceEntryException
if it could not be found.static List<CommerceTierPriceEntry>
findByLtD_S
(Date displayDate, int status) Returns all the commerce tier price entries where displayDate < ? and status = ?.static List<CommerceTierPriceEntry>
findByLtD_S
(Date displayDate, int status, int start, int end) Returns a range of all the commerce tier price entries where displayDate < ? and status = ?.static List<CommerceTierPriceEntry>
findByLtD_S
(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries where displayDate < ? and status = ?.static List<CommerceTierPriceEntry>
findByLtD_S
(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries where displayDate < ? and status = ?.static CommerceTierPriceEntry
findByLtD_S_First
(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where displayDate < ? and status = ?.static CommerceTierPriceEntry
findByLtD_S_Last
(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where displayDate < ? and status = ?.static CommerceTierPriceEntry[]
findByLtD_S_PrevAndNext
(long commerceTierPriceEntryId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where displayDate < ? and status = ?.static List<CommerceTierPriceEntry>
findByLtE_S
(Date expirationDate, int status) Returns all the commerce tier price entries where expirationDate < ? and status = ?.static List<CommerceTierPriceEntry>
findByLtE_S
(Date expirationDate, int status, int start, int end) Returns a range of all the commerce tier price entries where expirationDate < ? and status = ?.static List<CommerceTierPriceEntry>
findByLtE_S
(Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries where expirationDate < ? and status = ?.static List<CommerceTierPriceEntry>
findByLtE_S
(Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries where expirationDate < ? and status = ?.static CommerceTierPriceEntry
findByLtE_S_First
(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where expirationDate < ? and status = ?.static CommerceTierPriceEntry
findByLtE_S_Last
(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where expirationDate < ? and status = ?.static CommerceTierPriceEntry[]
findByLtE_S_PrevAndNext
(long commerceTierPriceEntryId, Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where expirationDate < ? and status = ?.static CommerceTierPriceEntry
findByPrimaryKey
(long commerceTierPriceEntryId) Returns the commerce tier price entry with the primary key or throws aNoSuchTierPriceEntryException
if it could not be found.static List<CommerceTierPriceEntry>
findByUuid
(String uuid) Returns all the commerce tier price entries where uuid = ?.static List<CommerceTierPriceEntry>
findByUuid
(String uuid, int start, int end) Returns a range of all the commerce tier price entries where uuid = ?.static List<CommerceTierPriceEntry>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries where uuid = ?.static List<CommerceTierPriceEntry>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries where uuid = ?.static List<CommerceTierPriceEntry>
findByUuid_C
(String uuid, long companyId) Returns all the commerce tier price entries where uuid = ? and companyId = ?.static List<CommerceTierPriceEntry>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce tier price entries where uuid = ? and companyId = ?.static List<CommerceTierPriceEntry>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries where uuid = ? and companyId = ?.static List<CommerceTierPriceEntry>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries where uuid = ? and companyId = ?.static CommerceTierPriceEntry
findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where uuid = ? and companyId = ?.static CommerceTierPriceEntry
findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where uuid = ? and companyId = ?.static CommerceTierPriceEntry[]
findByUuid_C_PrevAndNext
(long commerceTierPriceEntryId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where uuid = ? and companyId = ?.static CommerceTierPriceEntry
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where uuid = ?.static CommerceTierPriceEntry
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where uuid = ?.static CommerceTierPriceEntry[]
findByUuid_PrevAndNext
(long commerceTierPriceEntryId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where uuid = ?.static List<CommerceTierPriceEntry>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceTierPriceEntry>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceTierPriceEntry>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) static CommerceTierPriceEntry
remove
(long commerceTierPriceEntryId) Removes the commerce tier price entry with the primary key from the database.static void
Removes all the commerce tier price entries from the database.static void
removeByC_LteM
(long commercePriceEntryId, BigDecimal minQuantity) Removes all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? from the database.static void
removeByC_LteM_S
(long commercePriceEntryId, BigDecimal minQuantity, int status) Removes all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? and status = ? from the database.static CommerceTierPriceEntry
removeByC_M
(long commercePriceEntryId, BigDecimal minQuantity) Removes the commerce tier price entry where commercePriceEntryId = ? and minQuantity = ? from the database.static void
removeByC_S
(long commercePriceEntryId, int status) Removes all the commerce tier price entries where commercePriceEntryId = ? and status = ? from the database.static void
removeByCommercePriceEntryId
(long commercePriceEntryId) Removes all the commerce tier price entries where commercePriceEntryId = ? from the database.static void
removeByCompanyId
(long companyId) Removes all the commerce tier price entries where companyId = ? from the database.static CommerceTierPriceEntry
removeByERC_C
(String externalReferenceCode, long companyId) Removes the commerce tier price entry where externalReferenceCode = ? and companyId = ? from the database.static void
removeByLtD_S
(Date displayDate, int status) Removes all the commerce tier price entries where displayDate < ? and status = ? from the database.static void
removeByLtE_S
(Date expirationDate, int status) Removes all the commerce tier price entries where expirationDate < ? and status = ? from the database.static void
removeByUuid
(String uuid) Removes all the commerce tier price entries where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the commerce tier price entries where uuid = ? and companyId = ? from the database.static void
setPersistence
(CommerceTierPriceEntryPersistence persistence) static CommerceTierPriceEntry
update
(CommerceTierPriceEntry commerceTierPriceEntry) static CommerceTierPriceEntry
update
(CommerceTierPriceEntry commerceTierPriceEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceTierPriceEntry
updateImpl
(CommerceTierPriceEntry commerceTierPriceEntry)
-
Constructor Details
-
CommerceTierPriceEntryUtil
public CommerceTierPriceEntryUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,CommerceTierPriceEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceTierPriceEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceTierPriceEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceTierPriceEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceTierPriceEntry update(CommerceTierPriceEntry commerceTierPriceEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the commerce tier price entries where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce tier price entries
-
findByUuid
Returns a range of all the commerce tier price entries 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)- Returns:
- the range of matching commerce tier price entries
-
findByUuid
public static List<CommerceTierPriceEntry> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce tier price entries
-
findByUuid
public static List<CommerceTierPriceEntry> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (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 tier price entries
-
findByUuid_First
public static CommerceTierPriceEntry findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the first commerce tier price entry in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByUuid_First
public static CommerceTierPriceEntry fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tier price entry, or
null
if a matching commerce tier price entry could not be found
-
findByUuid_Last
public static CommerceTierPriceEntry findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the last commerce tier price entry in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByUuid_Last
public static CommerceTierPriceEntry fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tier price entry, or
null
if a matching commerce tier price entry could not be found
-
findByUuid_PrevAndNext
public static CommerceTierPriceEntry[] findByUuid_PrevAndNext(long commerceTierPriceEntryId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where uuid = ?.- Parameters:
commerceTierPriceEntryId
- the primary key of the current commerce tier price entryuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundNoSuchTierPriceEntryException
-
removeByUuid
Removes all the commerce tier price entries where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of commerce tier price entries where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce tier price entries
-
findByUuid_C
Returns all the commerce tier price entries where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching commerce tier price entries
-
findByUuid_C
public static List<CommerceTierPriceEntry> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the commerce tier price entries 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)- Returns:
- the range of matching commerce tier price entries
-
findByUuid_C
public static List<CommerceTierPriceEntry> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce tier price entries
-
findByUuid_C
public static List<CommerceTierPriceEntry> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (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 tier price entries
-
findByUuid_C_First
public static CommerceTierPriceEntry findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the first commerce tier price entry 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 tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByUuid_C_First
public static CommerceTierPriceEntry fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry 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 tier price entry, or
null
if a matching commerce tier price entry could not be found
-
findByUuid_C_Last
public static CommerceTierPriceEntry findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the last commerce tier price entry 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 tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByUuid_C_Last
public static CommerceTierPriceEntry fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry 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 tier price entry, or
null
if a matching commerce tier price entry could not be found
-
findByUuid_C_PrevAndNext
public static CommerceTierPriceEntry[] findByUuid_C_PrevAndNext(long commerceTierPriceEntryId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where uuid = ? and companyId = ?.- Parameters:
commerceTierPriceEntryId
- the primary key of the current commerce tier price entryuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundNoSuchTierPriceEntryException
-
removeByUuid_C
Removes all the commerce tier price entries where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of commerce tier price entries where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce tier price entries
-
findByCompanyId
Returns all the commerce tier price entries where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching commerce tier price entries
-
findByCompanyId
Returns a range of all the commerce tier price entries 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)- Returns:
- the range of matching commerce tier price entries
-
findByCompanyId
public static List<CommerceTierPriceEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce tier price entries
-
findByCompanyId
public static List<CommerceTierPriceEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (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 tier price entries
-
findByCompanyId_First
public static CommerceTierPriceEntry findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the first commerce tier price entry in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByCompanyId_First
public static CommerceTierPriceEntry fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tier price entry, or
null
if a matching commerce tier price entry could not be found
-
findByCompanyId_Last
public static CommerceTierPriceEntry findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the last commerce tier price entry in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByCompanyId_Last
public static CommerceTierPriceEntry fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tier price entry, or
null
if a matching commerce tier price entry could not be found
-
findByCompanyId_PrevAndNext
public static CommerceTierPriceEntry[] findByCompanyId_PrevAndNext(long commerceTierPriceEntryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where companyId = ?.- Parameters:
commerceTierPriceEntryId
- the primary key of the current commerce tier price entrycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundNoSuchTierPriceEntryException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the commerce tier price entries where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of commerce tier price entries where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching commerce tier price entries
-
findByCommercePriceEntryId
Returns all the commerce tier price entries where commercePriceEntryId = ?.- Parameters:
commercePriceEntryId
- the commerce price entry ID- Returns:
- the matching commerce tier price entries
-
findByCommercePriceEntryId
public static List<CommerceTierPriceEntry> findByCommercePriceEntryId(long commercePriceEntryId, int start, int end) Returns a range of all the commerce tier price entries where commercePriceEntryId = ?.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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
commercePriceEntryId
- the commerce price entry IDstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)- Returns:
- the range of matching commerce tier price entries
-
findByCommercePriceEntryId
public static List<CommerceTierPriceEntry> findByCommercePriceEntryId(long commercePriceEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries where commercePriceEntryId = ?.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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
commercePriceEntryId
- the commerce price entry IDstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce tier price entries
-
findByCommercePriceEntryId
public static List<CommerceTierPriceEntry> findByCommercePriceEntryId(long commercePriceEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries where commercePriceEntryId = ?.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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
commercePriceEntryId
- the commerce price entry IDstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (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 tier price entries
-
findByCommercePriceEntryId_First
public static CommerceTierPriceEntry findByCommercePriceEntryId_First(long commercePriceEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the first commerce tier price entry in the ordered set where commercePriceEntryId = ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByCommercePriceEntryId_First
public static CommerceTierPriceEntry fetchByCommercePriceEntryId_First(long commercePriceEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where commercePriceEntryId = ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tier price entry, or
null
if a matching commerce tier price entry could not be found
-
findByCommercePriceEntryId_Last
public static CommerceTierPriceEntry findByCommercePriceEntryId_Last(long commercePriceEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the last commerce tier price entry in the ordered set where commercePriceEntryId = ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByCommercePriceEntryId_Last
public static CommerceTierPriceEntry fetchByCommercePriceEntryId_Last(long commercePriceEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where commercePriceEntryId = ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tier price entry, or
null
if a matching commerce tier price entry could not be found
-
findByCommercePriceEntryId_PrevAndNext
public static CommerceTierPriceEntry[] findByCommercePriceEntryId_PrevAndNext(long commerceTierPriceEntryId, long commercePriceEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where commercePriceEntryId = ?.- Parameters:
commerceTierPriceEntryId
- the primary key of the current commerce tier price entrycommercePriceEntryId
- the commerce price entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundNoSuchTierPriceEntryException
-
removeByCommercePriceEntryId
public static void removeByCommercePriceEntryId(long commercePriceEntryId) Removes all the commerce tier price entries where commercePriceEntryId = ? from the database.- Parameters:
commercePriceEntryId
- the commerce price entry ID
-
countByCommercePriceEntryId
public static int countByCommercePriceEntryId(long commercePriceEntryId) Returns the number of commerce tier price entries where commercePriceEntryId = ?.- Parameters:
commercePriceEntryId
- the commerce price entry ID- Returns:
- the number of matching commerce tier price entries
-
findByC_M
public static CommerceTierPriceEntry findByC_M(long commercePriceEntryId, BigDecimal minQuantity) throws NoSuchTierPriceEntryException Returns the commerce tier price entry where commercePriceEntryId = ? and minQuantity = ? or throws aNoSuchTierPriceEntryException
if it could not be found.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantity- Returns:
- the matching commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByC_M
Returns the commerce tier price entry where commercePriceEntryId = ? and minQuantity = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantity- Returns:
- the matching commerce tier price entry, or
null
if a matching commerce tier price entry could not be found
-
fetchByC_M
public static CommerceTierPriceEntry fetchByC_M(long commercePriceEntryId, BigDecimal minQuantity, boolean useFinderCache) Returns the commerce tier price entry where commercePriceEntryId = ? and minQuantity = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantityuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce tier price entry, or
null
if a matching commerce tier price entry could not be found
-
removeByC_M
public static CommerceTierPriceEntry removeByC_M(long commercePriceEntryId, BigDecimal minQuantity) throws NoSuchTierPriceEntryException Removes the commerce tier price entry where commercePriceEntryId = ? and minQuantity = ? from the database.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantity- Returns:
- the commerce tier price entry that was removed
- Throws:
NoSuchTierPriceEntryException
-
countByC_M
Returns the number of commerce tier price entries where commercePriceEntryId = ? and minQuantity = ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantity- Returns:
- the number of matching commerce tier price entries
-
findByC_LteM
public static List<CommerceTierPriceEntry> findByC_LteM(long commercePriceEntryId, BigDecimal minQuantity) Returns all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantity- Returns:
- the matching commerce tier price entries
-
findByC_LteM
public static List<CommerceTierPriceEntry> findByC_LteM(long commercePriceEntryId, BigDecimal minQuantity, int start, int end) Returns a range of all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ?.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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)- Returns:
- the range of matching commerce tier price entries
-
findByC_LteM
public static List<CommerceTierPriceEntry> findByC_LteM(long commercePriceEntryId, BigDecimal minQuantity, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ?.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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce tier price entries
-
findByC_LteM
public static List<CommerceTierPriceEntry> findByC_LteM(long commercePriceEntryId, BigDecimal minQuantity, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ?.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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (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 tier price entries
-
findByC_LteM_First
public static CommerceTierPriceEntry findByC_LteM_First(long commercePriceEntryId, BigDecimal minQuantity, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the first commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantityorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByC_LteM_First
public static CommerceTierPriceEntry fetchByC_LteM_First(long commercePriceEntryId, BigDecimal minQuantity, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantityorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tier price entry, or
null
if a matching commerce tier price entry could not be found
-
findByC_LteM_Last
public static CommerceTierPriceEntry findByC_LteM_Last(long commercePriceEntryId, BigDecimal minQuantity, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the last commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantityorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByC_LteM_Last
public static CommerceTierPriceEntry fetchByC_LteM_Last(long commercePriceEntryId, BigDecimal minQuantity, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantityorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tier price entry, or
null
if a matching commerce tier price entry could not be found
-
findByC_LteM_PrevAndNext
public static CommerceTierPriceEntry[] findByC_LteM_PrevAndNext(long commerceTierPriceEntryId, long commercePriceEntryId, BigDecimal minQuantity, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ?.- Parameters:
commerceTierPriceEntryId
- the primary key of the current commerce tier price entrycommercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantityorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundNoSuchTierPriceEntryException
-
removeByC_LteM
Removes all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? from the database.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantity
-
countByC_LteM
Returns the number of commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantity- Returns:
- the number of matching commerce tier price entries
-
findByC_S
Returns all the commerce tier price entries where commercePriceEntryId = ? and status = ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDstatus
- the status- Returns:
- the matching commerce tier price entries
-
findByC_S
public static List<CommerceTierPriceEntry> findByC_S(long commercePriceEntryId, int status, int start, int end) Returns a range of all the commerce tier price entries where commercePriceEntryId = ? 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
commercePriceEntryId
- the commerce price entry IDstatus
- the statusstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)- Returns:
- the range of matching commerce tier price entries
-
findByC_S
public static List<CommerceTierPriceEntry> findByC_S(long commercePriceEntryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries where commercePriceEntryId = ? 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
commercePriceEntryId
- the commerce price entry IDstatus
- the statusstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce tier price entries
-
findByC_S
public static List<CommerceTierPriceEntry> findByC_S(long commercePriceEntryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries where commercePriceEntryId = ? 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
commercePriceEntryId
- the commerce price entry IDstatus
- the statusstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (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 tier price entries
-
findByC_S_First
public static CommerceTierPriceEntry findByC_S_First(long commercePriceEntryId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the first commerce tier price entry in the ordered set where commercePriceEntryId = ? and status = ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByC_S_First
public static CommerceTierPriceEntry fetchByC_S_First(long commercePriceEntryId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where commercePriceEntryId = ? and status = ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tier price entry, or
null
if a matching commerce tier price entry could not be found
-
findByC_S_Last
public static CommerceTierPriceEntry findByC_S_Last(long commercePriceEntryId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the last commerce tier price entry in the ordered set where commercePriceEntryId = ? and status = ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByC_S_Last
public static CommerceTierPriceEntry fetchByC_S_Last(long commercePriceEntryId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where commercePriceEntryId = ? and status = ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tier price entry, or
null
if a matching commerce tier price entry could not be found
-
findByC_S_PrevAndNext
public static CommerceTierPriceEntry[] findByC_S_PrevAndNext(long commerceTierPriceEntryId, long commercePriceEntryId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where commercePriceEntryId = ? and status = ?.- Parameters:
commerceTierPriceEntryId
- the primary key of the current commerce tier price entrycommercePriceEntryId
- the commerce price entry IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundNoSuchTierPriceEntryException
-
removeByC_S
public static void removeByC_S(long commercePriceEntryId, int status) Removes all the commerce tier price entries where commercePriceEntryId = ? and status = ? from the database.- Parameters:
commercePriceEntryId
- the commerce price entry IDstatus
- the status
-
countByC_S
public static int countByC_S(long commercePriceEntryId, int status) Returns the number of commerce tier price entries where commercePriceEntryId = ? and status = ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDstatus
- the status- Returns:
- the number of matching commerce tier price entries
-
findByLtD_S
Returns all the commerce tier price entries where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the status- Returns:
- the matching commerce tier price entries
-
findByLtD_S
public static List<CommerceTierPriceEntry> findByLtD_S(Date displayDate, int status, int start, int end) Returns a range of all the commerce tier price entries 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)- Returns:
- the range of matching commerce tier price entries
-
findByLtD_S
public static List<CommerceTierPriceEntry> findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce tier price entries
-
findByLtD_S
public static List<CommerceTierPriceEntry> findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (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 tier price entries
-
findByLtD_S_First
public static CommerceTierPriceEntry findByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the first commerce tier price entry 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 tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByLtD_S_First
public static CommerceTierPriceEntry fetchByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry 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 tier price entry, or
null
if a matching commerce tier price entry could not be found
-
findByLtD_S_Last
public static CommerceTierPriceEntry findByLtD_S_Last(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the last commerce tier price entry 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 tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByLtD_S_Last
public static CommerceTierPriceEntry fetchByLtD_S_Last(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry 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 tier price entry, or
null
if a matching commerce tier price entry could not be found
-
findByLtD_S_PrevAndNext
public static CommerceTierPriceEntry[] findByLtD_S_PrevAndNext(long commerceTierPriceEntryId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where displayDate < ? and status = ?.- Parameters:
commerceTierPriceEntryId
- the primary key of the current commerce tier price entrydisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundNoSuchTierPriceEntryException
-
removeByLtD_S
Removes all the commerce tier price entries where displayDate < ? and status = ? from the database.- Parameters:
displayDate
- the display datestatus
- the status
-
countByLtD_S
Returns the number of commerce tier price entries where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the status- Returns:
- the number of matching commerce tier price entries
-
findByLtE_S
Returns all the commerce tier price entries where expirationDate < ? and status = ?.- Parameters:
expirationDate
- the expiration datestatus
- the status- Returns:
- the matching commerce tier price entries
-
findByLtE_S
public static List<CommerceTierPriceEntry> findByLtE_S(Date expirationDate, int status, int start, int end) Returns a range of all the commerce tier price entries 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)- Returns:
- the range of matching commerce tier price entries
-
findByLtE_S
public static List<CommerceTierPriceEntry> findByLtE_S(Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce tier price entries
-
findByLtE_S
public static List<CommerceTierPriceEntry> findByLtE_S(Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (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 tier price entries
-
findByLtE_S_First
public static CommerceTierPriceEntry findByLtE_S_First(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the first commerce tier price entry 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 tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByLtE_S_First
public static CommerceTierPriceEntry fetchByLtE_S_First(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry 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 tier price entry, or
null
if a matching commerce tier price entry could not be found
-
findByLtE_S_Last
public static CommerceTierPriceEntry findByLtE_S_Last(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the last commerce tier price entry 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 tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByLtE_S_Last
public static CommerceTierPriceEntry fetchByLtE_S_Last(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry 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 tier price entry, or
null
if a matching commerce tier price entry could not be found
-
findByLtE_S_PrevAndNext
public static CommerceTierPriceEntry[] findByLtE_S_PrevAndNext(long commerceTierPriceEntryId, Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where expirationDate < ? and status = ?.- Parameters:
commerceTierPriceEntryId
- the primary key of the current commerce tier price entryexpirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundNoSuchTierPriceEntryException
-
removeByLtE_S
Removes all the commerce tier price entries where expirationDate < ? and status = ? from the database.- Parameters:
expirationDate
- the expiration datestatus
- the status
-
countByLtE_S
Returns the number of commerce tier price entries where expirationDate < ? and status = ?.- Parameters:
expirationDate
- the expiration datestatus
- the status- Returns:
- the number of matching commerce tier price entries
-
findByC_LteM_S
public static List<CommerceTierPriceEntry> findByC_LteM_S(long commercePriceEntryId, BigDecimal minQuantity, int status) Returns all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystatus
- the status- Returns:
- the matching commerce tier price entries
-
findByC_LteM_S
public static List<CommerceTierPriceEntry> findByC_LteM_S(long commercePriceEntryId, BigDecimal minQuantity, int status, int start, int end) Returns a range of all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystatus
- the statusstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)- Returns:
- the range of matching commerce tier price entries
-
findByC_LteM_S
public static List<CommerceTierPriceEntry> findByC_LteM_S(long commercePriceEntryId, BigDecimal minQuantity, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystatus
- the statusstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce tier price entries
-
findByC_LteM_S
public static List<CommerceTierPriceEntry> findByC_LteM_S(long commercePriceEntryId, BigDecimal minQuantity, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? 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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystatus
- the statusstart
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (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 tier price entries
-
findByC_LteM_S_First
public static CommerceTierPriceEntry findByC_LteM_S_First(long commercePriceEntryId, BigDecimal minQuantity, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the first commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByC_LteM_S_First
public static CommerceTierPriceEntry fetchByC_LteM_S_First(long commercePriceEntryId, BigDecimal minQuantity, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the first commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tier price entry, or
null
if a matching commerce tier price entry could not be found
-
findByC_LteM_S_Last
public static CommerceTierPriceEntry findByC_LteM_S_Last(long commercePriceEntryId, BigDecimal minQuantity, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the last commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByC_LteM_S_Last
public static CommerceTierPriceEntry fetchByC_LteM_S_Last(long commercePriceEntryId, BigDecimal minQuantity, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns the last commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tier price entry, or
null
if a matching commerce tier price entry could not be found
-
findByC_LteM_S_PrevAndNext
public static CommerceTierPriceEntry[] findByC_LteM_S_PrevAndNext(long commerceTierPriceEntryId, long commercePriceEntryId, BigDecimal minQuantity, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.- Parameters:
commerceTierPriceEntryId
- the primary key of the current commerce tier price entrycommercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundNoSuchTierPriceEntryException
-
removeByC_LteM_S
Removes all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? and status = ? from the database.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystatus
- the status
-
countByC_LteM_S
Returns the number of commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.- Parameters:
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystatus
- the status- Returns:
- the number of matching commerce tier price entries
-
findByERC_C
public static CommerceTierPriceEntry findByERC_C(String externalReferenceCode, long companyId) throws NoSuchTierPriceEntryException Returns the commerce tier price entry where externalReferenceCode = ? and companyId = ? or throws aNoSuchTierPriceEntryException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundNoSuchTierPriceEntryException
-
fetchByERC_C
Returns the commerce tier price entry 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 tier price entry, or
null
if a matching commerce tier price entry could not be found
-
fetchByERC_C
public static CommerceTierPriceEntry fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce tier price entry 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 tier price entry, or
null
if a matching commerce tier price entry could not be found
-
removeByERC_C
public static CommerceTierPriceEntry removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchTierPriceEntryException Removes the commerce tier price entry where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the commerce tier price entry that was removed
- Throws:
NoSuchTierPriceEntryException
-
countByERC_C
Returns the number of commerce tier price entries where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching commerce tier price entries
-
cacheResult
Caches the commerce tier price entry in the entity cache if it is enabled.- Parameters:
commerceTierPriceEntry
- the commerce tier price entry
-
cacheResult
Caches the commerce tier price entries in the entity cache if it is enabled.- Parameters:
commerceTierPriceEntries
- the commerce tier price entries
-
create
Creates a new commerce tier price entry with the primary key. Does not add the commerce tier price entry to the database.- Parameters:
commerceTierPriceEntryId
- the primary key for the new commerce tier price entry- Returns:
- the new commerce tier price entry
-
remove
public static CommerceTierPriceEntry remove(long commerceTierPriceEntryId) throws NoSuchTierPriceEntryException Removes the commerce tier price entry with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceTierPriceEntryId
- the primary key of the commerce tier price entry- Returns:
- the commerce tier price entry that was removed
- Throws:
NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundNoSuchTierPriceEntryException
-
updateImpl
-
findByPrimaryKey
public static CommerceTierPriceEntry findByPrimaryKey(long commerceTierPriceEntryId) throws NoSuchTierPriceEntryException Returns the commerce tier price entry with the primary key or throws aNoSuchTierPriceEntryException
if it could not be found.- Parameters:
commerceTierPriceEntryId
- the primary key of the commerce tier price entry- Returns:
- the commerce tier price entry
- Throws:
NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundNoSuchTierPriceEntryException
-
fetchByPrimaryKey
Returns the commerce tier price entry with the primary key or returnsnull
if it could not be found.- Parameters:
commerceTierPriceEntryId
- the primary key of the commerce tier price entry- Returns:
- the commerce tier price entry, or
null
if a commerce tier price entry with the primary key could not be found
-
findAll
Returns all the commerce tier price entries.- Returns:
- the commerce tier price entries
-
findAll
Returns a range of all the commerce tier price entries.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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
start
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)- Returns:
- the range of commerce tier price entries
-
findAll
public static List<CommerceTierPriceEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) Returns an ordered range of all the commerce tier price entries.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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
start
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of commerce tier price entries
-
findAll
public static List<CommerceTierPriceEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tier price entries.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 fromCommerceTierPriceEntryModelImpl
.- Parameters:
start
- the lower bound of the range of commerce tier price entriesend
- the upper bound of the range of commerce tier price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce tier price entries
-
removeAll
public static void removeAll()Removes all the commerce tier price entries from the database. -
countAll
public static int countAll()Returns the number of commerce tier price entries.- Returns:
- the number of commerce tier price entries
-
getPersistence
-
setPersistence
-