com.ibm.commerce.couponpromotion.objects
Class PromoDiscBean

com.ibm.commerce.couponpromotion.objects.PromoDiscBean
All Implemented Interfaces:
java.io.Serializable

public class PromoDiscBean
implements java.io.Serializable

This bean provides access to the CPPMNDISC table.

The following is a description of this table:

This table contains the discount conditions for a promotion. Every coupon has exactly one calculation code.

See Also:
Serialized Form

Constructor Summary
PromoDiscBean()
           
 
Method Summary
 java.lang.Integer getCalcCodeId()
          This method provides access to the CPPMNDISC.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getPromoDiscId()
          This method provides access to the CPPMNDISC.CPPMNDISC_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getPromoId()
          This method provides access to the CPPMNDISC.CPPMN_ID column of DB2 type INTEGER NOT NULL.
 void setCalcCodeId(java.lang.Integer calcCodeId)
          This method provides access to the CPPMNDISC.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 void setPromoDiscId(java.lang.Integer promotionDiscountId)
          This method provides access to the CPPMNDISC.CPPMNDISC_ID column of DB2 type INTEGER NOT NULL.
 void setPromoId(java.lang.Integer promotionId)
          This method provides access to the CPPMNDISC.CPPMN_ID column of DB2 type INTEGER NOT NULL.
 

Constructor Detail

PromoDiscBean

public PromoDiscBean()
Method Detail

getCalcCodeId

public java.lang.Integer getCalcCodeId()

This method provides access to the CPPMNDISC.CALCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Foreign key to the CALCCODE table to represent discount condition for the promotion.

Returns:
The calcode Id.

getPromoDiscId

public java.lang.Integer getPromoDiscId()

This method provides access to the CPPMNDISC.CPPMNDISC_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Coupon Discount ID, primary key.

Returns:
The coupon discount Id.

getPromoId

public java.lang.Integer getPromoId()

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

The following is a description of this column:

Foreign key to the CPPMN table.

Returns:
The coupon promotion Id.

setCalcCodeId

public void setCalcCodeId(java.lang.Integer calcCodeId)

This method provides access to the CPPMNDISC.CALCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Foreign key to the CALCCODE table to represent discount condition for the promotion.

Parameters:
calcCodeId - The calccode Id.

setPromoDiscId

public void setPromoDiscId(java.lang.Integer promotionDiscountId)

This method provides access to the CPPMNDISC.CPPMNDISC_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Coupon Discount ID, primary key.

Parameters:
promotionDiscountId - The coupon discount Id.

setPromoId

public void setPromoId(java.lang.Integer promotionId)

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

The following is a description of this column:

Foreign key to the CPPMN table.

Parameters:
promotionId - The coupon promotion Id.
Returns:
void