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
.
CommerceOrderItem
,
Serialized FormCOMMERCE_ORDER_ITEM_ID_ACCESSOR
Constructor and Description |
---|
CommerceOrderItemWrapper(CommerceOrderItem commerceOrderItem) |
Modifier and Type | Method and Description |
---|---|
CommerceOrderItem |
cloneWithOriginalValues() |
CPInstance |
fetchCPInstance() |
CPMeasurementUnit |
fetchCPMeasurementUnit() |
CProduct |
fetchCProduct() |
java.lang.String[] |
getAvailableLanguageIds() |
long |
getBookedQuantityId()
Returns the booked quantity ID of this commerce order item.
|
java.util.List<CommerceOrderItem> |
getChildCommerceOrderItems() |
CommerceOrder |
getCommerceOrder() |
long |
getCommerceOrderId()
Returns the commerce order ID of this commerce order item.
|
long |
getCommerceOrderItemId()
Returns the commerce order item ID of this commerce order item.
|
long |
getCommercePriceListId()
Returns the commerce price list ID of this commerce order item.
|
long |
getCompanyId()
Returns the company ID of this commerce order item.
|
CPDefinition |
getCPDefinition() |
long |
getCPDefinitionId() |
CPInstance |
getCPInstance()
Deprecated.
As of Athanasius (7.3.x)
|
long |
getCPInstanceId()
Returns the cp instance ID of this commerce order item.
|
long |
getCPMeasurementUnitId()
Returns the cp measurement unit ID of this commerce order item.
|
CProduct |
getCProduct()
Deprecated.
As of Athanasius (7.3.x)
|
long |
getCProductId()
Returns the c product ID of this commerce order item.
|
java.util.Date |
getCreateDate()
Returns the create date of this commerce order item.
|
java.math.BigDecimal |
getDecimalQuantity()
Returns the decimal quantity of this commerce order item.
|
java.lang.String |
getDefaultLanguageId() |
java.lang.String |
getDeliveryGroup()
Returns the delivery group of this commerce order item.
|
long |
getDeliveryMaxSubscriptionCycles()
Returns the delivery max subscription cycles of this commerce order item.
|
int |
getDeliverySubscriptionLength()
Returns the delivery subscription length of this commerce order item.
|
java.lang.String |
getDeliverySubscriptionType()
Returns the delivery subscription type of this commerce order item.
|
java.lang.String |
getDeliverySubscriptionTypeSettings()
Returns the delivery subscription type settings of this commerce order item.
|
double |
getDepth()
Returns the depth of this commerce order item.
|
java.math.BigDecimal |
getDiscountAmount()
Returns the discount amount of this commerce order item.
|
CommerceMoney |
getDiscountAmountMoney() |
java.math.BigDecimal |
getDiscountPercentageLevel1()
Returns the discount percentage level1 of this commerce order item.
|
java.math.BigDecimal |
getDiscountPercentageLevel1WithTaxAmount()
Returns the discount percentage level1 with tax amount of this commerce order item.
|
java.math.BigDecimal |
getDiscountPercentageLevel2()
Returns the discount percentage level2 of this commerce order item.
|
java.math.BigDecimal |
getDiscountPercentageLevel2WithTaxAmount()
Returns the discount percentage level2 with tax amount of this commerce order item.
|
java.math.BigDecimal |
getDiscountPercentageLevel3()
Returns the discount percentage level3 of this commerce order item.
|
java.math.BigDecimal |
getDiscountPercentageLevel3WithTaxAmount()
Returns the discount percentage level3 with tax amount of this commerce order item.
|
java.math.BigDecimal |
getDiscountPercentageLevel4()
Returns the discount percentage level4 of this commerce order item.
|
java.math.BigDecimal |
getDiscountPercentageLevel4WithTaxAmount()
Returns the discount percentage level4 with tax amount of this commerce order item.
|
java.math.BigDecimal |
getDiscountWithTaxAmount()
Returns the discount with tax amount of this commerce order item.
|
CommerceMoney |
getDiscountWithTaxAmountMoney() |
java.lang.String |
getExternalReferenceCode()
Returns the external reference code of this commerce order item.
|
java.math.BigDecimal |
getFinalPrice()
Returns the final price of this commerce order item.
|
CommerceMoney |
getFinalPriceMoney() |
java.math.BigDecimal |
getFinalPriceWithTaxAmount()
Returns the final price with tax amount of this commerce order item.
|
CommerceMoney |
getFinalPriceWithTaxAmountMoney() |
boolean |
getFreeShipping()
Returns the free shipping of this commerce order item.
|
long |
getGroupId()
Returns the group ID of this commerce order item.
|
double |
getHeight()
Returns the height of this commerce order item.
|
java.lang.String |
getJson()
Returns the json of this commerce order item.
|
boolean |
getManuallyAdjusted()
Returns the manually adjusted of this commerce order item.
|
long |
getMaxSubscriptionCycles()
Returns the max subscription cycles of this commerce order item.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.util.Date |
getModifiedDate()
Returns the modified date of this commerce order item.
|
long |
getMvccVersion()
Returns the mvcc version of this commerce order item.
|
java.lang.String |
getName()
Returns the name of this commerce order item.
|
java.lang.String |
getName(java.util.Locale locale)
Returns the localized name of this commerce order item in the language.
|
java.lang.String |
getName(java.util.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.
|
java.lang.String |
getName(java.lang.String languageId)
Returns the localized name of this commerce order item in the language.
|
java.lang.String |
getName(java.lang.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.
|
java.lang.String |
getNameCurrentLanguageId() |
java.lang.String |
getNameCurrentValue() |
java.util.Map<java.util.Locale,java.lang.String> |
getNameMap()
Returns a map of the locales and localized names of this commerce order item.
|
long |
getParentCommerceOrderItemCPDefinitionId() |
long |
getParentCommerceOrderItemId()
Returns the parent commerce order item ID of this commerce order item.
|
long |
getPrimaryKey()
Returns the primary key of this commerce order item.
|
java.lang.String |
getPrintedNote()
Returns the printed note of this commerce order item.
|
java.math.BigDecimal |
getPromoPrice()
Returns the promo price of this commerce order item.
|
CommerceMoney |
getPromoPriceMoney() |
java.math.BigDecimal |
getPromoPriceWithTaxAmount()
Returns the promo price with tax amount of this commerce order item.
|
CommerceMoney |
getPromoPriceWithTaxAmountMoney() |
int |
getQuantity()
Returns the quantity of this commerce order item.
|
java.util.Date |
getRequestedDeliveryDate()
Returns the requested delivery date of this commerce order item.
|
boolean |
getShippable()
Returns the shippable of this commerce order item.
|
int |
getShippedQuantity()
Returns the shipped quantity of this commerce order item.
|
long |
getShippingAddressId()
Returns the shipping address ID of this commerce order item.
|
double |
getShippingExtraPrice()
Returns the shipping extra price of this commerce order item.
|
boolean |
getShipSeparately()
Returns the ship separately of this commerce order item.
|
java.lang.String |
getSku()
Returns the sku of this commerce order item.
|
boolean |
getSubscription()
Returns the subscription of this commerce order item.
|
int |
getSubscriptionLength()
Returns the subscription length of this commerce order item.
|
java.lang.String |
getSubscriptionType()
Returns the subscription type of this commerce order item.
|
java.lang.String |
getSubscriptionTypeSettings()
Returns the subscription type settings of this commerce order item.
|
java.math.BigDecimal |
getUnitPrice()
Returns the unit price of this commerce order item.
|
CommerceMoney |
getUnitPriceMoney() |
java.math.BigDecimal |
getUnitPriceWithTaxAmount()
Returns the unit price with tax amount of this commerce order item.
|
CommerceMoney |
getUnitPriceWithTaxAmountMoney() |
long |
getUserId()
Returns the user ID of this commerce order item.
|
java.lang.String |
getUserName()
Returns the user name of this commerce order item.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this commerce order item.
|
double |
getWeight()
Returns the weight of this commerce order item.
|
double |
getWidth()
Returns the width of this commerce order item.
|
boolean |
hasParentCommerceOrderItem() |
boolean |
isFreeShipping()
Returns
true if this commerce order item is free shipping. |
boolean |
isManuallyAdjusted()
Returns
true if this commerce order item is manually adjusted. |
boolean |
isShippable()
Returns
true if this commerce order item is shippable. |
boolean |
isShipSeparately()
Returns
true if this commerce order item is ship separately. |
boolean |
isSubscription()
Returns
true if this commerce order item is subscription. |
void |
persist() |
void |
prepareLocalizedFieldsForImport() |
void |
prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) |
void |
setBookedQuantityId(long bookedQuantityId)
Sets the booked quantity ID of this commerce order item.
|
void |
setCommerceOrderId(long commerceOrderId)
Sets the commerce order ID of this commerce order item.
|
void |
setCommerceOrderItemId(long commerceOrderItemId)
Sets the commerce order item ID of this commerce order item.
|
void |
setCommercePriceListId(long commercePriceListId)
Sets the commerce price list ID of this commerce order item.
|
void |
setCompanyId(long companyId)
Sets the company ID of this commerce order item.
|
void |
setCPInstanceId(long CPInstanceId)
Sets the cp instance ID of this commerce order item.
|
void |
setCPMeasurementUnitId(long CPMeasurementUnitId)
Sets the cp measurement unit ID of this commerce order item.
|
void |
setCProductId(long CProductId)
Sets the c product ID of this commerce order item.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this commerce order item.
|
void |
setDecimalQuantity(java.math.BigDecimal decimalQuantity)
Sets the decimal quantity of this commerce order item.
|
void |
setDeliveryGroup(java.lang.String deliveryGroup)
Sets the delivery group of this commerce order item.
|
void |
setDeliveryMaxSubscriptionCycles(long deliveryMaxSubscriptionCycles)
Sets the delivery max subscription cycles of this commerce order item.
|
void |
setDeliverySubscriptionLength(int deliverySubscriptionLength)
Sets the delivery subscription length of this commerce order item.
|
void |
setDeliverySubscriptionType(java.lang.String deliverySubscriptionType)
Sets the delivery subscription type of this commerce order item.
|
void |
setDeliverySubscriptionTypeSettings(java.lang.String deliverySubscriptionTypeSettings)
Sets the delivery subscription type settings of this commerce order item.
|
void |
setDepth(double depth)
Sets the depth of this commerce order item.
|
void |
setDiscountAmount(java.math.BigDecimal discountAmount)
Sets the discount amount of this commerce order item.
|
void |
setDiscountPercentageLevel1(java.math.BigDecimal discountPercentageLevel1)
Sets the discount percentage level1 of this commerce order item.
|
void |
setDiscountPercentageLevel1WithTaxAmount(java.math.BigDecimal discountPercentageLevel1WithTaxAmount)
Sets the discount percentage level1 with tax amount of this commerce order item.
|
void |
setDiscountPercentageLevel2(java.math.BigDecimal discountPercentageLevel2)
Sets the discount percentage level2 of this commerce order item.
|
void |
setDiscountPercentageLevel2WithTaxAmount(java.math.BigDecimal discountPercentageLevel2WithTaxAmount)
Sets the discount percentage level2 with tax amount of this commerce order item.
|
void |
setDiscountPercentageLevel3(java.math.BigDecimal discountPercentageLevel3)
Sets the discount percentage level3 of this commerce order item.
|
void |
setDiscountPercentageLevel3WithTaxAmount(java.math.BigDecimal discountPercentageLevel3WithTaxAmount)
Sets the discount percentage level3 with tax amount of this commerce order item.
|
void |
setDiscountPercentageLevel4(java.math.BigDecimal discountPercentageLevel4)
Sets the discount percentage level4 of this commerce order item.
|
void |
setDiscountPercentageLevel4WithTaxAmount(java.math.BigDecimal discountPercentageLevel4WithTaxAmount)
Sets the discount percentage level4 with tax amount of this commerce order item.
|
void |
setDiscountWithTaxAmount(java.math.BigDecimal discountWithTaxAmount)
Sets the discount with tax amount of this commerce order item.
|
void |
setExternalReferenceCode(java.lang.String externalReferenceCode)
Sets the external reference code of this commerce order item.
|
void |
setFinalPrice(java.math.BigDecimal finalPrice)
Sets the final price of this commerce order item.
|
void |
setFinalPriceWithTaxAmount(java.math.BigDecimal finalPriceWithTaxAmount)
Sets the final price with tax amount of this commerce order item.
|
void |
setFreeShipping(boolean freeShipping)
Sets whether this commerce order item is free shipping.
|
void |
setGroupId(long groupId)
Sets the group ID of this commerce order item.
|
void |
setHeight(double height)
Sets the height of this commerce order item.
|
void |
setJson(java.lang.String json)
Sets the json of this commerce order item.
|
void |
setManuallyAdjusted(boolean manuallyAdjusted)
Sets whether this commerce order item is manually adjusted.
|
void |
setMaxSubscriptionCycles(long maxSubscriptionCycles)
Sets the max subscription cycles of this commerce order item.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this commerce order item.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this commerce order item.
|
void |
setName(java.lang.String name)
Sets the name of this commerce order item.
|
void |
setName(java.lang.String name,
java.util.Locale locale)
Sets the localized name of this commerce order item in the language.
|
void |
setName(java.lang.String name,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized name of this commerce order item in the language, and sets the default locale.
|
void |
setNameCurrentLanguageId(java.lang.String languageId) |
void |
setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
Sets the localized names of this commerce order item from the map of locales and localized names.
|
void |
setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Locale defaultLocale)
Sets the localized names of this commerce order item from the map of locales and localized names, and sets the default locale.
|
void |
setParentCommerceOrderItemId(long parentCommerceOrderItemId)
Sets the parent commerce order item ID of this commerce order item.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this commerce order item.
|
void |
setPrintedNote(java.lang.String printedNote)
Sets the printed note of this commerce order item.
|
void |
setPromoPrice(java.math.BigDecimal promoPrice)
Sets the promo price of this commerce order item.
|
void |
setPromoPriceWithTaxAmount(java.math.BigDecimal promoPriceWithTaxAmount)
Sets the promo price with tax amount of this commerce order item.
|
void |
setQuantity(int quantity)
Sets the quantity of this commerce order item.
|
void |
setRequestedDeliveryDate(java.util.Date requestedDeliveryDate)
Sets the requested delivery date of this commerce order item.
|
void |
setShippable(boolean shippable)
Sets whether this commerce order item is shippable.
|
void |
setShippedQuantity(int shippedQuantity)
Sets the shipped quantity of this commerce order item.
|
void |
setShippingAddressId(long shippingAddressId)
Sets the shipping address ID of this commerce order item.
|
void |
setShippingExtraPrice(double shippingExtraPrice)
Sets the shipping extra price of this commerce order item.
|
void |
setShipSeparately(boolean shipSeparately)
Sets whether this commerce order item is ship separately.
|
void |
setSku(java.lang.String sku)
Sets the sku of this commerce order item.
|
void |
setSubscription(boolean subscription)
Sets whether this commerce order item is subscription.
|
void |
setSubscriptionLength(int subscriptionLength)
Sets the subscription length of this commerce order item.
|
void |
setSubscriptionType(java.lang.String subscriptionType)
Sets the subscription type of this commerce order item.
|
void |
setSubscriptionTypeSettings(java.lang.String subscriptionTypeSettings)
Sets the subscription type settings of this commerce order item.
|
void |
setUnitPrice(java.math.BigDecimal unitPrice)
Sets the unit price of this commerce order item.
|
void |
setUnitPriceWithTaxAmount(java.math.BigDecimal unitPriceWithTaxAmount)
Sets the unit price with tax amount of this commerce order item.
|
void |
setUserId(long userId)
Sets the user ID of this commerce order item.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this commerce order item.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this commerce order item.
|
void |
setWeight(double weight)
Sets the weight of this commerce order item.
|
void |
setWidth(double width)
Sets the width of this commerce order item.
|
protected CommerceOrderItemWrapper |
wrap(CommerceOrderItem commerceOrderItem) |
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
public CommerceOrderItemWrapper(CommerceOrderItem commerceOrderItem)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes
in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>
public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes
in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>
public CommerceOrderItem cloneWithOriginalValues()
cloneWithOriginalValues
in interface CommerceOrderItemModel
cloneWithOriginalValues
in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>
public CPInstance fetchCPInstance()
fetchCPInstance
in interface CommerceOrderItem
public CPMeasurementUnit fetchCPMeasurementUnit()
fetchCPMeasurementUnit
in interface CommerceOrderItem
public CProduct fetchCProduct()
fetchCProduct
in interface CommerceOrderItem
public java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds
in interface CommerceOrderItemModel
getAvailableLanguageIds
in interface com.liferay.portal.kernel.model.LocalizedModel
public long getBookedQuantityId()
getBookedQuantityId
in interface CommerceOrderItemModel
public java.util.List<CommerceOrderItem> getChildCommerceOrderItems()
getChildCommerceOrderItems
in interface CommerceOrderItem
public CommerceOrder getCommerceOrder() throws com.liferay.portal.kernel.exception.PortalException
getCommerceOrder
in interface CommerceOrderItem
com.liferay.portal.kernel.exception.PortalException
public long getCommerceOrderId()
getCommerceOrderId
in interface CommerceOrderItemModel
public long getCommerceOrderItemId()
getCommerceOrderItemId
in interface CommerceOrderItemModel
public long getCommercePriceListId()
getCommercePriceListId
in interface CommerceOrderItemModel
public long getCompanyId()
getCompanyId
in interface CommerceOrderItemModel
getCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
getCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
public CPDefinition getCPDefinition() throws com.liferay.portal.kernel.exception.PortalException
getCPDefinition
in interface CommerceOrderItem
com.liferay.portal.kernel.exception.PortalException
public long getCPDefinitionId()
getCPDefinitionId
in interface CommerceOrderItem
@Deprecated public CPInstance getCPInstance() throws com.liferay.portal.kernel.exception.PortalException
getCPInstance
in interface CommerceOrderItem
com.liferay.portal.kernel.exception.PortalException
public long getCPInstanceId()
getCPInstanceId
in interface CommerceOrderItemModel
public long getCPMeasurementUnitId()
getCPMeasurementUnitId
in interface CommerceOrderItemModel
@Deprecated public CProduct getCProduct() throws com.liferay.portal.kernel.exception.PortalException
getCProduct
in interface CommerceOrderItem
com.liferay.portal.kernel.exception.PortalException
public long getCProductId()
getCProductId
in interface CommerceOrderItemModel
public java.util.Date getCreateDate()
getCreateDate
in interface CommerceOrderItemModel
getCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
public java.math.BigDecimal getDecimalQuantity()
getDecimalQuantity
in interface CommerceOrderItemModel
public java.lang.String getDefaultLanguageId()
getDefaultLanguageId
in interface CommerceOrderItemModel
getDefaultLanguageId
in interface com.liferay.portal.kernel.model.LocalizedModel
public java.lang.String getDeliveryGroup()
getDeliveryGroup
in interface CommerceOrderItemModel
public long getDeliveryMaxSubscriptionCycles()
getDeliveryMaxSubscriptionCycles
in interface CommerceOrderItemModel
public int getDeliverySubscriptionLength()
getDeliverySubscriptionLength
in interface CommerceOrderItemModel
public java.lang.String getDeliverySubscriptionType()
getDeliverySubscriptionType
in interface CommerceOrderItemModel
public java.lang.String getDeliverySubscriptionTypeSettings()
getDeliverySubscriptionTypeSettings
in interface CommerceOrderItemModel
public double getDepth()
getDepth
in interface CommerceOrderItemModel
public java.math.BigDecimal getDiscountAmount()
getDiscountAmount
in interface CommerceOrderItemModel
public CommerceMoney getDiscountAmountMoney() throws com.liferay.portal.kernel.exception.PortalException
getDiscountAmountMoney
in interface CommerceOrderItem
com.liferay.portal.kernel.exception.PortalException
public java.math.BigDecimal getDiscountPercentageLevel1()
getDiscountPercentageLevel1
in interface CommerceOrderItemModel
public java.math.BigDecimal getDiscountPercentageLevel1WithTaxAmount()
getDiscountPercentageLevel1WithTaxAmount
in interface CommerceOrderItemModel
public java.math.BigDecimal getDiscountPercentageLevel2()
getDiscountPercentageLevel2
in interface CommerceOrderItemModel
public java.math.BigDecimal getDiscountPercentageLevel2WithTaxAmount()
getDiscountPercentageLevel2WithTaxAmount
in interface CommerceOrderItemModel
public java.math.BigDecimal getDiscountPercentageLevel3()
getDiscountPercentageLevel3
in interface CommerceOrderItemModel
public java.math.BigDecimal getDiscountPercentageLevel3WithTaxAmount()
getDiscountPercentageLevel3WithTaxAmount
in interface CommerceOrderItemModel
public java.math.BigDecimal getDiscountPercentageLevel4()
getDiscountPercentageLevel4
in interface CommerceOrderItemModel
public java.math.BigDecimal getDiscountPercentageLevel4WithTaxAmount()
getDiscountPercentageLevel4WithTaxAmount
in interface CommerceOrderItemModel
public java.math.BigDecimal getDiscountWithTaxAmount()
getDiscountWithTaxAmount
in interface CommerceOrderItemModel
public CommerceMoney getDiscountWithTaxAmountMoney() throws com.liferay.portal.kernel.exception.PortalException
getDiscountWithTaxAmountMoney
in interface CommerceOrderItem
com.liferay.portal.kernel.exception.PortalException
public java.lang.String getExternalReferenceCode()
getExternalReferenceCode
in interface CommerceOrderItemModel
public java.math.BigDecimal getFinalPrice()
getFinalPrice
in interface CommerceOrderItemModel
public CommerceMoney getFinalPriceMoney() throws com.liferay.portal.kernel.exception.PortalException
getFinalPriceMoney
in interface CommerceOrderItem
com.liferay.portal.kernel.exception.PortalException
public java.math.BigDecimal getFinalPriceWithTaxAmount()
getFinalPriceWithTaxAmount
in interface CommerceOrderItemModel
public CommerceMoney getFinalPriceWithTaxAmountMoney() throws com.liferay.portal.kernel.exception.PortalException
getFinalPriceWithTaxAmountMoney
in interface CommerceOrderItem
com.liferay.portal.kernel.exception.PortalException
public boolean getFreeShipping()
getFreeShipping
in interface CommerceOrderItemModel
public long getGroupId()
getGroupId
in interface CommerceOrderItemModel
getGroupId
in interface com.liferay.portal.kernel.model.GroupedModel
public double getHeight()
getHeight
in interface CommerceOrderItemModel
public java.lang.String getJson()
getJson
in interface CommerceOrderItemModel
public boolean getManuallyAdjusted()
getManuallyAdjusted
in interface CommerceOrderItemModel
public long getMaxSubscriptionCycles()
getMaxSubscriptionCycles
in interface CommerceOrderItemModel
public java.util.Date getModifiedDate()
getModifiedDate
in interface CommerceOrderItemModel
getModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
public long getMvccVersion()
getMvccVersion
in interface CommerceOrderItemModel
getMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
public java.lang.String getName()
getName
in interface CommerceOrderItemModel
public java.lang.String getName(java.util.Locale locale)
getName
in interface CommerceOrderItemModel
locale
- the locale of the languagepublic java.lang.String getName(java.util.Locale locale, boolean useDefault)
getName
in interface CommerceOrderItemModel
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested languageuseDefault
is false
and no localization exists for the requested language, an empty string will be returned.public java.lang.String getName(java.lang.String languageId)
getName
in interface CommerceOrderItemModel
languageId
- the ID of the languagepublic java.lang.String getName(java.lang.String languageId, boolean useDefault)
getName
in interface CommerceOrderItemModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested languagepublic java.lang.String getNameCurrentLanguageId()
getNameCurrentLanguageId
in interface CommerceOrderItemModel
public java.lang.String getNameCurrentValue()
getNameCurrentValue
in interface CommerceOrderItemModel
public java.util.Map<java.util.Locale,java.lang.String> getNameMap()
getNameMap
in interface CommerceOrderItemModel
public long getParentCommerceOrderItemCPDefinitionId()
getParentCommerceOrderItemCPDefinitionId
in interface CommerceOrderItem
public long getParentCommerceOrderItemId()
getParentCommerceOrderItemId
in interface CommerceOrderItemModel
public long getPrimaryKey()
getPrimaryKey
in interface CommerceOrderItemModel
public java.lang.String getPrintedNote()
getPrintedNote
in interface CommerceOrderItemModel
public java.math.BigDecimal getPromoPrice()
getPromoPrice
in interface CommerceOrderItemModel
public CommerceMoney getPromoPriceMoney() throws com.liferay.portal.kernel.exception.PortalException
getPromoPriceMoney
in interface CommerceOrderItem
com.liferay.portal.kernel.exception.PortalException
public java.math.BigDecimal getPromoPriceWithTaxAmount()
getPromoPriceWithTaxAmount
in interface CommerceOrderItemModel
public CommerceMoney getPromoPriceWithTaxAmountMoney() throws com.liferay.portal.kernel.exception.PortalException
getPromoPriceWithTaxAmountMoney
in interface CommerceOrderItem
com.liferay.portal.kernel.exception.PortalException
public int getQuantity()
getQuantity
in interface CommerceOrderItemModel
public java.util.Date getRequestedDeliveryDate()
getRequestedDeliveryDate
in interface CommerceOrderItemModel
public boolean getShippable()
getShippable
in interface CommerceOrderItemModel
public int getShippedQuantity()
getShippedQuantity
in interface CommerceOrderItemModel
public long getShippingAddressId()
getShippingAddressId
in interface CommerceOrderItemModel
public double getShippingExtraPrice()
getShippingExtraPrice
in interface CommerceOrderItemModel
public boolean getShipSeparately()
getShipSeparately
in interface CommerceOrderItemModel
public java.lang.String getSku()
getSku
in interface CommerceOrderItemModel
public boolean getSubscription()
getSubscription
in interface CommerceOrderItemModel
public int getSubscriptionLength()
getSubscriptionLength
in interface CommerceOrderItemModel
public java.lang.String getSubscriptionType()
getSubscriptionType
in interface CommerceOrderItemModel
public java.lang.String getSubscriptionTypeSettings()
getSubscriptionTypeSettings
in interface CommerceOrderItemModel
public java.math.BigDecimal getUnitPrice()
getUnitPrice
in interface CommerceOrderItemModel
public CommerceMoney getUnitPriceMoney() throws com.liferay.portal.kernel.exception.PortalException
getUnitPriceMoney
in interface CommerceOrderItem
com.liferay.portal.kernel.exception.PortalException
public java.math.BigDecimal getUnitPriceWithTaxAmount()
getUnitPriceWithTaxAmount
in interface CommerceOrderItemModel
public CommerceMoney getUnitPriceWithTaxAmountMoney() throws com.liferay.portal.kernel.exception.PortalException
getUnitPriceWithTaxAmountMoney
in interface CommerceOrderItem
com.liferay.portal.kernel.exception.PortalException
public long getUserId()
getUserId
in interface CommerceOrderItemModel
getUserId
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserName()
getUserName
in interface CommerceOrderItemModel
getUserName
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserUuid()
getUserUuid
in interface CommerceOrderItemModel
getUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
public double getWeight()
getWeight
in interface CommerceOrderItemModel
public double getWidth()
getWidth
in interface CommerceOrderItemModel
public boolean hasParentCommerceOrderItem()
hasParentCommerceOrderItem
in interface CommerceOrderItem
public boolean isFreeShipping()
true
if this commerce order item is free shipping.isFreeShipping
in interface CommerceOrderItemModel
true
if this commerce order item is free shipping; false
otherwisepublic boolean isManuallyAdjusted()
true
if this commerce order item is manually adjusted.isManuallyAdjusted
in interface CommerceOrderItemModel
true
if this commerce order item is manually adjusted; false
otherwisepublic boolean isShippable()
true
if this commerce order item is shippable.isShippable
in interface CommerceOrderItemModel
true
if this commerce order item is shippable; false
otherwisepublic boolean isShipSeparately()
true
if this commerce order item is ship separately.isShipSeparately
in interface CommerceOrderItemModel
true
if this commerce order item is ship separately; false
otherwisepublic boolean isSubscription()
true
if this commerce order item is subscription.isSubscription
in interface CommerceOrderItemModel
true
if this commerce order item is subscription; false
otherwisepublic void persist()
persist
in interface com.liferay.portal.kernel.model.PersistedModel
public void prepareLocalizedFieldsForImport() throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport
in interface CommerceOrderItemModel
prepareLocalizedFieldsForImport
in interface com.liferay.portal.kernel.model.LocalizedModel
com.liferay.portal.kernel.exception.LocaleException
public void prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport
in interface CommerceOrderItemModel
prepareLocalizedFieldsForImport
in interface com.liferay.portal.kernel.model.LocalizedModel
com.liferay.portal.kernel.exception.LocaleException
public void setBookedQuantityId(long bookedQuantityId)
setBookedQuantityId
in interface CommerceOrderItemModel
bookedQuantityId
- the booked quantity ID of this commerce order itempublic void setCommerceOrderId(long commerceOrderId)
setCommerceOrderId
in interface CommerceOrderItemModel
commerceOrderId
- the commerce order ID of this commerce order itempublic void setCommerceOrderItemId(long commerceOrderItemId)
setCommerceOrderItemId
in interface CommerceOrderItemModel
commerceOrderItemId
- the commerce order item ID of this commerce order itempublic void setCommercePriceListId(long commercePriceListId)
setCommercePriceListId
in interface CommerceOrderItemModel
commercePriceListId
- the commerce price list ID of this commerce order itempublic void setCompanyId(long companyId)
setCompanyId
in interface CommerceOrderItemModel
setCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
setCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
companyId
- the company ID of this commerce order itempublic void setCPInstanceId(long CPInstanceId)
setCPInstanceId
in interface CommerceOrderItemModel
CPInstanceId
- the cp instance ID of this commerce order itempublic void setCPMeasurementUnitId(long CPMeasurementUnitId)
setCPMeasurementUnitId
in interface CommerceOrderItemModel
CPMeasurementUnitId
- the cp measurement unit ID of this commerce order itempublic void setCProductId(long CProductId)
setCProductId
in interface CommerceOrderItemModel
CProductId
- the c product ID of this commerce order itempublic void setCreateDate(java.util.Date createDate)
setCreateDate
in interface CommerceOrderItemModel
setCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
createDate
- the create date of this commerce order itempublic void setDecimalQuantity(java.math.BigDecimal decimalQuantity)
setDecimalQuantity
in interface CommerceOrderItemModel
decimalQuantity
- the decimal quantity of this commerce order itempublic void setDeliveryGroup(java.lang.String deliveryGroup)
setDeliveryGroup
in interface CommerceOrderItemModel
deliveryGroup
- the delivery group of this commerce order itempublic void setDeliveryMaxSubscriptionCycles(long deliveryMaxSubscriptionCycles)
setDeliveryMaxSubscriptionCycles
in interface CommerceOrderItemModel
deliveryMaxSubscriptionCycles
- the delivery max subscription cycles of this commerce order itempublic void setDeliverySubscriptionLength(int deliverySubscriptionLength)
setDeliverySubscriptionLength
in interface CommerceOrderItemModel
deliverySubscriptionLength
- the delivery subscription length of this commerce order itempublic void setDeliverySubscriptionType(java.lang.String deliverySubscriptionType)
setDeliverySubscriptionType
in interface CommerceOrderItemModel
deliverySubscriptionType
- the delivery subscription type of this commerce order itempublic void setDeliverySubscriptionTypeSettings(java.lang.String deliverySubscriptionTypeSettings)
setDeliverySubscriptionTypeSettings
in interface CommerceOrderItemModel
deliverySubscriptionTypeSettings
- the delivery subscription type settings of this commerce order itempublic void setDepth(double depth)
setDepth
in interface CommerceOrderItemModel
depth
- the depth of this commerce order itempublic void setDiscountAmount(java.math.BigDecimal discountAmount)
setDiscountAmount
in interface CommerceOrderItemModel
discountAmount
- the discount amount of this commerce order itempublic void setDiscountPercentageLevel1(java.math.BigDecimal discountPercentageLevel1)
setDiscountPercentageLevel1
in interface CommerceOrderItemModel
discountPercentageLevel1
- the discount percentage level1 of this commerce order itempublic void setDiscountPercentageLevel1WithTaxAmount(java.math.BigDecimal discountPercentageLevel1WithTaxAmount)
setDiscountPercentageLevel1WithTaxAmount
in interface CommerceOrderItemModel
discountPercentageLevel1WithTaxAmount
- the discount percentage level1 with tax amount of this commerce order itempublic void setDiscountPercentageLevel2(java.math.BigDecimal discountPercentageLevel2)
setDiscountPercentageLevel2
in interface CommerceOrderItemModel
discountPercentageLevel2
- the discount percentage level2 of this commerce order itempublic void setDiscountPercentageLevel2WithTaxAmount(java.math.BigDecimal discountPercentageLevel2WithTaxAmount)
setDiscountPercentageLevel2WithTaxAmount
in interface CommerceOrderItemModel
discountPercentageLevel2WithTaxAmount
- the discount percentage level2 with tax amount of this commerce order itempublic void setDiscountPercentageLevel3(java.math.BigDecimal discountPercentageLevel3)
setDiscountPercentageLevel3
in interface CommerceOrderItemModel
discountPercentageLevel3
- the discount percentage level3 of this commerce order itempublic void setDiscountPercentageLevel3WithTaxAmount(java.math.BigDecimal discountPercentageLevel3WithTaxAmount)
setDiscountPercentageLevel3WithTaxAmount
in interface CommerceOrderItemModel
discountPercentageLevel3WithTaxAmount
- the discount percentage level3 with tax amount of this commerce order itempublic void setDiscountPercentageLevel4(java.math.BigDecimal discountPercentageLevel4)
setDiscountPercentageLevel4
in interface CommerceOrderItemModel
discountPercentageLevel4
- the discount percentage level4 of this commerce order itempublic void setDiscountPercentageLevel4WithTaxAmount(java.math.BigDecimal discountPercentageLevel4WithTaxAmount)
setDiscountPercentageLevel4WithTaxAmount
in interface CommerceOrderItemModel
discountPercentageLevel4WithTaxAmount
- the discount percentage level4 with tax amount of this commerce order itempublic void setDiscountWithTaxAmount(java.math.BigDecimal discountWithTaxAmount)
setDiscountWithTaxAmount
in interface CommerceOrderItemModel
discountWithTaxAmount
- the discount with tax amount of this commerce order itempublic void setExternalReferenceCode(java.lang.String externalReferenceCode)
setExternalReferenceCode
in interface CommerceOrderItemModel
externalReferenceCode
- the external reference code of this commerce order itempublic void setFinalPrice(java.math.BigDecimal finalPrice)
setFinalPrice
in interface CommerceOrderItemModel
finalPrice
- the final price of this commerce order itempublic void setFinalPriceWithTaxAmount(java.math.BigDecimal finalPriceWithTaxAmount)
setFinalPriceWithTaxAmount
in interface CommerceOrderItemModel
finalPriceWithTaxAmount
- the final price with tax amount of this commerce order itempublic void setFreeShipping(boolean freeShipping)
setFreeShipping
in interface CommerceOrderItemModel
freeShipping
- the free shipping of this commerce order itempublic void setGroupId(long groupId)
setGroupId
in interface CommerceOrderItemModel
setGroupId
in interface com.liferay.portal.kernel.model.GroupedModel
groupId
- the group ID of this commerce order itempublic void setHeight(double height)
setHeight
in interface CommerceOrderItemModel
height
- the height of this commerce order itempublic void setJson(java.lang.String json)
setJson
in interface CommerceOrderItemModel
json
- the json of this commerce order itempublic void setManuallyAdjusted(boolean manuallyAdjusted)
setManuallyAdjusted
in interface CommerceOrderItemModel
manuallyAdjusted
- the manually adjusted of this commerce order itempublic void setMaxSubscriptionCycles(long maxSubscriptionCycles)
setMaxSubscriptionCycles
in interface CommerceOrderItemModel
maxSubscriptionCycles
- the max subscription cycles of this commerce order itempublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate
in interface CommerceOrderItemModel
setModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
modifiedDate
- the modified date of this commerce order itempublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface CommerceOrderItemModel
setMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
mvccVersion
- the mvcc version of this commerce order itempublic void setName(java.lang.String name)
setName
in interface CommerceOrderItemModel
name
- the name of this commerce order itempublic void setName(java.lang.String name, java.util.Locale locale)
setName
in interface CommerceOrderItemModel
name
- the localized name of this commerce order itemlocale
- the locale of the languagepublic void setName(java.lang.String name, java.util.Locale locale, java.util.Locale defaultLocale)
setName
in interface CommerceOrderItemModel
name
- the localized name of this commerce order itemlocale
- the locale of the languagedefaultLocale
- the default localepublic void setNameCurrentLanguageId(java.lang.String languageId)
setNameCurrentLanguageId
in interface CommerceOrderItemModel
public void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
setNameMap
in interface CommerceOrderItemModel
nameMap
- the locales and localized names of this commerce order itempublic void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Locale defaultLocale)
setNameMap
in interface CommerceOrderItemModel
nameMap
- the locales and localized names of this commerce order itemdefaultLocale
- the default localepublic void setParentCommerceOrderItemId(long parentCommerceOrderItemId)
setParentCommerceOrderItemId
in interface CommerceOrderItemModel
parentCommerceOrderItemId
- the parent commerce order item ID of this commerce order itempublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface CommerceOrderItemModel
primaryKey
- the primary key of this commerce order itempublic void setPrintedNote(java.lang.String printedNote)
setPrintedNote
in interface CommerceOrderItemModel
printedNote
- the printed note of this commerce order itempublic void setPromoPrice(java.math.BigDecimal promoPrice)
setPromoPrice
in interface CommerceOrderItemModel
promoPrice
- the promo price of this commerce order itempublic void setPromoPriceWithTaxAmount(java.math.BigDecimal promoPriceWithTaxAmount)
setPromoPriceWithTaxAmount
in interface CommerceOrderItemModel
promoPriceWithTaxAmount
- the promo price with tax amount of this commerce order itempublic void setQuantity(int quantity)
setQuantity
in interface CommerceOrderItemModel
quantity
- the quantity of this commerce order itempublic void setRequestedDeliveryDate(java.util.Date requestedDeliveryDate)
setRequestedDeliveryDate
in interface CommerceOrderItemModel
requestedDeliveryDate
- the requested delivery date of this commerce order itempublic void setShippable(boolean shippable)
setShippable
in interface CommerceOrderItemModel
shippable
- the shippable of this commerce order itempublic void setShippedQuantity(int shippedQuantity)
setShippedQuantity
in interface CommerceOrderItemModel
shippedQuantity
- the shipped quantity of this commerce order itempublic void setShippingAddressId(long shippingAddressId)
setShippingAddressId
in interface CommerceOrderItemModel
shippingAddressId
- the shipping address ID of this commerce order itempublic void setShippingExtraPrice(double shippingExtraPrice)
setShippingExtraPrice
in interface CommerceOrderItemModel
shippingExtraPrice
- the shipping extra price of this commerce order itempublic void setShipSeparately(boolean shipSeparately)
setShipSeparately
in interface CommerceOrderItemModel
shipSeparately
- the ship separately of this commerce order itempublic void setSku(java.lang.String sku)
setSku
in interface CommerceOrderItemModel
sku
- the sku of this commerce order itempublic void setSubscription(boolean subscription)
setSubscription
in interface CommerceOrderItemModel
subscription
- the subscription of this commerce order itempublic void setSubscriptionLength(int subscriptionLength)
setSubscriptionLength
in interface CommerceOrderItemModel
subscriptionLength
- the subscription length of this commerce order itempublic void setSubscriptionType(java.lang.String subscriptionType)
setSubscriptionType
in interface CommerceOrderItemModel
subscriptionType
- the subscription type of this commerce order itempublic void setSubscriptionTypeSettings(java.lang.String subscriptionTypeSettings)
setSubscriptionTypeSettings
in interface CommerceOrderItemModel
subscriptionTypeSettings
- the subscription type settings of this commerce order itempublic void setUnitPrice(java.math.BigDecimal unitPrice)
setUnitPrice
in interface CommerceOrderItemModel
unitPrice
- the unit price of this commerce order itempublic void setUnitPriceWithTaxAmount(java.math.BigDecimal unitPriceWithTaxAmount)
setUnitPriceWithTaxAmount
in interface CommerceOrderItemModel
unitPriceWithTaxAmount
- the unit price with tax amount of this commerce order itempublic void setUserId(long userId)
setUserId
in interface CommerceOrderItemModel
setUserId
in interface com.liferay.portal.kernel.model.AuditedModel
userId
- the user ID of this commerce order itempublic void setUserName(java.lang.String userName)
setUserName
in interface CommerceOrderItemModel
setUserName
in interface com.liferay.portal.kernel.model.AuditedModel
userName
- the user name of this commerce order itempublic void setUserUuid(java.lang.String userUuid)
setUserUuid
in interface CommerceOrderItemModel
setUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
userUuid
- the user uuid of this commerce order itempublic void setWeight(double weight)
setWeight
in interface CommerceOrderItemModel
weight
- the weight of this commerce order itempublic void setWidth(double width)
setWidth
in interface CommerceOrderItemModel
width
- the width of this commerce order itemprotected CommerceOrderItemWrapper wrap(CommerceOrderItem commerceOrderItem)
wrap
in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceOrderItem>