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

java.lang.Object
  extended by org.cocome.tradingsystem.inventory.application.store.ProductTO
      extended by org.cocome.tradingsystem.inventory.application.store.ProductWithStockItemTO
All Implemented Interfaces:
java.io.Serializable

public class ProductWithStockItemTO
extends ProductTO

ProductWithStockItemTO is used as transfer object class for transferring basic product information and additional stock item information. It references a single stock item for a specific store. 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  StockItemTO stockItemTO
           
 
Fields inherited from class org.cocome.tradingsystem.inventory.application.store.ProductTO
barcode, id, name, purchasePrice
 
Constructor Summary
ProductWithStockItemTO()
           
 
Method Summary
 StockItemTO getStockItemTO()
          Gets the saved stock item transfer object.
 void setStockItemTO(StockItemTO stockItemTO)
          Sets stock item transfer object.
 
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

stockItemTO

protected StockItemTO stockItemTO
Constructor Detail

ProductWithStockItemTO

public ProductWithStockItemTO()
Method Detail

getStockItemTO

public StockItemTO getStockItemTO()
Gets the saved stock item transfer object.

Returns:
The referred stock item transfer object.

setStockItemTO

public void setStockItemTO(StockItemTO stockItemTO)
Sets stock item transfer object.

Parameters:
stockItemTO - New stock item transfer object.