com.ibm.commerce.payment.objects
Class BuyerPurchaseOrderBean

com.ibm.commerce.payment.objects.BuyerPurchaseOrderBean

public class BuyerPurchaseOrderBean

This bean provides access to the BUYERPO table.

The following is a description of this table:

Each row of this table represents a Purchase Order Number that the Buyer organization of the Account has defined or used for Trading with the Seller organization. The number is only unique within the Account.


Constructor Summary
BuyerPurchaseOrderBean()
           
 
Method Summary
 java.lang.Long getAccountId()
          This method provides access to the BUYERPO.ACCOUNT_ID column of DB2 type BIGINT NULL.
 java.math.BigDecimal getAmount()
          This method provides access to the BUYERPO.AMOUNT column of DB2 type DECIMAL(20,5) NULL.
 java.lang.Long getBuyerPurchaseOrderId()
          This method provides access to the BUYERPO.BUYERPO_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Integer getBuyerPurchaseOrderTypeId()
          This method provides access to the BUYERPO.BUYERPOTYP_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getCurrency()
          This method provides access to the BUYERPO.SETCCURR column of DB2 type CHAR(3) NULL.
 java.lang.String getPurchaseOrderNumber()
          This method provides access to the BUYERPO.PONUMBER column of DB2 type VARCHAR(128) NOT NULL.
 java.lang.Integer getState()
          This method provides access to the BUYERPO.STATE column of DB2 type INTEGER NULL.
 void setAccountId(java.lang.Long aAccountId)
          This method provides access to the BUYERPO.ACCOUNT_ID column of DB2 type BIGINT NULL.
 void setAmount(java.math.BigDecimal aAmount)
          This method provides access to the BUYERPO.AMOUNT column of DB2 type DECIMAL(20,5) NULL.
 void setBuyerPurchaseOrderId(java.lang.Long aBuyerPurchaseOrderId)
          This method provides access to the BUYERPO.BUYERPO_ID column of DB2 type BIGINT NOT NULL.
 void setBuyerPurchaseOrderTypeId(java.lang.Integer aBuyerPurchaseOrderTypeId)
          This method provides access to the BUYERPO.BUYERPOTYP_ID column of DB2 type INTEGER NOT NULL.
 void setCurrency(java.lang.String aCurrency)
          This method provides access to the BUYERPO.SETCCURR column of DB2 type CHAR(3) NULL.
 void setPurchaseOrderNumber(java.lang.String aPurchaseOrderNumber)
          This method provides access to the BUYERPO.PONUMBER column of DB2 type VARCHAR(128) NOT NULL.
 void setState(java.lang.Integer aState)
          This method provides access to the BUYERPO.STATE column of DB2 type INTEGER NULL.
 

Constructor Detail

BuyerPurchaseOrderBean

public BuyerPurchaseOrderBean()
Method Detail

getAccountId

public java.lang.Long getAccountId()

This method provides access to the BUYERPO.ACCOUNT_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

The ID of the business account to which the Buyer Purchase Order Number belongs. Foreign key to the ACCOUNT table.

Returns:
java.lang.Long

getAmount

public java.math.BigDecimal getAmount()

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

The following is a description of this column:

Amount for Limited Purchase Order.

Returns:
java.math.BigDecimal

getBuyerPurchaseOrderId

public java.lang.Long getBuyerPurchaseOrderId()

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

The following is a description of this column:

Generated unique key for this row.

Returns:
java.lang.Long

getBuyerPurchaseOrderTypeId

public java.lang.Integer getBuyerPurchaseOrderTypeId()

This method provides access to the BUYERPO.BUYERPOTYP_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Type of the Buyer Purchase Order Number. The types are defined in the BUYERPOTYP table.

Returns:
java.lang.Integer

getCurrency

public java.lang.String getCurrency()

This method provides access to the BUYERPO.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

getPurchaseOrderNumber

public java.lang.String getPurchaseOrderNumber()

This method provides access to the BUYERPO.PONUMBER column of DB2 type VARCHAR(128) NOT NULL.

The following is a description of this column:

The Buyer Purchase Order Number.

Returns:
java.lang.String

getState

public java.lang.Integer getState()

This method provides access to the BUYERPO.STATE column of DB2 type INTEGER NULL.

The following is a description of this column:

State of the Purchase Order Number: 0=Undefined, 1=Active, available for Order, 2=Closed, cannot be used for Order.

Returns:
java.lang.Integer

setAccountId

public void setAccountId(java.lang.Long aAccountId)

This method provides access to the BUYERPO.ACCOUNT_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

The ID of the business account to which the Buyer Purchase Order Number belongs. Foreign key to the ACCOUNT table.

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

setAmount

public void setAmount(java.math.BigDecimal aAmount)

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

The following is a description of this column:

Amount for Limited Purchase Order.

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

setBuyerPurchaseOrderId

public void setBuyerPurchaseOrderId(java.lang.Long aBuyerPurchaseOrderId)

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

The following is a description of this column:

Generated unique key for this row.

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

setBuyerPurchaseOrderTypeId

public void setBuyerPurchaseOrderTypeId(java.lang.Integer aBuyerPurchaseOrderTypeId)

This method provides access to the BUYERPO.BUYERPOTYP_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Type of the Buyer Purchase Order Number. The types are defined in the BUYERPOTYP table.

Parameters:
aBuyerPurchaseOrderTypeId - java.lang.Integer
Returns:
void

setCurrency

public void setCurrency(java.lang.String aCurrency)

This method provides access to the BUYERPO.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

setPurchaseOrderNumber

public void setPurchaseOrderNumber(java.lang.String aPurchaseOrderNumber)

This method provides access to the BUYERPO.PONUMBER column of DB2 type VARCHAR(128) NOT NULL.

The following is a description of this column:

The Buyer Purchase Order Number.

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

setState

public void setState(java.lang.Integer aState)

This method provides access to the BUYERPO.STATE column of DB2 type INTEGER NULL.

The following is a description of this column:

State of the Purchase Order Number: 0=Undefined, 1=Active, available for Order, 2=Closed, cannot be used for Order.

Parameters:
aState - java.lang.Integer
Returns:
void