|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cocome.tradingsystem.inventory.application.store.ProductTO
public class ProductTO
ProductTO
is used as transfer object class for transferring basic product 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 |
barcode
|
protected long |
id
|
protected java.lang.String |
name
|
protected double |
purchasePrice
|
Constructor Summary | |
---|---|
ProductTO()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Checks public attributes for equality required for UC 8 (class AmplStarter) |
long |
getBarcode()
Gets barcode value. |
long |
getId()
Gets id. |
java.lang.String |
getName()
Gets name of the product. |
double |
getPurchasePrice()
Gets purchase price of product. |
void |
setBarcode(long barcode)
Sets barcode value. |
void |
setId(long id)
sets the id. |
void |
setName(java.lang.String name)
Sets name of product. |
void |
setPurchasePrice(double purchasePrice)
Sets purchase price of product. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long id
protected long barcode
protected double purchasePrice
protected java.lang.String name
Constructor Detail |
---|
public ProductTO()
Method Detail |
---|
public long getId()
public void setId(long id)
public long getBarcode()
public void setBarcode(long barcode)
barcode
- public java.lang.String getName()
public void setName(java.lang.String name)
name
- New name.public double getPurchasePrice()
public void setPurchasePrice(double purchasePrice)
purchasePrice
- Purchase price to e set.public boolean equals(java.lang.Object obj)
required for UC 8 (class AmplStarter)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |