|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cocome.tradingsystem.inventory.application.store.StockItemTO
public class StockItemTO
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.
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 |
---|
protected long id
protected double salesPrice
protected long amount
protected long minStock
protected long maxStock
Constructor Detail |
---|
public StockItemTO()
Method Detail |
---|
public long getId()
OrderTO
instance.
public void setId(long id)
id
- public long getAmount()
public void setAmount(long amount)
amount
- New amount of stock item.public long getMinStock()
public void setMinStock(long minStock)
minStock
- New minimum stock.public long getMaxStock()
public void setMaxStock(long maxStock)
maxStock
- New maximum stock.public double getSalesPrice()
public void setSalesPrice(double salesPrice)
salesPrice
- New sales price.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |