org.cocome.tradingsystem.inventory.application.store
Class ProductWithSupplierTO

java.lang.Object
  extended by org.cocome.tradingsystem.inventory.application.store.ProductTO
      extended by org.cocome.tradingsystem.inventory.application.store.ProductWithSupplierTO
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ProductWithSupplierAndStockItemTO

public class ProductWithSupplierTO
extends ProductTO

ProductWithSupplierTO is used as transfer object class for transferring basic product and additional supplier information between client and the service-oriented application layer. It contains either copies of persisted data which are transferred to the client, or data which is transferred from the client to the application layer for being processed and persisted.

Author:
herold
See Also:
Serialized Form

Field Summary
protected  SupplierTO supplierTO
           
 
Fields inherited from class org.cocome.tradingsystem.inventory.application.store.ProductTO
barcode, id, name, purchasePrice
 
Constructor Summary
ProductWithSupplierTO()
           
 
Method Summary
 SupplierTO getSupplierTO()
          Gets transfer object for supplier which offers this product.
 void setSupplierTO(SupplierTO supplierTO)
          Sets transfer object for supplier
 
Methods inherited from class org.cocome.tradingsystem.inventory.application.store.ProductTO
equals, getBarcode, getId, getName, getPurchasePrice, setBarcode, setId, setName, setPurchasePrice
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

supplierTO

protected SupplierTO supplierTO
Constructor Detail

ProductWithSupplierTO

public ProductWithSupplierTO()
Method Detail

getSupplierTO

public SupplierTO getSupplierTO()
Gets transfer object for supplier which offers this product.

Returns:
Transfer object for supplier.

setSupplierTO

public void setSupplierTO(SupplierTO supplierTO)
Sets transfer object for supplier

Parameters:
supplierTO - New supplier transfer object.