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

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

public class SaleTO
extends java.lang.Object
implements java.io.Serializable

SaleTO is used as transfer object class for transferring sale information between client and the service-oriented application layer. It has no persistent pendant.

Author:
herold
See Also:
Serialized Form

Field Summary
protected  java.util.Date date
           
protected  java.util.List<ProductWithStockItemTO> productTOs
           
 
Constructor Summary
SaleTO()
           
 
Method Summary
 java.util.Date getDate()
          Gets date of sale.
 java.util.List<ProductWithStockItemTO> getProductTOs()
          Gets list of products and corresponding item in stock which the sale consists of.
 void setDate(java.util.Date date)
          Sets date of sale.
 void setProductTOs(java.util.List<ProductWithStockItemTO> productTOs)
          Sets list of products for the sale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

date

protected java.util.Date date

productTOs

protected java.util.List<ProductWithStockItemTO> productTOs
Constructor Detail

SaleTO

public SaleTO()
Method Detail

getDate

public java.util.Date getDate()
Gets date of sale.

Returns:
Date of sale.

setDate

public void setDate(java.util.Date date)
Sets date of sale.

Parameters:
date - Date to be set.

getProductTOs

public java.util.List<ProductWithStockItemTO> getProductTOs()
Gets list of products and corresponding item in stock which the sale consists of.

Returns:
List of contained products.

setProductTOs

public void setProductTOs(java.util.List<ProductWithStockItemTO> productTOs)
Sets list of products for the sale.

Parameters:
productTOs - List of products the sale should contain.