com.ibm.commerce.couponpromotion.objects
Class PromoProdBean

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

public class PromoProdBean
implements java.io.Serializable

This bean provides access to the CPPMNPROD table.

The following is a description of this table:

This table contains the purchase conditions for a promotion. If the purchase condition type in CPPMN table was "P", then this table is used to find out all the items that are required for this Coupon to be redeemed.

See Also:
Serialized Form

Constructor Summary
PromoProdBean()
           
 
Method Summary
 java.lang.Long getItemId()
          This method provides access to the CPPMNPROD.CATENTRY_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Double getItemQty()
          This method provides access to the CPPMNPROD.QUANTITY column of DB2 type FLOAT NOT NULL.
 java.lang.Integer getPromoId()
          This method provides access to the CPPMNPROD.CPPMN_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getQtyMeasure()
          This method provides access to the CPPMNPROD.QTYMEASURE column of DB2 type CHAR(16) NOT NULL.
 void setItemId(java.lang.Long itemId)
          This method provides access to the CPPMNPROD.CATENTRY_ID column of DB2 type BIGINT NOT NULL.
 void setItemQty(java.lang.Double itemQuantity)
          This method provides access to the CPPMNPROD.QUANTITY column of DB2 type FLOAT NOT NULL.
 void setPromoId(java.lang.Integer promotionId)
          This method provides access to the CPPMNPROD.CPPMN_ID column of DB2 type INTEGER NOT NULL.
 void setQtyMeasure(java.lang.String quantityUnit)
          This method provides access to the CPPMNPROD.QTYMEASURE column of DB2 type CHAR(16) NOT NULL.
 

Constructor Detail

PromoProdBean

public PromoProdBean()
Method Detail

getItemId

public java.lang.Long getItemId()

This method provides access to the CPPMNPROD.CATENTRY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary key. This is product ID - foreign key to CATENTRY table.

Returns:
The product Id.

getItemQty

public java.lang.Double getItemQty()

This method provides access to the CPPMNPROD.QUANTITY column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

This is the quantity of the item to be bought to satisfy the condition.

Returns:
The amount of quantity required for the coupon to be applicable.

getPromoId

public java.lang.Integer getPromoId()

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

The following is a description of this column:

Primary key. Foreign key to the CPPMN table.

Returns:
The coupon promotion Id.

getQtyMeasure

public java.lang.String getQtyMeasure()

This method provides access to the CPPMNPROD.QTYMEASURE column of DB2 type CHAR(16) NOT NULL.

The following is a description of this column:

Specifies the quantity measure for the item.

Returns:
The unit of the quantity.

setItemId

public void setItemId(java.lang.Long itemId)

This method provides access to the CPPMNPROD.CATENTRY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary key. This is product ID - foreign key to CATENTRY table.

Parameters:
itemId - The product Id.

setItemQty

public void setItemQty(java.lang.Double itemQuantity)

This method provides access to the CPPMNPROD.QUANTITY column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

This is the quantity of the item to be bought to satisfy the condition.

Parameters:
itemQuantity - The qualifying quantity.

setPromoId

public void setPromoId(java.lang.Integer promotionId)

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

The following is a description of this column:

Primary key. Foreign key to the CPPMN table.

Parameters:
promotionId - The promotion Id.

setQtyMeasure

public void setQtyMeasure(java.lang.String quantityUnit)

This method provides access to the CPPMNPROD.QTYMEASURE column of DB2 type CHAR(16) NOT NULL.

The following is a description of this column:

Specifies the quantity measure for the item.

Parameters:
quantityUnit - The unit for quantity.