com.ibm.commerce.couponredemption.objects
Class CouponItemMapBean

com.ibm.commerce.couponredemption.objects.CouponItemMapBean
All Implemented Interfaces:
java.io.Serializable

public class CouponItemMapBean
implements java.io.Serializable

This bean provides access to the CPITMAP table.

The following is a description of this table:

This table stores all the items from the given (completed) order that were applicable to the selected coupon set.

See Also:
Serialized Form

Constructor Summary
CouponItemMapBean()
           
 
Method Summary
 java.lang.Long getBcId()
          This method provides access to the CPITMAP.CPWALLET_ID column of DB2 type BIGINT NOT NULL.
 java.math.BigDecimal getDiscAmt()
          This method provides access to the CPITMAP.DISCAMT column of DB2 type DECIMAL(20,5) NOT NULL.
 java.lang.Long getItemId()
          This method provides access to the CPITMAP.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 void setBcId(java.lang.Long couponId)
          This method provides access to the CPITMAP.CPWALLET_ID column of DB2 type BIGINT NOT NULL.
 void setDiscAmt(java.math.BigDecimal discountAmount)
          This method provides access to the CPITMAP.DISCAMT column of DB2 type DECIMAL(20,5) NOT NULL.
 void setItemId(java.lang.Long itemId)
          This method provides access to the CPITMAP.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 

Constructor Detail

CouponItemMapBean

public CouponItemMapBean()
Method Detail

getBcId

public java.lang.Long getBcId()

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

The following is a description of this column:

Primary key. Foreign key to the CPWALLET table.

Returns:
The coupon Id.

getDiscAmt

public java.math.BigDecimal getDiscAmt()

This method provides access to the CPITMAP.DISCAMT column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

The discount amount for this item when this coupon is used.

Returns:
The discount Amount.

getItemId

public java.lang.Long getItemId()

This method provides access to the CPITMAP.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary key. Foreign key to the ORDERITEMS table.

Returns:
The product id.

setBcId

public void setBcId(java.lang.Long couponId)

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

The following is a description of this column:

Primary key. Foreign key to the CPWALLET table.

Parameters:
couponId - The coupon Id.

setDiscAmt

public void setDiscAmt(java.math.BigDecimal discountAmount)

This method provides access to the CPITMAP.DISCAMT column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

The discount amount for this item when this coupon is used.

Parameters:
discountAmount - The discount amount of the coupon.

setItemId

public void setItemId(java.lang.Long itemId)

This method provides access to the CPITMAP.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary key. Foreign key to the ORDERITEMS table.

Parameters:
itemId - The product Id.