com.ibm.commerce.couponwallet.objects
Class CouponWalletBean

com.ibm.commerce.couponwallet.objects.CouponWalletBean
All Implemented Interfaces:
java.io.Serializable

public class CouponWalletBean
implements java.io.Serializable

This bean provides access to the CPWALLET table.

The following is a description of this table:

This table contains the coupons that the user has accepted.

See Also:
Serialized Form

Constructor Summary
CouponWalletBean()
           
 
Method Summary
 java.lang.String getAcceptFromType()
          This method provides access to the CPWALLET.ACCEPTFROMTYPE column of DB2 type CHAR(4) NOT NULL.
 java.lang.Long getBcId()
          This method provides access to the CPWALLET.CPWALLET_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getField1()
          This method provides access to the CPWALLET.FIELD1 column of DB2 type VARCHAR(64) NULL.
 java.lang.Integer getNumUse()
          This method provides access to the CPWALLET.NUMUSE column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getPromoId()
          This method provides access to the CPWALLET.CPPMN_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Long getShopperId()
          This method provides access to the CPWALLET.USERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getState()
          This method provides access to the CPWALLET.STATE column of DB2 type CHAR(4) NOT NULL.
 java.sql.Timestamp getTimeAccept()
          This method provides access to the CPWALLET.TIMEACCEPT column of DB2 type TIMESTAMP NULL.
 void setAcceptFromType(java.lang.String acceptanceMethod)
          This method provides access to the CPWALLET.ACCEPTFROMTYPE column of DB2 type CHAR(4) NOT NULL.
 void setBcId(java.lang.Long couponId)
          This method provides access to the CPWALLET.CPWALLET_ID column of DB2 type BIGINT NOT NULL.
 void setField1(java.lang.String field1)
          This method provides access to the CPWALLET.FIELD1 column of DB2 type VARCHAR(64) NULL.
 void setNumUse(java.lang.Integer numTimesCouponUsed)
          This method provides access to the CPWALLET.NUMUSE column of DB2 type INTEGER NOT NULL.
 void setPromoId(java.lang.Integer couponPromotionId)
          This method provides access to the CPWALLET.CPPMN_ID column of DB2 type INTEGER NOT NULL.
 void setShopperId(java.lang.Long shopperId)
          This method provides access to the CPWALLET.USERS_ID column of DB2 type BIGINT NOT NULL.
 void setState(java.lang.String couponState)
          This method provides access to the CPWALLET.STATE column of DB2 type CHAR(4) NOT NULL.
 void setTimeAccept(java.sql.Timestamp timeOfAdditionToWallet)
          This method provides access to the CPWALLET.TIMEACCEPT column of DB2 type TIMESTAMP NULL.
 

Constructor Detail

CouponWalletBean

public CouponWalletBean()
Method Detail

getAcceptFromType

public java.lang.String getAcceptFromType()

This method provides access to the CPWALLET.ACCEPTFROMTYPE column of DB2 type CHAR(4) NOT NULL.

The following is a description of this column:

Indicates from where the coupon was accepted:
B = banner advertisement.
E = e-mail.
O = offerlist.

Returns:
The acceptance type (banner ad, e-mail, offerlist).

getBcId

public java.lang.Long getBcId()

This method provides access to the CPWALLET.CPWALLET_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary Key.

Returns:
The coupon Id.

getField1

public java.lang.String getField1()

This method provides access to the CPWALLET.FIELD1 column of DB2 type VARCHAR(64) NULL.

The following is a description of this column:

Customizable.

Returns:
The customized field.

getNumUse

public java.lang.Integer getNumUse()

This method provides access to the CPWALLET.NUMUSE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Number of times this coupon has been used.

Returns:
The number of times the coupon is already used.

getPromoId

public java.lang.Integer getPromoId()

This method provides access to the CPWALLET.CPPMN_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Promotion ID. Foreign key to CPPMN table.

Returns:
The coupon promotion Id.

getShopperId

public java.lang.Long getShopperId()

This method provides access to the CPWALLET.USERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Customer ID. Foreign key to USERS table.

Returns:
The user Id who owns the coupon.

getState

public java.lang.String getState()

This method provides access to the CPWALLET.STATE column of DB2 type CHAR(4) NOT NULL.

The following is a description of this column:

State of the coupon, where U=Usable, D=Deleted, N=Not Usable, and E=Expired.

Returns:
The state of the coupon in wallet.

getTimeAccept

public java.sql.Timestamp getTimeAccept()

This method provides access to the CPWALLET.TIMEACCEPT column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time when the table entry was made.

Returns:
The time at which coupon was added to coupon wallet.

setAcceptFromType

public void setAcceptFromType(java.lang.String acceptanceMethod)

This method provides access to the CPWALLET.ACCEPTFROMTYPE column of DB2 type CHAR(4) NOT NULL.

The following is a description of this column:

Indicates from where the coupon was accepted:
B = banner advertisement.
E = e-mail.
O = offerlist.

Parameters:
acceptanceMethod - The acceptance type(banner ad, e-mail, offerlist).

setBcId

public void setBcId(java.lang.Long couponId)

This method provides access to the CPWALLET.CPWALLET_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary Key.

Parameters:
couponId - The coupon Id.

setField1

public void setField1(java.lang.String field1)

This method provides access to the CPWALLET.FIELD1 column of DB2 type VARCHAR(64) NULL.

The following is a description of this column:

Customizable.

Parameters:
field1 - the customizable field.

setNumUse

public void setNumUse(java.lang.Integer numTimesCouponUsed)

This method provides access to the CPWALLET.NUMUSE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Number of times this coupon has been used.

Parameters:
numTimesCouponUsed - The number of times the coupon has been used.

setPromoId

public void setPromoId(java.lang.Integer couponPromotionId)

This method provides access to the CPWALLET.CPPMN_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Promotion ID. Foreign key to CPPMN table.

Parameters:
couponPromotionId - The coupon promotion Id.

setShopperId

public void setShopperId(java.lang.Long shopperId)

This method provides access to the CPWALLET.USERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Customer ID. Foreign key to USERS table.

Parameters:
shopperId - The shopper Id.

setState

public void setState(java.lang.String couponState)

This method provides access to the CPWALLET.STATE column of DB2 type CHAR(4) NOT NULL.

The following is a description of this column:

State of the coupon, where U=Usable, D=Deleted, N=Not Usable, and E=Expired.

Parameters:
couponState - The coupon state in the wallet.

setTimeAccept

public void setTimeAccept(java.sql.Timestamp timeOfAdditionToWallet)

This method provides access to the CPWALLET.TIMEACCEPT column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time when the table entry was made.

Parameters:
timeOfAdditionToWallet - the time at which coupon was added to wallet.