Class CommerceOrderItemUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommerceOrderItem commerceOrderItem) Caches the commerce order item in the entity cache if it is enabled.static void
cacheResult
(List<CommerceOrderItem> commerceOrderItems) Caches the commerce order items in the entity cache if it is enabled.static void
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
(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
(String uuid) Returns the number of commerce order items where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of commerce order items where uuid = ? and companyId = ?.static int
countByUUID_G
(String uuid, long groupId) Returns the number of commerce order items where uuid = ? and groupId = ?.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 returnsnull
if it could not be found.static CommerceOrderItem
fetchByCommerceInventoryBookedQuantityId
(long commerceInventoryBookedQuantityId, boolean useFinderCache) Returns the commerce order item where commerceInventoryBookedQuantityId = ? or returnsnull
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
(String externalReferenceCode, long companyId) Returns the commerce order item where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.static CommerceOrderItem
fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce order item where externalReferenceCode = ? and companyId = ? or returnsnull
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 returnsnull
if it could not be found.static Map<Serializable,
CommerceOrderItem> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static CommerceOrderItem
fetchByUuid_C_First
(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
(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
(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
(String uuid, long groupId) Returns the commerce order item where uuid = ? and groupId = ? or returnsnull
if it could not be found.static CommerceOrderItem
fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the commerce order item where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CommerceOrderItem
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) Returns the last commerce order item in the ordered set where uuid = ?.static List<CommerceOrderItem>
findAll()
Returns all the commerce order items.static List<CommerceOrderItem>
findAll
(int start, int end) Returns a range of all the commerce order items.static 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 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 List<CommerceOrderItem>
findByC_CPI
(long commerceOrderId, long CPInstanceId) Returns all the commerce order items where commerceOrderId = ? and CPInstanceId = ?.static 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 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 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_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 List<CommerceOrderItem>
findByC_S
(long commerceOrderId, boolean subscription) Returns all the commerce order items where commerceOrderId = ? and subscription = ?.static 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 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 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
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 CommerceOrderItem
findByCommerceInventoryBookedQuantityId
(long commerceInventoryBookedQuantityId) Returns the commerce order item where commerceInventoryBookedQuantityId = ? or throws aNoSuchOrderItemException
if it could not be found.static List<CommerceOrderItem>
findByCommerceOrderId
(long commerceOrderId) Returns all the commerce order items where commerceOrderId = ?.static List<CommerceOrderItem>
findByCommerceOrderId
(long commerceOrderId, int start, int end) Returns a range of all the commerce order items where commerceOrderId = ?.static 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 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
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 List<CommerceOrderItem>
findByCPInstanceId
(long CPInstanceId) Returns all the commerce order items where CPInstanceId = ?.static List<CommerceOrderItem>
findByCPInstanceId
(long CPInstanceId, int start, int end) Returns a range of all the commerce order items where CPInstanceId = ?.static 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 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
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 List<CommerceOrderItem>
findByCProductId
(long CProductId) Returns all the commerce order items where CProductId = ?.static List<CommerceOrderItem>
findByCProductId
(long CProductId, int start, int end) Returns a range of all the commerce order items where CProductId = ?.static 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 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
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 List<CommerceOrderItem>
findByCustomerCommerceOrderItemId
(long customerCommerceOrderItemId) Returns all the commerce order items where customerCommerceOrderItemId = ?.static List<CommerceOrderItem>
findByCustomerCommerceOrderItemId
(long customerCommerceOrderItemId, int start, int end) Returns a range of all the commerce order items where customerCommerceOrderItemId = ?.static 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 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
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 CommerceOrderItem
findByERC_C
(String externalReferenceCode, long companyId) Returns the commerce order item where externalReferenceCode = ? and companyId = ? or throws aNoSuchOrderItemException
if it could not be found.static List<CommerceOrderItem>
findByParentCommerceOrderItemId
(long parentCommerceOrderItemId) Returns all the commerce order items where parentCommerceOrderItemId = ?.static List<CommerceOrderItem>
findByParentCommerceOrderItemId
(long parentCommerceOrderItemId, int start, int end) Returns a range of all the commerce order items where parentCommerceOrderItemId = ?.static 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 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
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 CommerceOrderItem
findByPrimaryKey
(long commerceOrderItemId) Returns the commerce order item with the primary key or throws aNoSuchOrderItemException
if it could not be found.static List<CommerceOrderItem>
findByUuid
(String uuid) Returns all the commerce order items where uuid = ?.static List<CommerceOrderItem>
findByUuid
(String uuid, int start, int end) Returns a range of all the commerce order items where uuid = ?.static List<CommerceOrderItem>
findByUuid
(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 List<CommerceOrderItem>
findByUuid
(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 List<CommerceOrderItem>
findByUuid_C
(String uuid, long companyId) Returns all the commerce order items where uuid = ? and companyId = ?.static List<CommerceOrderItem>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce order items where uuid = ? and companyId = ?.static List<CommerceOrderItem>
findByUuid_C
(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 List<CommerceOrderItem>
findByUuid_C
(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_C_First
(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
(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, 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 CommerceOrderItem
findByUuid_First
(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
(String uuid, long groupId) Returns the commerce order item where uuid = ? and groupId = ? or throws aNoSuchOrderItemException
if it could not be found.static CommerceOrderItem
findByUuid_Last
(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, 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 List<CommerceOrderItem>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceOrderItem>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static 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
static CommerceOrderItem
remove
(long commerceOrderItemId) Removes the commerce order item with the primary key from the database.static void
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
(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
(String uuid) Removes all the commerce order items where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the commerce order items where uuid = ? and companyId = ? from the database.static CommerceOrderItem
removeByUUID_G
(String uuid, long groupId) Removes the commerce order item where uuid = ? and groupId = ? 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)
-
Constructor Details
-
CommerceOrderItemUtil
public CommerceOrderItemUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceOrderItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceOrderItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceOrderItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceOrderItem update(CommerceOrderItem commerceOrderItem, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the commerce order items where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce order items
-
findByUuid
Returns a range of all the commerce order items where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order items
-
findByUuid
public static List<CommerceOrderItem> findByUuid(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order items
-
findByUuid
public static List<CommerceOrderItem> findByUuid(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order items
-
findByUuid_First
public static CommerceOrderItem findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the first commerce order item in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByUuid_First
public static CommerceOrderItem fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) Returns the first commerce order item in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order item, or
null
if a matching commerce order item could not be found
-
findByUuid_Last
public static CommerceOrderItem findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the last commerce order item in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByUuid_Last
public static CommerceOrderItem fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) Returns the last commerce order item in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order item, or
null
if a matching commerce order item could not be found
-
findByUuid_PrevAndNext
public static CommerceOrderItem[] findByUuid_PrevAndNext(long commerceOrderItemId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the commerce order items before and after the current commerce order item in the ordered set where uuid = ?.- Parameters:
commerceOrderItemId
- the primary key of the current commerce order itemuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order item
- Throws:
NoSuchOrderItemException
- if a commerce order item with the primary key could not be foundNoSuchOrderItemException
-
removeByUuid
Removes all the commerce order items where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of commerce order items where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce order items
-
findByUUID_G
public static CommerceOrderItem findByUUID_G(String uuid, long groupId) throws NoSuchOrderItemException Returns the commerce order item where uuid = ? and groupId = ? or throws aNoSuchOrderItemException
if it could not be found.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByUUID_G
Returns the commerce order item where uuid = ? and groupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching commerce order item, or
null
if a matching commerce order item could not be found
-
fetchByUUID_G
Returns the commerce order item where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce order item, or
null
if a matching commerce order item could not be found
-
removeByUUID_G
public static CommerceOrderItem removeByUUID_G(String uuid, long groupId) throws NoSuchOrderItemException Removes the commerce order item where uuid = ? and groupId = ? from the database.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the commerce order item that was removed
- Throws:
NoSuchOrderItemException
-
countByUUID_G
Returns the number of commerce order items where uuid = ? and groupId = ?.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the number of matching commerce order items
-
findByUuid_C
Returns all the commerce order items where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching commerce order items
-
findByUuid_C
Returns a range of all the commerce order items where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order items
-
findByUuid_C
public static List<CommerceOrderItem> findByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order items
-
findByUuid_C
public static List<CommerceOrderItem> findByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order items
-
findByUuid_C_First
public static CommerceOrderItem findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the first commerce order item in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByUuid_C_First
public static CommerceOrderItem fetchByUuid_C_First(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 = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order item, or
null
if a matching commerce order item could not be found
-
findByUuid_C_Last
public static CommerceOrderItem findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the last commerce order item in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByUuid_C_Last
public static CommerceOrderItem fetchByUuid_C_Last(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 = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order item, or
null
if a matching commerce order item could not be found
-
findByUuid_C_PrevAndNext
public static CommerceOrderItem[] findByUuid_C_PrevAndNext(long commerceOrderItemId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the commerce order items before and after the current commerce order item in the ordered set where uuid = ? and companyId = ?.- Parameters:
commerceOrderItemId
- the primary key of the current commerce order itemuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order item
- Throws:
NoSuchOrderItemException
- if a commerce order item with the primary key could not be foundNoSuchOrderItemException
-
removeByUuid_C
Removes all the commerce order items where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of commerce order items where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce order items
-
findByCommerceInventoryBookedQuantityId
public static CommerceOrderItem findByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId) throws NoSuchOrderItemException Returns the commerce order item where commerceInventoryBookedQuantityId = ? or throws aNoSuchOrderItemException
if it could not be found.- Parameters:
commerceInventoryBookedQuantityId
- the commerce inventory booked quantity ID- Returns:
- the matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByCommerceInventoryBookedQuantityId
public static CommerceOrderItem fetchByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId) Returns the commerce order item where commerceInventoryBookedQuantityId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
commerceInventoryBookedQuantityId
- the commerce inventory booked quantity ID- Returns:
- the matching commerce order item, or
null
if a matching commerce order item could not be found
-
fetchByCommerceInventoryBookedQuantityId
public static CommerceOrderItem fetchByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId, boolean useFinderCache) Returns the commerce order item where commerceInventoryBookedQuantityId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
commerceInventoryBookedQuantityId
- the commerce inventory booked quantity IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce order item, or
null
if a matching commerce order item could not be found
-
removeByCommerceInventoryBookedQuantityId
public static CommerceOrderItem removeByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId) throws NoSuchOrderItemException Removes the commerce order item where commerceInventoryBookedQuantityId = ? from the database.- Parameters:
commerceInventoryBookedQuantityId
- the commerce inventory booked quantity ID- Returns:
- the commerce order item that was removed
- Throws:
NoSuchOrderItemException
-
countByCommerceInventoryBookedQuantityId
public static int countByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId) Returns the number of commerce order items where commerceInventoryBookedQuantityId = ?.- Parameters:
commerceInventoryBookedQuantityId
- the commerce inventory booked quantity ID- Returns:
- the number of matching commerce order items
-
findByCommerceOrderId
Returns all the commerce order items where commerceOrderId = ?.- Parameters:
commerceOrderId
- the commerce order ID- Returns:
- the matching commerce order items
-
findByCommerceOrderId
public static List<CommerceOrderItem> findByCommerceOrderId(long commerceOrderId, int start, int end) Returns a range of all the commerce order items where commerceOrderId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order items
-
findByCommerceOrderId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order items
-
findByCommerceOrderId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order items
-
findByCommerceOrderId_First
public static CommerceOrderItem findByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the first commerce order item in the ordered set where commerceOrderId = ?.- Parameters:
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByCommerceOrderId_First
public 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 = ?.- Parameters:
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order item, or
null
if a matching commerce order item could not be found
-
findByCommerceOrderId_Last
public static CommerceOrderItem findByCommerceOrderId_Last(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the last commerce order item in the ordered set where commerceOrderId = ?.- Parameters:
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByCommerceOrderId_Last
public 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 = ?.- Parameters:
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order item, or
null
if a matching commerce order item could not be found
-
findByCommerceOrderId_PrevAndNext
public static CommerceOrderItem[] findByCommerceOrderId_PrevAndNext(long commerceOrderItemId, long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the commerce order items before and after the current commerce order item in the ordered set where commerceOrderId = ?.- Parameters:
commerceOrderItemId
- the primary key of the current commerce order itemcommerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order item
- Throws:
NoSuchOrderItemException
- if a commerce order item with the primary key could not be foundNoSuchOrderItemException
-
removeByCommerceOrderId
public static void removeByCommerceOrderId(long commerceOrderId) Removes all the commerce order items where commerceOrderId = ? from the database.- Parameters:
commerceOrderId
- the commerce order ID
-
countByCommerceOrderId
public static int countByCommerceOrderId(long commerceOrderId) Returns the number of commerce order items where commerceOrderId = ?.- Parameters:
commerceOrderId
- the commerce order ID- Returns:
- the number of matching commerce order items
-
findByCPInstanceId
Returns all the commerce order items where CPInstanceId = ?.- Parameters:
CPInstanceId
- the cp instance ID- Returns:
- the matching commerce order items
-
findByCPInstanceId
Returns a range of all the commerce order items where CPInstanceId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order items
-
findByCPInstanceId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order items
-
findByCPInstanceId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order items
-
findByCPInstanceId_First
public static CommerceOrderItem findByCPInstanceId_First(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the first commerce order item in the ordered set where CPInstanceId = ?.- Parameters:
CPInstanceId
- the cp instance IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByCPInstanceId_First
public 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 = ?.- Parameters:
CPInstanceId
- the cp instance IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order item, or
null
if a matching commerce order item could not be found
-
findByCPInstanceId_Last
public static CommerceOrderItem findByCPInstanceId_Last(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the last commerce order item in the ordered set where CPInstanceId = ?.- Parameters:
CPInstanceId
- the cp instance IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByCPInstanceId_Last
public 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 = ?.- Parameters:
CPInstanceId
- the cp instance IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order item, or
null
if a matching commerce order item could not be found
-
findByCPInstanceId_PrevAndNext
public static CommerceOrderItem[] findByCPInstanceId_PrevAndNext(long commerceOrderItemId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the commerce order items before and after the current commerce order item in the ordered set where CPInstanceId = ?.- Parameters:
commerceOrderItemId
- the primary key of the current commerce order itemCPInstanceId
- the cp instance IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order item
- Throws:
NoSuchOrderItemException
- if a commerce order item with the primary key could not be foundNoSuchOrderItemException
-
removeByCPInstanceId
public static void removeByCPInstanceId(long CPInstanceId) Removes all the commerce order items where CPInstanceId = ? from the database.- Parameters:
CPInstanceId
- the cp instance ID
-
countByCPInstanceId
public static int countByCPInstanceId(long CPInstanceId) Returns the number of commerce order items where CPInstanceId = ?.- Parameters:
CPInstanceId
- the cp instance ID- Returns:
- the number of matching commerce order items
-
findByCProductId
Returns all the commerce order items where CProductId = ?.- Parameters:
CProductId
- the c product ID- Returns:
- the matching commerce order items
-
findByCProductId
Returns a range of all the commerce order items where CProductId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order items
-
findByCProductId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order items
-
findByCProductId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order items
-
findByCProductId_First
public static CommerceOrderItem findByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the first commerce order item in the ordered set where CProductId = ?.- Parameters:
CProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByCProductId_First
public 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 = ?.- Parameters:
CProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order item, or
null
if a matching commerce order item could not be found
-
findByCProductId_Last
public static CommerceOrderItem findByCProductId_Last(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the last commerce order item in the ordered set where CProductId = ?.- Parameters:
CProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByCProductId_Last
public 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 = ?.- Parameters:
CProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order item, or
null
if a matching commerce order item could not be found
-
findByCProductId_PrevAndNext
public static CommerceOrderItem[] findByCProductId_PrevAndNext(long commerceOrderItemId, long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the commerce order items before and after the current commerce order item in the ordered set where CProductId = ?.- Parameters:
commerceOrderItemId
- the primary key of the current commerce order itemCProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order item
- Throws:
NoSuchOrderItemException
- if a commerce order item with the primary key could not be foundNoSuchOrderItemException
-
removeByCProductId
public static void removeByCProductId(long CProductId) Removes all the commerce order items where CProductId = ? from the database.- Parameters:
CProductId
- the c product ID
-
countByCProductId
public static int countByCProductId(long CProductId) Returns the number of commerce order items where CProductId = ?.- Parameters:
CProductId
- the c product ID- Returns:
- the number of matching commerce order items
-
findByCustomerCommerceOrderItemId
public static List<CommerceOrderItem> findByCustomerCommerceOrderItemId(long customerCommerceOrderItemId) Returns all the commerce order items where customerCommerceOrderItemId = ?.- Parameters:
customerCommerceOrderItemId
- the customer commerce order item ID- Returns:
- the matching commerce order items
-
findByCustomerCommerceOrderItemId
public static List<CommerceOrderItem> findByCustomerCommerceOrderItemId(long customerCommerceOrderItemId, int start, int end) Returns a range of all the commerce order items where customerCommerceOrderItemId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order items
-
findByCustomerCommerceOrderItemId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order items
-
findByCustomerCommerceOrderItemId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order items
-
findByCustomerCommerceOrderItemId_First
public static CommerceOrderItem findByCustomerCommerceOrderItemId_First(long customerCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the first commerce order item in the ordered set where customerCommerceOrderItemId = ?.- Parameters:
customerCommerceOrderItemId
- the customer commerce order item IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByCustomerCommerceOrderItemId_First
public 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 = ?.- Parameters:
customerCommerceOrderItemId
- the customer commerce order item IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order item, or
null
if a matching commerce order item could not be found
-
findByCustomerCommerceOrderItemId_Last
public static CommerceOrderItem findByCustomerCommerceOrderItemId_Last(long customerCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the last commerce order item in the ordered set where customerCommerceOrderItemId = ?.- Parameters:
customerCommerceOrderItemId
- the customer commerce order item IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByCustomerCommerceOrderItemId_Last
public 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 = ?.- Parameters:
customerCommerceOrderItemId
- the customer commerce order item IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order item, or
null
if a matching commerce order item could not be found
-
findByCustomerCommerceOrderItemId_PrevAndNext
public static CommerceOrderItem[] findByCustomerCommerceOrderItemId_PrevAndNext(long commerceOrderItemId, long customerCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the commerce order items before and after the current commerce order item in the ordered set where customerCommerceOrderItemId = ?.- Parameters:
commerceOrderItemId
- the primary key of the current commerce order itemcustomerCommerceOrderItemId
- the customer commerce order item IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order item
- Throws:
NoSuchOrderItemException
- if a commerce order item with the primary key could not be foundNoSuchOrderItemException
-
removeByCustomerCommerceOrderItemId
public static void removeByCustomerCommerceOrderItemId(long customerCommerceOrderItemId) Removes all the commerce order items where customerCommerceOrderItemId = ? from the database.- Parameters:
customerCommerceOrderItemId
- the customer commerce order item ID
-
countByCustomerCommerceOrderItemId
public static int countByCustomerCommerceOrderItemId(long customerCommerceOrderItemId) Returns the number of commerce order items where customerCommerceOrderItemId = ?.- Parameters:
customerCommerceOrderItemId
- the customer commerce order item ID- Returns:
- the number of matching commerce order items
-
findByParentCommerceOrderItemId
public static List<CommerceOrderItem> findByParentCommerceOrderItemId(long parentCommerceOrderItemId) Returns all the commerce order items where parentCommerceOrderItemId = ?.- Parameters:
parentCommerceOrderItemId
- the parent commerce order item ID- Returns:
- the matching commerce order items
-
findByParentCommerceOrderItemId
public static List<CommerceOrderItem> findByParentCommerceOrderItemId(long parentCommerceOrderItemId, int start, int end) Returns a range of all the commerce order items where parentCommerceOrderItemId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order items
-
findByParentCommerceOrderItemId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order items
-
findByParentCommerceOrderItemId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order items
-
findByParentCommerceOrderItemId_First
public static CommerceOrderItem findByParentCommerceOrderItemId_First(long parentCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the first commerce order item in the ordered set where parentCommerceOrderItemId = ?.- Parameters:
parentCommerceOrderItemId
- the parent commerce order item IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByParentCommerceOrderItemId_First
public 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 = ?.- Parameters:
parentCommerceOrderItemId
- the parent commerce order item IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order item, or
null
if a matching commerce order item could not be found
-
findByParentCommerceOrderItemId_Last
public static CommerceOrderItem findByParentCommerceOrderItemId_Last(long parentCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the last commerce order item in the ordered set where parentCommerceOrderItemId = ?.- Parameters:
parentCommerceOrderItemId
- the parent commerce order item IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByParentCommerceOrderItemId_Last
public 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 = ?.- Parameters:
parentCommerceOrderItemId
- the parent commerce order item IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order item, or
null
if a matching commerce order item could not be found
-
findByParentCommerceOrderItemId_PrevAndNext
public static CommerceOrderItem[] findByParentCommerceOrderItemId_PrevAndNext(long commerceOrderItemId, long parentCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the commerce order items before and after the current commerce order item in the ordered set where parentCommerceOrderItemId = ?.- Parameters:
commerceOrderItemId
- the primary key of the current commerce order itemparentCommerceOrderItemId
- the parent commerce order item IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order item
- Throws:
NoSuchOrderItemException
- if a commerce order item with the primary key could not be foundNoSuchOrderItemException
-
removeByParentCommerceOrderItemId
public static void removeByParentCommerceOrderItemId(long parentCommerceOrderItemId) Removes all the commerce order items where parentCommerceOrderItemId = ? from the database.- Parameters:
parentCommerceOrderItemId
- the parent commerce order item ID
-
countByParentCommerceOrderItemId
public static int countByParentCommerceOrderItemId(long parentCommerceOrderItemId) Returns the number of commerce order items where parentCommerceOrderItemId = ?.- Parameters:
parentCommerceOrderItemId
- the parent commerce order item ID- Returns:
- the number of matching commerce order items
-
findByC_CPI
Returns all the commerce order items where commerceOrderId = ? and CPInstanceId = ?.- Parameters:
commerceOrderId
- the commerce order IDCPInstanceId
- the cp instance ID- Returns:
- the matching commerce order items
-
findByC_CPI
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order items
-
findByC_CPI
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order items
-
findByC_CPI
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order items
-
findByC_CPI_First
public static CommerceOrderItem findByC_CPI_First(long commerceOrderId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the first commerce order item in the ordered set where commerceOrderId = ? and CPInstanceId = ?.- Parameters:
commerceOrderId
- the commerce order IDCPInstanceId
- the cp instance IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByC_CPI_First
public 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 = ?.- Parameters:
commerceOrderId
- the commerce order IDCPInstanceId
- the cp instance IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order item, or
null
if a matching commerce order item could not be found
-
findByC_CPI_Last
public static CommerceOrderItem findByC_CPI_Last(long commerceOrderId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the last commerce order item in the ordered set where commerceOrderId = ? and CPInstanceId = ?.- Parameters:
commerceOrderId
- the commerce order IDCPInstanceId
- the cp instance IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByC_CPI_Last
public 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 = ?.- Parameters:
commerceOrderId
- the commerce order IDCPInstanceId
- the cp instance IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order item, or
null
if a matching commerce order item could not be found
-
findByC_CPI_PrevAndNext
public static CommerceOrderItem[] findByC_CPI_PrevAndNext(long commerceOrderItemId, long commerceOrderId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the commerce order items before and after the current commerce order item in the ordered set where commerceOrderId = ? and CPInstanceId = ?.- Parameters:
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 (optionallynull
)- Returns:
- the previous, current, and next commerce order item
- Throws:
NoSuchOrderItemException
- if a commerce order item with the primary key could not be foundNoSuchOrderItemException
-
removeByC_CPI
public static void removeByC_CPI(long commerceOrderId, long CPInstanceId) Removes all the commerce order items where commerceOrderId = ? and CPInstanceId = ? from the database.- Parameters:
commerceOrderId
- the commerce order IDCPInstanceId
- the cp instance ID
-
countByC_CPI
public static int countByC_CPI(long commerceOrderId, long CPInstanceId) Returns the number of commerce order items where commerceOrderId = ? and CPInstanceId = ?.- Parameters:
commerceOrderId
- the commerce order IDCPInstanceId
- the cp instance ID- Returns:
- the number of matching commerce order items
-
findByC_S
Returns all the commerce order items where commerceOrderId = ? and subscription = ?.- Parameters:
commerceOrderId
- the commerce order IDsubscription
- the subscription- Returns:
- the matching commerce order items
-
findByC_S
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order items
-
findByC_S
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order items
-
findByC_S
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order items
-
findByC_S_First
public static CommerceOrderItem findByC_S_First(long commerceOrderId, boolean subscription, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the first commerce order item in the ordered set where commerceOrderId = ? and subscription = ?.- Parameters:
commerceOrderId
- the commerce order IDsubscription
- the subscriptionorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByC_S_First
public 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 = ?.- Parameters:
commerceOrderId
- the commerce order IDsubscription
- the subscriptionorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order item, or
null
if a matching commerce order item could not be found
-
findByC_S_Last
public static CommerceOrderItem findByC_S_Last(long commerceOrderId, boolean subscription, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the last commerce order item in the ordered set where commerceOrderId = ? and subscription = ?.- Parameters:
commerceOrderId
- the commerce order IDsubscription
- the subscriptionorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByC_S_Last
public 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 = ?.- Parameters:
commerceOrderId
- the commerce order IDsubscription
- the subscriptionorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order item, or
null
if a matching commerce order item could not be found
-
findByC_S_PrevAndNext
public static CommerceOrderItem[] findByC_S_PrevAndNext(long commerceOrderItemId, long commerceOrderId, boolean subscription, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException Returns the commerce order items before and after the current commerce order item in the ordered set where commerceOrderId = ? and subscription = ?.- Parameters:
commerceOrderItemId
- the primary key of the current commerce order itemcommerceOrderId
- the commerce order IDsubscription
- the subscriptionorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order item
- Throws:
NoSuchOrderItemException
- if a commerce order item with the primary key could not be foundNoSuchOrderItemException
-
removeByC_S
public static void removeByC_S(long commerceOrderId, boolean subscription) Removes all the commerce order items where commerceOrderId = ? and subscription = ? from the database.- Parameters:
commerceOrderId
- the commerce order IDsubscription
- the subscription
-
countByC_S
public static int countByC_S(long commerceOrderId, boolean subscription) Returns the number of commerce order items where commerceOrderId = ? and subscription = ?.- Parameters:
commerceOrderId
- the commerce order IDsubscription
- the subscription- Returns:
- the number of matching commerce order items
-
findByERC_C
public static CommerceOrderItem findByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrderItemException Returns the commerce order item where externalReferenceCode = ? and companyId = ? or throws aNoSuchOrderItemException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce order item
- Throws:
NoSuchOrderItemException
- if a matching commerce order item could not be foundNoSuchOrderItemException
-
fetchByERC_C
Returns the commerce order item where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce order item, or
null
if a matching commerce order item could not be found
-
fetchByERC_C
public static CommerceOrderItem fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce order item where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce order item, or
null
if a matching commerce order item could not be found
-
removeByERC_C
public static CommerceOrderItem removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrderItemException Removes the commerce order item where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the commerce order item that was removed
- Throws:
NoSuchOrderItemException
-
countByERC_C
Returns the number of commerce order items where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching commerce order items
-
cacheResult
Caches the commerce order item in the entity cache if it is enabled.- Parameters:
commerceOrderItem
- the commerce order item
-
cacheResult
Caches the commerce order items in the entity cache if it is enabled.- Parameters:
commerceOrderItems
- the commerce order items
-
create
Creates a new commerce order item with the primary key. Does not add the commerce order item to the database.- Parameters:
commerceOrderItemId
- the primary key for the new commerce order item- Returns:
- the new commerce order item
-
remove
Removes the commerce order item with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceOrderItemId
- the primary key of the commerce order item- Returns:
- the commerce order item that was removed
- Throws:
NoSuchOrderItemException
- if a commerce order item with the primary key could not be foundNoSuchOrderItemException
-
updateImpl
-
findByPrimaryKey
public static CommerceOrderItem findByPrimaryKey(long commerceOrderItemId) throws NoSuchOrderItemException Returns the commerce order item with the primary key or throws aNoSuchOrderItemException
if it could not be found.- Parameters:
commerceOrderItemId
- the primary key of the commerce order item- Returns:
- the commerce order item
- Throws:
NoSuchOrderItemException
- if a commerce order item with the primary key could not be foundNoSuchOrderItemException
-
fetchByPrimaryKey
Returns the commerce order item with the primary key or returnsnull
if it could not be found.- Parameters:
commerceOrderItemId
- the primary key of the commerce order item- Returns:
- the commerce order item, or
null
if a commerce order item with the primary key could not be found
-
findAll
Returns all the commerce order items.- Returns:
- the commerce order items
-
findAll
Returns a range of all the commerce order items.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
start
- the lower bound of the range of commerce order itemsend
- the upper bound of the range of commerce order items (not inclusive)- Returns:
- the range of commerce order items
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of commerce order items
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderItemModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce order items
-
removeAll
public static void removeAll()Removes all the commerce order items from the database. -
countAll
public static int countAll()Returns the number of commerce order items.- Returns:
- the number of commerce order items
-
getPersistence
-
setPersistence
-