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

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

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

StockItemTO is used as transfer object class for transferring basic stock item 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  long amount
           
protected  long id
           
protected  long maxStock
           
protected  long minStock
           
protected  double salesPrice
           
 
Constructor Summary
StockItemTO()
           
 
Method Summary
 long getAmount()
          Gets amount of the stock item.
 long getId()
          Gets the unique identifier of the OrderTO instance.
 long getMaxStock()
          Gets maximum amount in stock
 long getMinStock()
          Gets minimum amount in stock
 double getSalesPrice()
          Gets the sales price of one piece of this stock item.
 void setAmount(long amount)
          Sets amount of the stock item.
 void setId(long id)
           
 void setMaxStock(long maxStock)
          Sets maximum stock.
 void setMinStock(long minStock)
          Sets minimum stock.
 void setSalesPrice(double salesPrice)
          Set sales pice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected long id

salesPrice

protected double salesPrice

amount

protected long amount

minStock

protected long minStock

maxStock

protected long maxStock
Constructor Detail

StockItemTO

public StockItemTO()
Method Detail

getId

public long getId()
Gets the unique identifier of the OrderTO instance.

Returns:
Returns instance identifier.

setId

public void setId(long id)
Parameters:
id -

getAmount

public long getAmount()
Gets amount of the stock item.

Returns:
Amount of stock item.

setAmount

public void setAmount(long amount)
Sets amount of the stock item.

Parameters:
amount - New amount of stock item.

getMinStock

public long getMinStock()
Gets minimum amount in stock

Returns:
Minimum stock.

setMinStock

public void setMinStock(long minStock)
Sets minimum stock.

Parameters:
minStock - New minimum stock.

getMaxStock

public long getMaxStock()
Gets maximum amount in stock

Returns:
Maximum stock.

setMaxStock

public void setMaxStock(long maxStock)
Sets maximum stock.

Parameters:
maxStock - New maximum stock.

getSalesPrice

public double getSalesPrice()
Gets the sales price of one piece of this stock item.

Returns:
The sales price.

setSalesPrice

public void setSalesPrice(double salesPrice)
Set sales pice.

Parameters:
salesPrice - New sales price.