psoft.hsphere.promotion
Class SimplePromo

java.lang.Object
  |
  +--psoft.hsphere.promotion.AbstractPromoDataStorage
        |
        +--psoft.hsphere.promotion.SimplePromo
All Implemented Interfaces:
PromoValidator

public class SimplePromo
extends AbstractPromoDataStorage
implements PromoValidator


Field Summary
 
Fields inherited from class psoft.hsphere.promotion.AbstractPromoDataStorage
data, promoId
 
Constructor Summary
SimplePromo(long promoId)
           
SimplePromo(long promoId, java.util.Hashtable data)
           
 
Method Summary
 int getDataType()
           
 boolean isPromoValid(psoft.hsphere.Account a)
          This method is called by a Promo instance in order to check if a promotion is valid for a passed account
 
Methods inherited from class psoft.hsphere.promotion.AbstractPromoDataStorage
delete, getData, updateData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface psoft.hsphere.promotion.PromoValidator
delete, updateData
 

Constructor Detail

SimplePromo

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

SimplePromo

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

getDataType

public int getDataType()
Specified by:
getDataType in class AbstractPromoDataStorage

isPromoValid

public boolean isPromoValid(psoft.hsphere.Account a)
Description copied from interface: PromoValidator
This method is called by a Promo instance in order to check if a promotion is valid for a passed account

Specified by:
isPromoValid in interface PromoValidator