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
Attribute
s and
Option
s, or an
Attribute
and its Option
s, 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
Modifier and TypeFieldDescriptionprivate Integer
private Integer
private Integer
private Integer
private Integer
private String
private String
private String
private int
private String
private Integer
private Integer
private Integer
private Integer
private Integer
private Product
private Integer
private static final long
private Collection
private int
private String
private String
private String
private Collection
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getNotes()
int
getSkuID()
int
getSKUID()
boolean
void
setAttributeID1
(Integer attributeID1) void
setAttributeID2
(Integer attributeID2) void
setAttributeID3
(Integer attributeID3) void
setAttributeID4
(Integer attributeID4) void
setAttributeID5
(Integer attributeID5) void
void
void
void
setInventoryLevel
(int inventoryLevel) void
void
setOptionID1
(Integer optionID1) void
setOptionID2
(Integer optionID2) void
setOptionID3
(Integer optionID3) void
setOptionID4
(Integer optionID4) void
setOptionID5
(Integer optionID5) void
setProduct
(Product product) void
setProductID
(Integer productID) void
setSkuDiscounts
(Collection skuDiscounts) void
setSkuID
(int skuID) void
setSKUID
(int skuID) void
setSkuMessage
(String skuMessage) void
setSkuName
(String skuName) void
setSkuNumber
(String skuNumber) void
setSkuShippingRules
(Collection skuShippingRules) void
setTrackInventory
(boolean trackInventory) 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:
-
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:
getAttributeID1
in interfaceSKU
-
setAttributeID1
- Specified by:
setAttributeID1
in interfaceSKU
-
getAttributeID2
- Specified by:
getAttributeID2
in interfaceSKU
-
setAttributeID2
- Specified by:
setAttributeID2
in interfaceSKU
-
getAttributeID3
- Specified by:
getAttributeID3
in interfaceSKU
-
setAttributeID3
- Specified by:
setAttributeID3
in interfaceSKU
-
getAttributeID4
- Specified by:
getAttributeID4
in interfaceSKU
-
setAttributeID4
- Specified by:
setAttributeID4
in interfaceSKU
-
getAttributeID5
- Specified by:
getAttributeID5
in interfaceSKU
-
setAttributeID5
- Specified by:
setAttributeID5
in interfaceSKU
-
getInventoryLevel
public int getInventoryLevel()- Specified by:
getInventoryLevel
in interfaceSKU
-
setInventoryLevel
public void setInventoryLevel(int inventoryLevel) - Specified by:
setInventoryLevel
in interfaceSKU
-
getNotes
-
setNotes
-
getOptionID1
- Specified by:
getOptionID1
in interfaceSKU
-
setOptionID1
- Specified by:
setOptionID1
in interfaceSKU
-
getOptionID2
- Specified by:
getOptionID2
in interfaceSKU
-
setOptionID2
- Specified by:
setOptionID2
in interfaceSKU
-
getOptionID3
- Specified by:
getOptionID3
in interfaceSKU
-
setOptionID3
- Specified by:
setOptionID3
in interfaceSKU
-
getOptionID4
- Specified by:
getOptionID4
in interfaceSKU
-
setOptionID4
- Specified by:
setOptionID4
in interfaceSKU
-
getOptionID5
- Specified by:
getOptionID5
in interfaceSKU
-
setOptionID5
- Specified by:
setOptionID5
in interfaceSKU
-
getProductID
- Specified by:
getProductID
in interfaceSKU
-
setProductID
- Specified by:
setProductID
in interfaceSKU
-
getSkuID
public int getSkuID() -
setSkuID
public void setSkuID(int skuID) -
getSkuNumber
- Specified by:
getSkuNumber
in interfaceSKU
-
setSkuNumber
- Specified by:
setSkuNumber
in interfaceSKU
-
getTrackInventory
public boolean getTrackInventory()- Specified by:
getTrackInventory
in interfaceSKU
-
setTrackInventory
public void setTrackInventory(boolean trackInventory) - Specified by:
setTrackInventory
in interfaceSKU
-
getProduct
- Specified by:
getProduct
in interfaceSKU
-
setProduct
- Specified by:
setProduct
in interfaceSKU
-
getExtra1
-
setExtra1
-
getExtra2
-
setExtra2
-
getExtra3
-
setExtra3
-
getSkuName
- Specified by:
getSkuName
in interfaceSKU
-
setSkuName
- Specified by:
setSkuName
in interfaceSKU
-
getSkuMessage
- Specified by:
getSkuMessage
in interfaceSKU
-
setSkuMessage
- Specified by:
setSkuMessage
in interfaceSKU
-
getSkuDiscounts
- Specified by:
getSkuDiscounts
in interfaceSKU
-
setSkuDiscounts
- Specified by:
setSkuDiscounts
in interfaceSKU
-
getSkuShippingRules
- Specified by:
getSkuShippingRules
in interfaceSKU
-
setSkuShippingRules
- Specified by:
setSkuShippingRules
in interfaceSKU
-