Class ProductBean
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.product.ProductBean
- All Implemented Interfaces:
BusinessObject
,Product
,Serializable
Object representing a product within the system.
ProductBean
is the default implementation of the Product
interface for the
application.
The database stores products in the sscProduct
table, and this
interface can be used to represent a single row of that table. The Hibernate
configuration file ProductBean.hbm.xml
maps that table's
columns to the properties in this object.
- Author:
- David Tobey
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate Double
private Collection
private String
private String
private Collection
private String
private String
private String
private String
private String
private String
private String
private String
private String
private String
private String
private boolean
private boolean
private String
private String
(package private) static org.apache.commons.logging.Log
private Manufacturer
private Integer
private String
private String
private Category
private Integer
private Collection
private Collection
private int
private int
private Collection
private Map
private Collection
private Collection
private String
private static final long
private String
private Map
private Collection
private String
private Double
private Double
private Double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFormatting
(Locale locale, String currencyCode) buildSkuMap
(Collection skus) getCode()
boolean
boolean
getName()
int
int
getSkus()
void
setAltPrice
(Double altPrice) void
setAttributesAndOptions
(Collection attributesAndOptions) void
void
setCreated
(String created) void
setCustomerWishListProducts
(Collection customerWishListProducts) void
setDescription
(String description) void
void
void
void
void
void
void
setFormattedAltPrice
(String formattedAltPrice) void
setFormattedCost
(String formattedCost) void
setFormattedPrice
(String formattedPrice) void
void
setIsActive
(boolean isActive) void
setIsTaxed
(boolean isTaxed) void
setKeywords
(String keywords) void
setLargeImage
(String largeImage) void
setManufacturer
(Manufacturer manufacturer) void
setManufacturerID
(Integer manufacturerID) void
setMediumImage
(String mediumImage) void
void
setPrimaryCategory
(Category primaryCategory) void
setPrimaryCategoryID
(Integer primaryCategoryID) void
setProductAttributes
(Collection productAttributes) void
setProductCategories
(Collection productCategories) void
setProductID
(int productID) void
setProductOrder
(int productOrder) void
setProductReviews
(Collection productReviews) void
setProductSettings
(Map productSettings) void
setRelatedProducts
(Collection relatedProducts) void
setRelatedProductsAdmin
(Collection relatedProductsAdmin) void
setSeoCode
(String seoCode) void
setShortDescription
(String shortDescription) void
setSkus
(Collection skus) void
setSmallImage
(String smallImage) void
setUnitCost
(Double unitCost) void
setUnitPrice
(Double unitPrice) void
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:
-
log
static org.apache.commons.logging.Log log -
productID
private int productID -
code
-
seoCode
-
name
-
keywords
-
shortDescription
-
description
-
isActive
private boolean isActive -
isTaxed
private boolean isTaxed -
unitCost
-
unitPrice
-
altPrice
-
weight
-
-
header
-
smallImage
-
mediumImage
-
largeImage
-
extra1
-
extra2
-
extra3
-
extra4
-
extra5
-
created
-
productOrder
private int productOrder -
manufacturerID
-
formattedCost
-
formattedPrice
-
formattedAltPrice
-
attributesAndOptions
-
productSettings
-
productCategories
-
primaryCategory
-
manufacturer
-
productAttributes
-
skus
-
skuMap
-
customerWishListProducts
-
productReviews
-
-
Constructor Details
-
ProductBean
public ProductBean()
-
-
Method Details
-
getManufacturerID
- Specified by:
getManufacturerID
in interfaceProduct
-
setManufacturerID
- Specified by:
setManufacturerID
in interfaceProduct
-
getProductID
public int getProductID()- Specified by:
getProductID
in interfaceProduct
-
setProductID
public void setProductID(int productID) - Specified by:
setProductID
in interfaceProduct
-
getCode
-
setCode
-
getName
-
setName
-
getIsActive
public boolean getIsActive()- Specified by:
getIsActive
in interfaceProduct
-
setIsActive
public void setIsActive(boolean isActive) - Specified by:
setIsActive
in interfaceProduct
-
getExtra3
-
setExtra3
-
getExtra4
-
setExtra4
-
getExtra5
-
setExtra5
-
getKeywords
- Specified by:
getKeywords
in interfaceProduct
-
setKeywords
- Specified by:
setKeywords
in interfaceProduct
-
getExtra1
-
setExtra1
-
getExtra2
-
setExtra2
-
getShortDescription
- Specified by:
getShortDescription
in interfaceProduct
-
setShortDescription
- Specified by:
setShortDescription
in interfaceProduct
-
getDescription
- Specified by:
getDescription
in interfaceProduct
-
setDescription
- Specified by:
setDescription
in interfaceProduct
-
getUnitCost
- Specified by:
getUnitCost
in interfaceProduct
-
setUnitCost
- Specified by:
setUnitCost
in interfaceProduct
-
getUnitPrice
- Specified by:
getUnitPrice
in interfaceProduct
-
setUnitPrice
- Specified by:
setUnitPrice
in interfaceProduct
-
getAltPrice
- Specified by:
getAltPrice
in interfaceProduct
-
setAltPrice
- Specified by:
setAltPrice
in interfaceProduct
-
getWeight
-
setWeight
-
getHeader
-
setHeader
-
getIsTaxed
public boolean getIsTaxed()- Specified by:
getIsTaxed
in interfaceProduct
-
setIsTaxed
public void setIsTaxed(boolean isTaxed) - Specified by:
setIsTaxed
in interfaceProduct
-
getSmallImage
- Specified by:
getSmallImage
in interfaceProduct
-
setSmallImage
- Specified by:
setSmallImage
in interfaceProduct
-
getMediumImage
- Specified by:
getMediumImage
in interfaceProduct
-
setMediumImage
- Specified by:
setMediumImage
in interfaceProduct
-
getLargeImage
- Specified by:
getLargeImage
in interfaceProduct
-
setLargeImage
- Specified by:
setLargeImage
in interfaceProduct
-
getPrimaryCategoryID
- Specified by:
getPrimaryCategoryID
in interfaceProduct
-
setPrimaryCategoryID
- Specified by:
setPrimaryCategoryID
in interfaceProduct
-
getProductOrder
public int getProductOrder()- Specified by:
getProductOrder
in interfaceProduct
-
setProductOrder
public void setProductOrder(int productOrder) - Specified by:
setProductOrder
in interfaceProduct
-
getSeoCode
- Specified by:
getSeoCode
in interfaceProduct
-
setSeoCode
- Specified by:
setSeoCode
in interfaceProduct
-
getCreated
- Specified by:
getCreated
in interfaceProduct
-
setCreated
- Specified by:
setCreated
in interfaceProduct
-
getFormattedCost
- Specified by:
getFormattedCost
in interfaceProduct
-
setFormattedCost
- Specified by:
setFormattedCost
in interfaceProduct
-
getFormattedPrice
- Specified by:
getFormattedPrice
in interfaceProduct
-
setFormattedPrice
- Specified by:
setFormattedPrice
in interfaceProduct
-
getFormattedAltPrice
- Specified by:
getFormattedAltPrice
in interfaceProduct
-
setFormattedAltPrice
- Specified by:
setFormattedAltPrice
in interfaceProduct
-
getAttributesAndOptions
- Specified by:
getAttributesAndOptions
in interfaceProduct
-
setAttributesAndOptions
- Specified by:
setAttributesAndOptions
in interfaceProduct
-
getProductSettings
- Specified by:
getProductSettings
in interfaceProduct
-
setProductSettings
- Specified by:
setProductSettings
in interfaceProduct
-
getProductCategories
- Specified by:
getProductCategories
in interfaceProduct
-
setProductCategories
- Specified by:
setProductCategories
in interfaceProduct
-
getPrimaryCategory
- Specified by:
getPrimaryCategory
in interfaceProduct
-
setPrimaryCategory
- Specified by:
setPrimaryCategory
in interfaceProduct
-
getManufacturer
- Specified by:
getManufacturer
in interfaceProduct
-
setManufacturer
- Specified by:
setManufacturer
in interfaceProduct
-
getProductAttributes
- Specified by:
getProductAttributes
in interfaceProduct
-
setProductAttributes
- Specified by:
setProductAttributes
in interfaceProduct
-
getSkus
-
setSkus
-
getSkuMap
-
getRelatedProducts
- Specified by:
getRelatedProducts
in interfaceProduct
-
setRelatedProducts
- Specified by:
setRelatedProducts
in interfaceProduct
-
getRelatedProductsAdmin
- Specified by:
getRelatedProductsAdmin
in interfaceProduct
-
setRelatedProductsAdmin
- Specified by:
setRelatedProductsAdmin
in interfaceProduct
-
getCustomerWishListProducts
- Specified by:
getCustomerWishListProducts
in interfaceProduct
-
setCustomerWishListProducts
- Specified by:
setCustomerWishListProducts
in interfaceProduct
-
getProductReviews
- Specified by:
getProductReviews
in interfaceProduct
-
setProductReviews
- Specified by:
setProductReviews
in interfaceProduct
-
addFormatting
- Specified by:
addFormatting
in interfaceProduct
-
buildSkuMap
-