@Entity public class ProductOptionValueImpl extends Object implements ProductOptionValue, ProductOptionValueAdminPresentation
ProductOptionValueAdminPresentation.FieldOrder, ProductOptionValueAdminPresentation.GroupName, ProductOptionValueAdminPresentation.GroupOrder, ProductOptionValueAdminPresentation.TabName, ProductOptionValueAdminPresentation.TabOrder| Modifier and Type | Field and Description |
|---|---|
protected String |
attributeValue |
protected Long |
displayOrder |
protected Long |
id |
protected BigDecimal |
priceAdjustment |
protected ProductOption |
productOption |
| Constructor and Description |
|---|
ProductOptionValueImpl() |
| Modifier and Type | Method and Description |
|---|---|
<G extends ProductOptionValue> |
createOrRetrieveCopyInstance(MultiTenantCopyContext context) |
boolean |
equals(Object obj) |
String |
getAttributeValue()
Gets the option value.
|
Long |
getDisplayOrder()
Returns the order that the option value should be displayed in.
|
Long |
getId()
Returns unique identifier of the product option value.
|
Money |
getPriceAdjustment()
Gets the price adjustment associated with this value.
|
Money |
getPriceAdjustmentSkipDynamicPricing()
Retrieve the Product Option's price adjustment without dynamic pricing
applied.
|
ProductOption |
getProductOption()
Returns the associated ProductOption
|
String |
getRawAttributeValue()
Gets the option value.
|
int |
hashCode() |
void |
setAttributeValue(String attributeValue)
Sets the option value.
|
void |
setDisplayOrder(Long displayOrder)
Sets the display order.
|
void |
setId(Long id)
Sets the unique identifier of the product option value.
|
void |
setPriceAdjustment(Money priceAdjustment)
Gets the price adjustment associated with this value.
|
void |
setProductOption(ProductOption productOption)
Sets the associated product option.
|
protected Long id
protected String attributeValue
protected Long displayOrder
protected BigDecimal priceAdjustment
protected ProductOption productOption
public Long getId()
ProductOptionValuegetId in interface ProductOptionValuepublic void setId(Long id)
ProductOptionValuesetId in interface ProductOptionValuepublic String getAttributeValue()
ProductOptionValuegetAttributeValue in interface ProductOptionValuepublic String getRawAttributeValue()
ProductOptionValuegetRawAttributeValue in interface ProductOptionValuepublic void setAttributeValue(String attributeValue)
ProductOptionValuesetAttributeValue in interface ProductOptionValuepublic Long getDisplayOrder()
ProductOptionValuegetDisplayOrder in interface ProductOptionValuepublic void setDisplayOrder(Long displayOrder)
ProductOptionValuesetDisplayOrder in interface ProductOptionValuepublic Money getPriceAdjustment()
ProductOptionValueThis may be a negative value if you wanted to offer a particular ProductOptionValue at a discount
Depending on the implementation, this may perform dynamic pricing, which influences the value returned by examining price lists for the product option.
To retrieve the price adjustment without dynamic pricing applied,
see ProductOptionValue.getPriceAdjustmentSkipDynamicPricing().
getPriceAdjustment in interface ProductOptionValuepublic Money getPriceAdjustmentSkipDynamicPricing()
ProductOptionValuegetPriceAdjustmentSkipDynamicPricing in interface ProductOptionValueProductOptionValue.getPriceAdjustment()public void setPriceAdjustment(Money priceAdjustment)
ProductOptionValuesetPriceAdjustment in interface ProductOptionValuepublic ProductOption getProductOption()
ProductOptionValuegetProductOption in interface ProductOptionValuepublic void setProductOption(ProductOption productOption)
ProductOptionValuesetProductOption in interface ProductOptionValuepublic <G extends ProductOptionValue> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException
createOrRetrieveCopyInstance in interface MultiTenantCloneable<ProductOptionValue>CloneNotSupportedExceptionCopyright © 2020. All rights reserved.