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
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 |
countByBookedQuantityId(long bookedQuantityId)
Returns the number of commerce order items where bookedQuantityId = ?.
|
static int |
countByC_CPI(long commerceOrderId,
long CPInstanceId)
Returns the number of commerce order items where commerceOrderId = ? and CPInstanceId = ?.
|
static int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce order items where companyId = ? and externalReferenceCode = ?.
|
static int |
countByC_S(long commerceOrderId,
boolean subscription)
Returns the number of commerce order items where commerceOrderId = ? and subscription = ?.
|
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 int |
countByCProductId(long CProductId)
Returns the number of commerce order items where CProductId = ?.
|
static int |
countByParentCommerceOrderItemId(long parentCommerceOrderItemId)
Returns the number of commerce order items where parentCommerceOrderItemId = ?.
|
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 |
fetchByBookedQuantityId(long bookedQuantityId)
Returns the commerce order item where bookedQuantityId = ? or returns
null if it could not be found. |
static CommerceOrderItem |
fetchByBookedQuantityId(long bookedQuantityId,
boolean useFinderCache)
Returns the commerce order item where bookedQuantityId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceOrderItem |
fetchByC_CPI_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_CPI_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 |
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 useFinderCache)
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_S_First(long commerceOrderId,
boolean subscription,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the first commerce order item in the ordered set where commerceOrderId = ? and subscription = ?.
|
static CommerceOrderItem |
fetchByC_S_Last(long commerceOrderId,
boolean subscription,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the last commerce order item in the ordered set where commerceOrderId = ? and subscription = ?.
|
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 |
fetchByCProductId_First(long CProductId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the first commerce order item in the ordered set where CProductId = ?.
|
static CommerceOrderItem |
fetchByCProductId_Last(long CProductId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the last commerce order item in the ordered set where CProductId = ?.
|
static CommerceOrderItem |
fetchByParentCommerceOrderItemId_First(long parentCommerceOrderItemId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the first commerce order item in the ordered set where parentCommerceOrderItemId = ?.
|
static CommerceOrderItem |
fetchByParentCommerceOrderItemId_Last(long parentCommerceOrderItemId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the last commerce order item in the ordered set where parentCommerceOrderItemId = ?.
|
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 useFinderCache)
Returns an ordered range of all the commerce order items.
|
static CommerceOrderItem |
findByBookedQuantityId(long bookedQuantityId)
Returns the commerce order item where bookedQuantityId = ? or throws a
NoSuchOrderItemException if it could not be found. |
static CommerceOrderItem |
findByC_CPI_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_CPI_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_CPI_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_CPI(long commerceOrderId,
long CPInstanceId)
Returns all the commerce order items where commerceOrderId = ? and CPInstanceId = ?.
|
static java.util.List<CommerceOrderItem> |
findByC_CPI(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_CPI(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_CPI(long commerceOrderId,
long CPInstanceId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order items where commerceOrderId = ? and CPInstanceId = ?.
|
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_S_First(long commerceOrderId,
boolean subscription,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the first commerce order item in the ordered set where commerceOrderId = ? and subscription = ?.
|
static CommerceOrderItem |
findByC_S_Last(long commerceOrderId,
boolean subscription,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the last commerce order item in the ordered set where commerceOrderId = ? and subscription = ?.
|
static CommerceOrderItem[] |
findByC_S_PrevAndNext(long commerceOrderItemId,
long commerceOrderId,
boolean subscription,
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 subscription = ?.
|
static java.util.List<CommerceOrderItem> |
findByC_S(long commerceOrderId,
boolean subscription)
Returns all the commerce order items where commerceOrderId = ? and subscription = ?.
|
static java.util.List<CommerceOrderItem> |
findByC_S(long commerceOrderId,
boolean subscription,
int start,
int end)
Returns a range of all the commerce order items where commerceOrderId = ? and subscription = ?.
|
static java.util.List<CommerceOrderItem> |
findByC_S(long commerceOrderId,
boolean subscription,
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 subscription = ?.
|
static java.util.List<CommerceOrderItem> |
findByC_S(long commerceOrderId,
boolean subscription,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order items where commerceOrderId = ? and subscription = ?.
|
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 useFinderCache)
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 useFinderCache)
Returns an ordered range of all the commerce order items where CPInstanceId = ?.
|
static CommerceOrderItem |
findByCProductId_First(long CProductId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the first commerce order item in the ordered set where CProductId = ?.
|
static CommerceOrderItem |
findByCProductId_Last(long CProductId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the last commerce order item in the ordered set where CProductId = ?.
|
static CommerceOrderItem[] |
findByCProductId_PrevAndNext(long commerceOrderItemId,
long CProductId,
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 CProductId = ?.
|
static java.util.List<CommerceOrderItem> |
findByCProductId(long CProductId)
Returns all the commerce order items where CProductId = ?.
|
static java.util.List<CommerceOrderItem> |
findByCProductId(long CProductId,
int start,
int end)
Returns a range of all the commerce order items where CProductId = ?.
|
static java.util.List<CommerceOrderItem> |
findByCProductId(long CProductId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns an ordered range of all the commerce order items where CProductId = ?.
|
static java.util.List<CommerceOrderItem> |
findByCProductId(long CProductId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order items where CProductId = ?.
|
static CommerceOrderItem |
findByParentCommerceOrderItemId_First(long parentCommerceOrderItemId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the first commerce order item in the ordered set where parentCommerceOrderItemId = ?.
|
static CommerceOrderItem |
findByParentCommerceOrderItemId_Last(long parentCommerceOrderItemId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the last commerce order item in the ordered set where parentCommerceOrderItemId = ?.
|
static CommerceOrderItem[] |
findByParentCommerceOrderItemId_PrevAndNext(long commerceOrderItemId,
long parentCommerceOrderItemId,
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 parentCommerceOrderItemId = ?.
|
static java.util.List<CommerceOrderItem> |
findByParentCommerceOrderItemId(long parentCommerceOrderItemId)
Returns all the commerce order items where parentCommerceOrderItemId = ?.
|
static java.util.List<CommerceOrderItem> |
findByParentCommerceOrderItemId(long parentCommerceOrderItemId,
int start,
int end)
Returns a range of all the commerce order items where parentCommerceOrderItemId = ?.
|
static java.util.List<CommerceOrderItem> |
findByParentCommerceOrderItemId(long parentCommerceOrderItemId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns an ordered range of all the commerce order items where parentCommerceOrderItemId = ?.
|
static java.util.List<CommerceOrderItem> |
findByParentCommerceOrderItemId(long parentCommerceOrderItemId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order items where parentCommerceOrderItemId = ?.
|
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 |
removeByBookedQuantityId(long bookedQuantityId)
Removes the commerce order item where bookedQuantityId = ? from the database.
|
static void |
removeByC_CPI(long commerceOrderId,
long CPInstanceId)
Removes all the commerce order items where commerceOrderId = ? and CPInstanceId = ? 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_S(long commerceOrderId,
boolean subscription)
Removes all the commerce order items where commerceOrderId = ? and subscription = ? 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 void |
removeByCProductId(long CProductId)
Removes all the commerce order items where CProductId = ? from the database.
|
static void |
removeByParentCommerceOrderItemId(long parentCommerceOrderItemId)
Removes all the commerce order items where parentCommerceOrderItemId = ? 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.Map<java.io.Serializable,CommerceOrderItem> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
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 CommerceOrderItem findByBookedQuantityId(long bookedQuantityId) throws NoSuchOrderItemException
NoSuchOrderItemException
if it could not be found.bookedQuantityId
- the booked quantity IDNoSuchOrderItemException
- if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByBookedQuantityId(long bookedQuantityId)
null
if it could not be found. Uses the finder cache.bookedQuantityId
- the booked quantity IDnull
if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByBookedQuantityId(long bookedQuantityId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.bookedQuantityId
- the booked quantity IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce order item could not be foundpublic static CommerceOrderItem removeByBookedQuantityId(long bookedQuantityId) throws NoSuchOrderItemException
bookedQuantityId
- the booked quantity IDNoSuchOrderItemException
public static int countByBookedQuantityId(long bookedQuantityId)
bookedQuantityId
- the booked quantity IDpublic 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, then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl
.
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, then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl
.
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 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 CommerceOrderItemModelImpl
.
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
)useFinderCache
- whether to use 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, then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl
.
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, then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl
.
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 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 CommerceOrderItemModelImpl
.
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
)useFinderCache
- whether to use 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> findByCProductId(long CProductId)
CProductId
- the c product IDpublic static java.util.List<CommerceOrderItem> findByCProductId(long CProductId, 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 CommerceOrderItemModelImpl
.
CProductId
- the c product 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> findByCProductId(long CProductId, 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, then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl
.
CProductId
- the c product 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> findByCProductId(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> 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 CommerceOrderItemModelImpl
.
CProductId
- the c product 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
)useFinderCache
- whether to use the finder cachepublic static CommerceOrderItem findByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
CProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderItemException
- if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
CProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order item could not be foundpublic static CommerceOrderItem findByCProductId_Last(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
CProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderItemException
- if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByCProductId_Last(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
CProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order item could not be foundpublic static CommerceOrderItem[] findByCProductId_PrevAndNext(long commerceOrderItemId, long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
commerceOrderItemId
- the primary key of the current commerce order itemCProductId
- the c product 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 removeByCProductId(long CProductId)
CProductId
- the c product IDpublic static int countByCProductId(long CProductId)
CProductId
- the c product IDpublic static java.util.List<CommerceOrderItem> findByParentCommerceOrderItemId(long parentCommerceOrderItemId)
parentCommerceOrderItemId
- the parent commerce order item IDpublic static java.util.List<CommerceOrderItem> findByParentCommerceOrderItemId(long parentCommerceOrderItemId, 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 CommerceOrderItemModelImpl
.
parentCommerceOrderItemId
- the parent commerce order item 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> findByParentCommerceOrderItemId(long parentCommerceOrderItemId, 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, then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl
.
parentCommerceOrderItemId
- the parent commerce order item 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> findByParentCommerceOrderItemId(long parentCommerceOrderItemId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> 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 CommerceOrderItemModelImpl
.
parentCommerceOrderItemId
- the parent commerce order item 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
)useFinderCache
- whether to use the finder cachepublic static CommerceOrderItem findByParentCommerceOrderItemId_First(long parentCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
parentCommerceOrderItemId
- the parent commerce order item IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderItemException
- if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByParentCommerceOrderItemId_First(long parentCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
parentCommerceOrderItemId
- the parent commerce order item IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order item could not be foundpublic static CommerceOrderItem findByParentCommerceOrderItemId_Last(long parentCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
parentCommerceOrderItemId
- the parent commerce order item IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderItemException
- if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByParentCommerceOrderItemId_Last(long parentCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
parentCommerceOrderItemId
- the parent commerce order item IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order item could not be foundpublic static CommerceOrderItem[] findByParentCommerceOrderItemId_PrevAndNext(long commerceOrderItemId, long parentCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
commerceOrderItemId
- the primary key of the current commerce order itemparentCommerceOrderItemId
- the parent commerce order item 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 removeByParentCommerceOrderItemId(long parentCommerceOrderItemId)
parentCommerceOrderItemId
- the parent commerce order item IDpublic static int countByParentCommerceOrderItemId(long parentCommerceOrderItemId)
parentCommerceOrderItemId
- the parent commerce order item IDpublic static java.util.List<CommerceOrderItem> findByC_CPI(long commerceOrderId, long CPInstanceId)
commerceOrderId
- the commerce order IDCPInstanceId
- the cp instance IDpublic static java.util.List<CommerceOrderItem> findByC_CPI(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, then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl
.
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_CPI(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, then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl
.
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_CPI(long commerceOrderId, long CPInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> 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 CommerceOrderItemModelImpl
.
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
)useFinderCache
- whether to use the finder cachepublic static CommerceOrderItem findByC_CPI_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_CPI_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_CPI_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_CPI_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_CPI_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_CPI(long commerceOrderId, long CPInstanceId)
commerceOrderId
- the commerce order IDCPInstanceId
- the cp instance IDpublic static int countByC_CPI(long commerceOrderId, long CPInstanceId)
commerceOrderId
- the commerce order IDCPInstanceId
- the cp instance IDpublic static java.util.List<CommerceOrderItem> findByC_S(long commerceOrderId, boolean subscription)
commerceOrderId
- the commerce order IDsubscription
- the subscriptionpublic static java.util.List<CommerceOrderItem> findByC_S(long commerceOrderId, boolean subscription, 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 CommerceOrderItemModelImpl
.
commerceOrderId
- the commerce order IDsubscription
- the subscriptionstart
- 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_S(long commerceOrderId, boolean subscription, 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, then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl
.
commerceOrderId
- the commerce order IDsubscription
- the subscriptionstart
- 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_S(long commerceOrderId, boolean subscription, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> 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 CommerceOrderItemModelImpl
.
commerceOrderId
- the commerce order IDsubscription
- the subscriptionstart
- 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
)useFinderCache
- whether to use the finder cachepublic static CommerceOrderItem findByC_S_First(long commerceOrderId, boolean subscription, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
commerceOrderId
- the commerce order IDsubscription
- the subscriptionorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderItemException
- if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByC_S_First(long commerceOrderId, boolean subscription, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
commerceOrderId
- the commerce order IDsubscription
- the subscriptionorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order item could not be foundpublic static CommerceOrderItem findByC_S_Last(long commerceOrderId, boolean subscription, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
commerceOrderId
- the commerce order IDsubscription
- the subscriptionorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderItemException
- if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByC_S_Last(long commerceOrderId, boolean subscription, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
commerceOrderId
- the commerce order IDsubscription
- the subscriptionorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order item could not be foundpublic static CommerceOrderItem[] findByC_S_PrevAndNext(long commerceOrderItemId, long commerceOrderId, boolean subscription, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
commerceOrderItemId
- the primary key of the current commerce order itemcommerceOrderId
- the commerce order IDsubscription
- the subscriptionorderByComparator
- 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_S(long commerceOrderId, boolean subscription)
commerceOrderId
- the commerce order IDsubscription
- the subscriptionpublic static int countByC_S(long commerceOrderId, boolean subscription)
commerceOrderId
- the commerce order IDsubscription
- the subscriptionpublic 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 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 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 codeNoSuchOrderItemException
public 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.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, then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl
.
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, then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl
.
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 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 CommerceOrderItemModelImpl
.
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
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceOrderItemPersistence getPersistence()