org.broadleafcommerce.core.catalog.domain
Class ProductOptionValueImpl

java.lang.Object
  extended by org.broadleafcommerce.core.catalog.domain.ProductOptionValueImpl
All Implemented Interfaces:
Serializable, ProductOptionValue

@Entity
public class ProductOptionValueImpl
extends Object
implements ProductOptionValue

See Also:
Serialized Form

Field Summary
protected  String attributeValue
           
protected  Long displayOrder
           
protected  Long id
           
protected  BigDecimal priceAdjustment
           
protected  ProductOption productOption
           
 
Constructor Summary
ProductOptionValueImpl()
           
 
Method Summary
 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.
 ProductOption getProductOption()
          Returns the associated ProductOption
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

attributeValue

protected String attributeValue

displayOrder

protected Long displayOrder

priceAdjustment

protected BigDecimal priceAdjustment

productOption

protected ProductOption productOption
Constructor Detail

ProductOptionValueImpl

public ProductOptionValueImpl()
Method Detail

getId

public Long getId()
Description copied from interface: ProductOptionValue
Returns unique identifier of the product option value.

Specified by:
getId in interface ProductOptionValue
Returns:

setId

public void setId(Long id)
Description copied from interface: ProductOptionValue
Sets the unique identifier of the product option value.

Specified by:
setId in interface ProductOptionValue

getAttributeValue

public String getAttributeValue()
Description copied from interface: ProductOptionValue
Gets the option value. (e.g. "red")

Specified by:
getAttributeValue in interface ProductOptionValue

setAttributeValue

public void setAttributeValue(String attributeValue)
Description copied from interface: ProductOptionValue
Sets the option value. (e.g. "red")

Specified by:
setAttributeValue in interface ProductOptionValue

getDisplayOrder

public Long getDisplayOrder()
Description copied from interface: ProductOptionValue
Returns the order that the option value should be displayed in.

Specified by:
getDisplayOrder in interface ProductOptionValue
Returns:

setDisplayOrder

public void setDisplayOrder(Long displayOrder)
Description copied from interface: ProductOptionValue
Sets the display order.

Specified by:
setDisplayOrder in interface ProductOptionValue

getPriceAdjustment

public Money getPriceAdjustment()
Description copied from interface: ProductOptionValue
Gets the price adjustment associated with this value. For instance, if this ProductOptionValue represented an extra-large shirt, that might be a $1 upcharge. This adjustments will be automatically added to the Sku retail price and sale price

Note: This could also be a negative value if you wanted to offer a particular ProductOptionValue at a discount

Specified by:
getPriceAdjustment in interface ProductOptionValue
Returns:
the price adjustment for this

setPriceAdjustment

public void setPriceAdjustment(Money priceAdjustment)
Description copied from interface: ProductOptionValue
Gets the price adjustment associated with this value. For instance, if this ProductOptionValue represented an extra-large shirt, that might be a $1 upcharge. These adjustments will be automatically added to the Sku retail price and sale price. To offer this particular ProductOptionValue at a discount, you could also provide a negative value here

Specified by:
setPriceAdjustment in interface ProductOptionValue

getProductOption

public ProductOption getProductOption()
Description copied from interface: ProductOptionValue
Returns the associated ProductOption

Specified by:
getProductOption in interface ProductOptionValue
Returns:

setProductOption

public void setProductOption(ProductOption productOption)
Description copied from interface: ProductOptionValue
Sets the associated product option.

Specified by:
setProductOption in interface ProductOptionValue

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013. All Rights Reserved.