Interface CommerceOrderItemLocalService
- All Superinterfaces:
com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.PersistedModelLocalService
- All Known Implementing Classes:
CommerceOrderItemLocalServiceWrapper
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionaddCommerceOrderItem
(long userId, long commerceOrderId, long cpInstanceId, String json, BigDecimal quantity, long replacedCPInstanceId, BigDecimal shippedQuantity, String unitOfMeasureKey, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) addCommerceOrderItem
(CommerceOrderItem commerceOrderItem) Adds the commerce order item to the database.addOrUpdateCommerceOrderItem
(long userId, long commerceOrderId, long cpInstanceId, String json, BigDecimal quantity, long replacedCPInstanceId, BigDecimal shippedQuantity, String unitOfMeasureKey, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) int
countSubscriptionCommerceOrderItems
(long commerceOrderId) createCommerceOrderItem
(long commerceOrderItemId) Creates a new commerce order item with the primary key.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) deleteCommerceOrderItem
(long commerceOrderItemId) Deletes the commerce order item with the primary key from the database.deleteCommerceOrderItem
(long userId, long commerceOrderItemId) deleteCommerceOrderItem
(long userId, CommerceOrderItem commerceOrderItem) deleteCommerceOrderItem
(long userId, CommerceOrderItem commerceOrderItem, CommerceContext commerceContext) deleteCommerceOrderItem
(CommerceOrderItem commerceOrderItem) Deletes the commerce order item from the database.void
deleteCommerceOrderItems
(long userId, long commerceOrderId) void
deleteCommerceOrderItemsByCPInstanceId
(long userId, long cpInstanceId) void
deleteMissingCommerceOrderItems
(long userId, long commerceOrderId, Long[] commerceOrderItemIds, String[] externalReferenceCodes) com.liferay.portal.kernel.model.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.DynamicQuery
<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) Performs a dynamic query on the database and returns a range of the matching rows.<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) Returns the number of rows matching the dynamic query.fetchCommerceOrderItem
(long commerceOrderItemId) fetchCommerceOrderItemByCommerceInventoryBookedQuantityId
(long commerceInventoryBookedQuantityId) fetchCommerceOrderItemByExternalReferenceCode
(String externalReferenceCode, long companyId) fetchCommerceOrderItemByUuidAndGroupId
(String uuid, long groupId) Returns the commerce order item matching the UUID and group.com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
getAvailableForShipmentCommerceOrderItems
(long commerceOrderId) getChildCommerceOrderItems
(long parentCommerceOrderItemId) getCommerceInventoryWarehouseItemQuantity
(long commerceOrderItemId, long commerceInventoryWarehouseId) getCommerceOrderItem
(long commerceOrderItemId) Returns the commerce order item with the primary key.getCommerceOrderItemByExternalReferenceCode
(String externalReferenceCode, long companyId) getCommerceOrderItemByUuidAndGroupId
(String uuid, long groupId) Returns the commerce order item matching the UUID and group.getCommerceOrderItems
(int start, int end) Returns a range of all the commerce order items.getCommerceOrderItems
(long cpInstanceId, int[] orderStatuses, String unitOfMeasureKey, int start, int end) getCommerceOrderItems
(long commerceOrderId, int start, int end) getCommerceOrderItems
(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) getCommerceOrderItems
(long groupId, long commerceAccountId, int[] orderStatuses, int start, int end) getCommerceOrderItems
(long commerceOrderId, long cpInstanceId, int start, int end) getCommerceOrderItems
(long commerceOrderId, long cpInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) getCommerceOrderItemsByUuidAndCompanyId
(String uuid, long companyId) Returns all the commerce order items matching the UUID and company.getCommerceOrderItemsByUuidAndCompanyId
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) Returns a range of commerce order items matching the UUID and company.int
Returns the number of commerce order items.int
getCommerceOrderItemsCount
(long commerceOrderId) int
getCommerceOrderItemsCount
(long commerceOrderId, long cpInstanceId) int
getCommerceOrderItemsCount
(long groupId, long commerceAccountId, int[] orderStatuses) getCommerceOrderItemsQuantity
(long commerceOrderId) getCustomerCommerceOrderIds
(long commerceOrderId) int
getCustomerCommerceOrderIdsCount
(long commerceOrderId) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
getExportActionableDynamicQuery
(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) getSubscriptionCommerceOrderItems
(long commerceOrderId) getSupplierCommerceOrderIds
(long commerceOrderId) int
getSupplierCommerceOrderIdsCount
(long commerceOrderId) getSupplierCommerceOrderItems
(long customerCommerceOrderItemId, int start, int end) importCommerceOrderItem
(long userId, String externalReferenceCode, long commerceOrderItemId, long commerceOrderId, long cpInstanceId, String cpMeasurementUnitKey, BigDecimal quantity, BigDecimal shippedQuantity, BigDecimal unitOfMeasureIncrementalOrderQuantity, String unitOfMeasureKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) incrementShippedQuantity
(long commerceOrderItemId, BigDecimal shippedQuantity) com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrderItem>
searchCommerceOrderItems
(long commerceOrderId, long parentCommerceOrderItemId, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrderItem>
searchCommerceOrderItems
(long commerceOrderId, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrderItem>
searchCommerceOrderItems
(long commerceOrderId, String name, String sku, boolean andOperator, int start, int end, com.liferay.portal.kernel.search.Sort sort) updateCommerceOrderItem
(long commerceOrderItemId, long commerceInventoryBookedQuantityId) updateCommerceOrderItem
(long userId, long commerceOrderItemId, long cpMeasurementUnitId, BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateCommerceOrderItem
(long userId, long commerceOrderItemId, long cpMeasurementUnitId, BigDecimal quantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateCommerceOrderItem
(long userId, long commerceOrderItemId, String json, BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateCommerceOrderItem
(long userId, long commerceOrderItemId, String json, BigDecimal quantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateCommerceOrderItem
(long userId, long commerceOrderItemId, BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateCommerceOrderItem
(CommerceOrderItem commerceOrderItem) Updates the commerce order item in the database or adds it if it does not yet exist.updateCommerceOrderItemDeliveryDate
(long commerceOrderItemId, Date requestedDeliveryDate) updateCommerceOrderItemInfo
(long commerceOrderItemId, long shippingAddressId, String deliveryGroupName, String printedNote) updateCommerceOrderItemInfo
(long commerceOrderItemId, long shippingAddressId, String deliveryGroupName, String printedNote, int requestedDeliveryDateMonth, int requestedDeliveryDateDay, int requestedDeliveryDateYear) updateCommerceOrderItemInfo
(long commerceOrderItemId, String deliveryGroupName, long shippingAddressId, String printedNote, int requestedDeliveryDateMonth, int requestedDeliveryDateDay, int requestedDeliveryDateYear, int requestedDeliveryDateHour, int requestedDeliveryDateMinute, com.liferay.portal.kernel.service.ServiceContext serviceContext) Deprecated.As of Athanasius (7.3.x)updateCommerceOrderItemPrice
(long commerceOrderItemId, CommerceContext commerceContext) updateCommerceOrderItemPrices
(long commerceOrderItemId, BigDecimal discountAmount, BigDecimal discountPercentageLevel1, BigDecimal discountPercentageLevel2, BigDecimal discountPercentageLevel3, BigDecimal discountPercentageLevel4, BigDecimal finalPrice, BigDecimal promoPrice, BigDecimal unitPrice) updateCommerceOrderItemPrices
(long commerceOrderItemId, BigDecimal discountAmount, BigDecimal discountAmountWithTaxAmount, BigDecimal discountPercentageLevel1, BigDecimal discountPercentageLevel1WithTaxAmount, BigDecimal discountPercentageLevel2, BigDecimal discountPercentageLevel2WithTaxAmount, BigDecimal discountPercentageLevel3, BigDecimal discountPercentageLevel3WithTaxAmount, BigDecimal discountPercentageLevel4, BigDecimal discountPercentageLevel4WithTaxAmount, BigDecimal finalPrice, BigDecimal finalPriceWithTaxAmount, BigDecimal promoPrice, BigDecimal promoPriceWithTaxAmount, BigDecimal unitPrice, BigDecimal unitPriceWithTaxAmount) updateCommerceOrderItemUnitPrice
(long userId, long commerceOrderItemId, BigDecimal quantity, BigDecimal unitPrice) updateCommerceOrderItemUnitPrice
(long commerceOrderItemId, BigDecimal unitPrice) Deprecated.As of Athanasius (7.3.x)updateCustomFields
(long commerceOrderItemId, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateExternalReferenceCode
(long commerceOrderItemId, String externalReferenceCode) Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel, getBasePersistence
-
Method Details
-
addCommerceOrderItem
@Indexable(type=REINDEX) CommerceOrderItem addCommerceOrderItem(CommerceOrderItem commerceOrderItem) Adds the commerce order item to the database. Also notifies the appropriate model listeners.Important: Inspect CommerceOrderItemLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Parameters:
commerceOrderItem
- the commerce order item- Returns:
- the commerce order item that was added
-
addCommerceOrderItem
@Indexable(type=REINDEX) CommerceOrderItem addCommerceOrderItem(long userId, long commerceOrderId, long cpInstanceId, String json, BigDecimal quantity, long replacedCPInstanceId, BigDecimal shippedQuantity, String unitOfMeasureKey, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrUpdateCommerceOrderItem
CommerceOrderItem addOrUpdateCommerceOrderItem(long userId, long commerceOrderId, long cpInstanceId, String json, BigDecimal quantity, long replacedCPInstanceId, BigDecimal shippedQuantity, String unitOfMeasureKey, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
countSubscriptionCommerceOrderItems
int countSubscriptionCommerceOrderItems(long commerceOrderId) -
createCommerceOrderItem
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
-
createPersistedModel
com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceOrderItem
@Indexable(type=DELETE) CommerceOrderItem deleteCommerceOrderItem(CommerceOrderItem commerceOrderItem) Deletes the commerce order item from the database. Also notifies the appropriate model listeners.Important: Inspect CommerceOrderItemLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Parameters:
commerceOrderItem
- the commerce order item- Returns:
- the commerce order item that was removed
-
deleteCommerceOrderItem
@Indexable(type=DELETE) CommerceOrderItem deleteCommerceOrderItem(long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException Deletes the commerce order item with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect CommerceOrderItemLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Parameters:
commerceOrderItemId
- the primary key of the commerce order item- Returns:
- the commerce order item that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a commerce order item with the primary key could not be found
-
deleteCommerceOrderItem
@Indexable(type=DELETE) CommerceOrderItem deleteCommerceOrderItem(long userId, CommerceOrderItem commerceOrderItem) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceOrderItem
@Indexable(type=DELETE) CommerceOrderItem deleteCommerceOrderItem(long userId, CommerceOrderItem commerceOrderItem, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceOrderItem
CommerceOrderItem deleteCommerceOrderItem(long userId, long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceOrderItems
void deleteCommerceOrderItems(long userId, long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceOrderItemsByCPInstanceId
void deleteCommerceOrderItemsByCPInstanceId(long userId, long cpInstanceId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMissingCommerceOrderItems
void deleteMissingCommerceOrderItems(long userId, long commerceOrderId, Long[] commerceOrderItemIds, String[] externalReferenceCodes) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deletePersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() -
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) Performs a dynamic query on the database and returns a range of the matching rows.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
tocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.model.impl.CommerceOrderItemModelImpl
.- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.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
tocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.model.impl.CommerceOrderItemModelImpl
.- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchCommerceOrderItem
@Transactional(propagation=SUPPORTS, readOnly=true) CommerceOrderItem fetchCommerceOrderItem(long commerceOrderItemId) -
fetchCommerceOrderItemByCommerceInventoryBookedQuantityId
@Transactional(propagation=SUPPORTS, readOnly=true) CommerceOrderItem fetchCommerceOrderItemByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId) -
fetchCommerceOrderItemByExternalReferenceCode
@Transactional(propagation=SUPPORTS, readOnly=true) CommerceOrderItem fetchCommerceOrderItemByExternalReferenceCode(String externalReferenceCode, long companyId) -
fetchCommerceOrderItemByUuidAndGroupId
@Transactional(propagation=SUPPORTS, readOnly=true) CommerceOrderItem fetchCommerceOrderItemByUuidAndGroupId(String uuid, long groupId) Returns the commerce order item matching the UUID and group.- Parameters:
uuid
- the commerce order item's UUIDgroupId
- the primary key of the group- Returns:
- the matching commerce order item, or
null
if a matching commerce order item could not be found
-
getActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() -
getAvailableForShipmentCommerceOrderItems
@Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceOrderItem> getAvailableForShipmentCommerceOrderItems(long commerceOrderId) -
getChildCommerceOrderItems
@Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceOrderItem> getChildCommerceOrderItems(long parentCommerceOrderItemId) -
getCommerceInventoryWarehouseItemQuantity
@Transactional(propagation=SUPPORTS, readOnly=true) BigDecimal getCommerceInventoryWarehouseItemQuantity(long commerceOrderItemId, long commerceInventoryWarehouseId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceOrderItem
@Transactional(propagation=SUPPORTS, readOnly=true) CommerceOrderItem getCommerceOrderItem(long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException Returns the commerce order item with the primary key.- Parameters:
commerceOrderItemId
- the primary key of the commerce order item- Returns:
- the commerce order item
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a commerce order item with the primary key could not be found
-
getCommerceOrderItemByExternalReferenceCode
@Transactional(propagation=SUPPORTS, readOnly=true) CommerceOrderItem getCommerceOrderItemByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceOrderItemByUuidAndGroupId
@Transactional(propagation=SUPPORTS, readOnly=true) CommerceOrderItem getCommerceOrderItemByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException Returns the commerce order item matching the UUID and group.- Parameters:
uuid
- the commerce order item's UUIDgroupId
- the primary key of the group- Returns:
- the matching commerce order item
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a matching commerce order item could not be found
-
getCommerceOrderItems
@Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceOrderItem> getCommerceOrderItems(int start, int end) 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
tocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.model.impl.CommerceOrderItemModelImpl
.- 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
-
getCommerceOrderItems
@Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, int start, int end) -
getCommerceOrderItems
@Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) -
getCommerceOrderItems
@Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceOrderItem> getCommerceOrderItems(long cpInstanceId, int[] orderStatuses, String unitOfMeasureKey, int start, int end) -
getCommerceOrderItems
@Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, long cpInstanceId, int start, int end) -
getCommerceOrderItems
@Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, long cpInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) -
getCommerceOrderItems
@Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceOrderItem> getCommerceOrderItems(long groupId, long commerceAccountId, int[] orderStatuses, int start, int end) -
getCommerceOrderItemsByUuidAndCompanyId
@Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceOrderItem> getCommerceOrderItemsByUuidAndCompanyId(String uuid, long companyId) Returns all the commerce order items matching the UUID and company.- Parameters:
uuid
- the UUID of the commerce order itemscompanyId
- the primary key of the company- Returns:
- the matching commerce order items, or an empty list if no matches were found
-
getCommerceOrderItemsByUuidAndCompanyId
@Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceOrderItem> getCommerceOrderItemsByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) Returns a range of commerce order items matching the UUID and company.- Parameters:
uuid
- the UUID of the commerce order itemscompanyId
- the primary key of the companystart
- 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 range of matching commerce order items, or an empty list if no matches were found
-
getCommerceOrderItemsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceOrderItemsCount()Returns the number of commerce order items.- Returns:
- the number of commerce order items
-
getCommerceOrderItemsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceOrderItemsCount(long commerceOrderId) -
getCommerceOrderItemsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceOrderItemsCount(long commerceOrderId, long cpInstanceId) -
getCommerceOrderItemsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceOrderItemsCount(long groupId, long commerceAccountId, int[] orderStatuses) -
getCommerceOrderItemsQuantity
@Transactional(propagation=SUPPORTS, readOnly=true) BigDecimal getCommerceOrderItemsQuantity(long commerceOrderId) -
getCustomerCommerceOrderIds
-
getCustomerCommerceOrderIdsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getCustomerCommerceOrderIdsCount(long commerceOrderId) -
getExportActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) -
getIndexableActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() -
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPersistedModel
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getSubscriptionCommerceOrderItems
@Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceOrderItem> getSubscriptionCommerceOrderItems(long commerceOrderId) -
getSupplierCommerceOrderIds
-
getSupplierCommerceOrderIdsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getSupplierCommerceOrderIdsCount(long commerceOrderId) -
getSupplierCommerceOrderItems
@Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceOrderItem> getSupplierCommerceOrderItems(long customerCommerceOrderItemId, int start, int end) -
importCommerceOrderItem
@Indexable(type=REINDEX) CommerceOrderItem importCommerceOrderItem(long userId, String externalReferenceCode, long commerceOrderItemId, long commerceOrderId, long cpInstanceId, String cpMeasurementUnitKey, BigDecimal quantity, BigDecimal shippedQuantity, BigDecimal unitOfMeasureIncrementalOrderQuantity, String unitOfMeasureKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
incrementShippedQuantity
CommerceOrderItem incrementShippedQuantity(long commerceOrderItemId, BigDecimal shippedQuantity) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCommerceOrderItems
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrderItem> searchCommerceOrderItems(long commerceOrderId, long parentCommerceOrderItemId, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCommerceOrderItems
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrderItem> searchCommerceOrderItems(long commerceOrderId, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCommerceOrderItems
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrderItem> searchCommerceOrderItems(long commerceOrderId, String name, String sku, boolean andOperator, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItem
@Indexable(type=REINDEX) CommerceOrderItem updateCommerceOrderItem(CommerceOrderItem commerceOrderItem) Updates the commerce order item in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect CommerceOrderItemLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Parameters:
commerceOrderItem
- the commerce order item- Returns:
- the commerce order item that was updated
-
updateCommerceOrderItem
CommerceOrderItem updateCommerceOrderItem(long commerceOrderItemId, long commerceInventoryBookedQuantityId) throws NoSuchOrderItemException - Throws:
NoSuchOrderItemException
-
updateCommerceOrderItem
CommerceOrderItem updateCommerceOrderItem(long userId, long commerceOrderItemId, BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItem
CommerceOrderItem updateCommerceOrderItem(long userId, long commerceOrderItemId, long cpMeasurementUnitId, BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItem
CommerceOrderItem updateCommerceOrderItem(long userId, long commerceOrderItemId, long cpMeasurementUnitId, BigDecimal quantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItem
@Indexable(type=REINDEX) CommerceOrderItem updateCommerceOrderItem(long userId, long commerceOrderItemId, String json, BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItem
@Indexable(type=REINDEX) CommerceOrderItem updateCommerceOrderItem(long userId, long commerceOrderItemId, String json, BigDecimal quantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemDeliveryDate
@Indexable(type=REINDEX) CommerceOrderItem updateCommerceOrderItemDeliveryDate(long commerceOrderItemId, Date requestedDeliveryDate) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemInfo
@Indexable(type=REINDEX) CommerceOrderItem updateCommerceOrderItemInfo(long commerceOrderItemId, long shippingAddressId, String deliveryGroupName, String printedNote) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemInfo
@Indexable(type=REINDEX) CommerceOrderItem updateCommerceOrderItemInfo(long commerceOrderItemId, long shippingAddressId, String deliveryGroupName, String printedNote, int requestedDeliveryDateMonth, int requestedDeliveryDateDay, int requestedDeliveryDateYear) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemInfo
@Deprecated CommerceOrderItem updateCommerceOrderItemInfo(long commerceOrderItemId, String deliveryGroupName, long shippingAddressId, String printedNote, int requestedDeliveryDateMonth, int requestedDeliveryDateDay, int requestedDeliveryDateYear, int requestedDeliveryDateHour, int requestedDeliveryDateMinute, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Athanasius (7.3.x)- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemPrice
@Indexable(type=REINDEX) CommerceOrderItem updateCommerceOrderItemPrice(long commerceOrderItemId, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemPrices
@Indexable(type=REINDEX) CommerceOrderItem updateCommerceOrderItemPrices(long commerceOrderItemId, BigDecimal discountAmount, BigDecimal discountPercentageLevel1, BigDecimal discountPercentageLevel2, BigDecimal discountPercentageLevel3, BigDecimal discountPercentageLevel4, BigDecimal finalPrice, BigDecimal promoPrice, BigDecimal unitPrice) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemPrices
@Indexable(type=REINDEX) CommerceOrderItem updateCommerceOrderItemPrices(long commerceOrderItemId, BigDecimal discountAmount, BigDecimal discountAmountWithTaxAmount, BigDecimal discountPercentageLevel1, BigDecimal discountPercentageLevel1WithTaxAmount, BigDecimal discountPercentageLevel2, BigDecimal discountPercentageLevel2WithTaxAmount, BigDecimal discountPercentageLevel3, BigDecimal discountPercentageLevel3WithTaxAmount, BigDecimal discountPercentageLevel4, BigDecimal discountPercentageLevel4WithTaxAmount, BigDecimal finalPrice, BigDecimal finalPriceWithTaxAmount, BigDecimal promoPrice, BigDecimal promoPriceWithTaxAmount, BigDecimal unitPrice, BigDecimal unitPriceWithTaxAmount) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemUnitPrice
@Deprecated CommerceOrderItem updateCommerceOrderItemUnitPrice(long commerceOrderItemId, BigDecimal unitPrice) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Athanasius (7.3.x)- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemUnitPrice
CommerceOrderItem updateCommerceOrderItemUnitPrice(long userId, long commerceOrderItemId, BigDecimal quantity, BigDecimal unitPrice) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCustomFields
@Indexable(type=REINDEX) CommerceOrderItem updateCustomFields(long commerceOrderItemId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateExternalReferenceCode
CommerceOrderItem updateExternalReferenceCode(long commerceOrderItemId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-