@ProviderType
public class CommerceOrderItemUtil
extends java.lang.Object
com.liferay.commerce.service.persistence.impl.CommerceOrderItemPersistenceImpl 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
CommerceOrderItemPersistence,
com.liferay.commerce.service.persistence.impl.CommerceOrderItemPersistenceImpl| Constructor and Description |
|---|
CommerceOrderItemUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(CommerceOrderItem commerceOrderItem)
Caches the commerce order item in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceOrderItem> commerceOrderItems)
Caches the commerce order items in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceOrderItem commerceOrderItem) |
static int |
countAll()
Returns the number of commerce order items.
|
static int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce order items where companyId = ? and externalReferenceCode = ?.
|
static int |
countByC_I(long commerceOrderId,
long CPInstanceId)
Returns the number of commerce order items where commerceOrderId = ? and CPInstanceId = ?.
|
static int |
countByCommerceOrderId(long commerceOrderId)
Returns the number of commerce order items where commerceOrderId = ?.
|
static int |
countByCPInstanceId(long CPInstanceId)
Returns the number of commerce order items where CPInstanceId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceOrderItem |
create(long commerceOrderItemId)
Creates a new commerce order item with the primary key.
|
static CommerceOrderItem |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce order item where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
static CommerceOrderItem |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean retrieveFromCache)
Returns the commerce order item where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceOrderItem |
fetchByC_I_First(long commerceOrderId,
long CPInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the first commerce order item in the ordered set where commerceOrderId = ? and CPInstanceId = ?.
|
static CommerceOrderItem |
fetchByC_I_Last(long commerceOrderId,
long CPInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the last commerce order item in the ordered set where commerceOrderId = ? and CPInstanceId = ?.
|
static CommerceOrderItem |
fetchByCommerceOrderId_First(long commerceOrderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the first commerce order item in the ordered set where commerceOrderId = ?.
|
static CommerceOrderItem |
fetchByCommerceOrderId_Last(long commerceOrderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the last commerce order item in the ordered set where commerceOrderId = ?.
|
static CommerceOrderItem |
fetchByCPInstanceId_First(long CPInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the first commerce order item in the ordered set where CPInstanceId = ?.
|
static CommerceOrderItem |
fetchByCPInstanceId_Last(long CPInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the last commerce order item in the ordered set where CPInstanceId = ?.
|
static CommerceOrderItem |
fetchByPrimaryKey(long commerceOrderItemId)
Returns the commerce order item with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceOrderItem> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceOrderItem> |
findAll()
Returns all the commerce order items.
|
static java.util.List<CommerceOrderItem> |
findAll(int start,
int end)
Returns a range of all the commerce order items.
|
static java.util.List<CommerceOrderItem> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns an ordered range of all the commerce order items.
|
static java.util.List<CommerceOrderItem> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce order items.
|
static CommerceOrderItem |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce order item where companyId = ? and externalReferenceCode = ? or throws a
NoSuchOrderItemException if it could not be found. |
static CommerceOrderItem |
findByC_I_First(long commerceOrderId,
long CPInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the first commerce order item in the ordered set where commerceOrderId = ? and CPInstanceId = ?.
|
static CommerceOrderItem |
findByC_I_Last(long commerceOrderId,
long CPInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the last commerce order item in the ordered set where commerceOrderId = ? and CPInstanceId = ?.
|
static CommerceOrderItem[] |
findByC_I_PrevAndNext(long commerceOrderItemId,
long commerceOrderId,
long CPInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the commerce order items before and after the current commerce order item in the ordered set where commerceOrderId = ? and CPInstanceId = ?.
|
static java.util.List<CommerceOrderItem> |
findByC_I(long commerceOrderId,
long CPInstanceId)
Returns all the commerce order items where commerceOrderId = ? and CPInstanceId = ?.
|
static java.util.List<CommerceOrderItem> |
findByC_I(long commerceOrderId,
long CPInstanceId,
int start,
int end)
Returns a range of all the commerce order items where commerceOrderId = ? and CPInstanceId = ?.
|
static java.util.List<CommerceOrderItem> |
findByC_I(long commerceOrderId,
long CPInstanceId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns an ordered range of all the commerce order items where commerceOrderId = ? and CPInstanceId = ?.
|
static java.util.List<CommerceOrderItem> |
findByC_I(long commerceOrderId,
long CPInstanceId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce order items where commerceOrderId = ? and CPInstanceId = ?.
|
static CommerceOrderItem |
findByCommerceOrderId_First(long commerceOrderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the first commerce order item in the ordered set where commerceOrderId = ?.
|
static CommerceOrderItem |
findByCommerceOrderId_Last(long commerceOrderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the last commerce order item in the ordered set where commerceOrderId = ?.
|
static CommerceOrderItem[] |
findByCommerceOrderId_PrevAndNext(long commerceOrderItemId,
long commerceOrderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the commerce order items before and after the current commerce order item in the ordered set where commerceOrderId = ?.
|
static java.util.List<CommerceOrderItem> |
findByCommerceOrderId(long commerceOrderId)
Returns all the commerce order items where commerceOrderId = ?.
|
static java.util.List<CommerceOrderItem> |
findByCommerceOrderId(long commerceOrderId,
int start,
int end)
Returns a range of all the commerce order items where commerceOrderId = ?.
|
static java.util.List<CommerceOrderItem> |
findByCommerceOrderId(long commerceOrderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns an ordered range of all the commerce order items where commerceOrderId = ?.
|
static java.util.List<CommerceOrderItem> |
findByCommerceOrderId(long commerceOrderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce order items where commerceOrderId = ?.
|
static CommerceOrderItem |
findByCPInstanceId_First(long CPInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the first commerce order item in the ordered set where CPInstanceId = ?.
|
static CommerceOrderItem |
findByCPInstanceId_Last(long CPInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the last commerce order item in the ordered set where CPInstanceId = ?.
|
static CommerceOrderItem[] |
findByCPInstanceId_PrevAndNext(long commerceOrderItemId,
long CPInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the commerce order items before and after the current commerce order item in the ordered set where CPInstanceId = ?.
|
static java.util.List<CommerceOrderItem> |
findByCPInstanceId(long CPInstanceId)
Returns all the commerce order items where CPInstanceId = ?.
|
static java.util.List<CommerceOrderItem> |
findByCPInstanceId(long CPInstanceId,
int start,
int end)
Returns a range of all the commerce order items where CPInstanceId = ?.
|
static java.util.List<CommerceOrderItem> |
findByCPInstanceId(long CPInstanceId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns an ordered range of all the commerce order items where CPInstanceId = ?.
|
static java.util.List<CommerceOrderItem> |
findByCPInstanceId(long CPInstanceId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce order items where CPInstanceId = ?.
|
static CommerceOrderItem |
findByPrimaryKey(long commerceOrderItemId)
Returns the commerce order item with the primary key or throws a
NoSuchOrderItemException if it could not be found. |
static java.util.List<CommerceOrderItem> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceOrderItem> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceOrderItem> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) |
static CommerceOrderItemPersistence |
getPersistence() |
static CommerceOrderItem |
remove(long commerceOrderItemId)
Removes the commerce order item with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce order items from the database.
|
static CommerceOrderItem |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the commerce order item where companyId = ? and externalReferenceCode = ? from the database.
|
static void |
removeByC_I(long commerceOrderId,
long CPInstanceId)
Removes all the commerce order items where commerceOrderId = ? and CPInstanceId = ? from the database.
|
static void |
removeByCommerceOrderId(long commerceOrderId)
Removes all the commerce order items where commerceOrderId = ? from the database.
|
static void |
removeByCPInstanceId(long CPInstanceId)
Removes all the commerce order items where CPInstanceId = ? from the database.
|
static CommerceOrderItem |
update(CommerceOrderItem commerceOrderItem) |
static CommerceOrderItem |
update(CommerceOrderItem commerceOrderItem,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceOrderItem |
updateImpl(CommerceOrderItem commerceOrderItem) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(CommerceOrderItem commerceOrderItem)
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.List<CommerceOrderItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<CommerceOrderItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<CommerceOrderItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static CommerceOrderItem update(CommerceOrderItem commerceOrderItem)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static CommerceOrderItem update(CommerceOrderItem commerceOrderItem, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<CommerceOrderItem> findByCommerceOrderId(long commerceOrderId)
commerceOrderId - the commerce order IDpublic static java.util.List<CommerceOrderItem> findByCommerceOrderId(long commerceOrderId, int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
commerceOrderId - the commerce order IDstart - the lower bound of the range of commerce order itemsend - the upper bound of the range of commerce order items (not inclusive)public static java.util.List<CommerceOrderItem> findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
commerceOrderId - the commerce order IDstart - the lower bound of the range of commerce order itemsend - the upper bound of the range of commerce order items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceOrderItem> findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
commerceOrderId - the commerce order IDstart - the lower bound of the range of commerce order itemsend - the upper bound of the range of commerce order items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static CommerceOrderItem findByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
commerceOrderId - the commerce order IDorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderItemException - if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
commerceOrderId - the commerce order IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce order item could not be foundpublic static CommerceOrderItem findByCommerceOrderId_Last(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
commerceOrderId - the commerce order IDorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderItemException - if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByCommerceOrderId_Last(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
commerceOrderId - the commerce order IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce order item could not be foundpublic static CommerceOrderItem[] findByCommerceOrderId_PrevAndNext(long commerceOrderItemId, long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
commerceOrderItemId - the primary key of the current commerce order itemcommerceOrderId - the commerce order IDorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderItemException - if a commerce order item with the primary key could not be foundpublic static void removeByCommerceOrderId(long commerceOrderId)
commerceOrderId - the commerce order IDpublic static int countByCommerceOrderId(long commerceOrderId)
commerceOrderId - the commerce order IDpublic static java.util.List<CommerceOrderItem> findByCPInstanceId(long CPInstanceId)
CPInstanceId - the cp instance IDpublic static java.util.List<CommerceOrderItem> findByCPInstanceId(long CPInstanceId, int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
CPInstanceId - the cp instance IDstart - the lower bound of the range of commerce order itemsend - the upper bound of the range of commerce order items (not inclusive)public static java.util.List<CommerceOrderItem> findByCPInstanceId(long CPInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
CPInstanceId - the cp instance IDstart - the lower bound of the range of commerce order itemsend - the upper bound of the range of commerce order items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceOrderItem> findByCPInstanceId(long CPInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
CPInstanceId - the cp instance IDstart - the lower bound of the range of commerce order itemsend - the upper bound of the range of commerce order items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static CommerceOrderItem findByCPInstanceId_First(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
CPInstanceId - the cp instance IDorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderItemException - if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByCPInstanceId_First(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
CPInstanceId - the cp instance IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce order item could not be foundpublic static CommerceOrderItem findByCPInstanceId_Last(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
CPInstanceId - the cp instance IDorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderItemException - if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByCPInstanceId_Last(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
CPInstanceId - the cp instance IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce order item could not be foundpublic static CommerceOrderItem[] findByCPInstanceId_PrevAndNext(long commerceOrderItemId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
commerceOrderItemId - the primary key of the current commerce order itemCPInstanceId - the cp instance IDorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderItemException - if a commerce order item with the primary key could not be foundpublic static void removeByCPInstanceId(long CPInstanceId)
CPInstanceId - the cp instance IDpublic static int countByCPInstanceId(long CPInstanceId)
CPInstanceId - the cp instance IDpublic static java.util.List<CommerceOrderItem> findByC_I(long commerceOrderId, long CPInstanceId)
commerceOrderId - the commerce order IDCPInstanceId - the cp instance IDpublic static java.util.List<CommerceOrderItem> findByC_I(long commerceOrderId, long CPInstanceId, int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
commerceOrderId - the commerce order IDCPInstanceId - the cp instance IDstart - the lower bound of the range of commerce order itemsend - the upper bound of the range of commerce order items (not inclusive)public static java.util.List<CommerceOrderItem> findByC_I(long commerceOrderId, long CPInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
commerceOrderId - the commerce order IDCPInstanceId - the cp instance IDstart - the lower bound of the range of commerce order itemsend - the upper bound of the range of commerce order items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceOrderItem> findByC_I(long commerceOrderId, long CPInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
commerceOrderId - the commerce order IDCPInstanceId - the cp instance IDstart - the lower bound of the range of commerce order itemsend - the upper bound of the range of commerce order items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static CommerceOrderItem findByC_I_First(long commerceOrderId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
commerceOrderId - the commerce order IDCPInstanceId - the cp instance IDorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderItemException - if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByC_I_First(long commerceOrderId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
commerceOrderId - the commerce order IDCPInstanceId - the cp instance IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce order item could not be foundpublic static CommerceOrderItem findByC_I_Last(long commerceOrderId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
commerceOrderId - the commerce order IDCPInstanceId - the cp instance IDorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderItemException - if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByC_I_Last(long commerceOrderId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
commerceOrderId - the commerce order IDCPInstanceId - the cp instance IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce order item could not be foundpublic static CommerceOrderItem[] findByC_I_PrevAndNext(long commerceOrderItemId, long commerceOrderId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
commerceOrderItemId - the primary key of the current commerce order itemcommerceOrderId - the commerce order IDCPInstanceId - the cp instance IDorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderItemException - if a commerce order item with the primary key could not be foundpublic static void removeByC_I(long commerceOrderId,
long CPInstanceId)
commerceOrderId - the commerce order IDCPInstanceId - the cp instance IDpublic static int countByC_I(long commerceOrderId,
long CPInstanceId)
commerceOrderId - the commerce order IDCPInstanceId - the cp instance IDpublic static CommerceOrderItem findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchOrderItemException
NoSuchOrderItemException if it could not be found.companyId - the company IDexternalReferenceCode - the external reference codeNoSuchOrderItemException - if a matching commerce order item could not be foundpublic static CommerceOrderItem 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 order item could not be foundpublic static CommerceOrderItem fetchByC_ERC(long companyId, java.lang.String externalReferenceCode, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.companyId - the company IDexternalReferenceCode - the external reference coderetrieveFromCache - whether to retrieve from the finder cachenull if a matching commerce order item could not be foundpublic static CommerceOrderItem removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchOrderItemException
companyId - the company IDexternalReferenceCode - the external reference codeNoSuchOrderItemExceptionpublic static int countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
companyId - the company IDexternalReferenceCode - the external reference codepublic static void cacheResult(CommerceOrderItem commerceOrderItem)
commerceOrderItem - the commerce order itempublic static void cacheResult(java.util.List<CommerceOrderItem> commerceOrderItems)
commerceOrderItems - the commerce order itemspublic static CommerceOrderItem create(long commerceOrderItemId)
commerceOrderItemId - the primary key for the new commerce order itempublic static CommerceOrderItem remove(long commerceOrderItemId) throws NoSuchOrderItemException
commerceOrderItemId - the primary key of the commerce order itemNoSuchOrderItemException - if a commerce order item with the primary key could not be foundpublic static CommerceOrderItem updateImpl(CommerceOrderItem commerceOrderItem)
public static CommerceOrderItem findByPrimaryKey(long commerceOrderItemId) throws NoSuchOrderItemException
NoSuchOrderItemException if it could not be found.commerceOrderItemId - the primary key of the commerce order itemNoSuchOrderItemException - if a commerce order item with the primary key could not be foundpublic static CommerceOrderItem fetchByPrimaryKey(long commerceOrderItemId)
null if it could not be found.commerceOrderItemId - the primary key of the commerce order itemnull if a commerce order item with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,CommerceOrderItem> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<CommerceOrderItem> findAll()
public static java.util.List<CommerceOrderItem> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce order itemsend - the upper bound of the range of commerce order items (not inclusive)public static java.util.List<CommerceOrderItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce order itemsend - the upper bound of the range of commerce order items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceOrderItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce order itemsend - the upper bound of the range of commerce order items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceOrderItemPersistence getPersistence()