org.openxma.dsl.reference.model.impl
Class ProductImpl

java.lang.Object
  extended by org.openxma.dsl.reference.model.impl.ProductImpl
All Implemented Interfaces:
Product

@Component(value="productPrototype")
@Scope(value="prototype")
public class ProductImpl
extends java.lang.Object
implements Product


Constructor Summary
ProductImpl()
           
 
Method Summary
 void addCategories(Category categories)
           
 boolean equals(java.lang.Object obj)
           
 java.util.Set<Category> getCategories()
           
 java.lang.String getName()
           
 ProductId getOid()
           
 ProductImage getProductImage()
           
 Supplier getSupplier()
           
 java.lang.Integer getUnitOnOrder()
           
 java.lang.Integer getUnitOnStock()
           
 java.lang.Integer getUnitPrice()
           
 java.util.Date getVersion()
           
 boolean hasCategories()
           
 int hashCode()
           
 void removeAllCategories()
           
 void removeCategories(Category categories)
           
 void setName(java.lang.String name)
           
 void setOid(ProductId oid)
           
 void setProductImage(ProductImage productImage)
           
 void setSupplier(Supplier supplier)
           
 void setUnitOnOrder(java.lang.Integer unitOnOrder)
           
 void setUnitOnStock(java.lang.Integer unitOnStock)
           
 void setUnitPrice(java.lang.Integer unitPrice)
           
 void setVersion(java.util.Date version)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProductImpl

public ProductImpl()
Method Detail

setOid

public void setOid(ProductId oid)

getOid

public ProductId getOid()
Specified by:
getOid in interface Product

setVersion

public void setVersion(java.util.Date version)

getVersion

public java.util.Date getVersion()
Specified by:
getVersion in interface Product

setName

public void setName(java.lang.String name)
Specified by:
setName in interface Product

getName

public java.lang.String getName()
Specified by:
getName in interface Product

setUnitPrice

public void setUnitPrice(java.lang.Integer unitPrice)
Specified by:
setUnitPrice in interface Product

getUnitPrice

public java.lang.Integer getUnitPrice()
Specified by:
getUnitPrice in interface Product

setUnitOnStock

public void setUnitOnStock(java.lang.Integer unitOnStock)
Specified by:
setUnitOnStock in interface Product

getUnitOnStock

public java.lang.Integer getUnitOnStock()
Specified by:
getUnitOnStock in interface Product

setUnitOnOrder

public void setUnitOnOrder(java.lang.Integer unitOnOrder)
Specified by:
setUnitOnOrder in interface Product

getUnitOnOrder

public java.lang.Integer getUnitOnOrder()
Specified by:
getUnitOnOrder in interface Product

getSupplier

public Supplier getSupplier()
Specified by:
getSupplier in interface Product

setSupplier

public void setSupplier(Supplier supplier)
Specified by:
setSupplier in interface Product

getProductImage

public ProductImage getProductImage()
Specified by:
getProductImage in interface Product

setProductImage

public void setProductImage(ProductImage productImage)
Specified by:
setProductImage in interface Product

getCategories

public java.util.Set<Category> getCategories()
Specified by:
getCategories in interface Product

hasCategories

public boolean hasCategories()
Specified by:
hasCategories in interface Product

addCategories

public void addCategories(Category categories)
Specified by:
addCategories in interface Product

removeCategories

public void removeCategories(Category categories)
Specified by:
removeCategories in interface Product

removeAllCategories

public void removeAllCategories()
Specified by:
removeAllCategories in interface Product

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.