com.softslate.commerce.businessobjects.product
Class ProductBean
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.product.ProductBean
- All Implemented Interfaces:
- BusinessObject, Product, java.io.Serializable
public class ProductBean
- extends BaseBusinessObject
- implements Product, java.io.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:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
log
static org.apache.commons.logging.Log log
productID
private int productID
code
private java.lang.String code
seoCode
private java.lang.String seoCode
name
private java.lang.String name
keywords
private java.lang.String keywords
shortDescription
private java.lang.String shortDescription
description
private java.lang.String description
isActive
private boolean isActive
isTaxed
private boolean isTaxed
unitCost
private java.lang.Double unitCost
unitPrice
private java.lang.Double unitPrice
altPrice
private java.lang.Double altPrice
weight
private java.lang.Double weight
primaryCategoryID
private java.lang.Integer primaryCategoryID
header
private java.lang.String header
footer
private java.lang.String footer
smallImage
private java.lang.String smallImage
mediumImage
private java.lang.String mediumImage
largeImage
private java.lang.String largeImage
extra1
private java.lang.String extra1
extra2
private java.lang.String extra2
extra3
private java.lang.String extra3
extra4
private java.lang.String extra4
extra5
private java.lang.String extra5
productOrder
private int productOrder
manufacturerID
private java.lang.Integer manufacturerID
formattedCost
private java.lang.String formattedCost
formattedPrice
private java.lang.String formattedPrice
formattedAltPrice
private java.lang.String formattedAltPrice
attributesAndOptions
private java.util.Collection attributesAndOptions
productSettings
private java.util.Map productSettings
productCategories
private java.util.Collection productCategories
primaryCategory
private Category primaryCategory
manufacturer
private Manufacturer manufacturer
productAttributes
private java.util.Collection productAttributes
skus
private java.util.Collection skus
skuMap
private java.util.Map skuMap
relatedProducts
private java.util.Collection relatedProducts
relatedProductsAdmin
private java.util.Collection relatedProductsAdmin
customerWishListProducts
private java.util.Collection customerWishListProducts
productReviews
private java.util.Collection productReviews
ProductBean
public ProductBean()
getManufacturerID
public java.lang.Integer getManufacturerID()
- Specified by:
getManufacturerID in interface Product
setManufacturerID
public void setManufacturerID(java.lang.Integer manufacturerID)
- Specified by:
setManufacturerID in interface Product
getProductID
public int getProductID()
- Specified by:
getProductID in interface Product
setProductID
public void setProductID(int productID)
- Specified by:
setProductID in interface Product
getCode
public java.lang.String getCode()
- Specified by:
getCode in interface Product
setCode
public void setCode(java.lang.String code)
- Specified by:
setCode in interface Product
getName
public java.lang.String getName()
- Specified by:
getName in interface Product
setName
public void setName(java.lang.String name)
- Specified by:
setName in interface Product
getIsActive
public boolean getIsActive()
- Specified by:
getIsActive in interface Product
setIsActive
public void setIsActive(boolean isActive)
- Specified by:
setIsActive in interface Product
getExtra3
public java.lang.String getExtra3()
- Specified by:
getExtra3 in interface Product
setExtra3
public void setExtra3(java.lang.String extra3)
- Specified by:
setExtra3 in interface Product
getExtra4
public java.lang.String getExtra4()
- Specified by:
getExtra4 in interface Product
setExtra4
public void setExtra4(java.lang.String extra4)
- Specified by:
setExtra4 in interface Product
getExtra5
public java.lang.String getExtra5()
- Specified by:
getExtra5 in interface Product
setExtra5
public void setExtra5(java.lang.String extra5)
- Specified by:
setExtra5 in interface Product
getKeywords
public java.lang.String getKeywords()
- Specified by:
getKeywords in interface Product
setKeywords
public void setKeywords(java.lang.String keywords)
- Specified by:
setKeywords in interface Product
getExtra1
public java.lang.String getExtra1()
- Specified by:
getExtra1 in interface Product
setExtra1
public void setExtra1(java.lang.String extra1)
- Specified by:
setExtra1 in interface Product
getExtra2
public java.lang.String getExtra2()
- Specified by:
getExtra2 in interface Product
setExtra2
public void setExtra2(java.lang.String extra2)
- Specified by:
setExtra2 in interface Product
getShortDescription
public java.lang.String getShortDescription()
- Specified by:
getShortDescription in interface Product
setShortDescription
public void setShortDescription(java.lang.String shortDescription)
- Specified by:
setShortDescription in interface Product
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription in interface Product
setDescription
public void setDescription(java.lang.String description)
- Specified by:
setDescription in interface Product
getUnitCost
public java.lang.Double getUnitCost()
- Specified by:
getUnitCost in interface Product
setUnitCost
public void setUnitCost(java.lang.Double unitCost)
- Specified by:
setUnitCost in interface Product
getUnitPrice
public java.lang.Double getUnitPrice()
- Specified by:
getUnitPrice in interface Product
setUnitPrice
public void setUnitPrice(java.lang.Double unitPrice)
- Specified by:
setUnitPrice in interface Product
getAltPrice
public java.lang.Double getAltPrice()
- Specified by:
getAltPrice in interface Product
setAltPrice
public void setAltPrice(java.lang.Double altPrice)
- Specified by:
setAltPrice in interface Product
getWeight
public java.lang.Double getWeight()
- Specified by:
getWeight in interface Product
setWeight
public void setWeight(java.lang.Double weight)
- Specified by:
setWeight in interface Product
getHeader
public java.lang.String getHeader()
- Specified by:
getHeader in interface Product
setHeader
public void setHeader(java.lang.String header)
- Specified by:
setHeader in interface Product
getFooter
public java.lang.String getFooter()
- Specified by:
getFooter in interface Product
setFooter
public void setFooter(java.lang.String footer)
- Specified by:
setFooter in interface Product
getIsTaxed
public boolean getIsTaxed()
- Specified by:
getIsTaxed in interface Product
setIsTaxed
public void setIsTaxed(boolean isTaxed)
- Specified by:
setIsTaxed in interface Product
getSmallImage
public java.lang.String getSmallImage()
- Specified by:
getSmallImage in interface Product
setSmallImage
public void setSmallImage(java.lang.String smallImage)
- Specified by:
setSmallImage in interface Product
getMediumImage
public java.lang.String getMediumImage()
- Specified by:
getMediumImage in interface Product
setMediumImage
public void setMediumImage(java.lang.String mediumImage)
- Specified by:
setMediumImage in interface Product
getLargeImage
public java.lang.String getLargeImage()
- Specified by:
getLargeImage in interface Product
setLargeImage
public void setLargeImage(java.lang.String largeImage)
- Specified by:
setLargeImage in interface Product
getPrimaryCategoryID
public java.lang.Integer getPrimaryCategoryID()
- Specified by:
getPrimaryCategoryID in interface Product
setPrimaryCategoryID
public void setPrimaryCategoryID(java.lang.Integer primaryCategoryID)
- Specified by:
setPrimaryCategoryID in interface Product
getProductOrder
public int getProductOrder()
- Specified by:
getProductOrder in interface Product
setProductOrder
public void setProductOrder(int productOrder)
- Specified by:
setProductOrder in interface Product
getSeoCode
public java.lang.String getSeoCode()
- Specified by:
getSeoCode in interface Product
setSeoCode
public void setSeoCode(java.lang.String seoCode)
- Specified by:
setSeoCode in interface Product
getFormattedCost
public java.lang.String getFormattedCost()
- Specified by:
getFormattedCost in interface Product
setFormattedCost
public void setFormattedCost(java.lang.String formattedCost)
- Specified by:
setFormattedCost in interface Product
getFormattedPrice
public java.lang.String getFormattedPrice()
- Specified by:
getFormattedPrice in interface Product
setFormattedPrice
public void setFormattedPrice(java.lang.String formattedPrice)
- Specified by:
setFormattedPrice in interface Product
getFormattedAltPrice
public java.lang.String getFormattedAltPrice()
- Specified by:
getFormattedAltPrice in interface Product
setFormattedAltPrice
public void setFormattedAltPrice(java.lang.String formattedAltPrice)
- Specified by:
setFormattedAltPrice in interface Product
getAttributesAndOptions
public java.util.Collection getAttributesAndOptions()
- Specified by:
getAttributesAndOptions in interface Product
setAttributesAndOptions
public void setAttributesAndOptions(java.util.Collection attributesAndOptions)
- Specified by:
setAttributesAndOptions in interface Product
getProductSettings
public java.util.Map getProductSettings()
- Specified by:
getProductSettings in interface Product
setProductSettings
public void setProductSettings(java.util.Map productSettings)
- Specified by:
setProductSettings in interface Product
getProductCategories
public java.util.Collection getProductCategories()
- Specified by:
getProductCategories in interface Product
setProductCategories
public void setProductCategories(java.util.Collection productCategories)
- Specified by:
setProductCategories in interface Product
getPrimaryCategory
public Category getPrimaryCategory()
- Specified by:
getPrimaryCategory in interface Product
setPrimaryCategory
public void setPrimaryCategory(Category primaryCategory)
- Specified by:
setPrimaryCategory in interface Product
getManufacturer
public Manufacturer getManufacturer()
- Specified by:
getManufacturer in interface Product
setManufacturer
public void setManufacturer(Manufacturer manufacturer)
- Specified by:
setManufacturer in interface Product
getProductAttributes
public java.util.Collection getProductAttributes()
- Specified by:
getProductAttributes in interface Product
setProductAttributes
public void setProductAttributes(java.util.Collection productAttributes)
- Specified by:
setProductAttributes in interface Product
getSkus
public java.util.Collection getSkus()
- Specified by:
getSkus in interface Product
setSkus
public void setSkus(java.util.Collection skus)
- Specified by:
setSkus in interface Product
getSkuMap
public java.util.Map getSkuMap()
- Specified by:
getSkuMap in interface Product
getRelatedProducts
public java.util.Collection getRelatedProducts()
- Specified by:
getRelatedProducts in interface Product
setRelatedProducts
public void setRelatedProducts(java.util.Collection relatedProducts)
- Specified by:
setRelatedProducts in interface Product
getRelatedProductsAdmin
public java.util.Collection getRelatedProductsAdmin()
- Specified by:
getRelatedProductsAdmin in interface Product
setRelatedProductsAdmin
public void setRelatedProductsAdmin(java.util.Collection relatedProductsAdmin)
- Specified by:
setRelatedProductsAdmin in interface Product
getCustomerWishListProducts
public java.util.Collection getCustomerWishListProducts()
- Specified by:
getCustomerWishListProducts in interface Product
setCustomerWishListProducts
public void setCustomerWishListProducts(java.util.Collection customerWishListProducts)
- Specified by:
setCustomerWishListProducts in interface Product
getProductReviews
public java.util.Collection getProductReviews()
- Specified by:
getProductReviews in interface Product
setProductReviews
public void setProductReviews(java.util.Collection productReviews)
- Specified by:
setProductReviews in interface Product
addFormatting
public void addFormatting(java.util.Locale locale,
java.lang.String currencyCode)
- Specified by:
addFormatting in interface Product
buildSkuMap
public java.util.Map buildSkuMap(java.util.Collection skus)
Copyright © SoftSlate, LLC 20032010