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) intcountSubscriptionCommerceOrderItems(long commerceOrderId) createCommerceOrderItem(long commerceOrderItemId) Creates a new commerce order item with the primary key.com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(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.voiddeleteCommerceOrderItems(long userId, long commerceOrderId) voiddeleteCommerceOrderItemsByCPInstanceId(long userId, long cpInstanceId) voiddeleteMissingCommerceOrderItems(long userId, long commerceOrderId, Long[] commerceOrderItemIds, String[] externalReferenceCodes) com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(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.longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(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.ActionableDynamicQuerygetAvailableForShipmentCommerceOrderItems(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.intReturns the number of commerce order items.intgetCommerceOrderItemsCount(long commerceOrderId) intgetCommerceOrderItemsCount(long commerceOrderId, long cpInstanceId) intgetCommerceOrderItemsCount(long groupId, long commerceAccountId, int[] orderStatuses) getCommerceOrderItemsQuantity(long commerceOrderId) getCustomerCommerceOrderIds(long commerceOrderId) intgetCustomerCommerceOrderIdsCount(long commerceOrderId) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQueryReturns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) getSubscriptionCommerceOrderItems(long commerceOrderId) getSupplierCommerceOrderIds(long commerceOrderId) intgetSupplierCommerceOrderIdsCount(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) voidsetWrappedService(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, waitMethods 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:
addCommerceOrderItemin 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:
addCommerceOrderItemin 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:
addOrUpdateCommerceOrderItemin interfaceCommerceOrderItemLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
countSubscriptionCommerceOrderItems
public int countSubscriptionCommerceOrderItems(long commerceOrderId) - Specified by:
countSubscriptionCommerceOrderItemsin interfaceCommerceOrderItemLocalService
-
createCommerceOrderItem
Creates a new commerce order item with the primary key. Does not add the commerce order item to the database.- Specified by:
createCommerceOrderItemin 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:
createPersistedModelin interfaceCommerceOrderItemLocalService- Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.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:
deleteCommerceOrderItemin 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:
deleteCommerceOrderItemin 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:
deleteCommerceOrderItemin 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:
deleteCommerceOrderItemin 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:
deleteCommerceOrderItemin 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:
deleteCommerceOrderItemsin 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:
deleteCommerceOrderItemsByCPInstanceIdin 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:
deleteMissingCommerceOrderItemsin 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:
deletePersistedModelin interfaceCommerceOrderItemLocalService- Specified by:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfaceCommerceOrderItemLocalService- Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfaceCommerceOrderItemLocalService- Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQueryin interfaceCommerceOrderItemLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderItemModelImpl.- Specified by:
dynamicQueryin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderItemModelImpl.- Specified by:
dynamicQueryin 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:
dynamicQueryCountin 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:
dynamicQueryCountin 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:
fetchCommerceOrderItemin interfaceCommerceOrderItemLocalService
-
fetchCommerceOrderItemByCommerceInventoryBookedQuantityId
public CommerceOrderItem fetchCommerceOrderItemByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId) - Specified by:
fetchCommerceOrderItemByCommerceInventoryBookedQuantityIdin interfaceCommerceOrderItemLocalService
-
fetchCommerceOrderItemByExternalReferenceCode
public CommerceOrderItem fetchCommerceOrderItemByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchCommerceOrderItemByExternalReferenceCodein interfaceCommerceOrderItemLocalService
-
fetchCommerceOrderItemByUuidAndGroupId
Returns the commerce order item matching the UUID and group.- Specified by:
fetchCommerceOrderItemByUuidAndGroupIdin interfaceCommerceOrderItemLocalService- Parameters:
uuid- the commerce order item's UUIDgroupId- the primary key of the group- Returns:
- the matching commerce order item, or
nullif a matching commerce order item could not be found
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQueryin interfaceCommerceOrderItemLocalService
-
getAvailableForShipmentCommerceOrderItems
- Specified by:
getAvailableForShipmentCommerceOrderItemsin interfaceCommerceOrderItemLocalService
-
getChildCommerceOrderItems
- Specified by:
getChildCommerceOrderItemsin interfaceCommerceOrderItemLocalService
-
getCommerceInventoryWarehouseItemQuantity
public BigDecimal getCommerceInventoryWarehouseItemQuantity(long commerceOrderItemId, long commerceInventoryWarehouseId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommerceInventoryWarehouseItemQuantityin 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:
getCommerceOrderItemin 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:
getCommerceOrderItemByExternalReferenceCodein 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:
getCommerceOrderItemByUuidAndGroupIdin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderItemModelImpl.- Specified by:
getCommerceOrderItemsin 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:
getCommerceOrderItemsin interfaceCommerceOrderItemLocalService
-
getCommerceOrderItems
public List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) - Specified by:
getCommerceOrderItemsin interfaceCommerceOrderItemLocalService
-
getCommerceOrderItems
public List<CommerceOrderItem> getCommerceOrderItems(long cpInstanceId, int[] orderStatuses, String unitOfMeasureKey, int start, int end) - Specified by:
getCommerceOrderItemsin interfaceCommerceOrderItemLocalService
-
getCommerceOrderItems
public List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, long cpInstanceId, int start, int end) - Specified by:
getCommerceOrderItemsin interfaceCommerceOrderItemLocalService
-
getCommerceOrderItems
public List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, long cpInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) - Specified by:
getCommerceOrderItemsin interfaceCommerceOrderItemLocalService
-
getCommerceOrderItems
public List<CommerceOrderItem> getCommerceOrderItems(long groupId, long commerceAccountId, int[] orderStatuses, int start, int end) - Specified by:
getCommerceOrderItemsin interfaceCommerceOrderItemLocalService
-
getCommerceOrderItemsByUuidAndCompanyId
Returns all the commerce order items matching the UUID and company.- Specified by:
getCommerceOrderItemsByUuidAndCompanyIdin 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:
getCommerceOrderItemsByUuidAndCompanyIdin 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:
getCommerceOrderItemsCountin interfaceCommerceOrderItemLocalService- Returns:
- the number of commerce order items
-
getCommerceOrderItemsCount
public int getCommerceOrderItemsCount(long commerceOrderId) - Specified by:
getCommerceOrderItemsCountin interfaceCommerceOrderItemLocalService
-
getCommerceOrderItemsCount
public int getCommerceOrderItemsCount(long commerceOrderId, long cpInstanceId) - Specified by:
getCommerceOrderItemsCountin interfaceCommerceOrderItemLocalService
-
getCommerceOrderItemsCount
public int getCommerceOrderItemsCount(long groupId, long commerceAccountId, int[] orderStatuses) - Specified by:
getCommerceOrderItemsCountin interfaceCommerceOrderItemLocalService
-
getCommerceOrderItemsQuantity
- Specified by:
getCommerceOrderItemsQuantityin interfaceCommerceOrderItemLocalService
-
getCustomerCommerceOrderIds
- Specified by:
getCustomerCommerceOrderIdsin interfaceCommerceOrderItemLocalService
-
getCustomerCommerceOrderIdsCount
public int getCustomerCommerceOrderIdsCount(long commerceOrderId) - Specified by:
getCustomerCommerceOrderIdsCountin interfaceCommerceOrderItemLocalService
-
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfaceCommerceOrderItemLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQueryin interfaceCommerceOrderItemLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin 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:
getPersistedModelin interfaceCommerceOrderItemLocalService- Specified by:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
getSubscriptionCommerceOrderItems
- Specified by:
getSubscriptionCommerceOrderItemsin interfaceCommerceOrderItemLocalService
-
getSupplierCommerceOrderIds
- Specified by:
getSupplierCommerceOrderIdsin interfaceCommerceOrderItemLocalService
-
getSupplierCommerceOrderIdsCount
public int getSupplierCommerceOrderIdsCount(long commerceOrderId) - Specified by:
getSupplierCommerceOrderIdsCountin interfaceCommerceOrderItemLocalService
-
getSupplierCommerceOrderItems
public List<CommerceOrderItem> getSupplierCommerceOrderItems(long customerCommerceOrderItemId, int start, int end) - Specified by:
getSupplierCommerceOrderItemsin 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:
importCommerceOrderItemin 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:
incrementShippedQuantityin 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:
searchCommerceOrderItemsin 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:
searchCommerceOrderItemsin 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:
searchCommerceOrderItemsin 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:
updateCommerceOrderItemin 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:
updateCommerceOrderItemin 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:
updateCommerceOrderItemin 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:
updateCommerceOrderItemin 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:
updateCommerceOrderItemin 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:
updateCommerceOrderItemin 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:
updateCommerceOrderItemin 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:
updateCommerceOrderItemDeliveryDatein 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:
updateCommerceOrderItemInfoin 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:
updateCommerceOrderItemInfoin 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:
updateCommerceOrderItemInfoin 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:
updateCommerceOrderItemPricein 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:
updateCommerceOrderItemPricesin 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:
updateCommerceOrderItemPricesin 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:
updateCommerceOrderItemUnitPricein 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:
updateCommerceOrderItemUnitPricein 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:
updateCustomFieldsin 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:
updateExternalReferenceCodein interfaceCommerceOrderItemLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistencein interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderItemLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderItemLocalService>
-