public class CommerceOrderItemLocalServiceWrapper extends java.lang.Object implements CommerceOrderItemLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderItemLocalService>
CommerceOrderItemLocalService
.CommerceOrderItemLocalService
Constructor and Description |
---|
CommerceOrderItemLocalServiceWrapper() |
CommerceOrderItemLocalServiceWrapper(CommerceOrderItemLocalService commerceOrderItemLocalService) |
Modifier and Type | Method and Description |
---|---|
CommerceOrderItem |
addCommerceOrderItem(CommerceOrderItem commerceOrderItem)
Adds the commerce order item to the database.
|
CommerceOrderItem |
addCommerceOrderItem(long userId,
long commerceOrderId,
long cpInstanceId,
java.lang.String json,
java.math.BigDecimal quantity,
long replacedCPInstanceId,
java.math.BigDecimal shippedQuantity,
java.lang.String unitOfMeasureKey,
CommerceContext commerceContext,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceOrderItem |
addOrUpdateCommerceOrderItem(long userId,
long commerceOrderId,
long cpInstanceId,
java.lang.String json,
java.math.BigDecimal quantity,
long replacedCPInstanceId,
java.math.BigDecimal shippedQuantity,
java.lang.String unitOfMeasureKey,
CommerceContext commerceContext,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
int |
countSubscriptionCommerceOrderItems(long commerceOrderId) |
CommerceOrderItem |
createCommerceOrderItem(long commerceOrderItemId)
Creates a new commerce order item with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
CommerceOrderItem |
deleteCommerceOrderItem(CommerceOrderItem commerceOrderItem)
Deletes the commerce order item from the database.
|
CommerceOrderItem |
deleteCommerceOrderItem(long commerceOrderItemId)
Deletes the commerce order item with the primary key from the database.
|
CommerceOrderItem |
deleteCommerceOrderItem(long userId,
CommerceOrderItem commerceOrderItem) |
CommerceOrderItem |
deleteCommerceOrderItem(long userId,
CommerceOrderItem commerceOrderItem,
CommerceContext commerceContext) |
CommerceOrderItem |
deleteCommerceOrderItem(long userId,
long commerceOrderItemId) |
void |
deleteCommerceOrderItems(long userId,
long commerceOrderId) |
void |
deleteCommerceOrderItemsByCPInstanceId(long userId,
long cpInstanceId) |
void |
deleteMissingCommerceOrderItems(long userId,
long commerceOrderId,
java.lang.Long[] commerceOrderItemIds,
java.lang.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 |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.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> java.util.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.
|
CommerceOrderItem |
fetchByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
CommerceOrderItem |
fetchCommerceOrderItem(long commerceOrderItemId) |
CommerceOrderItem |
fetchCommerceOrderItemByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId) |
CommerceOrderItem |
fetchCommerceOrderItemByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
CommerceOrderItem |
fetchCommerceOrderItemByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the commerce order item matching the UUID and group.
|
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
java.util.List<CommerceOrderItem> |
getAvailableForShipmentCommerceOrderItems(long commerceOrderId) |
com.liferay.portal.kernel.service.persistence.BasePersistence<?> |
getBasePersistence() |
java.util.List<CommerceOrderItem> |
getChildCommerceOrderItems(long parentCommerceOrderItemId) |
java.math.BigDecimal |
getCommerceInventoryWarehouseItemQuantity(long commerceOrderItemId,
long commerceInventoryWarehouseId) |
CommerceOrderItem |
getCommerceOrderItem(long commerceOrderItemId)
Returns the commerce order item with the primary key.
|
CommerceOrderItem |
getCommerceOrderItemByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
CommerceOrderItem |
getCommerceOrderItemByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the commerce order item matching the UUID and group.
|
java.util.List<CommerceOrderItem> |
getCommerceOrderItems(int start,
int end)
Returns a range of all the commerce order items.
|
java.util.List<CommerceOrderItem> |
getCommerceOrderItems(long cpInstanceId,
int[] orderStatuses,
java.lang.String unitOfMeasureKey,
int start,
int end) |
java.util.List<CommerceOrderItem> |
getCommerceOrderItems(long commerceOrderId,
int start,
int end) |
java.util.List<CommerceOrderItem> |
getCommerceOrderItems(long commerceOrderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) |
java.util.List<CommerceOrderItem> |
getCommerceOrderItems(long groupId,
long commerceAccountId,
int[] orderStatuses,
int start,
int end) |
java.util.List<CommerceOrderItem> |
getCommerceOrderItems(long commerceOrderId,
long cpInstanceId,
int start,
int end) |
java.util.List<CommerceOrderItem> |
getCommerceOrderItems(long commerceOrderId,
long cpInstanceId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) |
java.util.List<CommerceOrderItem> |
getCommerceOrderItemsByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the commerce order items matching the UUID and company.
|
java.util.List<CommerceOrderItem> |
getCommerceOrderItemsByUuidAndCompanyId(java.lang.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 |
getCommerceOrderItemsCount()
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) |
java.math.BigDecimal |
getCommerceOrderItemsQuantity(long commerceOrderId) |
java.util.List<java.lang.Long> |
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 |
getIndexableActionableDynamicQuery() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
java.util.List<CommerceOrderItem> |
getSubscriptionCommerceOrderItems(long commerceOrderId) |
java.util.List<java.lang.Long> |
getSupplierCommerceOrderIds(long commerceOrderId) |
int |
getSupplierCommerceOrderIdsCount(long commerceOrderId) |
java.util.List<CommerceOrderItem> |
getSupplierCommerceOrderItems(long customerCommerceOrderItemId,
int start,
int end) |
CommerceOrderItemLocalService |
getWrappedService() |
CommerceOrderItem |
importCommerceOrderItem(long userId,
java.lang.String externalReferenceCode,
long commerceOrderItemId,
long commerceOrderId,
long cpInstanceId,
java.lang.String cpMeasurementUnitKey,
java.math.BigDecimal quantity,
java.math.BigDecimal shippedQuantity,
java.math.BigDecimal unitOfMeasureIncrementalOrderQuantity,
java.lang.String unitOfMeasureKey,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceOrderItem |
incrementShippedQuantity(long commerceOrderItemId,
java.math.BigDecimal shippedQuantity) |
com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrderItem> |
searchCommerceOrderItems(long commerceOrderId,
long parentCommerceOrderItemId,
java.lang.String keywords,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrderItem> |
searchCommerceOrderItems(long commerceOrderId,
java.lang.String keywords,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrderItem> |
searchCommerceOrderItems(long commerceOrderId,
java.lang.String name,
java.lang.String sku,
boolean andOperator,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
void |
setWrappedService(CommerceOrderItemLocalService commerceOrderItemLocalService) |
CommerceOrderItem |
updateCommerceOrderItem(CommerceOrderItem commerceOrderItem)
Updates the commerce order item in the database or adds it if it does not yet exist.
|
CommerceOrderItem |
updateCommerceOrderItem(long commerceOrderItemId,
long commerceInventoryBookedQuantityId) |
CommerceOrderItem |
updateCommerceOrderItem(long userId,
long commerceOrderItemId,
java.math.BigDecimal quantity,
CommerceContext commerceContext,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceOrderItem |
updateCommerceOrderItem(long userId,
long commerceOrderItemId,
long cpMeasurementUnitId,
java.math.BigDecimal quantity,
CommerceContext commerceContext,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceOrderItem |
updateCommerceOrderItem(long userId,
long commerceOrderItemId,
long cpMeasurementUnitId,
java.math.BigDecimal quantity,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceOrderItem |
updateCommerceOrderItem(long userId,
long commerceOrderItemId,
java.lang.String json,
java.math.BigDecimal quantity,
CommerceContext commerceContext,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceOrderItem |
updateCommerceOrderItem(long userId,
long commerceOrderItemId,
java.lang.String json,
java.math.BigDecimal quantity,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceOrderItem |
updateCommerceOrderItemDeliveryDate(long commerceOrderItemId,
java.util.Date requestedDeliveryDate) |
CommerceOrderItem |
updateCommerceOrderItemInfo(long commerceOrderItemId,
long shippingAddressId,
java.lang.String deliveryGroup,
java.lang.String printedNote) |
CommerceOrderItem |
updateCommerceOrderItemInfo(long commerceOrderItemId,
long shippingAddressId,
java.lang.String deliveryGroup,
java.lang.String printedNote,
int requestedDeliveryDateMonth,
int requestedDeliveryDateDay,
int requestedDeliveryDateYear) |
CommerceOrderItem |
updateCommerceOrderItemInfo(long commerceOrderItemId,
java.lang.String deliveryGroup,
long shippingAddressId,
java.lang.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)
|
CommerceOrderItem |
updateCommerceOrderItemPrice(long commerceOrderItemId,
CommerceContext commerceContext) |
CommerceOrderItem |
updateCommerceOrderItemPrices(long commerceOrderItemId,
java.math.BigDecimal discountAmount,
java.math.BigDecimal discountPercentageLevel1,
java.math.BigDecimal discountPercentageLevel2,
java.math.BigDecimal discountPercentageLevel3,
java.math.BigDecimal discountPercentageLevel4,
java.math.BigDecimal finalPrice,
java.math.BigDecimal promoPrice,
java.math.BigDecimal unitPrice) |
CommerceOrderItem |
updateCommerceOrderItemPrices(long commerceOrderItemId,
java.math.BigDecimal discountAmount,
java.math.BigDecimal discountAmountWithTaxAmount,
java.math.BigDecimal discountPercentageLevel1,
java.math.BigDecimal discountPercentageLevel1WithTaxAmount,
java.math.BigDecimal discountPercentageLevel2,
java.math.BigDecimal discountPercentageLevel2WithTaxAmount,
java.math.BigDecimal discountPercentageLevel3,
java.math.BigDecimal discountPercentageLevel3WithTaxAmount,
java.math.BigDecimal discountPercentageLevel4,
java.math.BigDecimal discountPercentageLevel4WithTaxAmount,
java.math.BigDecimal finalPrice,
java.math.BigDecimal finalPriceWithTaxAmount,
java.math.BigDecimal promoPrice,
java.math.BigDecimal promoPriceWithTaxAmount,
java.math.BigDecimal unitPrice,
java.math.BigDecimal unitPriceWithTaxAmount) |
CommerceOrderItem |
updateCommerceOrderItemUnitPrice(long commerceOrderItemId,
java.math.BigDecimal unitPrice)
Deprecated.
As of Athanasius (7.3.x)
|
CommerceOrderItem |
updateCommerceOrderItemUnitPrice(long userId,
long commerceOrderItemId,
java.math.BigDecimal quantity,
java.math.BigDecimal unitPrice) |
CommerceOrderItem |
updateCustomFields(long commerceOrderItemId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceOrderItem |
updateExternalReferenceCode(long commerceOrderItemId,
java.lang.String externalReferenceCode) |
public CommerceOrderItemLocalServiceWrapper()
public CommerceOrderItemLocalServiceWrapper(CommerceOrderItemLocalService commerceOrderItemLocalService)
public CommerceOrderItem addCommerceOrderItem(CommerceOrderItem commerceOrderItem)
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.
addCommerceOrderItem
in interface CommerceOrderItemLocalService
commerceOrderItem
- the commerce order itempublic CommerceOrderItem addCommerceOrderItem(long userId, long commerceOrderId, long cpInstanceId, java.lang.String json, java.math.BigDecimal quantity, long replacedCPInstanceId, java.math.BigDecimal shippedQuantity, java.lang.String unitOfMeasureKey, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addCommerceOrderItem
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem addOrUpdateCommerceOrderItem(long userId, long commerceOrderId, long cpInstanceId, java.lang.String json, java.math.BigDecimal quantity, long replacedCPInstanceId, java.math.BigDecimal shippedQuantity, java.lang.String unitOfMeasureKey, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addOrUpdateCommerceOrderItem
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public int countSubscriptionCommerceOrderItems(long commerceOrderId)
countSubscriptionCommerceOrderItems
in interface CommerceOrderItemLocalService
public CommerceOrderItem createCommerceOrderItem(long commerceOrderItemId)
createCommerceOrderItem
in interface CommerceOrderItemLocalService
commerceOrderItemId
- the primary key for the new commerce order itempublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel
in interface CommerceOrderItemLocalService
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public CommerceOrderItem deleteCommerceOrderItem(CommerceOrderItem commerceOrderItem)
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.
deleteCommerceOrderItem
in interface CommerceOrderItemLocalService
commerceOrderItem
- the commerce order itempublic CommerceOrderItem deleteCommerceOrderItem(long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException
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.
deleteCommerceOrderItem
in interface CommerceOrderItemLocalService
commerceOrderItemId
- the primary key of the commerce order itemPortalException
- if a commerce order item with the primary key could not be foundpublic CommerceOrderItem deleteCommerceOrderItem(long userId, CommerceOrderItem commerceOrderItem) throws com.liferay.portal.kernel.exception.PortalException
deleteCommerceOrderItem
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem deleteCommerceOrderItem(long userId, CommerceOrderItem commerceOrderItem, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException
deleteCommerceOrderItem
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem deleteCommerceOrderItem(long userId, long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException
deleteCommerceOrderItem
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public void deleteCommerceOrderItems(long userId, long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException
deleteCommerceOrderItems
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public void deleteCommerceOrderItemsByCPInstanceId(long userId, long cpInstanceId) throws com.liferay.portal.kernel.exception.PortalException
deleteCommerceOrderItemsByCPInstanceId
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public void deleteMissingCommerceOrderItems(long userId, long commerceOrderId, java.lang.Long[] commerceOrderItemIds, java.lang.String[] externalReferenceCodes) throws com.liferay.portal.kernel.exception.PortalException
deleteMissingCommerceOrderItems
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface CommerceOrderItemLocalService
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface CommerceOrderItemLocalService
dslQuery
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface CommerceOrderItemLocalService
dslQueryCount
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface CommerceOrderItemLocalService
public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface CommerceOrderItemLocalService
dynamicQuery
- the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
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
.
dynamicQuery
in interface CommerceOrderItemLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
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
.
dynamicQuery
in interface CommerceOrderItemLocalService
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 (optionally null
)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount
in interface CommerceOrderItemLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount
in interface CommerceOrderItemLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic CommerceOrderItem fetchByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId)
fetchByExternalReferenceCode
in interface CommerceOrderItemLocalService
public CommerceOrderItem fetchCommerceOrderItem(long commerceOrderItemId)
fetchCommerceOrderItem
in interface CommerceOrderItemLocalService
public CommerceOrderItem fetchCommerceOrderItemByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId)
fetchCommerceOrderItemByCommerceInventoryBookedQuantityId
in interface CommerceOrderItemLocalService
public CommerceOrderItem fetchCommerceOrderItemByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId)
fetchCommerceOrderItemByExternalReferenceCode
in interface CommerceOrderItemLocalService
public CommerceOrderItem fetchCommerceOrderItemByUuidAndGroupId(java.lang.String uuid, long groupId)
fetchCommerceOrderItemByUuidAndGroupId
in interface CommerceOrderItemLocalService
uuid
- the commerce order item's UUIDgroupId
- the primary key of the groupnull
if a matching commerce order item could not be foundpublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface CommerceOrderItemLocalService
public java.util.List<CommerceOrderItem> getAvailableForShipmentCommerceOrderItems(long commerceOrderId)
getAvailableForShipmentCommerceOrderItems
in interface CommerceOrderItemLocalService
public java.util.List<CommerceOrderItem> getChildCommerceOrderItems(long parentCommerceOrderItemId)
getChildCommerceOrderItems
in interface CommerceOrderItemLocalService
public java.math.BigDecimal getCommerceInventoryWarehouseItemQuantity(long commerceOrderItemId, long commerceInventoryWarehouseId) throws com.liferay.portal.kernel.exception.PortalException
getCommerceInventoryWarehouseItemQuantity
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem getCommerceOrderItem(long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException
getCommerceOrderItem
in interface CommerceOrderItemLocalService
commerceOrderItemId
- the primary key of the commerce order itemPortalException
- if a commerce order item with the primary key could not be foundpublic CommerceOrderItem getCommerceOrderItemByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
getCommerceOrderItemByExternalReferenceCode
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem getCommerceOrderItemByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
getCommerceOrderItemByUuidAndGroupId
in interface CommerceOrderItemLocalService
uuid
- the commerce order item's UUIDgroupId
- the primary key of the groupPortalException
- if a matching commerce order item could not be foundpublic java.util.List<CommerceOrderItem> getCommerceOrderItems(int start, int end)
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
.
getCommerceOrderItems
in interface CommerceOrderItemLocalService
start
- the lower bound of the range of commerce order itemsend
- the upper bound of the range of commerce order items (not inclusive)public java.util.List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, int start, int end)
getCommerceOrderItems
in interface CommerceOrderItemLocalService
public java.util.List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
getCommerceOrderItems
in interface CommerceOrderItemLocalService
public java.util.List<CommerceOrderItem> getCommerceOrderItems(long cpInstanceId, int[] orderStatuses, java.lang.String unitOfMeasureKey, int start, int end)
getCommerceOrderItems
in interface CommerceOrderItemLocalService
public java.util.List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, long cpInstanceId, int start, int end)
getCommerceOrderItems
in interface CommerceOrderItemLocalService
public java.util.List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, long cpInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
getCommerceOrderItems
in interface CommerceOrderItemLocalService
public java.util.List<CommerceOrderItem> getCommerceOrderItems(long groupId, long commerceAccountId, int[] orderStatuses, int start, int end)
getCommerceOrderItems
in interface CommerceOrderItemLocalService
public java.util.List<CommerceOrderItem> getCommerceOrderItemsByUuidAndCompanyId(java.lang.String uuid, long companyId)
getCommerceOrderItemsByUuidAndCompanyId
in interface CommerceOrderItemLocalService
uuid
- the UUID of the commerce order itemscompanyId
- the primary key of the companypublic java.util.List<CommerceOrderItem> getCommerceOrderItemsByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
getCommerceOrderItemsByUuidAndCompanyId
in interface CommerceOrderItemLocalService
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 (optionally null
)public int getCommerceOrderItemsCount()
getCommerceOrderItemsCount
in interface CommerceOrderItemLocalService
public int getCommerceOrderItemsCount(long commerceOrderId)
getCommerceOrderItemsCount
in interface CommerceOrderItemLocalService
public int getCommerceOrderItemsCount(long commerceOrderId, long cpInstanceId)
getCommerceOrderItemsCount
in interface CommerceOrderItemLocalService
public int getCommerceOrderItemsCount(long groupId, long commerceAccountId, int[] orderStatuses)
getCommerceOrderItemsCount
in interface CommerceOrderItemLocalService
public java.math.BigDecimal getCommerceOrderItemsQuantity(long commerceOrderId)
getCommerceOrderItemsQuantity
in interface CommerceOrderItemLocalService
public java.util.List<java.lang.Long> getCustomerCommerceOrderIds(long commerceOrderId)
getCustomerCommerceOrderIds
in interface CommerceOrderItemLocalService
public int getCustomerCommerceOrderIdsCount(long commerceOrderId)
getCustomerCommerceOrderIdsCount
in interface CommerceOrderItemLocalService
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery
in interface CommerceOrderItemLocalService
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface CommerceOrderItemLocalService
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface CommerceOrderItemLocalService
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface CommerceOrderItemLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public java.util.List<CommerceOrderItem> getSubscriptionCommerceOrderItems(long commerceOrderId)
getSubscriptionCommerceOrderItems
in interface CommerceOrderItemLocalService
public java.util.List<java.lang.Long> getSupplierCommerceOrderIds(long commerceOrderId)
getSupplierCommerceOrderIds
in interface CommerceOrderItemLocalService
public int getSupplierCommerceOrderIdsCount(long commerceOrderId)
getSupplierCommerceOrderIdsCount
in interface CommerceOrderItemLocalService
public java.util.List<CommerceOrderItem> getSupplierCommerceOrderItems(long customerCommerceOrderItemId, int start, int end)
getSupplierCommerceOrderItems
in interface CommerceOrderItemLocalService
public CommerceOrderItem importCommerceOrderItem(long userId, java.lang.String externalReferenceCode, long commerceOrderItemId, long commerceOrderId, long cpInstanceId, java.lang.String cpMeasurementUnitKey, java.math.BigDecimal quantity, java.math.BigDecimal shippedQuantity, java.math.BigDecimal unitOfMeasureIncrementalOrderQuantity, java.lang.String unitOfMeasureKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
importCommerceOrderItem
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem incrementShippedQuantity(long commerceOrderItemId, java.math.BigDecimal shippedQuantity) throws com.liferay.portal.kernel.exception.PortalException
incrementShippedQuantity
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrderItem> searchCommerceOrderItems(long commerceOrderId, long parentCommerceOrderItemId, java.lang.String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
searchCommerceOrderItems
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrderItem> searchCommerceOrderItems(long commerceOrderId, java.lang.String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
searchCommerceOrderItems
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrderItem> searchCommerceOrderItems(long commerceOrderId, java.lang.String name, java.lang.String sku, boolean andOperator, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
searchCommerceOrderItems
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem updateCommerceOrderItem(CommerceOrderItem commerceOrderItem)
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.
updateCommerceOrderItem
in interface CommerceOrderItemLocalService
commerceOrderItem
- the commerce order itempublic CommerceOrderItem updateCommerceOrderItem(long commerceOrderItemId, long commerceInventoryBookedQuantityId) throws NoSuchOrderItemException
updateCommerceOrderItem
in interface CommerceOrderItemLocalService
NoSuchOrderItemException
public CommerceOrderItem updateCommerceOrderItem(long userId, long commerceOrderItemId, java.math.BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceOrderItem
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem updateCommerceOrderItem(long userId, long commerceOrderItemId, long cpMeasurementUnitId, java.math.BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceOrderItem
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem updateCommerceOrderItem(long userId, long commerceOrderItemId, long cpMeasurementUnitId, java.math.BigDecimal quantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceOrderItem
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem updateCommerceOrderItem(long userId, long commerceOrderItemId, java.lang.String json, java.math.BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceOrderItem
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem updateCommerceOrderItem(long userId, long commerceOrderItemId, java.lang.String json, java.math.BigDecimal quantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceOrderItem
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem updateCommerceOrderItemDeliveryDate(long commerceOrderItemId, java.util.Date requestedDeliveryDate) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceOrderItemDeliveryDate
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem updateCommerceOrderItemInfo(long commerceOrderItemId, long shippingAddressId, java.lang.String deliveryGroup, java.lang.String printedNote) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceOrderItemInfo
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem updateCommerceOrderItemInfo(long commerceOrderItemId, long shippingAddressId, java.lang.String deliveryGroup, java.lang.String printedNote, int requestedDeliveryDateMonth, int requestedDeliveryDateDay, int requestedDeliveryDateYear) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceOrderItemInfo
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
@Deprecated public CommerceOrderItem updateCommerceOrderItemInfo(long commerceOrderItemId, java.lang.String deliveryGroup, long shippingAddressId, java.lang.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
updateCommerceOrderItemInfo
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem updateCommerceOrderItemPrice(long commerceOrderItemId, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceOrderItemPrice
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem updateCommerceOrderItemPrices(long commerceOrderItemId, java.math.BigDecimal discountAmount, java.math.BigDecimal discountPercentageLevel1, java.math.BigDecimal discountPercentageLevel2, java.math.BigDecimal discountPercentageLevel3, java.math.BigDecimal discountPercentageLevel4, java.math.BigDecimal finalPrice, java.math.BigDecimal promoPrice, java.math.BigDecimal unitPrice) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceOrderItemPrices
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem updateCommerceOrderItemPrices(long commerceOrderItemId, java.math.BigDecimal discountAmount, java.math.BigDecimal discountAmountWithTaxAmount, java.math.BigDecimal discountPercentageLevel1, java.math.BigDecimal discountPercentageLevel1WithTaxAmount, java.math.BigDecimal discountPercentageLevel2, java.math.BigDecimal discountPercentageLevel2WithTaxAmount, java.math.BigDecimal discountPercentageLevel3, java.math.BigDecimal discountPercentageLevel3WithTaxAmount, java.math.BigDecimal discountPercentageLevel4, java.math.BigDecimal discountPercentageLevel4WithTaxAmount, java.math.BigDecimal finalPrice, java.math.BigDecimal finalPriceWithTaxAmount, java.math.BigDecimal promoPrice, java.math.BigDecimal promoPriceWithTaxAmount, java.math.BigDecimal unitPrice, java.math.BigDecimal unitPriceWithTaxAmount) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceOrderItemPrices
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
@Deprecated public CommerceOrderItem updateCommerceOrderItemUnitPrice(long commerceOrderItemId, java.math.BigDecimal unitPrice) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceOrderItemUnitPrice
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem updateCommerceOrderItemUnitPrice(long userId, long commerceOrderItemId, java.math.BigDecimal quantity, java.math.BigDecimal unitPrice) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceOrderItemUnitPrice
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem updateCustomFields(long commerceOrderItemId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateCustomFields
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceOrderItem updateExternalReferenceCode(long commerceOrderItemId, java.lang.String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
updateExternalReferenceCode
in interface CommerceOrderItemLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()
getBasePersistence
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public CommerceOrderItemLocalService getWrappedService()
getWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderItemLocalService>
public void setWrappedService(CommerceOrderItemLocalService commerceOrderItemLocalService)
setWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderItemLocalService>