|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.projects.store.inventory.InventoryDiscrepancyMessage
public class InventoryDiscrepancyMessage
This class is a simple bean representing the discrepancy data that is written to file when an incoming inventory level is different from the inventory currently found in the inventory repository. The InventoryDiscrepancyFileWriter uses these beans to write the file.
The class consists of a constructor, and getters and setters for the bean properties.
InventoryDiscrepancyFileWriter
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string. |
protected java.lang.String |
mDescription
Description. |
protected long |
mNewQuantity
New quantity. |
protected long |
mOldQuantity
Old quantity. |
protected java.lang.String |
mSkuId
Sku id. |
Constructor Summary | |
---|---|
InventoryDiscrepancyMessage(java.lang.String pSkuId,
java.lang.String pDescription,
long pNewQuantity,
long pOldQuantity)
Constructor for creating a new InventoryDiscrepancyMessage bean containing a skuId, description, newQuantity and oldQuantity. |
Method Summary | |
---|---|
java.lang.String |
getDescription()
|
long |
getNewQuantity()
|
long |
getOldQuantity()
|
java.lang.String |
getSkuId()
|
void |
setDescription(java.lang.String pDescription)
|
void |
setNewQuantity(long pNewQuantity)
|
void |
setOldQuantity(long pOldQuantity)
|
void |
setSkuId(java.lang.String pSkuId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
protected java.lang.String mSkuId
protected java.lang.String mDescription
protected long mNewQuantity
protected long mOldQuantity
Constructor Detail |
---|
public InventoryDiscrepancyMessage(java.lang.String pSkuId, java.lang.String pDescription, long pNewQuantity, long pOldQuantity)
pSkuId
- id of repository itempDescription
- description for messagepNewQuantity
- new quantitypOldQuantity
- old quantityMethod Detail |
---|
public java.lang.String getSkuId()
public void setSkuId(java.lang.String pSkuId)
pSkuId
- - the skuId to set.public java.lang.String getDescription()
public void setDescription(java.lang.String pDescription)
pDescription
- - the description to set.public long getNewQuantity()
public void setNewQuantity(long pNewQuantity)
pNewQuantity
- - the new quantity to set.public long getOldQuantity()
public void setOldQuantity(long pOldQuantity)
pOldQuantity
- - the old quantity to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |