Class CommerceOrderItemLocalServiceWrapper

java.lang.Object
com.liferay.commerce.service.CommerceOrderItemLocalServiceWrapper
All Implemented Interfaces:
CommerceOrderItemLocalService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderItemLocalService>

public class CommerceOrderItemLocalServiceWrapper extends Object implements CommerceOrderItemLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderItemLocalService>
Provides a wrapper for CommerceOrderItemLocalService.
See Also:
Generated:
  • Constructor Details

    • CommerceOrderItemLocalServiceWrapper

      public CommerceOrderItemLocalServiceWrapper()
    • CommerceOrderItemLocalServiceWrapper

      public CommerceOrderItemLocalServiceWrapper(CommerceOrderItemLocalService commerceOrderItemLocalService)
  • Method Details

    • addCommerceOrderItem

      public 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.

      Specified by:
      addCommerceOrderItem in interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • countSubscriptionCommerceOrderItems

      public int countSubscriptionCommerceOrderItems(long commerceOrderId)
      Specified by:
      countSubscriptionCommerceOrderItems in interface CommerceOrderItemLocalService
    • createCommerceOrderItem

      public CommerceOrderItem createCommerceOrderItem(long commerceOrderItemId)
      Creates a new commerce order item with the primary key. Does not add the commerce order item to the database.
      Specified by:
      createCommerceOrderItem in interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceOrderItem

      public 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.

      Specified by:
      deleteCommerceOrderItem in interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 found
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceOrderItem

      public CommerceOrderItem deleteCommerceOrderItem(long userId, CommerceOrderItem commerceOrderItem) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCommerceOrderItem in interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      Specified by:
      deletePersistedModel in interface com.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 interface CommerceOrderItemLocalService
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dslQueryCount

      public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface CommerceOrderItemLocalService
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dynamicQuery

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface CommerceOrderItemLocalService
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Specified by:
      dynamicQuery in interface CommerceOrderItemLocalService
      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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.model.impl.CommerceOrderItemModelImpl.

      Specified by:
      dynamicQuery in interface CommerceOrderItemLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.model.impl.CommerceOrderItemModelImpl.

      Specified by:
      dynamicQuery in interface CommerceOrderItemLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchCommerceOrderItem

      public CommerceOrderItem fetchCommerceOrderItem(long commerceOrderItemId)
      Specified by:
      fetchCommerceOrderItem in interface CommerceOrderItemLocalService
    • fetchCommerceOrderItemByCommerceInventoryBookedQuantityId

      public CommerceOrderItem fetchCommerceOrderItemByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId)
      Specified by:
      fetchCommerceOrderItemByCommerceInventoryBookedQuantityId in interface CommerceOrderItemLocalService
    • fetchCommerceOrderItemByExternalReferenceCode

      public CommerceOrderItem fetchCommerceOrderItemByExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchCommerceOrderItemByExternalReferenceCode in interface CommerceOrderItemLocalService
    • fetchCommerceOrderItemByUuidAndGroupId

      public CommerceOrderItem fetchCommerceOrderItemByUuidAndGroupId(String uuid, long groupId)
      Returns the commerce order item matching the UUID and group.
      Specified by:
      fetchCommerceOrderItemByUuidAndGroupId in interface CommerceOrderItemLocalService
      Parameters:
      uuid - the commerce order item's UUID
      groupId - 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 interface CommerceOrderItemLocalService
    • getAvailableForShipmentCommerceOrderItems

      public List<CommerceOrderItem> getAvailableForShipmentCommerceOrderItems(long commerceOrderId)
      Specified by:
      getAvailableForShipmentCommerceOrderItems in interface CommerceOrderItemLocalService
    • getChildCommerceOrderItems

      public List<CommerceOrderItem> getChildCommerceOrderItems(long parentCommerceOrderItemId)
      Specified by:
      getChildCommerceOrderItems in interface CommerceOrderItemLocalService
    • getCommerceInventoryWarehouseItemQuantity

      public BigDecimal getCommerceInventoryWarehouseItemQuantity(long commerceOrderItemId, long commerceInventoryWarehouseId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceInventoryWarehouseItemQuantity in interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 found
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceOrderItemByExternalReferenceCode

      public CommerceOrderItem getCommerceOrderItemByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceOrderItemByExternalReferenceCode in interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      Parameters:
      uuid - the commerce order item's UUID
      groupId - the primary key of the group
      Returns:
      the matching commerce order item
      Throws:
      PortalException - if a matching commerce order item could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceOrderItems

      public 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.model.impl.CommerceOrderItemModelImpl.

      Specified by:
      getCommerceOrderItems in interface CommerceOrderItemLocalService
      Parameters:
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      Returns:
      the range of commerce order items
    • getCommerceOrderItems

      public List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, int start, int end)
      Specified by:
      getCommerceOrderItems in interface CommerceOrderItemLocalService
    • getCommerceOrderItems

      public List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Specified by:
      getCommerceOrderItems in interface CommerceOrderItemLocalService
    • getCommerceOrderItems

      public List<CommerceOrderItem> getCommerceOrderItems(long cpInstanceId, int[] orderStatuses, String unitOfMeasureKey, int start, int end)
      Specified by:
      getCommerceOrderItems in interface CommerceOrderItemLocalService
    • getCommerceOrderItems

      public List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, long cpInstanceId, int start, int end)
      Specified by:
      getCommerceOrderItems in interface CommerceOrderItemLocalService
    • 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 interface CommerceOrderItemLocalService
    • getCommerceOrderItems

      public List<CommerceOrderItem> getCommerceOrderItems(long groupId, long commerceAccountId, int[] orderStatuses, int start, int end)
      Specified by:
      getCommerceOrderItems in interface CommerceOrderItemLocalService
    • getCommerceOrderItemsByUuidAndCompanyId

      public List<CommerceOrderItem> getCommerceOrderItemsByUuidAndCompanyId(String uuid, long companyId)
      Returns all the commerce order items matching the UUID and company.
      Specified by:
      getCommerceOrderItemsByUuidAndCompanyId in interface CommerceOrderItemLocalService
      Parameters:
      uuid - the UUID of the commerce order items
      companyId - 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 interface CommerceOrderItemLocalService
      Parameters:
      uuid - the UUID of the commerce order items
      companyId - the primary key of the company
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 interface CommerceOrderItemLocalService
      Returns:
      the number of commerce order items
    • getCommerceOrderItemsCount

      public int getCommerceOrderItemsCount(long commerceOrderId)
      Specified by:
      getCommerceOrderItemsCount in interface CommerceOrderItemLocalService
    • getCommerceOrderItemsCount

      public int getCommerceOrderItemsCount(long commerceOrderId, long cpInstanceId)
      Specified by:
      getCommerceOrderItemsCount in interface CommerceOrderItemLocalService
    • getCommerceOrderItemsCount

      public int getCommerceOrderItemsCount(long groupId, long commerceAccountId, int[] orderStatuses)
      Specified by:
      getCommerceOrderItemsCount in interface CommerceOrderItemLocalService
    • getCommerceOrderItemsQuantity

      public BigDecimal getCommerceOrderItemsQuantity(long commerceOrderId)
      Specified by:
      getCommerceOrderItemsQuantity in interface CommerceOrderItemLocalService
    • getCustomerCommerceOrderIds

      public List<Long> getCustomerCommerceOrderIds(long commerceOrderId)
      Specified by:
      getCustomerCommerceOrderIds in interface CommerceOrderItemLocalService
    • getCustomerCommerceOrderIdsCount

      public int getCustomerCommerceOrderIdsCount(long commerceOrderId)
      Specified by:
      getCustomerCommerceOrderIdsCount in interface CommerceOrderItemLocalService
    • getExportActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
      Specified by:
      getExportActionableDynamicQuery in interface CommerceOrderItemLocalService
    • getIndexableActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
      Specified by:
      getIndexableActionableDynamicQuery in interface CommerceOrderItemLocalService
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • getSubscriptionCommerceOrderItems

      public List<CommerceOrderItem> getSubscriptionCommerceOrderItems(long commerceOrderId)
      Specified by:
      getSubscriptionCommerceOrderItems in interface CommerceOrderItemLocalService
    • getSupplierCommerceOrderIds

      public List<Long> getSupplierCommerceOrderIds(long commerceOrderId)
      Specified by:
      getSupplierCommerceOrderIds in interface CommerceOrderItemLocalService
    • getSupplierCommerceOrderIdsCount

      public int getSupplierCommerceOrderIdsCount(long commerceOrderId)
      Specified by:
      getSupplierCommerceOrderIdsCount in interface CommerceOrderItemLocalService
    • getSupplierCommerceOrderItems

      public List<CommerceOrderItem> getSupplierCommerceOrderItems(long customerCommerceOrderItemId, int start, int end)
      Specified by:
      getSupplierCommerceOrderItems in interface CommerceOrderItemLocalService
    • 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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceOrderItem

      public 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.

      Specified by:
      updateCommerceOrderItem in interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      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 interface CommerceOrderItemLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getBasePersistence

      public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()
      Specified by:
      getBasePersistence in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • getWrappedService

      public CommerceOrderItemLocalService getWrappedService()
      Specified by:
      getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderItemLocalService>
    • setWrappedService

      public void setWrappedService(CommerceOrderItemLocalService commerceOrderItemLocalService)
      Specified by:
      setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderItemLocalService>