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

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

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

Simple struct for product / amount.

Required for UC 8

Author:
kelsaka
See Also:
Serialized Form

Constructor Summary
ProductAmountTO()
          Initializes the amount to "0".
 
Method Summary
 long getAmount()
          Amount of product.
 ProductTO getProduct()
          Product
 void setAmount(long amount)
          Amount of product.
 void setProduct(ProductTO product)
          Product
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductAmountTO

public ProductAmountTO()
Initializes the amount to "0".

Method Detail

getAmount

public long getAmount()
Amount of product.

Returns:
Current amount.

setAmount

public void setAmount(long amount)
Amount of product.

Parameters:
amount - New amount.

getProduct

public ProductTO getProduct()
Product

Returns:
a product

setProduct

public void setProduct(ProductTO product)
Product

Parameters:
product - a product to set