@Entity(name="ecom.product") public class Product extends Product implements IProductReference
Product
Product.BIT_MASKS
ATTRIB_HIERARCHY_STARTS_LIKE, ATTRIB_PRODUCT_PARENT, displayName, parentId
ROOT
Constructor and Description |
---|
Product() |
Product(Product p) |
Product(ProductReference ref) |
Modifier and Type | Method and Description |
---|---|
Product |
clone() |
boolean |
equals(Object obj) |
Date |
getAdded() |
String |
getAvailability()
Some products may not be available to be Sold Online or available for a specific purpose
|
String |
getColors()
Comma separated values of Colors
|
Integer |
getCurrentInventory() |
String |
getKeywords() |
Boolean |
getNewItem()
Is the product a new Item
|
String |
getPackagingData()
Packaging related info.
|
ProductReference |
getReference() |
Double |
getRegularPrice() |
Boolean |
getSale() |
Double |
getSalePrice()
Is the product on Sale; true implies it is
If on Sale the sale price can be offered, but this depends on the service layer. |
Boolean |
getSearchable()
Is the product searchable.
Since multiple objects for the same model are present, we may not want to show all SKU's and only some We can explicitly turn this off for a particular SKU to omit from the search result. |
String |
getShippingData()
Shipping related info.
|
Size |
getSize()
Size - Measurement, Dimensions, Fit
|
String |
getSku()
SKU - Stock Keeping Unit, uniquely identifies a product in stock
In face this product represents a collection then also this maybe null since business may not have defined this for a group of products. |
String |
getTaxData()
Taxation related Info.
|
Date |
getUpdated() |
Double |
getWeight()
Weight of a Product in a unit understood/assumed/set @ a project level.
|
int |
hashCode() |
void |
setAdded(Date added) |
void |
setAvailability(String availability)
Some products may not be available to be Sold Online or available for a specific purpose
|
void |
setColors(String colors)
Comma separated values of Colors
|
void |
setCurrentInventory(Integer currentInventory) |
void |
setKeywords(String keywords) |
void |
setNewItem(Boolean newItem)
Is the product a new Item
|
void |
setPackagingData(String packagingData)
Packaging related info.
|
void |
setRegularPrice(Double regularPrice) |
void |
setSale(Boolean sale) |
void |
setSalePrice(Double salePrice)
Is the product on Sale; true implies it is
If on Sale the sale price can be offered, but this depends on the service layer. |
void |
setSearchable(Boolean searchable)
Is the product searchable.
Since multiple objects for the same model are present, we may not want to show all SKU's and only some We can explicitly turn this off for a particular SKU to omit from the search result. |
void |
setShippingData(String shippingData)
Shipping related info.
|
void |
setSize(Size size)
Size - Measurement, Dimensions, Fit
|
void |
setSku(String sku)
SKU - Stock Keeping Unit, uniquely identifies a product in stock
In face this product represents a collection then also this maybe null since business may not have defined this for a group of products. |
void |
setTaxData(String taxData)
Taxation related Info.
|
void |
setUpdated(Date updated) |
void |
setWeight(Double weight)
Weight of a Product in a unit understood/assumed/set @ a project level.
|
String |
toString() |
getAttributes, getBitmask, getDescription, getId, getModelCode, getName, getProductCode, getRelatedGroups, getTags, safeDisplayName, setAttribute, setAttributes, setBitmask, setDescription, setId, setModelCode, setName, setProductCode, setRelatedGroups, setTags, transform
getAttribute, getAttributeValue
getDisplayName, getHierarchy, getParentId, setDisplayName, setHierarchy, setParentId
finalize, getClass, notify, notifyAll, wait, wait, wait
getProductCode, setProductCode
getHierarchy, getId, getName, getParentId, setHierarchy, setId, setName, setParentId
getDisplayName
public Product()
public Product(Product p)
public Product(ProductReference ref)
public ProductReference getReference()
getReference
in class Product
public String getSku()
public void setSku(String sku)
public Double getRegularPrice()
public void setRegularPrice(Double regularPrice)
public Double getSalePrice()
public void setSalePrice(Double salePrice)
public Integer getCurrentInventory()
public void setCurrentInventory(Integer currentInventory)
public String getKeywords()
public void setKeywords(String keywords)
public Boolean getSale()
public void setSale(Boolean sale)
public Boolean getNewItem()
public void setNewItem(Boolean newItem)
public Boolean getSearchable()
public void setSearchable(Boolean searchable)
public String getColors()
public void setColors(String colors)
public String getShippingData()
public void setShippingData(String shippingData)
public String getPackagingData()
public void setPackagingData(String packagingData)
public String getTaxData()
public void setTaxData(String taxData)
public Size getSize()
public Double getWeight()
public void setWeight(Double weight)
public void setSize(Size size)
public String getAvailability()
public void setAvailability(String availability)
public Date getAdded()
public void setAdded(Date added)
public Date getUpdated()
public void setUpdated(Date updated)
public Product clone() throws CloneNotSupportedException
clone
in class Product
CloneNotSupportedException
public int hashCode()
hashCode
in class HierarchialDomainObject
public boolean equals(Object obj)
equals
in class HierarchialDomainObject
public String toString()
toString
in class HierarchialDomainObject
Copyright © 2018. All rights reserved.