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 |
countByC_CPI(long commerceOrderId,
long CPInstanceId)
Returns the number of commerce order items where commerceOrderId = ? and CPInstanceId = ?.
|
static int |
countByC_S(long commerceOrderId,
boolean subscription)
Returns the number of commerce order items where commerceOrderId = ? and subscription = ?.
|
static int |
countByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId)
Returns the number of commerce order items where commerceInventoryBookedQuantityId = ?.
|
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 |
countByCustomerCommerceOrderItemId(long customerCommerceOrderItemId)
Returns the number of commerce order items where customerCommerceOrderItemId = ?.
|
static int |
countByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the number of commerce order items where externalReferenceCode = ? and companyId = ?.
|
static int |
countByParentCommerceOrderItemId(long parentCommerceOrderItemId)
Returns the number of commerce order items where parentCommerceOrderItemId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce order items where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of commerce order items where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce order items where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceOrderItem |
create(long commerceOrderItemId)
Creates a new commerce order item with the primary key.
|
static CommerceOrderItem |
fetchByC_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_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 |
fetchByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId)
Returns the commerce order item where commerceInventoryBookedQuantityId = ? or returns
null if it could not be found. |
static CommerceOrderItem |
fetchByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId,
boolean useFinderCache)
Returns the commerce order item where commerceInventoryBookedQuantityId = ? or returns
null if it could not be found, optionally using the finder cache. |
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 |
fetchByCustomerCommerceOrderItemId_First(long customerCommerceOrderItemId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the first commerce order item in the ordered set where customerCommerceOrderItemId = ?.
|
static CommerceOrderItem |
fetchByCustomerCommerceOrderItemId_Last(long customerCommerceOrderItemId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the last commerce order item in the ordered set where customerCommerceOrderItemId = ?.
|
static CommerceOrderItem |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the commerce order item where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found. |
static CommerceOrderItem |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId,
boolean useFinderCache)
Returns the commerce order item where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found, optionally using the finder cache. |
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 CommerceOrderItem |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the first commerce order item in the ordered set where uuid = ? and companyId = ?.
|
static CommerceOrderItem |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the last commerce order item in the ordered set where uuid = ? and companyId = ?.
|
static CommerceOrderItem |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the first commerce order item in the ordered set where uuid = ?.
|
static CommerceOrderItem |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the commerce order item where uuid = ? and groupId = ? or returns
null if it could not be found. |
static CommerceOrderItem |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the commerce order item where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceOrderItem |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the last commerce order item in the ordered set where uuid = ?.
|
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 |
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_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 |
findByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId)
Returns the commerce order item where commerceInventoryBookedQuantityId = ? or throws a
NoSuchOrderItemException if it could not be found. |
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 |
findByCustomerCommerceOrderItemId_First(long customerCommerceOrderItemId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the first commerce order item in the ordered set where customerCommerceOrderItemId = ?.
|
static CommerceOrderItem |
findByCustomerCommerceOrderItemId_Last(long customerCommerceOrderItemId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the last commerce order item in the ordered set where customerCommerceOrderItemId = ?.
|
static CommerceOrderItem[] |
findByCustomerCommerceOrderItemId_PrevAndNext(long commerceOrderItemId,
long customerCommerceOrderItemId,
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 customerCommerceOrderItemId = ?.
|
static java.util.List<CommerceOrderItem> |
findByCustomerCommerceOrderItemId(long customerCommerceOrderItemId)
Returns all the commerce order items where customerCommerceOrderItemId = ?.
|
static java.util.List<CommerceOrderItem> |
findByCustomerCommerceOrderItemId(long customerCommerceOrderItemId,
int start,
int end)
Returns a range of all the commerce order items where customerCommerceOrderItemId = ?.
|
static java.util.List<CommerceOrderItem> |
findByCustomerCommerceOrderItemId(long customerCommerceOrderItemId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns an ordered range of all the commerce order items where customerCommerceOrderItemId = ?.
|
static java.util.List<CommerceOrderItem> |
findByCustomerCommerceOrderItemId(long customerCommerceOrderItemId,
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 customerCommerceOrderItemId = ?.
|
static CommerceOrderItem |
findByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the commerce order item where externalReferenceCode = ? and companyId = ? or throws a
NoSuchOrderItemException if it could not be found. |
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 CommerceOrderItem |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the first commerce order item in the ordered set where uuid = ? and companyId = ?.
|
static CommerceOrderItem |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the last commerce order item in the ordered set where uuid = ? and companyId = ?.
|
static CommerceOrderItem[] |
findByUuid_C_PrevAndNext(long commerceOrderItemId,
java.lang.String uuid,
long companyId,
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 uuid = ? and companyId = ?.
|
static java.util.List<CommerceOrderItem> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce order items where uuid = ? and companyId = ?.
|
static java.util.List<CommerceOrderItem> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce order items where uuid = ? and companyId = ?.
|
static java.util.List<CommerceOrderItem> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns an ordered range of all the commerce order items where uuid = ? and companyId = ?.
|
static java.util.List<CommerceOrderItem> |
findByUuid_C(java.lang.String uuid,
long companyId,
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 uuid = ? and companyId = ?.
|
static CommerceOrderItem |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the first commerce order item in the ordered set where uuid = ?.
|
static CommerceOrderItem |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the commerce order item where uuid = ? and groupId = ? or throws a
NoSuchOrderItemException if it could not be found. |
static CommerceOrderItem |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns the last commerce order item in the ordered set where uuid = ?.
|
static CommerceOrderItem[] |
findByUuid_PrevAndNext(long commerceOrderItemId,
java.lang.String uuid,
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 uuid = ?.
|
static java.util.List<CommerceOrderItem> |
findByUuid(java.lang.String uuid)
Returns all the commerce order items where uuid = ?.
|
static java.util.List<CommerceOrderItem> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce order items where uuid = ?.
|
static java.util.List<CommerceOrderItem> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
Returns an ordered range of all the commerce order items where uuid = ?.
|
static java.util.List<CommerceOrderItem> |
findByUuid(java.lang.String uuid,
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 uuid = ?.
|
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 void |
removeByC_CPI(long commerceOrderId,
long CPInstanceId)
Removes all the commerce order items where commerceOrderId = ? and CPInstanceId = ? 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 CommerceOrderItem |
removeByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId)
Removes the commerce order item where commerceInventoryBookedQuantityId = ? 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 |
removeByCustomerCommerceOrderItemId(long customerCommerceOrderItemId)
Removes all the commerce order items where customerCommerceOrderItemId = ? from the database.
|
static CommerceOrderItem |
removeByERC_C(java.lang.String externalReferenceCode,
long companyId)
Removes the commerce order item where externalReferenceCode = ? and companyId = ? from the database.
|
static void |
removeByParentCommerceOrderItemId(long parentCommerceOrderItemId)
Removes all the commerce order items where parentCommerceOrderItemId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce order items where uuid = ? and companyId = ? from the database.
|
static CommerceOrderItem |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the commerce order item where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce order items where uuid = ? from the database.
|
static void |
setPersistence(CommerceOrderItemPersistence persistence) |
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 java.util.List<CommerceOrderItem> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceOrderItem> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl
.
uuid
- the uuidstart
- 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> findByUuid(java.lang.String uuid, 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
.
uuid
- the uuidstart
- 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> findByUuid(java.lang.String uuid, 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
.
uuid
- the uuidstart
- 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 findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderItemException
- if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order item could not be foundpublic static CommerceOrderItem findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderItemException
- if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order item could not be foundpublic static CommerceOrderItem[] findByUuid_PrevAndNext(long commerceOrderItemId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
commerceOrderItemId
- the primary key of the current commerce order itemuuid
- the uuidorderByComparator
- 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 removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static CommerceOrderItem findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchOrderItemException
NoSuchOrderItemException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchOrderItemException
- if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce order item could not be foundpublic static CommerceOrderItem removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchOrderItemException
uuid
- the uuidgroupId
- the group IDNoSuchOrderItemException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<CommerceOrderItem> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceOrderItem> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceOrderItemModelImpl
.
uuid
- the uuidcompanyId
- the company 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> findByUuid_C(java.lang.String uuid, long companyId, 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
.
uuid
- the uuidcompanyId
- the company 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> findByUuid_C(java.lang.String uuid, long companyId, 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
.
uuid
- the uuidcompanyId
- the company 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 findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderItemException
- if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order item could not be foundpublic static CommerceOrderItem findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderItemException
- if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order item could not be foundpublic static CommerceOrderItem[] findByUuid_C_PrevAndNext(long commerceOrderItemId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
commerceOrderItemId
- the primary key of the current commerce order itemuuid
- the uuidcompanyId
- the company 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 removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static CommerceOrderItem findByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId) throws NoSuchOrderItemException
NoSuchOrderItemException
if it could not be found.commerceInventoryBookedQuantityId
- the commerce inventory booked quantity IDNoSuchOrderItemException
- if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId)
null
if it could not be found. Uses the finder cache.commerceInventoryBookedQuantityId
- the commerce inventory booked quantity IDnull
if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.commerceInventoryBookedQuantityId
- the commerce inventory booked quantity IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce order item could not be foundpublic static CommerceOrderItem removeByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId) throws NoSuchOrderItemException
commerceInventoryBookedQuantityId
- the commerce inventory booked quantity IDNoSuchOrderItemException
public static int countByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId)
commerceInventoryBookedQuantityId
- the commerce inventory 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> findByCustomerCommerceOrderItemId(long customerCommerceOrderItemId)
customerCommerceOrderItemId
- the customer commerce order item IDpublic static java.util.List<CommerceOrderItem> findByCustomerCommerceOrderItemId(long customerCommerceOrderItemId, 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
.
customerCommerceOrderItemId
- the customer 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> findByCustomerCommerceOrderItemId(long customerCommerceOrderItemId, 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
.
customerCommerceOrderItemId
- the customer 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> findByCustomerCommerceOrderItemId(long customerCommerceOrderItemId, 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
.
customerCommerceOrderItemId
- the customer 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 findByCustomerCommerceOrderItemId_First(long customerCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
customerCommerceOrderItemId
- the customer 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 fetchByCustomerCommerceOrderItemId_First(long customerCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
customerCommerceOrderItemId
- the customer 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 findByCustomerCommerceOrderItemId_Last(long customerCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
customerCommerceOrderItemId
- the customer 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 fetchByCustomerCommerceOrderItemId_Last(long customerCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
customerCommerceOrderItemId
- the customer 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[] findByCustomerCommerceOrderItemId_PrevAndNext(long commerceOrderItemId, long customerCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
commerceOrderItemId
- the primary key of the current commerce order itemcustomerCommerceOrderItemId
- the customer 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 removeByCustomerCommerceOrderItemId(long customerCommerceOrderItemId)
customerCommerceOrderItemId
- the customer commerce order item IDpublic static int countByCustomerCommerceOrderItemId(long customerCommerceOrderItemId)
customerCommerceOrderItemId
- the customer commerce order item 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 findByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchOrderItemException
NoSuchOrderItemException
if it could not be found.externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchOrderItemException
- if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByERC_C(java.lang.String externalReferenceCode, long companyId)
null
if it could not be found. Uses the finder cache.externalReferenceCode
- the external reference codecompanyId
- the company IDnull
if a matching commerce order item could not be foundpublic static CommerceOrderItem fetchByERC_C(java.lang.String externalReferenceCode, long companyId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce order item could not be foundpublic static CommerceOrderItem removeByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchOrderItemException
externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchOrderItemException
public static int countByERC_C(java.lang.String externalReferenceCode, long companyId)
externalReferenceCode
- the external reference codecompanyId
- the company IDpublic 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()
public static void setPersistence(CommerceOrderItemPersistence persistence)