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

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
          The ID of the coupon.
 java.lang.Long catalogId
          ID of the catalog used in the purchase condition list (for category coupons).
 java.lang.Long categoryId
          ID of the first category in the purchase condition list (for category coupons).
 java.lang.String categoryName
          Name of the first category in the purchase condition list (for category coupons).
  CommandContext commandContext
          The command context.
 java.lang.String description
          The long description for the coupon.
 java.lang.String expiryDate
          The expiry date for the coupon.
 java.lang.Long productId
          ID of the first product in the purchase condition list (for product coupons).
 java.lang.String productName
          Name of the first product in the purchase condition list (for product coupons).
 java.lang.Long shopperId
          The ID of the customer who is viewing the coupon.
 java.lang.String thumbNailPath
          The thumb nail image path for the coupon.
 
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 constructor call the super.
 
Method Summary
 java.lang.Long getBcId()
          Gets the eCouponIds.
 java.lang.Long getCatalogId()
          Returns the catalogId.
 java.lang.Long getCategoryId()
          Returns the categoryId.
 java.lang.String getCategoryName()
          Returns the categoryName.
  CommandContext getCommandContext()
          Gets the command context.
 java.lang.String getDescription()
          Gets the description of the eCoupon.
 java.lang.String getExpiryDate()
          Gets the expiry date.
 java.lang.Long getProductId()
          Gets the productId.
 java.lang.String getProductName()
          Gets the product name.
  TypedProperty getRequestProperties()
          Gets the request properties.
 java.lang.Long getShopperId()
          Gets the ID of the customer.
 java.lang.String getThumbNailPath()
          Gets the path of the thumbnail.
 void populate()
          This method is used to populate the data bean that used to view the details of a particular eCoupon.
 void setBcId(java.lang.Long newBcId)
          Sets the eCoupon IDs.
 void setCommandContext( CommandContext newCommandContext)
          Sets the context of the command.
 void setProductId(java.lang.Long newProductId)
          Sets the ID of the product for which eCoupon to be applied.
 void setProductName(java.lang.String newProductName)
          Sets the name of the product for which eCoupon to be applied.
 void setRequestProperties( TypedProperty typeProp)
          Sets the properties of the request.
 void setShopperId(java.lang.Long newShopperId)
          Sets the ID of the customer.
 void setValues( CouponWalletAccessBean tempcwAB, CouponPromotionAccessBean temppAB)
          Sets the values for the eCoupon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thumbNailPath

public java.lang.String thumbNailPath
The thumb nail image path for the coupon.

description

public java.lang.String description
The long description for the coupon.

expiryDate

public java.lang.String expiryDate
The expiry date for the coupon.

productName

public java.lang.String productName
Name of the first product in the purchase condition list (for product coupons).

categoryName

public java.lang.String categoryName
Name of the first category in the purchase condition list (for category coupons).

productId

public java.lang.Long productId
ID of the first product in the purchase condition list (for product coupons).

catalogId

public java.lang.Long catalogId
ID of the catalog used in the purchase condition list (for category coupons).

categoryId

public java.lang.Long categoryId
ID of the first category in the purchase condition list (for category coupons).

bcId

public java.lang.Long bcId
The ID of the coupon.

commandContext

public CommandContext commandContext
The command context.

shopperId

public java.lang.Long shopperId
The ID of the customer who is viewing the coupon.
Constructor Detail

ViewCouponDetailDataBean

public ViewCouponDetailDataBean()
ViewWalletDatabean constructor call the super.
Method Detail

getBcId

public java.lang.Long getBcId()
Gets the eCouponIds.
Returns:
java.lang.Long

getCommandContext

public CommandContext getCommandContext()
Gets the command context.
Specified by:
getCommandContext in interface SmartDataBean
Returns:
com.ibm.commerce.command.CommandContext

getDescription

public java.lang.String getDescription()
Gets the description of the eCoupon.
Returns:
java.lang.String[]

getExpiryDate

public java.lang.String getExpiryDate()
Gets the expiry date.
Returns:
java.lang.String[]

getProductId

public java.lang.Long getProductId()
Gets the productId.
Returns:
java.lang.Long

getProductName

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

getRequestProperties

public TypedProperty getRequestProperties()
Gets the request properties.
Specified by:
getRequestProperties in interface InputDataBean
Returns:
com.ibm.commerce.datatype.TypedProperty

getShopperId

public java.lang.Long getShopperId()
Gets the ID of the customer.
Returns:
java.lang.Long

getThumbNailPath

public java.lang.String getThumbNailPath()
Gets the path of the thumbnail.
Returns:
java.lang.String[]

populate

public void populate()
This method is used to populate the data bean that used to view the details of a particular eCoupon.
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)
Sets the eCoupon IDs.
Parameters:
newBcId - java.lang.Long

setCommandContext

public void setCommandContext(CommandContext newCommandContext)
Sets the context of the command.
Specified by:
setCommandContext in interface SmartDataBean
Parameters:
newCommandContext - com.ibm.commerce.command.CommandContext

setProductId

public void setProductId(java.lang.Long newProductId)
Sets the ID of the product for which eCoupon to be applied.
Parameters:
newProductId - java.lang.Long

setProductName

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

setRequestProperties

public void setRequestProperties(TypedProperty typeProp)
Sets the properties of the request.
Specified by:
setRequestProperties in interface InputDataBean
Parameters:
typeProp - com.ibm.commerce.datatype.TypedProperty

setShopperId

public void setShopperId(java.lang.Long newShopperId)
Sets the ID of the customer.
Parameters:
newShopperId - java.lang.Long

setValues

public void setValues(CouponWalletAccessBean tempcwAB,
CouponPromotionAccessBean temppAB)
               throws java.lang.Exception
Sets the values for the eCoupon.
java.lang.Exception

getCategoryId

public java.lang.Long getCategoryId()
Returns the categoryId.
Returns:
java.lang.Long

getCategoryName

public java.lang.String getCategoryName()
Returns the categoryName.
Returns:
java.lang.String

getCatalogId

public java.lang.Long getCatalogId()
Returns the catalogId.
Returns:
java.lang.Long