@ProviderType
@Transactional(isolation=PORTAL,
rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface CommerceOrderItemLocalService
extends com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService
CommerceOrderItemLocalServiceUtil
Modifier and Type | Method and Description |
---|---|
CommerceOrderItem |
addCommerceOrderItem(CommerceOrderItem commerceOrderItem)
Adds the commerce order item to the database.
|
CommerceOrderItem |
addCommerceOrderItem(long commerceOrderId,
long cpInstanceId,
java.lang.String json,
int quantity,
int shippedQuantity,
CommerceContext commerceContext,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceOrderItem |
addOrUpdateCommerceOrderItem(long commerceOrderId,
long cpInstanceId,
int quantity,
int shippedQuantity,
CommerceContext commerceContext,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceOrderItem |
addOrUpdateCommerceOrderItem(long commerceOrderId,
long cpInstanceId,
java.lang.String json,
int quantity,
int shippedQuantity,
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(CommerceOrderItem commerceOrderItem,
CommerceContext commerceContext) |
CommerceOrderItem |
deleteCommerceOrderItem(long commerceOrderItemId)
Deletes the commerce order item with the primary key from the database.
|
void |
deleteCommerceOrderItems(long commerceOrderId) |
void |
deleteCommerceOrderItemsByCPInstanceId(long cpInstanceId) |
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 |
fetchCommerceOrderItemByBookedQuantityId(long bookedQuantityId) |
CommerceOrderItem |
fetchCommerceOrderItemByExternalReferenceCode(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce order item with the matching external reference code and company.
|
CommerceOrderItem |
fetchCommerceOrderItemByReferenceCode(long companyId,
java.lang.String externalReferenceCode)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
fetchCommerceOrderItemByExternalReferenceCode(long, String) |
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
java.util.List<CommerceOrderItem> |
getAvailableForShipmentCommerceOrderItems(long commerceOrderId) |
java.util.List<CommerceOrderItem> |
getChildCommerceOrderItems(long parentCommerceOrderItemId) |
int |
getCommerceInventoryWarehouseItemQuantity(long commerceOrderItemId,
long commerceInventoryWarehouseId) |
CommerceOrderItem |
getCommerceOrderItem(long commerceOrderItemId)
Returns the commerce order item with the primary key.
|
CommerceOrderItem |
getCommerceOrderItemByExternalReferenceCode(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce order item with the matching external reference code and company.
|
java.util.List<CommerceOrderItem> |
getCommerceOrderItems(int start,
int end)
Returns a range of all the commerce order items.
|
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) |
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) |
int |
getCommerceOrderItemsQuantity(long commerceOrderId) |
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) |
CommerceOrderItem |
importCommerceOrderItem(long commerceOrderId,
long cpInstanceId,
java.lang.String cpMeasurementUnitKey,
java.math.BigDecimal decimalQuantity,
int shippedQuantity,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceOrderItem |
incrementShippedQuantity(long commerceOrderItemId,
int 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) |
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,
int quantity,
CommerceContext commerceContext,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceOrderItem |
updateCommerceOrderItem(long commerceOrderItemId,
long bookedQuantityId) |
CommerceOrderItem |
updateCommerceOrderItem(long commerceOrderItemId,
long cpMeasurementUnitId,
int quantity,
CommerceContext commerceContext,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceOrderItem |
updateCommerceOrderItem(long commerceOrderItemId,
java.lang.String json,
int quantity,
CommerceContext commerceContext,
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 decimalQuantity,
java.math.BigDecimal unitPrice) |
CommerceOrderItem |
updateCommerceOrderItemUnitPrice(long userId,
long commerceOrderItemId,
int quantity,
java.math.BigDecimal unitPrice) |
CommerceOrderItem |
updateCustomFields(long commerceOrderItemId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
@Indexable(type=REINDEX) 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.
commerceOrderItem
- the commerce order item@Indexable(type=REINDEX) CommerceOrderItem addCommerceOrderItem(long commerceOrderId, long cpInstanceId, java.lang.String json, int quantity, int shippedQuantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
CommerceOrderItem addOrUpdateCommerceOrderItem(long commerceOrderId, long cpInstanceId, int quantity, int shippedQuantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
CommerceOrderItem addOrUpdateCommerceOrderItem(long commerceOrderId, long cpInstanceId, java.lang.String json, int quantity, int shippedQuantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
int countSubscriptionCommerceOrderItems(long commerceOrderId)
@Transactional(enabled=false) CommerceOrderItem createCommerceOrderItem(long commerceOrderItemId)
commerceOrderItemId
- the primary key for the new commerce order itemcom.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=DELETE) CommerceOrderItem deleteCommerceOrderItem(CommerceOrderItem commerceOrderItem) 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.
commerceOrderItem
- the commerce order itemcom.liferay.portal.kernel.exception.PortalException
@Indexable(type=DELETE) CommerceOrderItem deleteCommerceOrderItem(CommerceOrderItem commerceOrderItem, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=DELETE) 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.
commerceOrderItemId
- the primary key of the commerce order itemcom.liferay.portal.kernel.exception.PortalException
- if a commerce order item with the primary key could not be foundvoid deleteCommerceOrderItems(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void deleteCommerceOrderItemsByCPInstanceId(long cpInstanceId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
@Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) <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
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) <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
- 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
)@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query@Transactional(propagation=SUPPORTS, readOnly=true) CommerceOrderItem fetchByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId)
@Transactional(propagation=SUPPORTS, readOnly=true) CommerceOrderItem fetchCommerceOrderItem(long commerceOrderItemId)
@Transactional(propagation=SUPPORTS, readOnly=true) CommerceOrderItem fetchCommerceOrderItemByBookedQuantityId(long bookedQuantityId)
@Transactional(propagation=SUPPORTS, readOnly=true) CommerceOrderItem fetchCommerceOrderItemByExternalReferenceCode(long companyId, java.lang.String externalReferenceCode)
companyId
- the primary key of the companyexternalReferenceCode
- the commerce order item's external reference codenull
if a matching commerce order item could not be found@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) CommerceOrderItem fetchCommerceOrderItemByReferenceCode(long companyId, java.lang.String externalReferenceCode)
fetchCommerceOrderItemByExternalReferenceCode(long, String)
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommerceOrderItem> getAvailableForShipmentCommerceOrderItems(long commerceOrderId)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommerceOrderItem> getChildCommerceOrderItems(long parentCommerceOrderItemId)
@Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceInventoryWarehouseItemQuantity(long commerceOrderItemId, long commerceInventoryWarehouseId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) CommerceOrderItem getCommerceOrderItem(long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException
commerceOrderItemId
- the primary key of the commerce order itemcom.liferay.portal.kernel.exception.PortalException
- if a commerce order item with the primary key could not be found@Transactional(propagation=SUPPORTS, readOnly=true) CommerceOrderItem getCommerceOrderItemByExternalReferenceCode(long companyId, java.lang.String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
companyId
- the primary key of the companyexternalReferenceCode
- the commerce order item's external reference codecom.liferay.portal.kernel.exception.PortalException
- if a matching commerce order item could not be found@Transactional(propagation=SUPPORTS, readOnly=true) 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
.
start
- the lower bound of the range of commerce order itemsend
- the upper bound of the range of commerce order items (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, long cpInstanceId, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, long cpInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommerceOrderItem> getCommerceOrderItems(long groupId, long commerceAccountId, int[] orderStatuses, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceOrderItemsCount()
@Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceOrderItemsCount(long commerceOrderId)
@Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceOrderItemsCount(long commerceOrderId, long cpInstanceId)
@Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceOrderItemsCount(long groupId, long commerceAccountId, int[] orderStatuses)
@Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceOrderItemsQuantity(long commerceOrderId)
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
java.lang.String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CommerceOrderItem> getSubscriptionCommerceOrderItems(long commerceOrderId)
@Indexable(type=REINDEX) CommerceOrderItem importCommerceOrderItem(long commerceOrderId, long cpInstanceId, java.lang.String cpMeasurementUnitKey, java.math.BigDecimal decimalQuantity, int shippedQuantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
CommerceOrderItem incrementShippedQuantity(long commerceOrderItemId, int shippedQuantity) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) 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
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) 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
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) 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
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) 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.
commerceOrderItem
- the commerce order itemCommerceOrderItem updateCommerceOrderItem(long commerceOrderItemId, int quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
CommerceOrderItem updateCommerceOrderItem(long commerceOrderItemId, long bookedQuantityId) throws NoSuchOrderItemException
NoSuchOrderItemException
CommerceOrderItem updateCommerceOrderItem(long commerceOrderItemId, long cpMeasurementUnitId, int quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) CommerceOrderItem updateCommerceOrderItem(long commerceOrderItemId, java.lang.String json, int quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) CommerceOrderItem updateCommerceOrderItemDeliveryDate(long commerceOrderItemId, java.util.Date requestedDeliveryDate) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) CommerceOrderItem updateCommerceOrderItemInfo(long commerceOrderItemId, long shippingAddressId, java.lang.String deliveryGroup, java.lang.String printedNote) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) 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
com.liferay.portal.kernel.exception.PortalException
@Deprecated 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
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) CommerceOrderItem updateCommerceOrderItemPrice(long commerceOrderItemId, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) 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
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) 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
com.liferay.portal.kernel.exception.PortalException
@Deprecated CommerceOrderItem updateCommerceOrderItemUnitPrice(long commerceOrderItemId, java.math.BigDecimal unitPrice) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
CommerceOrderItem updateCommerceOrderItemUnitPrice(long userId, long commerceOrderItemId, java.math.BigDecimal decimalQuantity, java.math.BigDecimal unitPrice) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
CommerceOrderItem updateCommerceOrderItemUnitPrice(long userId, long commerceOrderItemId, int quantity, java.math.BigDecimal unitPrice) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) CommerceOrderItem updateCustomFields(long commerceOrderItemId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException