atg.projects.store.inventory
Class InventoryDiscrepancyMessage

java.lang.Object
  extended by atg.projects.store.inventory.InventoryDiscrepancyMessage

public class InventoryDiscrepancyMessage
extends java.lang.Object

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.

See Also:
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

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string.


mSkuId

protected java.lang.String mSkuId
Sku id.


mDescription

protected java.lang.String mDescription
Description.


mNewQuantity

protected long mNewQuantity
New quantity.


mOldQuantity

protected long mOldQuantity
Old quantity.

Constructor Detail

InventoryDiscrepancyMessage

public 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.

Parameters:
pSkuId - id of repository item
pDescription - description for message
pNewQuantity - new quantity
pOldQuantity - old quantity
Method Detail

getSkuId

public java.lang.String getSkuId()
Returns:
the skuId.

setSkuId

public void setSkuId(java.lang.String pSkuId)
Parameters:
pSkuId - - the skuId to set.

getDescription

public java.lang.String getDescription()
Returns:
the description.

setDescription

public void setDescription(java.lang.String pDescription)
Parameters:
pDescription - - the description to set.

getNewQuantity

public long getNewQuantity()
Returns:
the new quantity.

setNewQuantity

public void setNewQuantity(long pNewQuantity)
Parameters:
pNewQuantity - - the new quantity to set.

getOldQuantity

public long getOldQuantity()
Returns:
the old quantity.

setOldQuantity

public void setOldQuantity(long pOldQuantity)
Parameters:
pOldQuantity - - the old quantity to set.