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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
boolean
int
void
setAttribute
(Attribute attribute) void
setAttributeID
(int attributeID) void
setOptionAltPrice
(Double optionAltPrice) void
setOptionCode
(String optionCode) void
setOptionDescription
(String optionDescription) void
setOptionID
(int optionID) void
setOptionIsActive
(boolean optionIsActive) void
setOptionLargeImage
(String optionLargeImage) void
setOptionName
(String optionName) void
setOptionOrder
(int optionOrder) void
setOptionSmallImage
(String optionSmallImage) void
setOptionUnitCost
(Double optionUnitCost) void
setOptionUnitPrice
(Double optionUnitPrice) void
setOptionWeight
(Double optionWeight) void
setParentName
(String parentName) Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessObject
initialize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getOptionID
in interfaceOption
-
setOptionID
public void setOptionID(int optionID) - Specified by:
setOptionID
in interfaceOption
-
getAttributeID
public int getAttributeID()- Specified by:
getAttributeID
in interfaceOption
-
setAttributeID
public void setAttributeID(int attributeID) - Specified by:
setAttributeID
in interfaceOption
-
getOptionAltPrice
- Specified by:
getOptionAltPrice
in interfaceOption
-
setOptionAltPrice
- Specified by:
setOptionAltPrice
in interfaceOption
-
getOptionCode
- Specified by:
getOptionCode
in interfaceOption
-
setOptionCode
- Specified by:
setOptionCode
in interfaceOption
-
getOptionDescription
- Specified by:
getOptionDescription
in interfaceOption
-
setOptionDescription
- Specified by:
setOptionDescription
in interfaceOption
-
getOptionIsActive
public boolean getOptionIsActive()- Specified by:
getOptionIsActive
in interfaceOption
-
setOptionIsActive
public void setOptionIsActive(boolean optionIsActive) - Specified by:
setOptionIsActive
in interfaceOption
-
getOptionLargeImage
- Specified by:
getOptionLargeImage
in interfaceOption
-
setOptionLargeImage
- Specified by:
setOptionLargeImage
in interfaceOption
-
getOptionName
- Specified by:
getOptionName
in interfaceOption
-
setOptionName
- Specified by:
setOptionName
in interfaceOption
-
getOptionOrder
public int getOptionOrder()- Specified by:
getOptionOrder
in interfaceOption
-
setOptionOrder
public void setOptionOrder(int optionOrder) - Specified by:
setOptionOrder
in interfaceOption
-
getOptionSmallImage
- Specified by:
getOptionSmallImage
in interfaceOption
-
setOptionSmallImage
- Specified by:
setOptionSmallImage
in interfaceOption
-
getOptionUnitCost
- Specified by:
getOptionUnitCost
in interfaceOption
-
setOptionUnitCost
- Specified by:
setOptionUnitCost
in interfaceOption
-
getOptionUnitPrice
- Specified by:
getOptionUnitPrice
in interfaceOption
-
setOptionUnitPrice
- Specified by:
setOptionUnitPrice
in interfaceOption
-
getOptionWeight
- Specified by:
getOptionWeight
in interfaceOption
-
setOptionWeight
- Specified by:
setOptionWeight
in interfaceOption
-
getParentName
- Specified by:
getParentName
in interfaceOption
-
setParentName
- Specified by:
setParentName
in interfaceOption
-
getAttribute
- Specified by:
getAttribute
in interfaceOption
-
setAttribute
- Specified by:
setAttribute
in interfaceOption
-