Class SKUBean
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.product.SKUBean
- All Implemented Interfaces:
BusinessObject,SKU,Serializable
Object representing a sku within the system. A sku corresponds to a
Product, a
Product and any combination of
Attributes and
Options, or an
Attribute and its Options, independent of any
products. It is used for tracking inventory and can it also be associated
with discounts. (SKU stands for "stock keeping unit".) SKUBean
is the default implementation of the SKU interface for the
application.
The database stores skus in the sscSKU table, and this
interface can be used to represent a single row of that table. The Hibernate
configuration file SKUBean.hbm.xml maps that table's columns
to the properties in this object.
- Author:
- David Tobey
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Integerprivate Integerprivate Integerprivate Integerprivate Integerprivate Stringprivate Stringprivate Stringprivate intprivate Stringprivate Integerprivate Integerprivate Integerprivate Integerprivate Integerprivate Productprivate Integerprivate static final longprivate Collectionprivate intprivate Stringprivate Stringprivate Stringprivate Collectionprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetNotes()intgetSkuID()intgetSKUID()booleanvoidsetAttributeID1(Integer attributeID1) voidsetAttributeID2(Integer attributeID2) voidsetAttributeID3(Integer attributeID3) voidsetAttributeID4(Integer attributeID4) voidsetAttributeID5(Integer attributeID5) voidvoidvoidvoidsetInventoryLevel(int inventoryLevel) voidvoidsetOptionID1(Integer optionID1) voidsetOptionID2(Integer optionID2) voidsetOptionID3(Integer optionID3) voidsetOptionID4(Integer optionID4) voidsetOptionID5(Integer optionID5) voidsetProduct(Product product) voidsetProductID(Integer productID) voidsetSkuDiscounts(Collection skuDiscounts) voidsetSkuID(int skuID) voidsetSKUID(int skuID) voidsetSkuMessage(String skuMessage) voidsetSkuName(String skuName) voidsetSkuNumber(String skuNumber) voidsetSkuShippingRules(Collection skuShippingRules) voidsetTrackInventory(boolean trackInventory) 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:
-
skuID
private int skuID -
productID
-
attributeID1
-
attributeID2
-
attributeID3
-
attributeID4
-
attributeID5
-
optionID1
-
optionID2
-
optionID3
-
optionID4
-
optionID5
-
skuName
-
skuNumber
-
skuMessage
-
extra1
-
extra2
-
extra3
-
trackInventory
private boolean trackInventory -
inventoryLevel
private int inventoryLevel -
notes
-
product
-
skuDiscounts
-
skuShippingRules
-
-
Constructor Details
-
SKUBean
public SKUBean()
-
-
Method Details
-
getSKUID
public int getSKUID() -
setSKUID
public void setSKUID(int skuID) -
getAttributeID1
- Specified by:
getAttributeID1in interfaceSKU
-
setAttributeID1
- Specified by:
setAttributeID1in interfaceSKU
-
getAttributeID2
- Specified by:
getAttributeID2in interfaceSKU
-
setAttributeID2
- Specified by:
setAttributeID2in interfaceSKU
-
getAttributeID3
- Specified by:
getAttributeID3in interfaceSKU
-
setAttributeID3
- Specified by:
setAttributeID3in interfaceSKU
-
getAttributeID4
- Specified by:
getAttributeID4in interfaceSKU
-
setAttributeID4
- Specified by:
setAttributeID4in interfaceSKU
-
getAttributeID5
- Specified by:
getAttributeID5in interfaceSKU
-
setAttributeID5
- Specified by:
setAttributeID5in interfaceSKU
-
getInventoryLevel
public int getInventoryLevel()- Specified by:
getInventoryLevelin interfaceSKU
-
setInventoryLevel
public void setInventoryLevel(int inventoryLevel) - Specified by:
setInventoryLevelin interfaceSKU
-
getNotes
-
setNotes
-
getOptionID1
- Specified by:
getOptionID1in interfaceSKU
-
setOptionID1
- Specified by:
setOptionID1in interfaceSKU
-
getOptionID2
- Specified by:
getOptionID2in interfaceSKU
-
setOptionID2
- Specified by:
setOptionID2in interfaceSKU
-
getOptionID3
- Specified by:
getOptionID3in interfaceSKU
-
setOptionID3
- Specified by:
setOptionID3in interfaceSKU
-
getOptionID4
- Specified by:
getOptionID4in interfaceSKU
-
setOptionID4
- Specified by:
setOptionID4in interfaceSKU
-
getOptionID5
- Specified by:
getOptionID5in interfaceSKU
-
setOptionID5
- Specified by:
setOptionID5in interfaceSKU
-
getProductID
- Specified by:
getProductIDin interfaceSKU
-
setProductID
- Specified by:
setProductIDin interfaceSKU
-
getSkuID
public int getSkuID() -
setSkuID
public void setSkuID(int skuID) -
getSkuNumber
- Specified by:
getSkuNumberin interfaceSKU
-
setSkuNumber
- Specified by:
setSkuNumberin interfaceSKU
-
getTrackInventory
public boolean getTrackInventory()- Specified by:
getTrackInventoryin interfaceSKU
-
setTrackInventory
public void setTrackInventory(boolean trackInventory) - Specified by:
setTrackInventoryin interfaceSKU
-
getProduct
- Specified by:
getProductin interfaceSKU
-
setProduct
- Specified by:
setProductin interfaceSKU
-
getExtra1
-
setExtra1
-
getExtra2
-
setExtra2
-
getExtra3
-
setExtra3
-
getSkuName
- Specified by:
getSkuNamein interfaceSKU
-
setSkuName
- Specified by:
setSkuNamein interfaceSKU
-
getSkuMessage
- Specified by:
getSkuMessagein interfaceSKU
-
setSkuMessage
- Specified by:
setSkuMessagein interfaceSKU
-
getSkuDiscounts
- Specified by:
getSkuDiscountsin interfaceSKU
-
setSkuDiscounts
- Specified by:
setSkuDiscountsin interfaceSKU
-
getSkuShippingRules
- Specified by:
getSkuShippingRulesin interfaceSKU
-
setSkuShippingRules
- Specified by:
setSkuShippingRulesin interfaceSKU
-