@ProviderType public interface CommerceOrderItemModel extends com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>, com.liferay.portal.kernel.model.GroupedModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.ShardedModel
This interface and its corresponding implementation com.liferay.commerce.model.impl.CommerceOrderItemModelImpl exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in com.liferay.commerce.model.impl.CommerceOrderItemImpl.
CommerceOrderItem,
com.liferay.commerce.model.impl.CommerceOrderItemImpl,
com.liferay.commerce.model.impl.CommerceOrderItemModelImpl| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
int |
compareTo(CommerceOrderItem commerceOrderItem) |
java.lang.String[] |
getAvailableLanguageIds() |
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 |
getCompanyId()
Returns the company ID of this commerce order item.
|
long |
getCPInstanceId()
Returns the cp instance ID of this commerce order item.
|
java.util.Date |
getCreateDate()
Returns the create date of this commerce order item.
|
java.lang.String |
getDefaultLanguageId() |
java.math.BigDecimal |
getDiscountAmount()
Returns the discount amount of this commerce order item.
|
java.math.BigDecimal |
getDiscountPercentageLevel1()
Returns the discount percentage level1 of this commerce order item.
|
java.math.BigDecimal |
getDiscountPercentageLevel2()
Returns the discount percentage level2 of this commerce order item.
|
java.math.BigDecimal |
getDiscountPercentageLevel3()
Returns the discount percentage level3 of this commerce order item.
|
java.math.BigDecimal |
getDiscountPercentageLevel4()
Returns the discount percentage level4 of this commerce order item.
|
com.liferay.expando.kernel.model.ExpandoBridge |
getExpandoBridge() |
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.
|
long |
getGroupId()
Returns the group ID of this commerce order item.
|
java.lang.String |
getJson()
Returns the json of this commerce order item.
|
java.util.Date |
getModifiedDate()
Returns the modified date 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 |
getPrimaryKey()
Returns the primary key of this commerce order item.
|
java.io.Serializable |
getPrimaryKeyObj() |
int |
getQuantity()
Returns the quantity of this commerce order item.
|
int |
getShippedQuantity()
Returns the shipped quantity of this commerce order item.
|
java.lang.String |
getSku()
Returns the sku of this commerce order item.
|
java.math.BigDecimal |
getUnitPrice()
Returns the unit price of this commerce order item.
|
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.
|
int |
hashCode() |
boolean |
isCachedModel() |
boolean |
isEscapedModel() |
boolean |
isNew() |
void |
prepareLocalizedFieldsForImport() |
void |
prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) |
void |
setCachedModel(boolean cachedModel) |
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 |
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 |
setCreateDate(java.util.Date createDate)
Sets the create date 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 |
setDiscountPercentageLevel2(java.math.BigDecimal discountPercentageLevel2)
Sets the discount percentage level2 of this commerce order item.
|
void |
setDiscountPercentageLevel3(java.math.BigDecimal discountPercentageLevel3)
Sets the discount percentage level3 of this commerce order item.
|
void |
setDiscountPercentageLevel4(java.math.BigDecimal discountPercentageLevel4)
Sets the discount percentage level4 of this commerce order item.
|
void |
setExpandoBridgeAttributes(com.liferay.portal.kernel.model.BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(com.liferay.expando.kernel.model.ExpandoBridge expandoBridge) |
void |
setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext) |
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 |
setGroupId(long groupId)
Sets the group ID of this commerce order item.
|
void |
setJson(java.lang.String json)
Sets the json of this commerce order item.
|
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date 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 |
setNew(boolean n) |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this commerce order item.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj) |
void |
setQuantity(int quantity)
Sets the quantity of this commerce order item.
|
void |
setShippedQuantity(int shippedQuantity)
Sets the shipped quantity of this commerce order item.
|
void |
setSku(java.lang.String sku)
Sets the sku of this commerce order item.
|
void |
setUnitPrice(java.math.BigDecimal unitPrice)
Sets the unit price 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.
|
com.liferay.portal.kernel.model.CacheModel<CommerceOrderItem> |
toCacheModel() |
CommerceOrderItem |
toEscapedModel() |
java.lang.String |
toString() |
CommerceOrderItem |
toUnescapedModel() |
java.lang.String |
toXmlString() |
long getPrimaryKey()
void setPrimaryKey(long primaryKey)
primaryKey - the primary key of this commerce order item@AutoEscape java.lang.String getExternalReferenceCode()
void setExternalReferenceCode(java.lang.String externalReferenceCode)
externalReferenceCode - the external reference code of this commerce order itemlong getCommerceOrderItemId()
void setCommerceOrderItemId(long commerceOrderItemId)
commerceOrderItemId - the commerce order item ID of this commerce order itemlong getGroupId()
getGroupId in interface com.liferay.portal.kernel.model.GroupedModelvoid setGroupId(long groupId)
setGroupId in interface com.liferay.portal.kernel.model.GroupedModelgroupId - the group ID of this commerce order itemlong getCompanyId()
getCompanyId in interface com.liferay.portal.kernel.model.AuditedModelgetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelvoid setCompanyId(long companyId)
setCompanyId in interface com.liferay.portal.kernel.model.AuditedModelsetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelcompanyId - the company ID of this commerce order itemlong getUserId()
getUserId in interface com.liferay.portal.kernel.model.AuditedModelvoid setUserId(long userId)
setUserId in interface com.liferay.portal.kernel.model.AuditedModeluserId - the user ID of this commerce order itemjava.lang.String getUserUuid()
getUserUuid in interface com.liferay.portal.kernel.model.AuditedModelvoid setUserUuid(java.lang.String userUuid)
setUserUuid in interface com.liferay.portal.kernel.model.AuditedModeluserUuid - the user uuid of this commerce order item@AutoEscape java.lang.String getUserName()
getUserName in interface com.liferay.portal.kernel.model.AuditedModelvoid setUserName(java.lang.String userName)
setUserName in interface com.liferay.portal.kernel.model.AuditedModeluserName - the user name of this commerce order itemjava.util.Date getCreateDate()
getCreateDate in interface com.liferay.portal.kernel.model.AuditedModelvoid setCreateDate(java.util.Date createDate)
setCreateDate in interface com.liferay.portal.kernel.model.AuditedModelcreateDate - the create date of this commerce order itemjava.util.Date getModifiedDate()
getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelvoid setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelmodifiedDate - the modified date of this commerce order itemlong getCommerceOrderId()
void setCommerceOrderId(long commerceOrderId)
commerceOrderId - the commerce order ID of this commerce order itemlong getCPInstanceId()
void setCPInstanceId(long CPInstanceId)
CPInstanceId - the cp instance ID of this commerce order itemint getQuantity()
void setQuantity(int quantity)
quantity - the quantity of this commerce order itemint getShippedQuantity()
void setShippedQuantity(int shippedQuantity)
shippedQuantity - the shipped quantity of this commerce order item@AutoEscape java.lang.String getJson()
void setJson(java.lang.String json)
json - the json of this commerce order itemjava.lang.String getName()
@AutoEscape java.lang.String getName(java.util.Locale locale)
locale - the locale of the language@AutoEscape
java.lang.String getName(java.util.Locale locale,
boolean useDefault)
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.@AutoEscape java.lang.String getName(java.lang.String languageId)
languageId - the ID of the language@AutoEscape
java.lang.String getName(java.lang.String languageId,
boolean useDefault)
languageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested language@AutoEscape java.lang.String getNameCurrentLanguageId()
@AutoEscape java.lang.String getNameCurrentValue()
java.util.Map<java.util.Locale,java.lang.String> getNameMap()
void setName(java.lang.String name)
name - the name of this commerce order itemvoid setName(java.lang.String name,
java.util.Locale locale)
name - the localized name of this commerce order itemlocale - the locale of the languagevoid setName(java.lang.String name,
java.util.Locale locale,
java.util.Locale defaultLocale)
name - the localized name of this commerce order itemlocale - the locale of the languagedefaultLocale - the default localevoid setNameCurrentLanguageId(java.lang.String languageId)
void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
nameMap - the locales and localized names of this commerce order itemvoid setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Locale defaultLocale)
nameMap - the locales and localized names of this commerce order itemdefaultLocale - the default locale@AutoEscape java.lang.String getSku()
void setSku(java.lang.String sku)
sku - the sku of this commerce order itemjava.math.BigDecimal getUnitPrice()
void setUnitPrice(java.math.BigDecimal unitPrice)
unitPrice - the unit price of this commerce order itemjava.math.BigDecimal getDiscountAmount()
void setDiscountAmount(java.math.BigDecimal discountAmount)
discountAmount - the discount amount of this commerce order itemjava.math.BigDecimal getFinalPrice()
void setFinalPrice(java.math.BigDecimal finalPrice)
finalPrice - the final price of this commerce order itemjava.math.BigDecimal getDiscountPercentageLevel1()
void setDiscountPercentageLevel1(java.math.BigDecimal discountPercentageLevel1)
discountPercentageLevel1 - the discount percentage level1 of this commerce order itemjava.math.BigDecimal getDiscountPercentageLevel2()
void setDiscountPercentageLevel2(java.math.BigDecimal discountPercentageLevel2)
discountPercentageLevel2 - the discount percentage level2 of this commerce order itemjava.math.BigDecimal getDiscountPercentageLevel3()
void setDiscountPercentageLevel3(java.math.BigDecimal discountPercentageLevel3)
discountPercentageLevel3 - the discount percentage level3 of this commerce order itemjava.math.BigDecimal getDiscountPercentageLevel4()
void setDiscountPercentageLevel4(java.math.BigDecimal discountPercentageLevel4)
discountPercentageLevel4 - the discount percentage level4 of this commerce order itemboolean isNew()
isNew in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>void setNew(boolean n)
setNew in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>boolean isCachedModel()
isCachedModel in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>void setCachedModel(boolean cachedModel)
setCachedModel in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>boolean isEscapedModel()
isEscapedModel in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>java.io.Serializable getPrimaryKeyObj()
getPrimaryKeyObj in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>getPrimaryKeyObj in interface com.liferay.portal.kernel.model.ClassedModelvoid setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
setPrimaryKeyObj in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>setPrimaryKeyObj in interface com.liferay.portal.kernel.model.ClassedModelcom.liferay.expando.kernel.model.ExpandoBridge getExpandoBridge()
getExpandoBridge in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>getExpandoBridge in interface com.liferay.portal.kernel.model.ClassedModelvoid setExpandoBridgeAttributes(com.liferay.portal.kernel.model.BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>void setExpandoBridgeAttributes(com.liferay.expando.kernel.model.ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>void setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext)
setExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface com.liferay.portal.kernel.model.LocalizedModeljava.lang.String getDefaultLanguageId()
getDefaultLanguageId in interface com.liferay.portal.kernel.model.LocalizedModelvoid prepareLocalizedFieldsForImport()
throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModelcom.liferay.portal.kernel.exception.LocaleExceptionvoid prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale)
throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModelcom.liferay.portal.kernel.exception.LocaleExceptionjava.lang.Object clone()
clone in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>int compareTo(CommerceOrderItem commerceOrderItem)
compareTo in interface java.lang.Comparable<CommerceOrderItem>int hashCode()
hashCode in class java.lang.Objectcom.liferay.portal.kernel.model.CacheModel<CommerceOrderItem> toCacheModel()
toCacheModel in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>CommerceOrderItem toEscapedModel()
toEscapedModel in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>CommerceOrderItem toUnescapedModel()
toUnescapedModel in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>java.lang.String toString()
toString in class java.lang.Objectjava.lang.String toXmlString()
toXmlString in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrderItem>