Class CommerceOrderItemWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceOrderItem>
com.liferay.commerce.model.CommerceOrderItemWrapper
All Implemented Interfaces:
CommerceOrderItem, CommerceOrderItemModel, com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.ExternalReferenceCodeModel, com.liferay.portal.kernel.model.GroupedModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.ModelWrapper<CommerceOrderItem>, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.PersistedModel, com.liferay.portal.kernel.model.ShardedModel, com.liferay.portal.kernel.model.StagedAuditedModel, com.liferay.portal.kernel.model.StagedModel, Serializable, Cloneable, Comparable<CommerceOrderItem>

public class CommerceOrderItemWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceOrderItem> implements CommerceOrderItem, com.liferay.portal.kernel.model.ModelWrapper<CommerceOrderItem>

This class is a wrapper for CommerceOrderItem.

See Also:
Generated:
  • Constructor Details

    • CommerceOrderItemWrapper

      public CommerceOrderItemWrapper(CommerceOrderItem commerceOrderItem)
  • Method Details

    • getModelAttributes

      public Map<String,Object> getModelAttributes()
      Specified by:
      getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>
    • setModelAttributes

      public void setModelAttributes(Map<String,Object> attributes)
      Specified by:
      setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>
    • cloneWithOriginalValues

      public CommerceOrderItem cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>
      Specified by:
      cloneWithOriginalValues in interface CommerceOrderItemModel
    • fetchCPInstance

      public com.liferay.commerce.product.model.CPInstance fetchCPInstance()
      Specified by:
      fetchCPInstance in interface CommerceOrderItem
    • fetchCPMeasurementUnit

      public com.liferay.commerce.product.model.CPMeasurementUnit fetchCPMeasurementUnit()
      Specified by:
      fetchCPMeasurementUnit in interface CommerceOrderItem
    • fetchCProduct

      public com.liferay.commerce.product.model.CProduct fetchCProduct()
      Specified by:
      fetchCProduct in interface CommerceOrderItem
    • getAvailableLanguageIds

      public String[] getAvailableLanguageIds()
      Specified by:
      getAvailableLanguageIds in interface CommerceOrderItemModel
      Specified by:
      getAvailableLanguageIds in interface com.liferay.portal.kernel.model.LocalizedModel
    • getChildCommerceOrderItems

      public List<CommerceOrderItem> getChildCommerceOrderItems()
      Specified by:
      getChildCommerceOrderItems in interface CommerceOrderItem
    • getCommerceInventoryBookedQuantityId

      public long getCommerceInventoryBookedQuantityId()
      Returns the commerce inventory booked quantity ID of this commerce order item.
      Specified by:
      getCommerceInventoryBookedQuantityId in interface CommerceOrderItemModel
      Returns:
      the commerce inventory booked quantity ID of this commerce order item
    • getCommerceOrder

      public CommerceOrder getCommerceOrder() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceOrder in interface CommerceOrderItem
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceOrderId

      public long getCommerceOrderId()
      Returns the commerce order ID of this commerce order item.
      Specified by:
      getCommerceOrderId in interface CommerceOrderItemModel
      Returns:
      the commerce order ID of this commerce order item
    • getCommerceOrderItemId

      public long getCommerceOrderItemId()
      Returns the commerce order item ID of this commerce order item.
      Specified by:
      getCommerceOrderItemId in interface CommerceOrderItemModel
      Returns:
      the commerce order item ID of this commerce order item
    • getCommercePriceListId

      public long getCommercePriceListId()
      Returns the commerce price list ID of this commerce order item.
      Specified by:
      getCommercePriceListId in interface CommerceOrderItemModel
      Returns:
      the commerce price list ID of this commerce order item
    • getCompanyId

      public long getCompanyId()
      Returns the company ID of this commerce order item.
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCompanyId in interface CommerceOrderItemModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the company ID of this commerce order item
    • getCPDefinition

      public com.liferay.commerce.product.model.CPDefinition getCPDefinition() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPDefinition in interface CommerceOrderItem
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPDefinitionId

      public long getCPDefinitionId()
      Specified by:
      getCPDefinitionId in interface CommerceOrderItem
    • getCPInstance

      @Deprecated public com.liferay.commerce.product.model.CPInstance getCPInstance() throws com.liferay.portal.kernel.exception.PortalException
      Deprecated.
      As of Athanasius (7.3.x)
      Specified by:
      getCPInstance in interface CommerceOrderItem
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPInstanceId

      public long getCPInstanceId()
      Returns the cp instance ID of this commerce order item.
      Specified by:
      getCPInstanceId in interface CommerceOrderItemModel
      Returns:
      the cp instance ID of this commerce order item
    • getCPMeasurementUnitId

      public long getCPMeasurementUnitId()
      Returns the cp measurement unit ID of this commerce order item.
      Specified by:
      getCPMeasurementUnitId in interface CommerceOrderItemModel
      Returns:
      the cp measurement unit ID of this commerce order item
    • getCProduct

      @Deprecated public com.liferay.commerce.product.model.CProduct getCProduct() throws com.liferay.portal.kernel.exception.PortalException
      Deprecated.
      As of Athanasius (7.3.x)
      Specified by:
      getCProduct in interface CommerceOrderItem
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCProductId

      public long getCProductId()
      Returns the c product ID of this commerce order item.
      Specified by:
      getCProductId in interface CommerceOrderItemModel
      Returns:
      the c product ID of this commerce order item
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this commerce order item.
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCreateDate in interface CommerceOrderItemModel
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the create date of this commerce order item
    • getCustomerCommerceOrderItemId

      public long getCustomerCommerceOrderItemId()
      Returns the customer commerce order item ID of this commerce order item.
      Specified by:
      getCustomerCommerceOrderItemId in interface CommerceOrderItemModel
      Returns:
      the customer commerce order item ID of this commerce order item
    • getDefaultLanguageId

      public String getDefaultLanguageId()
      Specified by:
      getDefaultLanguageId in interface CommerceOrderItemModel
      Specified by:
      getDefaultLanguageId in interface com.liferay.portal.kernel.model.LocalizedModel
    • getDeliveryGroupName

      public String getDeliveryGroupName()
      Returns the delivery group name of this commerce order item.
      Specified by:
      getDeliveryGroupName in interface CommerceOrderItemModel
      Returns:
      the delivery group name of this commerce order item
    • getDeliveryMaxSubscriptionCycles

      public long getDeliveryMaxSubscriptionCycles()
      Returns the delivery max subscription cycles of this commerce order item.
      Specified by:
      getDeliveryMaxSubscriptionCycles in interface CommerceOrderItemModel
      Returns:
      the delivery max subscription cycles of this commerce order item
    • getDeliverySubscriptionLength

      public int getDeliverySubscriptionLength()
      Returns the delivery subscription length of this commerce order item.
      Specified by:
      getDeliverySubscriptionLength in interface CommerceOrderItemModel
      Returns:
      the delivery subscription length of this commerce order item
    • getDeliverySubscriptionType

      public String getDeliverySubscriptionType()
      Returns the delivery subscription type of this commerce order item.
      Specified by:
      getDeliverySubscriptionType in interface CommerceOrderItemModel
      Returns:
      the delivery subscription type of this commerce order item
    • getDeliverySubscriptionTypeSettings

      public String getDeliverySubscriptionTypeSettings()
      Returns the delivery subscription type settings of this commerce order item.
      Specified by:
      getDeliverySubscriptionTypeSettings in interface CommerceOrderItemModel
      Returns:
      the delivery subscription type settings of this commerce order item
    • getDepth

      public double getDepth()
      Returns the depth of this commerce order item.
      Specified by:
      getDepth in interface CommerceOrderItemModel
      Returns:
      the depth of this commerce order item
    • getDiscountAmount

      public BigDecimal getDiscountAmount()
      Returns the discount amount of this commerce order item.
      Specified by:
      getDiscountAmount in interface CommerceOrderItemModel
      Returns:
      the discount amount of this commerce order item
    • getDiscountAmountMoney

      public com.liferay.commerce.currency.model.CommerceMoney getDiscountAmountMoney() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getDiscountAmountMoney in interface CommerceOrderItem
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getDiscountManuallyAdjusted

      public boolean getDiscountManuallyAdjusted()
      Returns the discount manually adjusted of this commerce order item.
      Specified by:
      getDiscountManuallyAdjusted in interface CommerceOrderItemModel
      Returns:
      the discount manually adjusted of this commerce order item
    • getDiscountPercentageLevel1

      public BigDecimal getDiscountPercentageLevel1()
      Returns the discount percentage level1 of this commerce order item.
      Specified by:
      getDiscountPercentageLevel1 in interface CommerceOrderItemModel
      Returns:
      the discount percentage level1 of this commerce order item
    • getDiscountPercentageLevel1WithTaxAmount

      public BigDecimal getDiscountPercentageLevel1WithTaxAmount()
      Returns the discount percentage level1 with tax amount of this commerce order item.
      Specified by:
      getDiscountPercentageLevel1WithTaxAmount in interface CommerceOrderItemModel
      Returns:
      the discount percentage level1 with tax amount of this commerce order item
    • getDiscountPercentageLevel2

      public BigDecimal getDiscountPercentageLevel2()
      Returns the discount percentage level2 of this commerce order item.
      Specified by:
      getDiscountPercentageLevel2 in interface CommerceOrderItemModel
      Returns:
      the discount percentage level2 of this commerce order item
    • getDiscountPercentageLevel2WithTaxAmount

      public BigDecimal getDiscountPercentageLevel2WithTaxAmount()
      Returns the discount percentage level2 with tax amount of this commerce order item.
      Specified by:
      getDiscountPercentageLevel2WithTaxAmount in interface CommerceOrderItemModel
      Returns:
      the discount percentage level2 with tax amount of this commerce order item
    • getDiscountPercentageLevel3

      public BigDecimal getDiscountPercentageLevel3()
      Returns the discount percentage level3 of this commerce order item.
      Specified by:
      getDiscountPercentageLevel3 in interface CommerceOrderItemModel
      Returns:
      the discount percentage level3 of this commerce order item
    • getDiscountPercentageLevel3WithTaxAmount

      public BigDecimal getDiscountPercentageLevel3WithTaxAmount()
      Returns the discount percentage level3 with tax amount of this commerce order item.
      Specified by:
      getDiscountPercentageLevel3WithTaxAmount in interface CommerceOrderItemModel
      Returns:
      the discount percentage level3 with tax amount of this commerce order item
    • getDiscountPercentageLevel4

      public BigDecimal getDiscountPercentageLevel4()
      Returns the discount percentage level4 of this commerce order item.
      Specified by:
      getDiscountPercentageLevel4 in interface CommerceOrderItemModel
      Returns:
      the discount percentage level4 of this commerce order item
    • getDiscountPercentageLevel4WithTaxAmount

      public BigDecimal getDiscountPercentageLevel4WithTaxAmount()
      Returns the discount percentage level4 with tax amount of this commerce order item.
      Specified by:
      getDiscountPercentageLevel4WithTaxAmount in interface CommerceOrderItemModel
      Returns:
      the discount percentage level4 with tax amount of this commerce order item
    • getDiscountWithTaxAmount

      public BigDecimal getDiscountWithTaxAmount()
      Returns the discount with tax amount of this commerce order item.
      Specified by:
      getDiscountWithTaxAmount in interface CommerceOrderItemModel
      Returns:
      the discount with tax amount of this commerce order item
    • getDiscountWithTaxAmountMoney

      public com.liferay.commerce.currency.model.CommerceMoney getDiscountWithTaxAmountMoney() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getDiscountWithTaxAmountMoney in interface CommerceOrderItem
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getExternalReferenceCode

      public String getExternalReferenceCode()
      Returns the external reference code of this commerce order item.
      Specified by:
      getExternalReferenceCode in interface CommerceOrderItemModel
      Specified by:
      getExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Returns:
      the external reference code of this commerce order item
    • getFinalPrice

      public BigDecimal getFinalPrice()
      Returns the final price of this commerce order item.
      Specified by:
      getFinalPrice in interface CommerceOrderItemModel
      Returns:
      the final price of this commerce order item
    • getFinalPriceMoney

      public com.liferay.commerce.currency.model.CommerceMoney getFinalPriceMoney() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getFinalPriceMoney in interface CommerceOrderItem
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFinalPriceWithTaxAmount

      public BigDecimal getFinalPriceWithTaxAmount()
      Returns the final price with tax amount of this commerce order item.
      Specified by:
      getFinalPriceWithTaxAmount in interface CommerceOrderItemModel
      Returns:
      the final price with tax amount of this commerce order item
    • getFinalPriceWithTaxAmountMoney

      public com.liferay.commerce.currency.model.CommerceMoney getFinalPriceWithTaxAmountMoney() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getFinalPriceWithTaxAmountMoney in interface CommerceOrderItem
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFreeShipping

      public boolean getFreeShipping()
      Returns the free shipping of this commerce order item.
      Specified by:
      getFreeShipping in interface CommerceOrderItemModel
      Returns:
      the free shipping of this commerce order item
    • getGroupId

      public long getGroupId()
      Returns the group ID of this commerce order item.
      Specified by:
      getGroupId in interface CommerceOrderItemModel
      Specified by:
      getGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Returns:
      the group ID of this commerce order item
    • getHeight

      public double getHeight()
      Returns the height of this commerce order item.
      Specified by:
      getHeight in interface CommerceOrderItemModel
      Returns:
      the height of this commerce order item
    • getJson

      public String getJson()
      Returns the json of this commerce order item.
      Specified by:
      getJson in interface CommerceOrderItemModel
      Returns:
      the json of this commerce order item
    • getManuallyAdjusted

      public boolean getManuallyAdjusted()
      Returns the manually adjusted of this commerce order item.
      Specified by:
      getManuallyAdjusted in interface CommerceOrderItemModel
      Returns:
      the manually adjusted of this commerce order item
    • getMaxSubscriptionCycles

      public long getMaxSubscriptionCycles()
      Returns the max subscription cycles of this commerce order item.
      Specified by:
      getMaxSubscriptionCycles in interface CommerceOrderItemModel
      Returns:
      the max subscription cycles of this commerce order item
    • getModifiedDate

      public Date getModifiedDate()
      Returns the modified date of this commerce order item.
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getModifiedDate in interface CommerceOrderItemModel
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the modified date of this commerce order item
    • getMvccVersion

      public long getMvccVersion()
      Returns the mvcc version of this commerce order item.
      Specified by:
      getMvccVersion in interface CommerceOrderItemModel
      Specified by:
      getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Returns:
      the mvcc version of this commerce order item
    • getName

      public String getName()
      Returns the name of this commerce order item.
      Specified by:
      getName in interface CommerceOrderItemModel
      Returns:
      the name of this commerce order item
    • getName

      public String getName(Locale locale)
      Returns the localized name of this commerce order item in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getName in interface CommerceOrderItemModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized name of this commerce order item
    • getName

      public String getName(Locale locale, boolean useDefault)
      Returns the localized name of this commerce order item in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getName in interface CommerceOrderItemModel
      Parameters:
      locale - the local of the language
      useDefault - whether to use the default language if no localization exists for the requested language
      Returns:
      the localized name of this commerce order item. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getName

      public String getName(String languageId)
      Returns the localized name of this commerce order item in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getName in interface CommerceOrderItemModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized name of this commerce order item
    • getName

      public String getName(String languageId, boolean useDefault)
      Returns the localized name of this commerce order item in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getName in interface CommerceOrderItemModel
      Parameters:
      languageId - the ID of the language
      useDefault - whether to use the default language if no localization exists for the requested language
      Returns:
      the localized name of this commerce order item
    • getNameCurrentLanguageId

      public String getNameCurrentLanguageId()
      Specified by:
      getNameCurrentLanguageId in interface CommerceOrderItemModel
    • getNameCurrentValue

      public String getNameCurrentValue()
      Specified by:
      getNameCurrentValue in interface CommerceOrderItemModel
    • getNameMap

      public Map<Locale,String> getNameMap()
      Returns a map of the locales and localized names of this commerce order item.
      Specified by:
      getNameMap in interface CommerceOrderItemModel
      Returns:
      the locales and localized names of this commerce order item
    • getParentCommerceOrderItemCPDefinitionId

      public long getParentCommerceOrderItemCPDefinitionId()
      Specified by:
      getParentCommerceOrderItemCPDefinitionId in interface CommerceOrderItem
    • getParentCommerceOrderItemId

      public long getParentCommerceOrderItemId()
      Returns the parent commerce order item ID of this commerce order item.
      Specified by:
      getParentCommerceOrderItemId in interface CommerceOrderItemModel
      Returns:
      the parent commerce order item ID of this commerce order item
    • getPriceManuallyAdjusted

      public boolean getPriceManuallyAdjusted()
      Returns the price manually adjusted of this commerce order item.
      Specified by:
      getPriceManuallyAdjusted in interface CommerceOrderItemModel
      Returns:
      the price manually adjusted of this commerce order item
    • getPriceOnApplication

      public boolean getPriceOnApplication()
      Returns the price on application of this commerce order item.
      Specified by:
      getPriceOnApplication in interface CommerceOrderItemModel
      Returns:
      the price on application of this commerce order item
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this commerce order item.
      Specified by:
      getPrimaryKey in interface CommerceOrderItemModel
      Returns:
      the primary key of this commerce order item
    • getPrintedNote

      public String getPrintedNote()
      Returns the printed note of this commerce order item.
      Specified by:
      getPrintedNote in interface CommerceOrderItemModel
      Returns:
      the printed note of this commerce order item
    • getPromoPrice

      public BigDecimal getPromoPrice()
      Returns the promo price of this commerce order item.
      Specified by:
      getPromoPrice in interface CommerceOrderItemModel
      Returns:
      the promo price of this commerce order item
    • getPromoPriceMoney

      public com.liferay.commerce.currency.model.CommerceMoney getPromoPriceMoney() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPromoPriceMoney in interface CommerceOrderItem
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPromoPriceWithTaxAmount

      public BigDecimal getPromoPriceWithTaxAmount()
      Returns the promo price with tax amount of this commerce order item.
      Specified by:
      getPromoPriceWithTaxAmount in interface CommerceOrderItemModel
      Returns:
      the promo price with tax amount of this commerce order item
    • getPromoPriceWithTaxAmountMoney

      public com.liferay.commerce.currency.model.CommerceMoney getPromoPriceWithTaxAmountMoney() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPromoPriceWithTaxAmountMoney in interface CommerceOrderItem
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getQuantity

      public BigDecimal getQuantity()
      Returns the quantity of this commerce order item.
      Specified by:
      getQuantity in interface CommerceOrderItemModel
      Returns:
      the quantity of this commerce order item
    • getReplacedCPInstanceId

      public long getReplacedCPInstanceId()
      Returns the replaced cp instance ID of this commerce order item.
      Specified by:
      getReplacedCPInstanceId in interface CommerceOrderItemModel
      Returns:
      the replaced cp instance ID of this commerce order item
    • getReplacedSku

      public String getReplacedSku()
      Returns the replaced sku of this commerce order item.
      Specified by:
      getReplacedSku in interface CommerceOrderItemModel
      Returns:
      the replaced sku of this commerce order item
    • getRequestedDeliveryDate

      public Date getRequestedDeliveryDate()
      Returns the requested delivery date of this commerce order item.
      Specified by:
      getRequestedDeliveryDate in interface CommerceOrderItemModel
      Returns:
      the requested delivery date of this commerce order item
    • getShippable

      public boolean getShippable()
      Returns the shippable of this commerce order item.
      Specified by:
      getShippable in interface CommerceOrderItemModel
      Returns:
      the shippable of this commerce order item
    • getShippedQuantity

      public BigDecimal getShippedQuantity()
      Returns the shipped quantity of this commerce order item.
      Specified by:
      getShippedQuantity in interface CommerceOrderItemModel
      Returns:
      the shipped quantity of this commerce order item
    • getShippingAddressId

      public long getShippingAddressId()
      Returns the shipping address ID of this commerce order item.
      Specified by:
      getShippingAddressId in interface CommerceOrderItemModel
      Returns:
      the shipping address ID of this commerce order item
    • getShippingExtraPrice

      public double getShippingExtraPrice()
      Returns the shipping extra price of this commerce order item.
      Specified by:
      getShippingExtraPrice in interface CommerceOrderItemModel
      Returns:
      the shipping extra price of this commerce order item
    • getShipSeparately

      public boolean getShipSeparately()
      Returns the ship separately of this commerce order item.
      Specified by:
      getShipSeparately in interface CommerceOrderItemModel
      Returns:
      the ship separately of this commerce order item
    • getSku

      public String getSku()
      Returns the sku of this commerce order item.
      Specified by:
      getSku in interface CommerceOrderItemModel
      Returns:
      the sku of this commerce order item
    • getSubscription

      public boolean getSubscription()
      Returns the subscription of this commerce order item.
      Specified by:
      getSubscription in interface CommerceOrderItemModel
      Returns:
      the subscription of this commerce order item
    • getSubscriptionLength

      public int getSubscriptionLength()
      Returns the subscription length of this commerce order item.
      Specified by:
      getSubscriptionLength in interface CommerceOrderItemModel
      Returns:
      the subscription length of this commerce order item
    • getSubscriptionType

      public String getSubscriptionType()
      Returns the subscription type of this commerce order item.
      Specified by:
      getSubscriptionType in interface CommerceOrderItemModel
      Returns:
      the subscription type of this commerce order item
    • getSubscriptionTypeSettings

      public String getSubscriptionTypeSettings()
      Returns the subscription type settings of this commerce order item.
      Specified by:
      getSubscriptionTypeSettings in interface CommerceOrderItemModel
      Returns:
      the subscription type settings of this commerce order item
    • getUnitOfMeasureIncrementalOrderQuantity

      public BigDecimal getUnitOfMeasureIncrementalOrderQuantity()
      Returns the unit of measure incremental order quantity of this commerce order item.
      Specified by:
      getUnitOfMeasureIncrementalOrderQuantity in interface CommerceOrderItemModel
      Returns:
      the unit of measure incremental order quantity of this commerce order item
    • getUnitOfMeasureKey

      public String getUnitOfMeasureKey()
      Returns the unit of measure key of this commerce order item.
      Specified by:
      getUnitOfMeasureKey in interface CommerceOrderItemModel
      Returns:
      the unit of measure key of this commerce order item
    • getUnitPrice

      public BigDecimal getUnitPrice()
      Returns the unit price of this commerce order item.
      Specified by:
      getUnitPrice in interface CommerceOrderItemModel
      Returns:
      the unit price of this commerce order item
    • getUnitPriceMoney

      public com.liferay.commerce.currency.model.CommerceMoney getUnitPriceMoney() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getUnitPriceMoney in interface CommerceOrderItem
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUnitPriceWithTaxAmount

      public BigDecimal getUnitPriceWithTaxAmount()
      Returns the unit price with tax amount of this commerce order item.
      Specified by:
      getUnitPriceWithTaxAmount in interface CommerceOrderItemModel
      Returns:
      the unit price with tax amount of this commerce order item
    • getUnitPriceWithTaxAmountMoney

      public com.liferay.commerce.currency.model.CommerceMoney getUnitPriceWithTaxAmountMoney() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getUnitPriceWithTaxAmountMoney in interface CommerceOrderItem
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserId

      public long getUserId()
      Returns the user ID of this commerce order item.
      Specified by:
      getUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserId in interface CommerceOrderItemModel
      Returns:
      the user ID of this commerce order item
    • getUserName

      public String getUserName()
      Returns the user name of this commerce order item.
      Specified by:
      getUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserName in interface CommerceOrderItemModel
      Returns:
      the user name of this commerce order item
    • getUserUuid

      public String getUserUuid()
      Returns the user uuid of this commerce order item.
      Specified by:
      getUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserUuid in interface CommerceOrderItemModel
      Returns:
      the user uuid of this commerce order item
    • getUuid

      public String getUuid()
      Returns the uuid of this commerce order item.
      Specified by:
      getUuid in interface CommerceOrderItemModel
      Specified by:
      getUuid in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the uuid of this commerce order item
    • getWeight

      public double getWeight()
      Returns the weight of this commerce order item.
      Specified by:
      getWeight in interface CommerceOrderItemModel
      Returns:
      the weight of this commerce order item
    • getWidth

      public double getWidth()
      Returns the width of this commerce order item.
      Specified by:
      getWidth in interface CommerceOrderItemModel
      Returns:
      the width of this commerce order item
    • hasParentCommerceOrderItem

      public boolean hasParentCommerceOrderItem()
      Specified by:
      hasParentCommerceOrderItem in interface CommerceOrderItem
    • isDiscountManuallyAdjusted

      public boolean isDiscountManuallyAdjusted()
      Returns true if this commerce order item is discount manually adjusted.
      Specified by:
      isDiscountManuallyAdjusted in interface CommerceOrderItemModel
      Returns:
      true if this commerce order item is discount manually adjusted; false otherwise
    • isFreeShipping

      public boolean isFreeShipping()
      Returns true if this commerce order item is free shipping.
      Specified by:
      isFreeShipping in interface CommerceOrderItemModel
      Returns:
      true if this commerce order item is free shipping; false otherwise
    • isManuallyAdjusted

      public boolean isManuallyAdjusted()
      Returns true if this commerce order item is manually adjusted.
      Specified by:
      isManuallyAdjusted in interface CommerceOrderItemModel
      Returns:
      true if this commerce order item is manually adjusted; false otherwise
    • isPriceManuallyAdjusted

      public boolean isPriceManuallyAdjusted()
      Returns true if this commerce order item is price manually adjusted.
      Specified by:
      isPriceManuallyAdjusted in interface CommerceOrderItemModel
      Returns:
      true if this commerce order item is price manually adjusted; false otherwise
    • isPriceOnApplication

      public boolean isPriceOnApplication()
      Returns true if this commerce order item is price on application.
      Specified by:
      isPriceOnApplication in interface CommerceOrderItemModel
      Returns:
      true if this commerce order item is price on application; false otherwise
    • isShippable

      public boolean isShippable()
      Returns true if this commerce order item is shippable.
      Specified by:
      isShippable in interface CommerceOrderItemModel
      Returns:
      true if this commerce order item is shippable; false otherwise
    • isShipSeparately

      public boolean isShipSeparately()
      Returns true if this commerce order item is ship separately.
      Specified by:
      isShipSeparately in interface CommerceOrderItemModel
      Returns:
      true if this commerce order item is ship separately; false otherwise
    • isSubscription

      public boolean isSubscription()
      Returns true if this commerce order item is subscription.
      Specified by:
      isSubscription in interface CommerceOrderItemModel
      Returns:
      true if this commerce order item is subscription; false otherwise
    • persist

      public void persist()
      Specified by:
      persist in interface com.liferay.portal.kernel.model.PersistedModel
    • prepareLocalizedFieldsForImport

      public void prepareLocalizedFieldsForImport() throws com.liferay.portal.kernel.exception.LocaleException
      Specified by:
      prepareLocalizedFieldsForImport in interface CommerceOrderItemModel
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • prepareLocalizedFieldsForImport

      public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws com.liferay.portal.kernel.exception.LocaleException
      Specified by:
      prepareLocalizedFieldsForImport in interface CommerceOrderItemModel
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • setCommerceInventoryBookedQuantityId

      public void setCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId)
      Sets the commerce inventory booked quantity ID of this commerce order item.
      Specified by:
      setCommerceInventoryBookedQuantityId in interface CommerceOrderItemModel
      Parameters:
      commerceInventoryBookedQuantityId - the commerce inventory booked quantity ID of this commerce order item
    • setCommerceOrderId

      public void setCommerceOrderId(long commerceOrderId)
      Sets the commerce order ID of this commerce order item.
      Specified by:
      setCommerceOrderId in interface CommerceOrderItemModel
      Parameters:
      commerceOrderId - the commerce order ID of this commerce order item
    • setCommerceOrderItemId

      public void setCommerceOrderItemId(long commerceOrderItemId)
      Sets the commerce order item ID of this commerce order item.
      Specified by:
      setCommerceOrderItemId in interface CommerceOrderItemModel
      Parameters:
      commerceOrderItemId - the commerce order item ID of this commerce order item
    • setCommercePriceListId

      public void setCommercePriceListId(long commercePriceListId)
      Sets the commerce price list ID of this commerce order item.
      Specified by:
      setCommercePriceListId in interface CommerceOrderItemModel
      Parameters:
      commercePriceListId - the commerce price list ID of this commerce order item
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this commerce order item.
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface CommerceOrderItemModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      companyId - the company ID of this commerce order item
    • setCPInstanceId

      public void setCPInstanceId(long CPInstanceId)
      Sets the cp instance ID of this commerce order item.
      Specified by:
      setCPInstanceId in interface CommerceOrderItemModel
      Parameters:
      CPInstanceId - the cp instance ID of this commerce order item
    • setCPMeasurementUnitId

      public void setCPMeasurementUnitId(long CPMeasurementUnitId)
      Sets the cp measurement unit ID of this commerce order item.
      Specified by:
      setCPMeasurementUnitId in interface CommerceOrderItemModel
      Parameters:
      CPMeasurementUnitId - the cp measurement unit ID of this commerce order item
    • setCProductId

      public void setCProductId(long CProductId)
      Sets the c product ID of this commerce order item.
      Specified by:
      setCProductId in interface CommerceOrderItemModel
      Parameters:
      CProductId - the c product ID of this commerce order item
    • setCreateDate

      public void setCreateDate(Date createDate)
      Sets the create date of this commerce order item.
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCreateDate in interface CommerceOrderItemModel
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      createDate - the create date of this commerce order item
    • setCustomerCommerceOrderItemId

      public void setCustomerCommerceOrderItemId(long customerCommerceOrderItemId)
      Sets the customer commerce order item ID of this commerce order item.
      Specified by:
      setCustomerCommerceOrderItemId in interface CommerceOrderItemModel
      Parameters:
      customerCommerceOrderItemId - the customer commerce order item ID of this commerce order item
    • setDeliveryGroupName

      public void setDeliveryGroupName(String deliveryGroupName)
      Sets the delivery group name of this commerce order item.
      Specified by:
      setDeliveryGroupName in interface CommerceOrderItemModel
      Parameters:
      deliveryGroupName - the delivery group name of this commerce order item
    • setDeliveryMaxSubscriptionCycles

      public void setDeliveryMaxSubscriptionCycles(long deliveryMaxSubscriptionCycles)
      Sets the delivery max subscription cycles of this commerce order item.
      Specified by:
      setDeliveryMaxSubscriptionCycles in interface CommerceOrderItemModel
      Parameters:
      deliveryMaxSubscriptionCycles - the delivery max subscription cycles of this commerce order item
    • setDeliverySubscriptionLength

      public void setDeliverySubscriptionLength(int deliverySubscriptionLength)
      Sets the delivery subscription length of this commerce order item.
      Specified by:
      setDeliverySubscriptionLength in interface CommerceOrderItemModel
      Parameters:
      deliverySubscriptionLength - the delivery subscription length of this commerce order item
    • setDeliverySubscriptionType

      public void setDeliverySubscriptionType(String deliverySubscriptionType)
      Sets the delivery subscription type of this commerce order item.
      Specified by:
      setDeliverySubscriptionType in interface CommerceOrderItemModel
      Parameters:
      deliverySubscriptionType - the delivery subscription type of this commerce order item
    • setDeliverySubscriptionTypeSettings

      public void setDeliverySubscriptionTypeSettings(String deliverySubscriptionTypeSettings)
      Sets the delivery subscription type settings of this commerce order item.
      Specified by:
      setDeliverySubscriptionTypeSettings in interface CommerceOrderItemModel
      Parameters:
      deliverySubscriptionTypeSettings - the delivery subscription type settings of this commerce order item
    • setDepth

      public void setDepth(double depth)
      Sets the depth of this commerce order item.
      Specified by:
      setDepth in interface CommerceOrderItemModel
      Parameters:
      depth - the depth of this commerce order item
    • setDiscountAmount

      public void setDiscountAmount(BigDecimal discountAmount)
      Sets the discount amount of this commerce order item.
      Specified by:
      setDiscountAmount in interface CommerceOrderItemModel
      Parameters:
      discountAmount - the discount amount of this commerce order item
    • setDiscountManuallyAdjusted

      public void setDiscountManuallyAdjusted(boolean discountManuallyAdjusted)
      Sets whether this commerce order item is discount manually adjusted.
      Specified by:
      setDiscountManuallyAdjusted in interface CommerceOrderItemModel
      Parameters:
      discountManuallyAdjusted - the discount manually adjusted of this commerce order item
    • setDiscountPercentageLevel1

      public void setDiscountPercentageLevel1(BigDecimal discountPercentageLevel1)
      Sets the discount percentage level1 of this commerce order item.
      Specified by:
      setDiscountPercentageLevel1 in interface CommerceOrderItemModel
      Parameters:
      discountPercentageLevel1 - the discount percentage level1 of this commerce order item
    • setDiscountPercentageLevel1WithTaxAmount

      public void setDiscountPercentageLevel1WithTaxAmount(BigDecimal discountPercentageLevel1WithTaxAmount)
      Sets the discount percentage level1 with tax amount of this commerce order item.
      Specified by:
      setDiscountPercentageLevel1WithTaxAmount in interface CommerceOrderItemModel
      Parameters:
      discountPercentageLevel1WithTaxAmount - the discount percentage level1 with tax amount of this commerce order item
    • setDiscountPercentageLevel2

      public void setDiscountPercentageLevel2(BigDecimal discountPercentageLevel2)
      Sets the discount percentage level2 of this commerce order item.
      Specified by:
      setDiscountPercentageLevel2 in interface CommerceOrderItemModel
      Parameters:
      discountPercentageLevel2 - the discount percentage level2 of this commerce order item
    • setDiscountPercentageLevel2WithTaxAmount

      public void setDiscountPercentageLevel2WithTaxAmount(BigDecimal discountPercentageLevel2WithTaxAmount)
      Sets the discount percentage level2 with tax amount of this commerce order item.
      Specified by:
      setDiscountPercentageLevel2WithTaxAmount in interface CommerceOrderItemModel
      Parameters:
      discountPercentageLevel2WithTaxAmount - the discount percentage level2 with tax amount of this commerce order item
    • setDiscountPercentageLevel3

      public void setDiscountPercentageLevel3(BigDecimal discountPercentageLevel3)
      Sets the discount percentage level3 of this commerce order item.
      Specified by:
      setDiscountPercentageLevel3 in interface CommerceOrderItemModel
      Parameters:
      discountPercentageLevel3 - the discount percentage level3 of this commerce order item
    • setDiscountPercentageLevel3WithTaxAmount

      public void setDiscountPercentageLevel3WithTaxAmount(BigDecimal discountPercentageLevel3WithTaxAmount)
      Sets the discount percentage level3 with tax amount of this commerce order item.
      Specified by:
      setDiscountPercentageLevel3WithTaxAmount in interface CommerceOrderItemModel
      Parameters:
      discountPercentageLevel3WithTaxAmount - the discount percentage level3 with tax amount of this commerce order item
    • setDiscountPercentageLevel4

      public void setDiscountPercentageLevel4(BigDecimal discountPercentageLevel4)
      Sets the discount percentage level4 of this commerce order item.
      Specified by:
      setDiscountPercentageLevel4 in interface CommerceOrderItemModel
      Parameters:
      discountPercentageLevel4 - the discount percentage level4 of this commerce order item
    • setDiscountPercentageLevel4WithTaxAmount

      public void setDiscountPercentageLevel4WithTaxAmount(BigDecimal discountPercentageLevel4WithTaxAmount)
      Sets the discount percentage level4 with tax amount of this commerce order item.
      Specified by:
      setDiscountPercentageLevel4WithTaxAmount in interface CommerceOrderItemModel
      Parameters:
      discountPercentageLevel4WithTaxAmount - the discount percentage level4 with tax amount of this commerce order item
    • setDiscountWithTaxAmount

      public void setDiscountWithTaxAmount(BigDecimal discountWithTaxAmount)
      Sets the discount with tax amount of this commerce order item.
      Specified by:
      setDiscountWithTaxAmount in interface CommerceOrderItemModel
      Parameters:
      discountWithTaxAmount - the discount with tax amount of this commerce order item
    • setExternalReferenceCode

      public void setExternalReferenceCode(String externalReferenceCode)
      Sets the external reference code of this commerce order item.
      Specified by:
      setExternalReferenceCode in interface CommerceOrderItemModel
      Specified by:
      setExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Parameters:
      externalReferenceCode - the external reference code of this commerce order item
    • setFinalPrice

      public void setFinalPrice(BigDecimal finalPrice)
      Sets the final price of this commerce order item.
      Specified by:
      setFinalPrice in interface CommerceOrderItemModel
      Parameters:
      finalPrice - the final price of this commerce order item
    • setFinalPriceWithTaxAmount

      public void setFinalPriceWithTaxAmount(BigDecimal finalPriceWithTaxAmount)
      Sets the final price with tax amount of this commerce order item.
      Specified by:
      setFinalPriceWithTaxAmount in interface CommerceOrderItemModel
      Parameters:
      finalPriceWithTaxAmount - the final price with tax amount of this commerce order item
    • setFreeShipping

      public void setFreeShipping(boolean freeShipping)
      Sets whether this commerce order item is free shipping.
      Specified by:
      setFreeShipping in interface CommerceOrderItemModel
      Parameters:
      freeShipping - the free shipping of this commerce order item
    • setGroupId

      public void setGroupId(long groupId)
      Sets the group ID of this commerce order item.
      Specified by:
      setGroupId in interface CommerceOrderItemModel
      Specified by:
      setGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Parameters:
      groupId - the group ID of this commerce order item
    • setHeight

      public void setHeight(double height)
      Sets the height of this commerce order item.
      Specified by:
      setHeight in interface CommerceOrderItemModel
      Parameters:
      height - the height of this commerce order item
    • setJson

      public void setJson(String json)
      Sets the json of this commerce order item.
      Specified by:
      setJson in interface CommerceOrderItemModel
      Parameters:
      json - the json of this commerce order item
    • setManuallyAdjusted

      public void setManuallyAdjusted(boolean manuallyAdjusted)
      Sets whether this commerce order item is manually adjusted.
      Specified by:
      setManuallyAdjusted in interface CommerceOrderItemModel
      Parameters:
      manuallyAdjusted - the manually adjusted of this commerce order item
    • setMaxSubscriptionCycles

      public void setMaxSubscriptionCycles(long maxSubscriptionCycles)
      Sets the max subscription cycles of this commerce order item.
      Specified by:
      setMaxSubscriptionCycles in interface CommerceOrderItemModel
      Parameters:
      maxSubscriptionCycles - the max subscription cycles of this commerce order item
    • setModifiedDate

      public void setModifiedDate(Date modifiedDate)
      Sets the modified date of this commerce order item.
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setModifiedDate in interface CommerceOrderItemModel
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      modifiedDate - the modified date of this commerce order item
    • setMvccVersion

      public void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this commerce order item.
      Specified by:
      setMvccVersion in interface CommerceOrderItemModel
      Specified by:
      setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Parameters:
      mvccVersion - the mvcc version of this commerce order item
    • setName

      public void setName(String name)
      Sets the name of this commerce order item.
      Specified by:
      setName in interface CommerceOrderItemModel
      Parameters:
      name - the name of this commerce order item
    • setName

      public void setName(String name, Locale locale)
      Sets the localized name of this commerce order item in the language.
      Specified by:
      setName in interface CommerceOrderItemModel
      Parameters:
      name - the localized name of this commerce order item
      locale - the locale of the language
    • setName

      public void setName(String name, Locale locale, Locale defaultLocale)
      Sets the localized name of this commerce order item in the language, and sets the default locale.
      Specified by:
      setName in interface CommerceOrderItemModel
      Parameters:
      name - the localized name of this commerce order item
      locale - the locale of the language
      defaultLocale - the default locale
    • setNameCurrentLanguageId

      public void setNameCurrentLanguageId(String languageId)
      Specified by:
      setNameCurrentLanguageId in interface CommerceOrderItemModel
    • setNameMap

      public void setNameMap(Map<Locale,String> nameMap)
      Sets the localized names of this commerce order item from the map of locales and localized names.
      Specified by:
      setNameMap in interface CommerceOrderItemModel
      Parameters:
      nameMap - the locales and localized names of this commerce order item
    • setNameMap

      public void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
      Sets the localized names of this commerce order item from the map of locales and localized names, and sets the default locale.
      Specified by:
      setNameMap in interface CommerceOrderItemModel
      Parameters:
      nameMap - the locales and localized names of this commerce order item
      defaultLocale - the default locale
    • setParentCommerceOrderItemId

      public void setParentCommerceOrderItemId(long parentCommerceOrderItemId)
      Sets the parent commerce order item ID of this commerce order item.
      Specified by:
      setParentCommerceOrderItemId in interface CommerceOrderItemModel
      Parameters:
      parentCommerceOrderItemId - the parent commerce order item ID of this commerce order item
    • setPriceManuallyAdjusted

      public void setPriceManuallyAdjusted(boolean priceManuallyAdjusted)
      Sets whether this commerce order item is price manually adjusted.
      Specified by:
      setPriceManuallyAdjusted in interface CommerceOrderItemModel
      Parameters:
      priceManuallyAdjusted - the price manually adjusted of this commerce order item
    • setPriceOnApplication

      public void setPriceOnApplication(boolean priceOnApplication)
      Sets whether this commerce order item is price on application.
      Specified by:
      setPriceOnApplication in interface CommerceOrderItemModel
      Parameters:
      priceOnApplication - the price on application of this commerce order item
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this commerce order item.
      Specified by:
      setPrimaryKey in interface CommerceOrderItemModel
      Parameters:
      primaryKey - the primary key of this commerce order item
    • setPrintedNote

      public void setPrintedNote(String printedNote)
      Sets the printed note of this commerce order item.
      Specified by:
      setPrintedNote in interface CommerceOrderItemModel
      Parameters:
      printedNote - the printed note of this commerce order item
    • setPromoPrice

      public void setPromoPrice(BigDecimal promoPrice)
      Sets the promo price of this commerce order item.
      Specified by:
      setPromoPrice in interface CommerceOrderItemModel
      Parameters:
      promoPrice - the promo price of this commerce order item
    • setPromoPriceWithTaxAmount

      public void setPromoPriceWithTaxAmount(BigDecimal promoPriceWithTaxAmount)
      Sets the promo price with tax amount of this commerce order item.
      Specified by:
      setPromoPriceWithTaxAmount in interface CommerceOrderItemModel
      Parameters:
      promoPriceWithTaxAmount - the promo price with tax amount of this commerce order item
    • setQuantity

      public void setQuantity(BigDecimal quantity)
      Sets the quantity of this commerce order item.
      Specified by:
      setQuantity in interface CommerceOrderItemModel
      Parameters:
      quantity - the quantity of this commerce order item
    • setReplacedCPInstanceId

      public void setReplacedCPInstanceId(long replacedCPInstanceId)
      Sets the replaced cp instance ID of this commerce order item.
      Specified by:
      setReplacedCPInstanceId in interface CommerceOrderItemModel
      Parameters:
      replacedCPInstanceId - the replaced cp instance ID of this commerce order item
    • setReplacedSku

      public void setReplacedSku(String replacedSku)
      Sets the replaced sku of this commerce order item.
      Specified by:
      setReplacedSku in interface CommerceOrderItemModel
      Parameters:
      replacedSku - the replaced sku of this commerce order item
    • setRequestedDeliveryDate

      public void setRequestedDeliveryDate(Date requestedDeliveryDate)
      Sets the requested delivery date of this commerce order item.
      Specified by:
      setRequestedDeliveryDate in interface CommerceOrderItemModel
      Parameters:
      requestedDeliveryDate - the requested delivery date of this commerce order item
    • setShippable

      public void setShippable(boolean shippable)
      Sets whether this commerce order item is shippable.
      Specified by:
      setShippable in interface CommerceOrderItemModel
      Parameters:
      shippable - the shippable of this commerce order item
    • setShippedQuantity

      public void setShippedQuantity(BigDecimal shippedQuantity)
      Sets the shipped quantity of this commerce order item.
      Specified by:
      setShippedQuantity in interface CommerceOrderItemModel
      Parameters:
      shippedQuantity - the shipped quantity of this commerce order item
    • setShippingAddressId

      public void setShippingAddressId(long shippingAddressId)
      Sets the shipping address ID of this commerce order item.
      Specified by:
      setShippingAddressId in interface CommerceOrderItemModel
      Parameters:
      shippingAddressId - the shipping address ID of this commerce order item
    • setShippingExtraPrice

      public void setShippingExtraPrice(double shippingExtraPrice)
      Sets the shipping extra price of this commerce order item.
      Specified by:
      setShippingExtraPrice in interface CommerceOrderItemModel
      Parameters:
      shippingExtraPrice - the shipping extra price of this commerce order item
    • setShipSeparately

      public void setShipSeparately(boolean shipSeparately)
      Sets whether this commerce order item is ship separately.
      Specified by:
      setShipSeparately in interface CommerceOrderItemModel
      Parameters:
      shipSeparately - the ship separately of this commerce order item
    • setSku

      public void setSku(String sku)
      Sets the sku of this commerce order item.
      Specified by:
      setSku in interface CommerceOrderItemModel
      Parameters:
      sku - the sku of this commerce order item
    • setSubscription

      public void setSubscription(boolean subscription)
      Sets whether this commerce order item is subscription.
      Specified by:
      setSubscription in interface CommerceOrderItemModel
      Parameters:
      subscription - the subscription of this commerce order item
    • setSubscriptionLength

      public void setSubscriptionLength(int subscriptionLength)
      Sets the subscription length of this commerce order item.
      Specified by:
      setSubscriptionLength in interface CommerceOrderItemModel
      Parameters:
      subscriptionLength - the subscription length of this commerce order item
    • setSubscriptionType

      public void setSubscriptionType(String subscriptionType)
      Sets the subscription type of this commerce order item.
      Specified by:
      setSubscriptionType in interface CommerceOrderItemModel
      Parameters:
      subscriptionType - the subscription type of this commerce order item
    • setSubscriptionTypeSettings

      public void setSubscriptionTypeSettings(String subscriptionTypeSettings)
      Sets the subscription type settings of this commerce order item.
      Specified by:
      setSubscriptionTypeSettings in interface CommerceOrderItemModel
      Parameters:
      subscriptionTypeSettings - the subscription type settings of this commerce order item
    • setUnitOfMeasureIncrementalOrderQuantity

      public void setUnitOfMeasureIncrementalOrderQuantity(BigDecimal unitOfMeasureIncrementalOrderQuantity)
      Sets the unit of measure incremental order quantity of this commerce order item.
      Specified by:
      setUnitOfMeasureIncrementalOrderQuantity in interface CommerceOrderItemModel
      Parameters:
      unitOfMeasureIncrementalOrderQuantity - the unit of measure incremental order quantity of this commerce order item
    • setUnitOfMeasureKey

      public void setUnitOfMeasureKey(String unitOfMeasureKey)
      Sets the unit of measure key of this commerce order item.
      Specified by:
      setUnitOfMeasureKey in interface CommerceOrderItemModel
      Parameters:
      unitOfMeasureKey - the unit of measure key of this commerce order item
    • setUnitPrice

      public void setUnitPrice(BigDecimal unitPrice)
      Sets the unit price of this commerce order item.
      Specified by:
      setUnitPrice in interface CommerceOrderItemModel
      Parameters:
      unitPrice - the unit price of this commerce order item
    • setUnitPriceWithTaxAmount

      public void setUnitPriceWithTaxAmount(BigDecimal unitPriceWithTaxAmount)
      Sets the unit price with tax amount of this commerce order item.
      Specified by:
      setUnitPriceWithTaxAmount in interface CommerceOrderItemModel
      Parameters:
      unitPriceWithTaxAmount - the unit price with tax amount of this commerce order item
    • setUserId

      public void setUserId(long userId)
      Sets the user ID of this commerce order item.
      Specified by:
      setUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserId in interface CommerceOrderItemModel
      Parameters:
      userId - the user ID of this commerce order item
    • setUserName

      public void setUserName(String userName)
      Sets the user name of this commerce order item.
      Specified by:
      setUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserName in interface CommerceOrderItemModel
      Parameters:
      userName - the user name of this commerce order item
    • setUserUuid

      public void setUserUuid(String userUuid)
      Sets the user uuid of this commerce order item.
      Specified by:
      setUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserUuid in interface CommerceOrderItemModel
      Parameters:
      userUuid - the user uuid of this commerce order item
    • setUuid

      public void setUuid(String uuid)
      Sets the uuid of this commerce order item.
      Specified by:
      setUuid in interface CommerceOrderItemModel
      Specified by:
      setUuid in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      uuid - the uuid of this commerce order item
    • setWeight

      public void setWeight(double weight)
      Sets the weight of this commerce order item.
      Specified by:
      setWeight in interface CommerceOrderItemModel
      Parameters:
      weight - the weight of this commerce order item
    • setWidth

      public void setWidth(double width)
      Sets the width of this commerce order item.
      Specified by:
      setWidth in interface CommerceOrderItemModel
      Parameters:
      width - the width of this commerce order item
    • toXmlString

      public String toXmlString()
      Specified by:
      toXmlString in interface CommerceOrderItemModel
    • getStagedModelType

      public com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
      Specified by:
      getStagedModelType in interface com.liferay.portal.kernel.model.StagedModel
    • wrap

      protected CommerceOrderItemWrapper wrap(CommerceOrderItem commerceOrderItem)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceOrderItem>