public class CommerceTierPriceEntryUtil
extends java.lang.Object
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
CommerceTierPriceEntryPersistence
Constructor and Description |
---|
CommerceTierPriceEntryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceTierPriceEntry commerceTierPriceEntry)
Caches the commerce tier price entry in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceTierPriceEntry> commerceTierPriceEntries)
Caches the commerce tier price entries in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceTierPriceEntry commerceTierPriceEntry) |
static int |
countAll()
Returns the number of commerce tier price entries.
|
static int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce tier price entries where companyId = ? and externalReferenceCode = ?.
|
static int |
countByC_LteM_S(long commercePriceEntryId,
int minQuantity,
int status)
Returns the number of commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.
|
static int |
countByC_LteM(long commercePriceEntryId,
int minQuantity)
Returns the number of commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ?.
|
static int |
countByC_M(long commercePriceEntryId,
int minQuantity)
Returns the number of commerce tier price entries where commercePriceEntryId = ? and minQuantity = ?.
|
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 |
countByLtD_S(java.util.Date displayDate,
int status)
Returns the number of commerce tier price entries where displayDate < ? and status = ?.
|
static int |
countByLtE_S(java.util.Date expirationDate,
int status)
Returns the number of commerce tier price entries where expirationDate < ? and status = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce tier price entries where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce tier price entries where uuid = ?.
|
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_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce tier price entry where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
static CommerceTierPriceEntry |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the commerce tier price entry where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceTierPriceEntry |
fetchByC_LteM_First(long commercePriceEntryId,
int 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,
int 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,
int 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,
int 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,
int minQuantity)
Returns the commerce tier price entry where commercePriceEntryId = ? and minQuantity = ? or returns
null if it could not be found. |
static CommerceTierPriceEntry |
fetchByC_M(long commercePriceEntryId,
int minQuantity,
boolean useFinderCache)
Returns the commerce tier price entry where commercePriceEntryId = ? and minQuantity = ? or returns
null if it could not be found, optionally using the finder cache. |
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 |
fetchByLtD_S_First(java.util.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(java.util.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(java.util.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(java.util.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 returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceTierPriceEntry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommerceTierPriceEntry |
fetchByUuid_C_First(java.lang.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(java.lang.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(java.lang.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(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
Returns the last commerce tier price entry in the ordered set where uuid = ?.
|
static java.util.List<CommerceTierPriceEntry> |
findAll()
Returns all the commerce tier price entries.
|
static java.util.List<CommerceTierPriceEntry> |
findAll(int start,
int end)
Returns a range of all the commerce tier price entries.
|
static java.util.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 java.util.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 CommerceTierPriceEntry |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce tier price entry where companyId = ? and externalReferenceCode = ? or throws a
NoSuchTierPriceEntryException if it could not be found. |
static CommerceTierPriceEntry |
findByC_LteM_First(long commercePriceEntryId,
int 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,
int 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,
int 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 CommerceTierPriceEntry |
findByC_LteM_S_First(long commercePriceEntryId,
int 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,
int 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,
int 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 java.util.List<CommerceTierPriceEntry> |
findByC_LteM_S(long commercePriceEntryId,
int minQuantity,
int status)
Returns all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.
|
static java.util.List<CommerceTierPriceEntry> |
findByC_LteM_S(long commercePriceEntryId,
int minQuantity,
int status,
int start,
int end)
Returns a range of all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? and status = ?.
|
static java.util.List<CommerceTierPriceEntry> |
findByC_LteM_S(long commercePriceEntryId,
int 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 java.util.List<CommerceTierPriceEntry> |
findByC_LteM_S(long commercePriceEntryId,
int 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 java.util.List<CommerceTierPriceEntry> |
findByC_LteM(long commercePriceEntryId,
int minQuantity)
Returns all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ?.
|
static java.util.List<CommerceTierPriceEntry> |
findByC_LteM(long commercePriceEntryId,
int minQuantity,
int start,
int end)
Returns a range of all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ?.
|
static java.util.List<CommerceTierPriceEntry> |
findByC_LteM(long commercePriceEntryId,
int 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 java.util.List<CommerceTierPriceEntry> |
findByC_LteM(long commercePriceEntryId,
int 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_M(long commercePriceEntryId,
int minQuantity)
Returns the commerce tier price entry where commercePriceEntryId = ? and minQuantity = ? or throws a
NoSuchTierPriceEntryException if it could not be found. |
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 java.util.List<CommerceTierPriceEntry> |
findByCommercePriceEntryId(long commercePriceEntryId)
Returns all the commerce tier price entries where commercePriceEntryId = ?.
|
static java.util.List<CommerceTierPriceEntry> |
findByCommercePriceEntryId(long commercePriceEntryId,
int start,
int end)
Returns a range of all the commerce tier price entries where commercePriceEntryId = ?.
|
static java.util.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 java.util.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 |
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 java.util.List<CommerceTierPriceEntry> |
findByCompanyId(long companyId)
Returns all the commerce tier price entries where companyId = ?.
|
static java.util.List<CommerceTierPriceEntry> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce tier price entries where companyId = ?.
|
static java.util.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 java.util.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 |
findByLtD_S_First(java.util.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(java.util.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,
java.util.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 java.util.List<CommerceTierPriceEntry> |
findByLtD_S(java.util.Date displayDate,
int status)
Returns all the commerce tier price entries where displayDate < ? and status = ?.
|
static java.util.List<CommerceTierPriceEntry> |
findByLtD_S(java.util.Date displayDate,
int status,
int start,
int end)
Returns a range of all the commerce tier price entries where displayDate < ? and status = ?.
|
static java.util.List<CommerceTierPriceEntry> |
findByLtD_S(java.util.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 java.util.List<CommerceTierPriceEntry> |
findByLtD_S(java.util.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 |
findByLtE_S_First(java.util.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(java.util.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,
java.util.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 java.util.List<CommerceTierPriceEntry> |
findByLtE_S(java.util.Date expirationDate,
int status)
Returns all the commerce tier price entries where expirationDate < ? and status = ?.
|
static java.util.List<CommerceTierPriceEntry> |
findByLtE_S(java.util.Date expirationDate,
int status,
int start,
int end)
Returns a range of all the commerce tier price entries where expirationDate < ? and status = ?.
|
static java.util.List<CommerceTierPriceEntry> |
findByLtE_S(java.util.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 java.util.List<CommerceTierPriceEntry> |
findByLtE_S(java.util.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 |
findByPrimaryKey(long commerceTierPriceEntryId)
Returns the commerce tier price entry with the primary key or throws a
NoSuchTierPriceEntryException if it could not be found. |
static CommerceTierPriceEntry |
findByUuid_C_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<CommerceTierPriceEntry> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce tier price entries where uuid = ? and companyId = ?.
|
static java.util.List<CommerceTierPriceEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce tier price entries where uuid = ? and companyId = ?.
|
static java.util.List<CommerceTierPriceEntry> |
findByUuid_C(java.lang.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 java.util.List<CommerceTierPriceEntry> |
findByUuid_C(java.lang.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_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<CommerceTierPriceEntry> |
findByUuid(java.lang.String uuid)
Returns all the commerce tier price entries where uuid = ?.
|
static java.util.List<CommerceTierPriceEntry> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce tier price entries where uuid = ?.
|
static java.util.List<CommerceTierPriceEntry> |
findByUuid(java.lang.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 java.util.List<CommerceTierPriceEntry> |
findByUuid(java.lang.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 java.util.List<CommerceTierPriceEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceTierPriceEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceTierPriceEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) |
static CommerceTierPriceEntryPersistence |
getPersistence() |
static CommerceTierPriceEntry |
remove(long commerceTierPriceEntryId)
Removes the commerce tier price entry with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce tier price entries from the database.
|
static CommerceTierPriceEntry |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the commerce tier price entry where companyId = ? and externalReferenceCode = ? from the database.
|
static void |
removeByC_LteM_S(long commercePriceEntryId,
int minQuantity,
int status)
Removes all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? and status = ? from the database.
|
static void |
removeByC_LteM(long commercePriceEntryId,
int minQuantity)
Removes all the commerce tier price entries where commercePriceEntryId = ? and minQuantity ≤ ? from the database.
|
static CommerceTierPriceEntry |
removeByC_M(long commercePriceEntryId,
int minQuantity)
Removes the commerce tier price entry where commercePriceEntryId = ? and minQuantity = ? 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 void |
removeByLtD_S(java.util.Date displayDate,
int status)
Removes all the commerce tier price entries where displayDate < ? and status = ? from the database.
|
static void |
removeByLtE_S(java.util.Date expirationDate,
int status)
Removes all the commerce tier price entries where expirationDate < ? and status = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce tier price entries where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce tier price entries where uuid = ? from the database.
|
static CommerceTierPriceEntry |
update(CommerceTierPriceEntry commerceTierPriceEntry) |
static CommerceTierPriceEntry |
update(CommerceTierPriceEntry commerceTierPriceEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceTierPriceEntry |
updateImpl(CommerceTierPriceEntry commerceTierPriceEntry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceTierPriceEntry commerceTierPriceEntry)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CommerceTierPriceEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceTierPriceEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceTierPriceEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceTierPriceEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceTierPriceEntry update(CommerceTierPriceEntry commerceTierPriceEntry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceTierPriceEntry update(CommerceTierPriceEntry commerceTierPriceEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceTierPriceEntry> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceTierPriceEntry> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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)public static java.util.List<CommerceTierPriceEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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 (optionally null
)public static java.util.List<CommerceTierPriceEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceTierPriceEntry findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry[] findByUuid_PrevAndNext(long commerceTierPriceEntryId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
commerceTierPriceEntryId
- the primary key of the current commerce tier price entryuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceTierPriceEntry> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceTierPriceEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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)public static java.util.List<CommerceTierPriceEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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 (optionally null
)public static java.util.List<CommerceTierPriceEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceTierPriceEntry findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry[] findByUuid_C_PrevAndNext(long commerceTierPriceEntryId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
commerceTierPriceEntryId
- the primary key of the current commerce tier price entryuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceTierPriceEntry> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommerceTierPriceEntry> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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)public static java.util.List<CommerceTierPriceEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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 (optionally null
)public static java.util.List<CommerceTierPriceEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceTierPriceEntry findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry[] findByCompanyId_PrevAndNext(long commerceTierPriceEntryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
commerceTierPriceEntryId
- the primary key of the current commerce tier price entrycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommerceTierPriceEntry> findByCommercePriceEntryId(long commercePriceEntryId)
commercePriceEntryId
- the commerce price entry IDpublic static java.util.List<CommerceTierPriceEntry> findByCommercePriceEntryId(long commercePriceEntryId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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)public static java.util.List<CommerceTierPriceEntry> findByCommercePriceEntryId(long commercePriceEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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 (optionally null
)public static java.util.List<CommerceTierPriceEntry> findByCommercePriceEntryId(long commercePriceEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceTierPriceEntry findByCommercePriceEntryId_First(long commercePriceEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
commercePriceEntryId
- the commerce price entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByCommercePriceEntryId_First(long commercePriceEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
commercePriceEntryId
- the commerce price entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry findByCommercePriceEntryId_Last(long commercePriceEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
commercePriceEntryId
- the commerce price entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByCommercePriceEntryId_Last(long commercePriceEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
commercePriceEntryId
- the commerce price entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry[] findByCommercePriceEntryId_PrevAndNext(long commerceTierPriceEntryId, long commercePriceEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
commerceTierPriceEntryId
- the primary key of the current commerce tier price entrycommercePriceEntryId
- the commerce price entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundpublic static void removeByCommercePriceEntryId(long commercePriceEntryId)
commercePriceEntryId
- the commerce price entry IDpublic static int countByCommercePriceEntryId(long commercePriceEntryId)
commercePriceEntryId
- the commerce price entry IDpublic static CommerceTierPriceEntry findByC_M(long commercePriceEntryId, int minQuantity) throws NoSuchTierPriceEntryException
NoSuchTierPriceEntryException
if it could not be found.commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantityNoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByC_M(long commercePriceEntryId, int minQuantity)
null
if it could not be found. Uses the finder cache.commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitynull
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByC_M(long commercePriceEntryId, int minQuantity, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantityuseFinderCache
- whether to use the finder cachenull
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry removeByC_M(long commercePriceEntryId, int minQuantity) throws NoSuchTierPriceEntryException
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantityNoSuchTierPriceEntryException
public static int countByC_M(long commercePriceEntryId, int minQuantity)
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitypublic static java.util.List<CommerceTierPriceEntry> findByC_LteM(long commercePriceEntryId, int minQuantity)
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitypublic static java.util.List<CommerceTierPriceEntry> findByC_LteM(long commercePriceEntryId, int minQuantity, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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)public static java.util.List<CommerceTierPriceEntry> findByC_LteM(long commercePriceEntryId, int minQuantity, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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 (optionally null
)public static java.util.List<CommerceTierPriceEntry> findByC_LteM(long commercePriceEntryId, int minQuantity, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceTierPriceEntry findByC_LteM_First(long commercePriceEntryId, int minQuantity, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantityorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByC_LteM_First(long commercePriceEntryId, int minQuantity, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantityorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry findByC_LteM_Last(long commercePriceEntryId, int minQuantity, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantityorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByC_LteM_Last(long commercePriceEntryId, int minQuantity, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantityorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry[] findByC_LteM_PrevAndNext(long commerceTierPriceEntryId, long commercePriceEntryId, int minQuantity, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
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 (optionally null
)NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundpublic static void removeByC_LteM(long commercePriceEntryId, int minQuantity)
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitypublic static int countByC_LteM(long commercePriceEntryId, int minQuantity)
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitypublic static java.util.List<CommerceTierPriceEntry> findByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statuspublic static java.util.List<CommerceTierPriceEntry> findByLtD_S(java.util.Date displayDate, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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)public static java.util.List<CommerceTierPriceEntry> findByLtD_S(java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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 (optionally null
)public static java.util.List<CommerceTierPriceEntry> findByLtD_S(java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceTierPriceEntry findByLtD_S_First(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByLtD_S_First(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry findByLtD_S_Last(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByLtD_S_Last(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry[] findByLtD_S_PrevAndNext(long commerceTierPriceEntryId, java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
commerceTierPriceEntryId
- the primary key of the current commerce tier price entrydisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundpublic static void removeByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statuspublic static int countByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statuspublic static java.util.List<CommerceTierPriceEntry> findByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statuspublic static java.util.List<CommerceTierPriceEntry> findByLtE_S(java.util.Date expirationDate, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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)public static java.util.List<CommerceTierPriceEntry> findByLtE_S(java.util.Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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 (optionally null
)public static java.util.List<CommerceTierPriceEntry> findByLtE_S(java.util.Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceTierPriceEntry findByLtE_S_First(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByLtE_S_First(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry findByLtE_S_Last(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByLtE_S_Last(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry[] findByLtE_S_PrevAndNext(long commerceTierPriceEntryId, java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
commerceTierPriceEntryId
- the primary key of the current commerce tier price entryexpirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundpublic static void removeByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statuspublic static int countByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statuspublic static java.util.List<CommerceTierPriceEntry> findByC_LteM_S(long commercePriceEntryId, int minQuantity, int status)
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystatus
- the statuspublic static java.util.List<CommerceTierPriceEntry> findByC_LteM_S(long commercePriceEntryId, int minQuantity, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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)public static java.util.List<CommerceTierPriceEntry> findByC_LteM_S(long commercePriceEntryId, int minQuantity, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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 (optionally null
)public static java.util.List<CommerceTierPriceEntry> findByC_LteM_S(long commercePriceEntryId, int minQuantity, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceTierPriceEntry findByC_LteM_S_First(long commercePriceEntryId, int minQuantity, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByC_LteM_S_First(long commercePriceEntryId, int minQuantity, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry findByC_LteM_S_Last(long commercePriceEntryId, int minQuantity, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByC_LteM_S_Last(long commercePriceEntryId, int minQuantity, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry[] findByC_LteM_S_PrevAndNext(long commerceTierPriceEntryId, long commercePriceEntryId, int minQuantity, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws NoSuchTierPriceEntryException
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 (optionally null
)NoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundpublic static void removeByC_LteM_S(long commercePriceEntryId, int minQuantity, int status)
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystatus
- the statuspublic static int countByC_LteM_S(long commercePriceEntryId, int minQuantity, int status)
commercePriceEntryId
- the commerce price entry IDminQuantity
- the min quantitystatus
- the statuspublic static CommerceTierPriceEntry findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchTierPriceEntryException
NoSuchTierPriceEntryException
if it could not be found.companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchTierPriceEntryException
- if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByC_ERC(long companyId, java.lang.String externalReferenceCode)
null
if it could not be found. Uses the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codenull
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry fetchByC_ERC(long companyId, java.lang.String externalReferenceCode, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codeuseFinderCache
- whether to use the finder cachenull
if a matching commerce tier price entry could not be foundpublic static CommerceTierPriceEntry removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchTierPriceEntryException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchTierPriceEntryException
public static int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codepublic static void cacheResult(CommerceTierPriceEntry commerceTierPriceEntry)
commerceTierPriceEntry
- the commerce tier price entrypublic static void cacheResult(java.util.List<CommerceTierPriceEntry> commerceTierPriceEntries)
commerceTierPriceEntries
- the commerce tier price entriespublic static CommerceTierPriceEntry create(long commerceTierPriceEntryId)
commerceTierPriceEntryId
- the primary key for the new commerce tier price entrypublic static CommerceTierPriceEntry remove(long commerceTierPriceEntryId) throws NoSuchTierPriceEntryException
commerceTierPriceEntryId
- the primary key of the commerce tier price entryNoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundpublic static CommerceTierPriceEntry updateImpl(CommerceTierPriceEntry commerceTierPriceEntry)
public static CommerceTierPriceEntry findByPrimaryKey(long commerceTierPriceEntryId) throws NoSuchTierPriceEntryException
NoSuchTierPriceEntryException
if it could not be found.commerceTierPriceEntryId
- the primary key of the commerce tier price entryNoSuchTierPriceEntryException
- if a commerce tier price entry with the primary key could not be foundpublic static CommerceTierPriceEntry fetchByPrimaryKey(long commerceTierPriceEntryId)
null
if it could not be found.commerceTierPriceEntryId
- the primary key of the commerce tier price entrynull
if a commerce tier price entry with the primary key could not be foundpublic static java.util.List<CommerceTierPriceEntry> findAll()
public static java.util.List<CommerceTierPriceEntry> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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)public static java.util.List<CommerceTierPriceEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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 (optionally null
)public static java.util.List<CommerceTierPriceEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTierPriceEntryModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceTierPriceEntryPersistence getPersistence()