Class CommerceOrderItemLocalServiceWrapper
- All Implemented Interfaces:
CommerceOrderItemLocalService
,com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.PersistedModelLocalService
,com.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderItemLocalService>
CommerceOrderItemLocalService
.- See Also:
- Generated:
-
Constructor Summary
ConstructorsConstructorDescriptionCommerceOrderItemLocalServiceWrapper
(CommerceOrderItemLocalService commerceOrderItemLocalService) -
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) com.liferay.portal.kernel.service.persistence.BasePersistence<?>
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) void
setWrappedService
(CommerceOrderItemLocalService commerceOrderItemLocalService) 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
CommerceOrderItemLocalServiceWrapper
public CommerceOrderItemLocalServiceWrapper() -
CommerceOrderItemLocalServiceWrapper
public CommerceOrderItemLocalServiceWrapper(CommerceOrderItemLocalService commerceOrderItemLocalService)
-
-
Method Details
-
addCommerceOrderItem
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.
- Specified by:
addCommerceOrderItem
in interfaceCommerceOrderItemLocalService
- Parameters:
commerceOrderItem
- the commerce order item- Returns:
- the commerce order item that was added
-
addCommerceOrderItem
public 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 - Specified by:
addCommerceOrderItem
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrUpdateCommerceOrderItem
public 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 - Specified by:
addOrUpdateCommerceOrderItem
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
countSubscriptionCommerceOrderItems
public int countSubscriptionCommerceOrderItems(long commerceOrderId) - Specified by:
countSubscriptionCommerceOrderItems
in interfaceCommerceOrderItemLocalService
-
createCommerceOrderItem
Creates a new commerce order item with the primary key. Does not add the commerce order item to the database.- Specified by:
createCommerceOrderItem
in interfaceCommerceOrderItemLocalService
- Parameters:
commerceOrderItemId
- the primary key for the new commerce order item- Returns:
- the new commerce order item
-
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModel
in interfaceCommerceOrderItemLocalService
- Specified by:
createPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceOrderItem
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.
- Specified by:
deleteCommerceOrderItem
in interfaceCommerceOrderItemLocalService
- Parameters:
commerceOrderItem
- the commerce order item- Returns:
- the commerce order item that was removed
-
deleteCommerceOrderItem
public 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.
- Specified by:
deleteCommerceOrderItem
in interfaceCommerceOrderItemLocalService
- Parameters:
commerceOrderItemId
- the primary key of the commerce order item- Returns:
- the commerce order item that was removed
- Throws:
PortalException
- if a commerce order item with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
deleteCommerceOrderItem
public CommerceOrderItem deleteCommerceOrderItem(long userId, CommerceOrderItem commerceOrderItem) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCommerceOrderItem
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceOrderItem
public CommerceOrderItem deleteCommerceOrderItem(long userId, CommerceOrderItem commerceOrderItem, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCommerceOrderItem
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceOrderItem
public CommerceOrderItem deleteCommerceOrderItem(long userId, long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCommerceOrderItem
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceOrderItems
public void deleteCommerceOrderItems(long userId, long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCommerceOrderItems
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceOrderItemsByCPInstanceId
public void deleteCommerceOrderItemsByCPInstanceId(long userId, long cpInstanceId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCommerceOrderItemsByCPInstanceId
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMissingCommerceOrderItems
public void deleteMissingCommerceOrderItems(long userId, long commerceOrderId, Long[] commerceOrderItemIds, String[] externalReferenceCodes) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteMissingCommerceOrderItems
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
public 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 interfaceCommerceOrderItemLocalService
- Specified by:
deletePersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfaceCommerceOrderItemLocalService
- Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceCommerceOrderItemLocalService
- Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQuery
in interfaceCommerceOrderItemLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceCommerceOrderItemLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public <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
.- Specified by:
dynamicQuery
in interfaceCommerceOrderItemLocalService
- 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
public <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
.- Specified by:
dynamicQuery
in interfaceCommerceOrderItemLocalService
- 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
public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceCommerceOrderItemLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
public 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.- Specified by:
dynamicQueryCount
in interfaceCommerceOrderItemLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchCommerceOrderItem
- Specified by:
fetchCommerceOrderItem
in interfaceCommerceOrderItemLocalService
-
fetchCommerceOrderItemByCommerceInventoryBookedQuantityId
public CommerceOrderItem fetchCommerceOrderItemByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId) - Specified by:
fetchCommerceOrderItemByCommerceInventoryBookedQuantityId
in interfaceCommerceOrderItemLocalService
-
fetchCommerceOrderItemByExternalReferenceCode
public CommerceOrderItem fetchCommerceOrderItemByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchCommerceOrderItemByExternalReferenceCode
in interfaceCommerceOrderItemLocalService
-
fetchCommerceOrderItemByUuidAndGroupId
Returns the commerce order item matching the UUID and group.- Specified by:
fetchCommerceOrderItemByUuidAndGroupId
in interfaceCommerceOrderItemLocalService
- 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
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQuery
in interfaceCommerceOrderItemLocalService
-
getAvailableForShipmentCommerceOrderItems
- Specified by:
getAvailableForShipmentCommerceOrderItems
in interfaceCommerceOrderItemLocalService
-
getChildCommerceOrderItems
- Specified by:
getChildCommerceOrderItems
in interfaceCommerceOrderItemLocalService
-
getCommerceInventoryWarehouseItemQuantity
public BigDecimal getCommerceInventoryWarehouseItemQuantity(long commerceOrderItemId, long commerceInventoryWarehouseId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommerceInventoryWarehouseItemQuantity
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceOrderItem
public CommerceOrderItem getCommerceOrderItem(long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException Returns the commerce order item with the primary key.- Specified by:
getCommerceOrderItem
in interfaceCommerceOrderItemLocalService
- Parameters:
commerceOrderItemId
- the primary key of the commerce order item- Returns:
- the commerce order item
- Throws:
PortalException
- if a commerce order item with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getCommerceOrderItemByExternalReferenceCode
public CommerceOrderItem getCommerceOrderItemByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommerceOrderItemByExternalReferenceCode
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceOrderItemByUuidAndGroupId
public CommerceOrderItem getCommerceOrderItemByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException Returns the commerce order item matching the UUID and group.- Specified by:
getCommerceOrderItemByUuidAndGroupId
in interfaceCommerceOrderItemLocalService
- Parameters:
uuid
- the commerce order item's UUIDgroupId
- the primary key of the group- Returns:
- the matching commerce order item
- Throws:
PortalException
- if a matching commerce order item could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getCommerceOrderItems
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
.- Specified by:
getCommerceOrderItems
in interfaceCommerceOrderItemLocalService
- 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
- Specified by:
getCommerceOrderItems
in interfaceCommerceOrderItemLocalService
-
getCommerceOrderItems
public List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) - Specified by:
getCommerceOrderItems
in interfaceCommerceOrderItemLocalService
-
getCommerceOrderItems
public List<CommerceOrderItem> getCommerceOrderItems(long cpInstanceId, int[] orderStatuses, String unitOfMeasureKey, int start, int end) - Specified by:
getCommerceOrderItems
in interfaceCommerceOrderItemLocalService
-
getCommerceOrderItems
public List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, long cpInstanceId, int start, int end) - Specified by:
getCommerceOrderItems
in interfaceCommerceOrderItemLocalService
-
getCommerceOrderItems
public List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, long cpInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) - Specified by:
getCommerceOrderItems
in interfaceCommerceOrderItemLocalService
-
getCommerceOrderItems
public List<CommerceOrderItem> getCommerceOrderItems(long groupId, long commerceAccountId, int[] orderStatuses, int start, int end) - Specified by:
getCommerceOrderItems
in interfaceCommerceOrderItemLocalService
-
getCommerceOrderItemsByUuidAndCompanyId
Returns all the commerce order items matching the UUID and company.- Specified by:
getCommerceOrderItemsByUuidAndCompanyId
in interfaceCommerceOrderItemLocalService
- 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
public 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.- Specified by:
getCommerceOrderItemsByUuidAndCompanyId
in interfaceCommerceOrderItemLocalService
- 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
public int getCommerceOrderItemsCount()Returns the number of commerce order items.- Specified by:
getCommerceOrderItemsCount
in interfaceCommerceOrderItemLocalService
- Returns:
- the number of commerce order items
-
getCommerceOrderItemsCount
public int getCommerceOrderItemsCount(long commerceOrderId) - Specified by:
getCommerceOrderItemsCount
in interfaceCommerceOrderItemLocalService
-
getCommerceOrderItemsCount
public int getCommerceOrderItemsCount(long commerceOrderId, long cpInstanceId) - Specified by:
getCommerceOrderItemsCount
in interfaceCommerceOrderItemLocalService
-
getCommerceOrderItemsCount
public int getCommerceOrderItemsCount(long groupId, long commerceAccountId, int[] orderStatuses) - Specified by:
getCommerceOrderItemsCount
in interfaceCommerceOrderItemLocalService
-
getCommerceOrderItemsQuantity
- Specified by:
getCommerceOrderItemsQuantity
in interfaceCommerceOrderItemLocalService
-
getCustomerCommerceOrderIds
- Specified by:
getCustomerCommerceOrderIds
in interfaceCommerceOrderItemLocalService
-
getCustomerCommerceOrderIdsCount
public int getCustomerCommerceOrderIdsCount(long commerceOrderId) - Specified by:
getCustomerCommerceOrderIdsCount
in interfaceCommerceOrderItemLocalService
-
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceCommerceOrderItemLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQuery
in interfaceCommerceOrderItemLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceCommerceOrderItemLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModel
in interfaceCommerceOrderItemLocalService
- Specified by:
getPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
getSubscriptionCommerceOrderItems
- Specified by:
getSubscriptionCommerceOrderItems
in interfaceCommerceOrderItemLocalService
-
getSupplierCommerceOrderIds
- Specified by:
getSupplierCommerceOrderIds
in interfaceCommerceOrderItemLocalService
-
getSupplierCommerceOrderIdsCount
public int getSupplierCommerceOrderIdsCount(long commerceOrderId) - Specified by:
getSupplierCommerceOrderIdsCount
in interfaceCommerceOrderItemLocalService
-
getSupplierCommerceOrderItems
public List<CommerceOrderItem> getSupplierCommerceOrderItems(long customerCommerceOrderItemId, int start, int end) - Specified by:
getSupplierCommerceOrderItems
in interfaceCommerceOrderItemLocalService
-
importCommerceOrderItem
public 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 - Specified by:
importCommerceOrderItem
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
incrementShippedQuantity
public CommerceOrderItem incrementShippedQuantity(long commerceOrderItemId, BigDecimal shippedQuantity) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
incrementShippedQuantity
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCommerceOrderItems
public 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 - Specified by:
searchCommerceOrderItems
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCommerceOrderItems
public 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 - Specified by:
searchCommerceOrderItems
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCommerceOrderItems
public 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 - Specified by:
searchCommerceOrderItems
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItem
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.
- Specified by:
updateCommerceOrderItem
in interfaceCommerceOrderItemLocalService
- Parameters:
commerceOrderItem
- the commerce order item- Returns:
- the commerce order item that was updated
-
updateCommerceOrderItem
public CommerceOrderItem updateCommerceOrderItem(long commerceOrderItemId, long commerceInventoryBookedQuantityId) throws NoSuchOrderItemException - Specified by:
updateCommerceOrderItem
in interfaceCommerceOrderItemLocalService
- Throws:
NoSuchOrderItemException
-
updateCommerceOrderItem
public CommerceOrderItem updateCommerceOrderItem(long userId, long commerceOrderItemId, BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderItem
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItem
public 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 - Specified by:
updateCommerceOrderItem
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItem
public CommerceOrderItem updateCommerceOrderItem(long userId, long commerceOrderItemId, long cpMeasurementUnitId, BigDecimal quantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderItem
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItem
public 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 - Specified by:
updateCommerceOrderItem
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItem
public CommerceOrderItem updateCommerceOrderItem(long userId, long commerceOrderItemId, String json, BigDecimal quantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderItem
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemDeliveryDate
public CommerceOrderItem updateCommerceOrderItemDeliveryDate(long commerceOrderItemId, Date requestedDeliveryDate) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderItemDeliveryDate
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemInfo
public CommerceOrderItem updateCommerceOrderItemInfo(long commerceOrderItemId, long shippingAddressId, String deliveryGroupName, String printedNote) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderItemInfo
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemInfo
public CommerceOrderItem updateCommerceOrderItemInfo(long commerceOrderItemId, long shippingAddressId, String deliveryGroupName, String printedNote, int requestedDeliveryDateMonth, int requestedDeliveryDateDay, int requestedDeliveryDateYear) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderItemInfo
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemInfo
@Deprecated public 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)- Specified by:
updateCommerceOrderItemInfo
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemPrice
public CommerceOrderItem updateCommerceOrderItemPrice(long commerceOrderItemId, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderItemPrice
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemPrices
public 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 - Specified by:
updateCommerceOrderItemPrices
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemPrices
public 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 - Specified by:
updateCommerceOrderItemPrices
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemUnitPrice
@Deprecated public CommerceOrderItem updateCommerceOrderItemUnitPrice(long commerceOrderItemId, BigDecimal unitPrice) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Athanasius (7.3.x)- Specified by:
updateCommerceOrderItemUnitPrice
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemUnitPrice
public CommerceOrderItem updateCommerceOrderItemUnitPrice(long userId, long commerceOrderItemId, BigDecimal quantity, BigDecimal unitPrice) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderItemUnitPrice
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCustomFields
public CommerceOrderItem updateCustomFields(long commerceOrderItemId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCustomFields
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateExternalReferenceCode
public CommerceOrderItem updateExternalReferenceCode(long commerceOrderItemId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateExternalReferenceCode
in interfaceCommerceOrderItemLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistence
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderItemLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderItemLocalService>
-