com.ibm.commerce.couponwallet.databeans
Class ViewCouponDetailDataBean

java.lang.Object
  |
  +--com.ibm.commerce.couponwallet.databeans.ViewCouponDetailDataBean
All Implemented Interfaces:
DataBean, InputDataBean, java.io.Serializable, SmartDataBean, ViewCouponDetailInputDataBean

public class ViewCouponDetailDataBean
extends java.lang.Object
implements ViewCouponDetailInputDataBean, SmartDataBean

This data bean is used to view the details of a particular Coupon.

The input parameter for this data bean is :

This can be queried for the following :

See Also:
Serialized Form

Field Summary
 java.lang.Long bcId
           
 CommandContext commandContext
           
 java.lang.String description
           
 java.lang.String expiryDate
           
 java.lang.Long productId
           
 java.lang.String productName
           
 java.lang.Long shopperId
           
 java.lang.String thumbNailPath
           
 
Fields inherited from interface com.ibm.commerce.couponwallet.databeans.ViewCouponDetailInputDataBean
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
 
Fields inherited from interface com.ibm.commerce.beans.SmartDataBean
COPYRIGHT
 
Constructor Summary
ViewCouponDetailDataBean()
          ViewWalletDatabean void constructor.
 
Method Summary
 java.lang.Long getBcId()
          Get the coupon Id.
 CommandContext getCommandContext()
          Get the command context.
 java.lang.String getDescription()
          Get the description of the coupon.
 java.lang.String getExpiryDate()
          Get the expiry date.
 java.lang.Long getProductId()
          Get the productId.
 java.lang.String getProductName()
          Get the product name.
 TypedProperty getRequestProperties()
          Get the request properties.
 java.lang.Long getShopperId()
          Get the id of the shopper.
 java.lang.String getThumbNailPath()
          Get the path of the thumbnail.
 void populate()
          This method is used to populate the data bean that is used to view the details of a particular Coupon.
 void setBcId(java.lang.Long newBcId)
          Set the Coupon Ids.
 void setCommandContext(CommandContext newCommandContext)
          Set the context of the command.
 void setProductId(java.lang.Long newProductId)
          Set the Id of the product for which Coupon to be applied.
 void setProductName(java.lang.String newProductName)
          Set the name of the product for which Coupon to be applied.
 void setRequestProperties(TypedProperty typeProp)
          Set the properties of the request.
 void setShopperId(java.lang.Long newShopperId)
          Set the Id of the shopper.
 void setValues(CouponWalletAccessBean tempcwAB, CouponPromotionAccessBean temppAB)
          Set the various attribute values of the Coupon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bcId

public java.lang.Long bcId

commandContext

public CommandContext commandContext

description

public java.lang.String description

expiryDate

public java.lang.String expiryDate

productId

public java.lang.Long productId

productName

public java.lang.String productName

shopperId

public java.lang.Long shopperId

thumbNailPath

public java.lang.String thumbNailPath
Constructor Detail

ViewCouponDetailDataBean

public ViewCouponDetailDataBean()
ViewWalletDatabean void constructor.
Method Detail

getBcId

public java.lang.Long getBcId()
Get the coupon Id.
Returns:
The coupon Id.

getCommandContext

public CommandContext getCommandContext()
Get the command context.
Specified by:
getCommandContext in interface SmartDataBean
Returns:
The command context.

getDescription

public java.lang.String getDescription()
Get the description of the coupon.
Returns:
The coupon description.

getExpiryDate

public java.lang.String getExpiryDate()
Get the expiry date.
Returns:
The expiry date of the coupon.

getProductId

public java.lang.Long getProductId()
Get the productId.
Returns:
The product Id.

getProductName

public java.lang.String getProductName()
Get the product name.
Returns:
The product name.

getRequestProperties

public TypedProperty getRequestProperties()
Get the request properties.
Specified by:
getRequestProperties in interface InputDataBean
Returns:
The request properties.

getShopperId

public java.lang.Long getShopperId()
Get the id of the shopper.
Returns:
The shopper id.

getThumbNailPath

public java.lang.String getThumbNailPath()
Get the path of the thumbnail.
Returns:
The thumbnail path of the coupon.

populate

public void populate()
This method is used to populate the data bean that is used to view the details of a particular Coupon.
Specified by:
populate in interface SmartDataBean
Throws:
javax.naming.NamingException -  
java.rmi.RemoteException -  
javax.ejb.CreateException -  
javax.ejb.FinderException -  

setBcId

public void setBcId(java.lang.Long newBcId)
Set the Coupon Ids.
Parameters:
newBcId - The coupon Id.

setCommandContext

public void setCommandContext(CommandContext newCommandContext)
Set the context of the command.
Specified by:
setCommandContext in interface SmartDataBean
Parameters:
newCommandContext - The command context.

setProductId

public void setProductId(java.lang.Long newProductId)
Set the Id of the product for which Coupon to be applied.
Parameters:
newProductId - The product Id.

setProductName

public void setProductName(java.lang.String newProductName)
Set the name of the product for which Coupon to be applied.
Parameters:
newProductName - The product name.

setRequestProperties

public void setRequestProperties(TypedProperty typeProp)
Set the properties of the request.
Specified by:
setRequestProperties in interface InputDataBean
Parameters:
typeProp - The type property.

setShopperId

public void setShopperId(java.lang.Long newShopperId)
Set the Id of the shopper.
Parameters:
newShopperId - java.lang.Long

setValues

public void setValues(CouponWalletAccessBean tempcwAB,
                      CouponPromotionAccessBean temppAB)
               throws java.lang.Exception
Set the various attribute values of the Coupon.
Parameters:
index - The index into the vector.
cwAB - The coupon wallet access bean.
pAB - The coupon promotion access bean.