psoft.hsphere.promotion
Class AbstractPromoDataStorage

java.lang.Object
  |
  +--psoft.hsphere.promotion.AbstractPromoDataStorage
Direct Known Subclasses:
PercentDiscountCalc, SimplePromo

public abstract class AbstractPromoDataStorage
extends java.lang.Object


Field Summary
protected  java.util.Hashtable data
           
protected  long promoId
           
 
Constructor Summary
AbstractPromoDataStorage()
           
AbstractPromoDataStorage(long promoId)
           
AbstractPromoDataStorage(long promoId, java.util.Hashtable data)
           
 
Method Summary
 void delete(long promoId)
          Deletes data from the H-Sphere database
 java.util.Hashtable getData()
           
abstract  int getDataType()
           
 void updateData(long promoId, java.util.Hashtable data)
          Updates a given set of data in the H-Sphere database for Promo object with a given id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected java.util.Hashtable data

promoId

protected long promoId
Constructor Detail

AbstractPromoDataStorage

public AbstractPromoDataStorage()

AbstractPromoDataStorage

public AbstractPromoDataStorage(long promoId)
                         throws java.lang.Exception

AbstractPromoDataStorage

public AbstractPromoDataStorage(long promoId,
                                java.util.Hashtable data)
                         throws java.lang.Exception
Method Detail

updateData

public void updateData(long promoId,
                       java.util.Hashtable data)
                throws java.lang.Exception
Updates a given set of data in the H-Sphere database for the Promo object with a given id

Parameters:
promoId - id of the Promo object
data - name/value pairs
Throws:
java.lang.Exception

delete

public void delete(long promoId)
            throws java.lang.Exception
Deletes data from the H-Sphere database

Parameters:
promoId - id of the Promo object
Throws:
java.lang.Exception

getData

public java.util.Hashtable getData()

getDataType

public abstract int getDataType()