Class OptionBean
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.product.OptionBean
- All Implemented Interfaces:
BusinessObject,Option,Serializable
Object representing a option within the system.
OptionBean is
the default implementation of the Option interface for the
application.
The database stores options in the sscOption table, and this
interface can be used to represent a single row of that table. The Hibernate
configuration file OptionBean.hbm.xml maps that table's
columns to the properties in this object.
- Author:
- David Tobey
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintbooleanintvoidsetAttribute(Attribute attribute) voidsetAttributeID(int attributeID) voidsetOptionAltPrice(Double optionAltPrice) voidsetOptionCode(String optionCode) voidsetOptionDescription(String optionDescription) voidsetOptionID(int optionID) voidsetOptionIsActive(boolean optionIsActive) voidsetOptionLargeImage(String optionLargeImage) voidsetOptionName(String optionName) voidsetOptionOrder(int optionOrder) voidsetOptionSmallImage(String optionSmallImage) voidsetOptionUnitCost(Double optionUnitCost) voidsetOptionUnitPrice(Double optionUnitPrice) voidsetOptionWeight(Double optionWeight) voidsetParentName(String parentName) Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessObject
initializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
optionID
private int optionID -
attributeID
private int attributeID -
attribute
-
parentName
-
optionCode
-
optionName
-
optionDescription
-
optionIsActive
private boolean optionIsActive -
optionUnitCost
-
optionUnitPrice
-
optionAltPrice
-
optionWeight
-
optionSmallImage
-
optionLargeImage
-
optionOrder
private int optionOrder
-
-
Constructor Details
-
OptionBean
public OptionBean()
-
-
Method Details
-
getOptionID
public int getOptionID()- Specified by:
getOptionIDin interfaceOption
-
setOptionID
public void setOptionID(int optionID) - Specified by:
setOptionIDin interfaceOption
-
getAttributeID
public int getAttributeID()- Specified by:
getAttributeIDin interfaceOption
-
setAttributeID
public void setAttributeID(int attributeID) - Specified by:
setAttributeIDin interfaceOption
-
getOptionAltPrice
- Specified by:
getOptionAltPricein interfaceOption
-
setOptionAltPrice
- Specified by:
setOptionAltPricein interfaceOption
-
getOptionCode
- Specified by:
getOptionCodein interfaceOption
-
setOptionCode
- Specified by:
setOptionCodein interfaceOption
-
getOptionDescription
- Specified by:
getOptionDescriptionin interfaceOption
-
setOptionDescription
- Specified by:
setOptionDescriptionin interfaceOption
-
getOptionIsActive
public boolean getOptionIsActive()- Specified by:
getOptionIsActivein interfaceOption
-
setOptionIsActive
public void setOptionIsActive(boolean optionIsActive) - Specified by:
setOptionIsActivein interfaceOption
-
getOptionLargeImage
- Specified by:
getOptionLargeImagein interfaceOption
-
setOptionLargeImage
- Specified by:
setOptionLargeImagein interfaceOption
-
getOptionName
- Specified by:
getOptionNamein interfaceOption
-
setOptionName
- Specified by:
setOptionNamein interfaceOption
-
getOptionOrder
public int getOptionOrder()- Specified by:
getOptionOrderin interfaceOption
-
setOptionOrder
public void setOptionOrder(int optionOrder) - Specified by:
setOptionOrderin interfaceOption
-
getOptionSmallImage
- Specified by:
getOptionSmallImagein interfaceOption
-
setOptionSmallImage
- Specified by:
setOptionSmallImagein interfaceOption
-
getOptionUnitCost
- Specified by:
getOptionUnitCostin interfaceOption
-
setOptionUnitCost
- Specified by:
setOptionUnitCostin interfaceOption
-
getOptionUnitPrice
- Specified by:
getOptionUnitPricein interfaceOption
-
setOptionUnitPrice
- Specified by:
setOptionUnitPricein interfaceOption
-
getOptionWeight
- Specified by:
getOptionWeightin interfaceOption
-
setOptionWeight
- Specified by:
setOptionWeightin interfaceOption
-
getParentName
- Specified by:
getParentNamein interfaceOption
-
setParentName
- Specified by:
setParentNamein interfaceOption
-
getAttribute
- Specified by:
getAttributein interfaceOption
-
setAttribute
- Specified by:
setAttributein interfaceOption
-