public class CommercePriceEntryUtil
extends java.lang.Object
com.liferay.commerce.price.list.service.persistence.impl.CommercePriceEntryPersistenceImpl
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
CommercePriceEntryPersistence
Constructor and Description |
---|
CommercePriceEntryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommercePriceEntry commercePriceEntry)
Caches the commerce price entry in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommercePriceEntry> commercePriceEntries)
Caches the commerce price entries in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommercePriceEntry commercePriceEntry) |
static int |
countAll()
Returns the number of commerce price entries.
|
static int |
countByC_C_S(long commercePriceListId,
java.lang.String CPInstanceUuid,
int status)
Returns the number of commerce price entries where commercePriceListId = ? and CPInstanceUuid = ? and status = ?.
|
static int |
countByC_C(long commercePriceListId,
java.lang.String CPInstanceUuid)
Returns the number of commerce price entries where commercePriceListId = ? and CPInstanceUuid = ?.
|
static int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce price entries where companyId = ? and externalReferenceCode = ?.
|
static int |
countByCommercePriceListId(long commercePriceListId)
Returns the number of commerce price entries where commercePriceListId = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of commerce price entries where companyId = ?.
|
static int |
countByCPInstanceUuid(java.lang.String CPInstanceUuid)
Returns the number of commerce price entries where CPInstanceUuid = ?.
|
static int |
countByLtD_S(java.util.Date displayDate,
int status)
Returns the number of commerce price entries where displayDate < ? and status = ?.
|
static int |
countByLtE_S(java.util.Date expirationDate,
int status)
Returns the number of commerce price entries where expirationDate < ? and status = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce price entries where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce price entries where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommercePriceEntry |
create(long commercePriceEntryId)
Creates a new commerce price entry with the primary key.
|
static CommercePriceEntry |
fetchByC_C_S(long commercePriceListId,
java.lang.String CPInstanceUuid,
int status)
Returns the commerce price entry where commercePriceListId = ? and CPInstanceUuid = ? and status = ? or returns
null if it could not be found. |
static CommercePriceEntry |
fetchByC_C_S(long commercePriceListId,
java.lang.String CPInstanceUuid,
int status,
boolean useFinderCache)
Returns the commerce price entry where commercePriceListId = ? and CPInstanceUuid = ? and status = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommercePriceEntry |
fetchByC_C(long commercePriceListId,
java.lang.String CPInstanceUuid)
Returns the commerce price entry where commercePriceListId = ? and CPInstanceUuid = ? or returns
null if it could not be found. |
static CommercePriceEntry |
fetchByC_C(long commercePriceListId,
java.lang.String CPInstanceUuid,
boolean useFinderCache)
Returns the commerce price entry where commercePriceListId = ? and CPInstanceUuid = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommercePriceEntry |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce price entry where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
static CommercePriceEntry |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the commerce price entry where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommercePriceEntry |
fetchByCommercePriceListId_First(long commercePriceListId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the first commerce price entry in the ordered set where commercePriceListId = ?.
|
static CommercePriceEntry |
fetchByCommercePriceListId_Last(long commercePriceListId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the last commerce price entry in the ordered set where commercePriceListId = ?.
|
static CommercePriceEntry |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the first commerce price entry in the ordered set where companyId = ?.
|
static CommercePriceEntry |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the last commerce price entry in the ordered set where companyId = ?.
|
static CommercePriceEntry |
fetchByCPInstanceUuid_First(java.lang.String CPInstanceUuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the first commerce price entry in the ordered set where CPInstanceUuid = ?.
|
static CommercePriceEntry |
fetchByCPInstanceUuid_Last(java.lang.String CPInstanceUuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the last commerce price entry in the ordered set where CPInstanceUuid = ?.
|
static CommercePriceEntry |
fetchByLtD_S_First(java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the first commerce price entry in the ordered set where displayDate < ? and status = ?.
|
static CommercePriceEntry |
fetchByLtD_S_Last(java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the last commerce price entry in the ordered set where displayDate < ? and status = ?.
|
static CommercePriceEntry |
fetchByLtE_S_First(java.util.Date expirationDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the first commerce price entry in the ordered set where expirationDate < ? and status = ?.
|
static CommercePriceEntry |
fetchByLtE_S_Last(java.util.Date expirationDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the last commerce price entry in the ordered set where expirationDate < ? and status = ?.
|
static CommercePriceEntry |
fetchByPrimaryKey(long commercePriceEntryId)
Returns the commerce price entry with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommercePriceEntry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommercePriceEntry |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the first commerce price entry in the ordered set where uuid = ? and companyId = ?.
|
static CommercePriceEntry |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the last commerce price entry in the ordered set where uuid = ? and companyId = ?.
|
static CommercePriceEntry |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the first commerce price entry in the ordered set where uuid = ?.
|
static CommercePriceEntry |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the last commerce price entry in the ordered set where uuid = ?.
|
static java.util.List<CommercePriceEntry> |
findAll()
Returns all the commerce price entries.
|
static java.util.List<CommercePriceEntry> |
findAll(int start,
int end)
Returns a range of all the commerce price entries.
|
static java.util.List<CommercePriceEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns an ordered range of all the commerce price entries.
|
static java.util.List<CommercePriceEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price entries.
|
static CommercePriceEntry |
findByC_C_S(long commercePriceListId,
java.lang.String CPInstanceUuid,
int status)
Returns the commerce price entry where commercePriceListId = ? and CPInstanceUuid = ? and status = ? or throws a
NoSuchPriceEntryException if it could not be found. |
static CommercePriceEntry |
findByC_C(long commercePriceListId,
java.lang.String CPInstanceUuid)
Returns the commerce price entry where commercePriceListId = ? and CPInstanceUuid = ? or throws a
NoSuchPriceEntryException if it could not be found. |
static CommercePriceEntry |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce price entry where companyId = ? and externalReferenceCode = ? or throws a
NoSuchPriceEntryException if it could not be found. |
static CommercePriceEntry |
findByCommercePriceListId_First(long commercePriceListId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the first commerce price entry in the ordered set where commercePriceListId = ?.
|
static CommercePriceEntry |
findByCommercePriceListId_Last(long commercePriceListId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the last commerce price entry in the ordered set where commercePriceListId = ?.
|
static CommercePriceEntry[] |
findByCommercePriceListId_PrevAndNext(long commercePriceEntryId,
long commercePriceListId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the commerce price entries before and after the current commerce price entry in the ordered set where commercePriceListId = ?.
|
static java.util.List<CommercePriceEntry> |
findByCommercePriceListId(long commercePriceListId)
Returns all the commerce price entries where commercePriceListId = ?.
|
static java.util.List<CommercePriceEntry> |
findByCommercePriceListId(long commercePriceListId,
int start,
int end)
Returns a range of all the commerce price entries where commercePriceListId = ?.
|
static java.util.List<CommercePriceEntry> |
findByCommercePriceListId(long commercePriceListId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns an ordered range of all the commerce price entries where commercePriceListId = ?.
|
static java.util.List<CommercePriceEntry> |
findByCommercePriceListId(long commercePriceListId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price entries where commercePriceListId = ?.
|
static CommercePriceEntry |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the first commerce price entry in the ordered set where companyId = ?.
|
static CommercePriceEntry |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the last commerce price entry in the ordered set where companyId = ?.
|
static CommercePriceEntry[] |
findByCompanyId_PrevAndNext(long commercePriceEntryId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the commerce price entries before and after the current commerce price entry in the ordered set where companyId = ?.
|
static java.util.List<CommercePriceEntry> |
findByCompanyId(long companyId)
Returns all the commerce price entries where companyId = ?.
|
static java.util.List<CommercePriceEntry> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce price entries where companyId = ?.
|
static java.util.List<CommercePriceEntry> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns an ordered range of all the commerce price entries where companyId = ?.
|
static java.util.List<CommercePriceEntry> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price entries where companyId = ?.
|
static CommercePriceEntry |
findByCPInstanceUuid_First(java.lang.String CPInstanceUuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the first commerce price entry in the ordered set where CPInstanceUuid = ?.
|
static CommercePriceEntry |
findByCPInstanceUuid_Last(java.lang.String CPInstanceUuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the last commerce price entry in the ordered set where CPInstanceUuid = ?.
|
static CommercePriceEntry[] |
findByCPInstanceUuid_PrevAndNext(long commercePriceEntryId,
java.lang.String CPInstanceUuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the commerce price entries before and after the current commerce price entry in the ordered set where CPInstanceUuid = ?.
|
static java.util.List<CommercePriceEntry> |
findByCPInstanceUuid(java.lang.String CPInstanceUuid)
Returns all the commerce price entries where CPInstanceUuid = ?.
|
static java.util.List<CommercePriceEntry> |
findByCPInstanceUuid(java.lang.String CPInstanceUuid,
int start,
int end)
Returns a range of all the commerce price entries where CPInstanceUuid = ?.
|
static java.util.List<CommercePriceEntry> |
findByCPInstanceUuid(java.lang.String CPInstanceUuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns an ordered range of all the commerce price entries where CPInstanceUuid = ?.
|
static java.util.List<CommercePriceEntry> |
findByCPInstanceUuid(java.lang.String CPInstanceUuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price entries where CPInstanceUuid = ?.
|
static CommercePriceEntry |
findByLtD_S_First(java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the first commerce price entry in the ordered set where displayDate < ? and status = ?.
|
static CommercePriceEntry |
findByLtD_S_Last(java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the last commerce price entry in the ordered set where displayDate < ? and status = ?.
|
static CommercePriceEntry[] |
findByLtD_S_PrevAndNext(long commercePriceEntryId,
java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the commerce price entries before and after the current commerce price entry in the ordered set where displayDate < ? and status = ?.
|
static java.util.List<CommercePriceEntry> |
findByLtD_S(java.util.Date displayDate,
int status)
Returns all the commerce price entries where displayDate < ? and status = ?.
|
static java.util.List<CommercePriceEntry> |
findByLtD_S(java.util.Date displayDate,
int status,
int start,
int end)
Returns a range of all the commerce price entries where displayDate < ? and status = ?.
|
static java.util.List<CommercePriceEntry> |
findByLtD_S(java.util.Date displayDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns an ordered range of all the commerce price entries where displayDate < ? and status = ?.
|
static java.util.List<CommercePriceEntry> |
findByLtD_S(java.util.Date displayDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price entries where displayDate < ? and status = ?.
|
static CommercePriceEntry |
findByLtE_S_First(java.util.Date expirationDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the first commerce price entry in the ordered set where expirationDate < ? and status = ?.
|
static CommercePriceEntry |
findByLtE_S_Last(java.util.Date expirationDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the last commerce price entry in the ordered set where expirationDate < ? and status = ?.
|
static CommercePriceEntry[] |
findByLtE_S_PrevAndNext(long commercePriceEntryId,
java.util.Date expirationDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the commerce price entries before and after the current commerce price entry in the ordered set where expirationDate < ? and status = ?.
|
static java.util.List<CommercePriceEntry> |
findByLtE_S(java.util.Date expirationDate,
int status)
Returns all the commerce price entries where expirationDate < ? and status = ?.
|
static java.util.List<CommercePriceEntry> |
findByLtE_S(java.util.Date expirationDate,
int status,
int start,
int end)
Returns a range of all the commerce price entries where expirationDate < ? and status = ?.
|
static java.util.List<CommercePriceEntry> |
findByLtE_S(java.util.Date expirationDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns an ordered range of all the commerce price entries where expirationDate < ? and status = ?.
|
static java.util.List<CommercePriceEntry> |
findByLtE_S(java.util.Date expirationDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price entries where expirationDate < ? and status = ?.
|
static CommercePriceEntry |
findByPrimaryKey(long commercePriceEntryId)
Returns the commerce price entry with the primary key or throws a
NoSuchPriceEntryException if it could not be found. |
static CommercePriceEntry |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the first commerce price entry in the ordered set where uuid = ? and companyId = ?.
|
static CommercePriceEntry |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the last commerce price entry in the ordered set where uuid = ? and companyId = ?.
|
static CommercePriceEntry[] |
findByUuid_C_PrevAndNext(long commercePriceEntryId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the commerce price entries before and after the current commerce price entry in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CommercePriceEntry> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce price entries where uuid = ? and companyId = ?.
|
static java.util.List<CommercePriceEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce price entries where uuid = ? and companyId = ?.
|
static java.util.List<CommercePriceEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns an ordered range of all the commerce price entries where uuid = ? and companyId = ?.
|
static java.util.List<CommercePriceEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price entries where uuid = ? and companyId = ?.
|
static CommercePriceEntry |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the first commerce price entry in the ordered set where uuid = ?.
|
static CommercePriceEntry |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the last commerce price entry in the ordered set where uuid = ?.
|
static CommercePriceEntry[] |
findByUuid_PrevAndNext(long commercePriceEntryId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns the commerce price entries before and after the current commerce price entry in the ordered set where uuid = ?.
|
static java.util.List<CommercePriceEntry> |
findByUuid(java.lang.String uuid)
Returns all the commerce price entries where uuid = ?.
|
static java.util.List<CommercePriceEntry> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce price entries where uuid = ?.
|
static java.util.List<CommercePriceEntry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
Returns an ordered range of all the commerce price entries where uuid = ?.
|
static java.util.List<CommercePriceEntry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price entries where uuid = ?.
|
static java.util.List<CommercePriceEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommercePriceEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommercePriceEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) |
static CommercePriceEntryPersistence |
getPersistence() |
static CommercePriceEntry |
remove(long commercePriceEntryId)
Removes the commerce price entry with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce price entries from the database.
|
static CommercePriceEntry |
removeByC_C_S(long commercePriceListId,
java.lang.String CPInstanceUuid,
int status)
Removes the commerce price entry where commercePriceListId = ? and CPInstanceUuid = ? and status = ? from the database.
|
static CommercePriceEntry |
removeByC_C(long commercePriceListId,
java.lang.String CPInstanceUuid)
Removes the commerce price entry where commercePriceListId = ? and CPInstanceUuid = ? from the database.
|
static CommercePriceEntry |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the commerce price entry where companyId = ? and externalReferenceCode = ? from the database.
|
static void |
removeByCommercePriceListId(long commercePriceListId)
Removes all the commerce price entries where commercePriceListId = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the commerce price entries where companyId = ? from the database.
|
static void |
removeByCPInstanceUuid(java.lang.String CPInstanceUuid)
Removes all the commerce price entries where CPInstanceUuid = ? from the database.
|
static void |
removeByLtD_S(java.util.Date displayDate,
int status)
Removes all the commerce price entries where displayDate < ? and status = ? from the database.
|
static void |
removeByLtE_S(java.util.Date expirationDate,
int status)
Removes all the commerce price entries where expirationDate < ? and status = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce price entries where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce price entries where uuid = ? from the database.
|
static CommercePriceEntry |
update(CommercePriceEntry commercePriceEntry) |
static CommercePriceEntry |
update(CommercePriceEntry commercePriceEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommercePriceEntry |
updateImpl(CommercePriceEntry commercePriceEntry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommercePriceEntry commercePriceEntry)
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,CommercePriceEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommercePriceEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommercePriceEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommercePriceEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommercePriceEntry update(CommercePriceEntry commercePriceEntry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommercePriceEntry update(CommercePriceEntry commercePriceEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommercePriceEntry> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)public static java.util.List<CommercePriceEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePriceEntry findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a matching commerce price entry could not be foundpublic static CommercePriceEntry fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price entry could not be foundpublic static CommercePriceEntry findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a matching commerce price entry could not be foundpublic static CommercePriceEntry fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price entry could not be foundpublic static CommercePriceEntry[] findByUuid_PrevAndNext(long commercePriceEntryId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
commercePriceEntryId
- the primary key of the current commerce price entryuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a commerce 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<CommercePriceEntry> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)public static java.util.List<CommercePriceEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePriceEntry findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a matching commerce price entry could not be foundpublic static CommercePriceEntry fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price entry could not be foundpublic static CommercePriceEntry findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a matching commerce price entry could not be foundpublic static CommercePriceEntry fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price entry could not be foundpublic static CommercePriceEntry[] findByUuid_C_PrevAndNext(long commercePriceEntryId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
commercePriceEntryId
- the primary key of the current commerce price entryuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a commerce 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<CommercePriceEntry> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)public static java.util.List<CommercePriceEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePriceEntry findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a matching commerce price entry could not be foundpublic static CommercePriceEntry fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price entry could not be foundpublic static CommercePriceEntry findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a matching commerce price entry could not be foundpublic static CommercePriceEntry fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price entry could not be foundpublic static CommercePriceEntry[] findByCompanyId_PrevAndNext(long commercePriceEntryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
commercePriceEntryId
- the primary key of the current commerce price entrycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a commerce 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<CommercePriceEntry> findByCommercePriceListId(long commercePriceListId)
commercePriceListId
- the commerce price list IDpublic static java.util.List<CommercePriceEntry> findByCommercePriceListId(long commercePriceListId, 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 CommercePriceEntryModelImpl
.
commercePriceListId
- the commerce price list IDstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)public static java.util.List<CommercePriceEntry> findByCommercePriceListId(long commercePriceListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
commercePriceListId
- the commerce price list IDstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceEntry> findByCommercePriceListId(long commercePriceListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
commercePriceListId
- the commerce price list IDstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePriceEntry findByCommercePriceListId_First(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
commercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a matching commerce price entry could not be foundpublic static CommercePriceEntry fetchByCommercePriceListId_First(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
commercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price entry could not be foundpublic static CommercePriceEntry findByCommercePriceListId_Last(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
commercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a matching commerce price entry could not be foundpublic static CommercePriceEntry fetchByCommercePriceListId_Last(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
commercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price entry could not be foundpublic static CommercePriceEntry[] findByCommercePriceListId_PrevAndNext(long commercePriceEntryId, long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
commercePriceEntryId
- the primary key of the current commerce price entrycommercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a commerce price entry with the primary key could not be foundpublic static void removeByCommercePriceListId(long commercePriceListId)
commercePriceListId
- the commerce price list IDpublic static int countByCommercePriceListId(long commercePriceListId)
commercePriceListId
- the commerce price list IDpublic static java.util.List<CommercePriceEntry> findByCPInstanceUuid(java.lang.String CPInstanceUuid)
CPInstanceUuid
- the cp instance uuidpublic static java.util.List<CommercePriceEntry> findByCPInstanceUuid(java.lang.String CPInstanceUuid, 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 CommercePriceEntryModelImpl
.
CPInstanceUuid
- the cp instance uuidstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)public static java.util.List<CommercePriceEntry> findByCPInstanceUuid(java.lang.String CPInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
CPInstanceUuid
- the cp instance uuidstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceEntry> findByCPInstanceUuid(java.lang.String CPInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
CPInstanceUuid
- the cp instance uuidstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePriceEntry findByCPInstanceUuid_First(java.lang.String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
CPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a matching commerce price entry could not be foundpublic static CommercePriceEntry fetchByCPInstanceUuid_First(java.lang.String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
CPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price entry could not be foundpublic static CommercePriceEntry findByCPInstanceUuid_Last(java.lang.String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
CPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a matching commerce price entry could not be foundpublic static CommercePriceEntry fetchByCPInstanceUuid_Last(java.lang.String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
CPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price entry could not be foundpublic static CommercePriceEntry[] findByCPInstanceUuid_PrevAndNext(long commercePriceEntryId, java.lang.String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
commercePriceEntryId
- the primary key of the current commerce price entryCPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a commerce price entry with the primary key could not be foundpublic static void removeByCPInstanceUuid(java.lang.String CPInstanceUuid)
CPInstanceUuid
- the cp instance uuidpublic static int countByCPInstanceUuid(java.lang.String CPInstanceUuid)
CPInstanceUuid
- the cp instance uuidpublic static CommercePriceEntry findByC_C(long commercePriceListId, java.lang.String CPInstanceUuid) throws NoSuchPriceEntryException
NoSuchPriceEntryException
if it could not be found.commercePriceListId
- the commerce price list IDCPInstanceUuid
- the cp instance uuidNoSuchPriceEntryException
- if a matching commerce price entry could not be foundpublic static CommercePriceEntry fetchByC_C(long commercePriceListId, java.lang.String CPInstanceUuid)
null
if it could not be found. Uses the finder cache.commercePriceListId
- the commerce price list IDCPInstanceUuid
- the cp instance uuidnull
if a matching commerce price entry could not be foundpublic static CommercePriceEntry fetchByC_C(long commercePriceListId, java.lang.String CPInstanceUuid, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.commercePriceListId
- the commerce price list IDCPInstanceUuid
- the cp instance uuiduseFinderCache
- whether to use the finder cachenull
if a matching commerce price entry could not be foundpublic static CommercePriceEntry removeByC_C(long commercePriceListId, java.lang.String CPInstanceUuid) throws NoSuchPriceEntryException
commercePriceListId
- the commerce price list IDCPInstanceUuid
- the cp instance uuidNoSuchPriceEntryException
public static int countByC_C(long commercePriceListId, java.lang.String CPInstanceUuid)
commercePriceListId
- the commerce price list IDCPInstanceUuid
- the cp instance uuidpublic static java.util.List<CommercePriceEntry> findByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statuspublic static java.util.List<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)public static java.util.List<CommercePriceEntry> findByLtD_S(java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceEntry> findByLtD_S(java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePriceEntry findByLtD_S_First(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a matching commerce price entry could not be foundpublic static CommercePriceEntry fetchByLtD_S_First(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price entry could not be foundpublic static CommercePriceEntry findByLtD_S_Last(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a matching commerce price entry could not be foundpublic static CommercePriceEntry fetchByLtD_S_Last(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price entry could not be foundpublic static CommercePriceEntry[] findByLtD_S_PrevAndNext(long commercePriceEntryId, java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
commercePriceEntryId
- the primary key of the current commerce price entrydisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a commerce 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<CommercePriceEntry> findByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statuspublic static java.util.List<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)public static java.util.List<CommercePriceEntry> findByLtE_S(java.util.Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceEntry> findByLtE_S(java.util.Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePriceEntry findByLtE_S_First(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a matching commerce price entry could not be foundpublic static CommercePriceEntry fetchByLtE_S_First(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price entry could not be foundpublic static CommercePriceEntry findByLtE_S_Last(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a matching commerce price entry could not be foundpublic static CommercePriceEntry fetchByLtE_S_Last(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator)
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price entry could not be foundpublic static CommercePriceEntry[] findByLtE_S_PrevAndNext(long commercePriceEntryId, java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException
commercePriceEntryId
- the primary key of the current commerce price entryexpirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceEntryException
- if a commerce 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 CommercePriceEntry findByC_C_S(long commercePriceListId, java.lang.String CPInstanceUuid, int status) throws NoSuchPriceEntryException
NoSuchPriceEntryException
if it could not be found.commercePriceListId
- the commerce price list IDCPInstanceUuid
- the cp instance uuidstatus
- the statusNoSuchPriceEntryException
- if a matching commerce price entry could not be foundpublic static CommercePriceEntry fetchByC_C_S(long commercePriceListId, java.lang.String CPInstanceUuid, int status)
null
if it could not be found. Uses the finder cache.commercePriceListId
- the commerce price list IDCPInstanceUuid
- the cp instance uuidstatus
- the statusnull
if a matching commerce price entry could not be foundpublic static CommercePriceEntry fetchByC_C_S(long commercePriceListId, java.lang.String CPInstanceUuid, int status, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.commercePriceListId
- the commerce price list IDCPInstanceUuid
- the cp instance uuidstatus
- the statususeFinderCache
- whether to use the finder cachenull
if a matching commerce price entry could not be foundpublic static CommercePriceEntry removeByC_C_S(long commercePriceListId, java.lang.String CPInstanceUuid, int status) throws NoSuchPriceEntryException
commercePriceListId
- the commerce price list IDCPInstanceUuid
- the cp instance uuidstatus
- the statusNoSuchPriceEntryException
public static int countByC_C_S(long commercePriceListId, java.lang.String CPInstanceUuid, int status)
commercePriceListId
- the commerce price list IDCPInstanceUuid
- the cp instance uuidstatus
- the statuspublic static CommercePriceEntry findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchPriceEntryException
NoSuchPriceEntryException
if it could not be found.companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchPriceEntryException
- if a matching commerce price entry could not be foundpublic static CommercePriceEntry 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 price entry could not be foundpublic static CommercePriceEntry 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 price entry could not be foundpublic static CommercePriceEntry removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchPriceEntryException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchPriceEntryException
public static int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codepublic static void cacheResult(CommercePriceEntry commercePriceEntry)
commercePriceEntry
- the commerce price entrypublic static void cacheResult(java.util.List<CommercePriceEntry> commercePriceEntries)
commercePriceEntries
- the commerce price entriespublic static CommercePriceEntry create(long commercePriceEntryId)
commercePriceEntryId
- the primary key for the new commerce price entrypublic static CommercePriceEntry remove(long commercePriceEntryId) throws NoSuchPriceEntryException
commercePriceEntryId
- the primary key of the commerce price entryNoSuchPriceEntryException
- if a commerce price entry with the primary key could not be foundpublic static CommercePriceEntry updateImpl(CommercePriceEntry commercePriceEntry)
public static CommercePriceEntry findByPrimaryKey(long commercePriceEntryId) throws NoSuchPriceEntryException
NoSuchPriceEntryException
if it could not be found.commercePriceEntryId
- the primary key of the commerce price entryNoSuchPriceEntryException
- if a commerce price entry with the primary key could not be foundpublic static CommercePriceEntry fetchByPrimaryKey(long commercePriceEntryId)
null
if it could not be found.commercePriceEntryId
- the primary key of the commerce price entrynull
if a commerce price entry with the primary key could not be foundpublic static java.util.List<CommercePriceEntry> findAll()
public static java.util.List<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
start
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)public static java.util.List<CommercePriceEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
start
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce price entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceEntry> 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 CommercePriceEntryModelImpl
.
start
- the lower bound of the range of commerce price entriesend
- the upper bound of the range of commerce 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 CommercePriceEntryPersistence getPersistence()