@ProviderType public interface CommerceOrderItemPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceOrderItem>
Caching information and settings can be found in portal.properties
CommerceOrderItemUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CommerceOrderItem commerceOrderItem)
Caches the commerce order item in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceOrderItem> commerceOrderItems)
Caches the commerce order items in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce order items.
|
int |
countByBookedQuantityId(long bookedQuantityId)
Returns the number of commerce order items where bookedQuantityId = ?.
|
int |
countByC_CPI(long commerceOrderId,
long CPInstanceId)
Returns the number of commerce order items where commerceOrderId = ? and CPInstanceId = ?.
|
int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce order items where companyId = ? and externalReferenceCode = ?.
|
int |
countByC_S(long commerceOrderId,
boolean subscription)
Returns the number of commerce order items where commerceOrderId = ? and subscription = ?.
|
int |
countByCommerceOrderId(long commerceOrderId)
Returns the number of commerce order items where commerceOrderId = ?.
|
int |
countByCPInstanceId(long CPInstanceId)
Returns the number of commerce order items where CPInstanceId = ?.
|
int |
countByCProductId(long CProductId)
Returns the number of commerce order items where CProductId = ?.
|
int |
countByParentCommerceOrderItemId(long parentCommerceOrderItemId)
Returns the number of commerce order items where parentCommerceOrderItemId = ?.
|
CommerceOrderItem |
create(long commerceOrderItemId)
Creates a new commerce order item with the primary key.
|
CommerceOrderItem |
fetchByBookedQuantityId(long bookedQuantityId)
Returns the commerce order item where bookedQuantityId = ? or returns
null if it could not be found. |
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. |
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 = ?.
|
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 = ?.
|
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. |
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. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
CommerceOrderItem |
fetchByPrimaryKey(long commerceOrderItemId)
Returns the commerce order item with the primary key or returns
null if it could not be found. |
java.util.List<CommerceOrderItem> |
findAll()
Returns all the commerce order items.
|
java.util.List<CommerceOrderItem> |
findAll(int start,
int end)
Returns a range of all the commerce order items.
|
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.
|
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.
|
CommerceOrderItem |
findByBookedQuantityId(long bookedQuantityId)
Returns the commerce order item where bookedQuantityId = ? or throws a
NoSuchOrderItemException if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceOrderItem> |
findByC_CPI(long commerceOrderId,
long CPInstanceId)
Returns all the commerce order items where commerceOrderId = ? and CPInstanceId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceOrderItem> |
findByC_S(long commerceOrderId,
boolean subscription)
Returns all the commerce order items where commerceOrderId = ? and subscription = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceOrderItem> |
findByCommerceOrderId(long commerceOrderId)
Returns all the commerce order items where commerceOrderId = ?.
|
java.util.List<CommerceOrderItem> |
findByCommerceOrderId(long commerceOrderId,
int start,
int end)
Returns a range of all the commerce order items where commerceOrderId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceOrderItem> |
findByCPInstanceId(long CPInstanceId)
Returns all the commerce order items where CPInstanceId = ?.
|
java.util.List<CommerceOrderItem> |
findByCPInstanceId(long CPInstanceId,
int start,
int end)
Returns a range of all the commerce order items where CPInstanceId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceOrderItem> |
findByCProductId(long CProductId)
Returns all the commerce order items where CProductId = ?.
|
java.util.List<CommerceOrderItem> |
findByCProductId(long CProductId,
int start,
int end)
Returns a range of all the commerce order items where CProductId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceOrderItem> |
findByParentCommerceOrderItemId(long parentCommerceOrderItemId)
Returns all the commerce order items where parentCommerceOrderItemId = ?.
|
java.util.List<CommerceOrderItem> |
findByParentCommerceOrderItemId(long parentCommerceOrderItemId,
int start,
int end)
Returns a range of all the commerce order items where parentCommerceOrderItemId = ?.
|
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 = ?.
|
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 = ?.
|
CommerceOrderItem |
findByPrimaryKey(long commerceOrderItemId)
Returns the commerce order item with the primary key or throws a
NoSuchOrderItemException if it could not be found. |
CommerceOrderItem |
remove(long commerceOrderItemId)
Removes the commerce order item with the primary key from the database.
|
void |
removeAll()
Removes all the commerce order items from the database.
|
CommerceOrderItem |
removeByBookedQuantityId(long bookedQuantityId)
Removes the commerce order item where bookedQuantityId = ? from the database.
|
void |
removeByC_CPI(long commerceOrderId,
long CPInstanceId)
Removes all the commerce order items where commerceOrderId = ? and CPInstanceId = ? from the database.
|
CommerceOrderItem |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the commerce order item where companyId = ? and externalReferenceCode = ? from the database.
|
void |
removeByC_S(long commerceOrderId,
boolean subscription)
Removes all the commerce order items where commerceOrderId = ? and subscription = ? from the database.
|
void |
removeByCommerceOrderId(long commerceOrderId)
Removes all the commerce order items where commerceOrderId = ? from the database.
|
void |
removeByCPInstanceId(long CPInstanceId)
Removes all the commerce order items where CPInstanceId = ? from the database.
|
void |
removeByCProductId(long CProductId)
Removes all the commerce order items where CProductId = ? from the database.
|
void |
removeByParentCommerceOrderItemId(long parentCommerceOrderItemId)
Removes all the commerce order items where parentCommerceOrderItemId = ? from the database.
|
CommerceOrderItem |
updateImpl(CommerceOrderItem commerceOrderItem) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
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 foundCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem removeByBookedQuantityId(long bookedQuantityId) throws NoSuchOrderItemException
bookedQuantityId
- the booked quantity IDNoSuchOrderItemException
int countByBookedQuantityId(long bookedQuantityId)
bookedQuantityId
- the booked quantity IDjava.util.List<CommerceOrderItem> findByCommerceOrderId(long commerceOrderId)
commerceOrderId
- the commerce order IDjava.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)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
)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 cacheCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem[] 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 foundvoid removeByCommerceOrderId(long commerceOrderId)
commerceOrderId
- the commerce order IDint countByCommerceOrderId(long commerceOrderId)
commerceOrderId
- the commerce order IDjava.util.List<CommerceOrderItem> findByCPInstanceId(long CPInstanceId)
CPInstanceId
- the cp instance IDjava.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)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
)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 cacheCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem[] 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 foundvoid removeByCPInstanceId(long CPInstanceId)
CPInstanceId
- the cp instance IDint countByCPInstanceId(long CPInstanceId)
CPInstanceId
- the cp instance IDjava.util.List<CommerceOrderItem> findByCProductId(long CProductId)
CProductId
- the c product IDjava.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)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
)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 cacheCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem[] 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 foundvoid removeByCProductId(long CProductId)
CProductId
- the c product IDint countByCProductId(long CProductId)
CProductId
- the c product IDjava.util.List<CommerceOrderItem> findByParentCommerceOrderItemId(long parentCommerceOrderItemId)
parentCommerceOrderItemId
- the parent commerce order item IDjava.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)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
)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 cacheCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem[] 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 foundvoid removeByParentCommerceOrderItemId(long parentCommerceOrderItemId)
parentCommerceOrderItemId
- the parent commerce order item IDint countByParentCommerceOrderItemId(long parentCommerceOrderItemId)
parentCommerceOrderItemId
- the parent commerce order item IDjava.util.List<CommerceOrderItem> findByC_CPI(long commerceOrderId, long CPInstanceId)
commerceOrderId
- the commerce order IDCPInstanceId
- the cp instance IDjava.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)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
)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 cacheCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem[] 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 foundvoid removeByC_CPI(long commerceOrderId, long CPInstanceId)
commerceOrderId
- the commerce order IDCPInstanceId
- the cp instance IDint countByC_CPI(long commerceOrderId, long CPInstanceId)
commerceOrderId
- the commerce order IDCPInstanceId
- the cp instance IDjava.util.List<CommerceOrderItem> findByC_S(long commerceOrderId, boolean subscription)
commerceOrderId
- the commerce order IDsubscription
- the subscriptionjava.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)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
)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 cacheCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem[] 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 foundvoid removeByC_S(long commerceOrderId, boolean subscription)
commerceOrderId
- the commerce order IDsubscription
- the subscriptionint countByC_S(long commerceOrderId, boolean subscription)
commerceOrderId
- the commerce order IDsubscription
- the subscriptionCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem 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 foundCommerceOrderItem removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchOrderItemException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchOrderItemException
int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codevoid cacheResult(CommerceOrderItem commerceOrderItem)
commerceOrderItem
- the commerce order itemvoid cacheResult(java.util.List<CommerceOrderItem> commerceOrderItems)
commerceOrderItems
- the commerce order itemsCommerceOrderItem create(long commerceOrderItemId)
commerceOrderItemId
- the primary key for the new commerce order itemCommerceOrderItem 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 foundCommerceOrderItem updateImpl(CommerceOrderItem commerceOrderItem)
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 foundCommerceOrderItem 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 foundjava.util.List<CommerceOrderItem> findAll()
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)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
)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 cachevoid removeAll()
int countAll()