com.ibm.commerce.payment.objects
Class POPurchaseAmountBean

com.ibm.commerce.payment.objects.POPurchaseAmountBean

public class POPurchaseAmountBean

This bean provides access to the LPOPURAMT table.

The following is a description of this table:

This table is used to keep track of Purchase Amounts by Purchase Order number and by Orders. Entries are created only for Orders against Limited Purchase Order (PO) numbers.


Constructor Summary
POPurchaseAmountBean()
           
 
Method Summary
 java.math.BigDecimal getAmount()
          This method provides access to the LPOPURAMT.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 java.lang.Long getBuyerPurchaseOrderId()
          This method provides access to the LPOPURAMT.BUYERPO_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getCurrency()
          This method provides access to the LPOPURAMT.SETCCURR column of DB2 type CHAR(3) NULL.
 java.lang.Long getOrderId()
          This method provides access to the LPOPURAMT.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 void setAmount(java.math.BigDecimal aAmount)
          This method provides access to the LPOPURAMT.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 void setBuyerPurchaseOrderId(java.lang.Long aBuyerPurchaseOrderId)
          This method provides access to the LPOPURAMT.BUYERPO_ID column of DB2 type BIGINT NOT NULL.
 void setCurrency(java.lang.String aCurrency)
          This method provides access to the LPOPURAMT.SETCCURR column of DB2 type CHAR(3) NULL.
 void setOrderId(java.lang.Long aOrderId)
          This method provides access to the LPOPURAMT.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 

Constructor Detail

POPurchaseAmountBean

public POPurchaseAmountBean()
Method Detail

getAmount

public java.math.BigDecimal getAmount()

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

The following is a description of this column:

Expected purchase amounts for this Order against this Limited PO. The amount is in the same currency as the Purchase Limit Amount specified in the Limited PO.

Returns:
java.math.BigDecimal

getBuyerPurchaseOrderId

public java.lang.Long getBuyerPurchaseOrderId()

This method provides access to the LPOPURAMT.BUYERPO_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

ID of the Buyer Purchase Order Number of the Limited PO.

Returns:
java.lang.Long

getCurrency

public java.lang.String getCurrency()

This method provides access to the LPOPURAMT.SETCCURR column of DB2 type CHAR(3) NULL.

The following is a description of this column:

Currency of the Amount field. Alphabetic currency code as per ISO 4217.

Returns:
java.lang.String

getOrderId

public java.lang.Long getOrderId()

This method provides access to the LPOPURAMT.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Order ID. Foreign key to the ORDERS table.

Returns:
java.lang.Long

setAmount

public void setAmount(java.math.BigDecimal aAmount)

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

The following is a description of this column:

Expected purchase amounts for this Order against this Limited PO. The amount is in the same currency as the Purchase Limit Amount specified in the Limited PO.

Parameters:
aAmount - java.math.BigDecimal
Returns:
void

setBuyerPurchaseOrderId

public void setBuyerPurchaseOrderId(java.lang.Long aBuyerPurchaseOrderId)

This method provides access to the LPOPURAMT.BUYERPO_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

ID of the Buyer Purchase Order Number of the Limited PO.

Parameters:
aBuyerPurchaseOrderId - java.lang.Long
Returns:
void

setCurrency

public void setCurrency(java.lang.String aCurrency)

This method provides access to the LPOPURAMT.SETCCURR column of DB2 type CHAR(3) NULL.

The following is a description of this column:

Currency of the Amount field. Alphabetic currency code as per ISO 4217.

Parameters:
aCurrency - java.lang.String
Returns:
void

setOrderId

public void setOrderId(java.lang.Long aOrderId)

This method provides access to the LPOPURAMT.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Order ID. Foreign key to the ORDERS table.

Parameters:
aOrderId - java.lang.Long
Returns:
void