com.ibm.commerce.payment.objects
Class POPurchaseAmountAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.payment.objects.POPurchaseAmountAccessBean
All Implemented Interfaces:
POPurchaseAmountAccessBeanData, java.io.Serializable

public class POPurchaseAmountAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements POPurchaseAmountAccessBeanData

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.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
POPurchaseAmountAccessBean()
          Default constructor.
POPurchaseAmountAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
POPurchaseAmountAccessBean(java.lang.Long aPOId, java.lang.Long orderId, java.math.BigDecimal amount)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
POPurchaseAmountAccessBean(java.lang.Long aPOId, java.lang.Long orderId, java.math.BigDecimal amount, java.lang.String currency)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.lang.String getAmount()
          This method provides access to the LPOPURAMT.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 java.math.BigDecimal getAmountInEJBType()
          This method provides access to the LPOPURAMT.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 java.lang.String getBuyerPurchaseOrderId()
          This method provides access to the LPOPURAMT.BUYERPO_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getBuyerPurchaseOrderIdInEJBType()
          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.String getOrderId()
          This method provides access to the LPOPURAMT.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderIdInEJBType()
          This method provides access to the LPOPURAMT.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setAmount(java.math.BigDecimal aAmount)
          This method provides access to the LPOPURAMT.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 void setAmount(java.lang.String 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 setBuyerPurchaseOrderId(java.lang.String 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 setInitKey_buyerPurchaseOrderId(java.lang.String aInitKey_buyerPurchaseOrderId)
          Set the primary key for this object
 void setInitKey_orderId(java.lang.String aInitKey_orderId)
          Set the primary key for this object
 void setOrderId(java.lang.Long aOrderId)
          This method provides access to the LPOPURAMT.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 void setOrderId(java.lang.String aOrderId)
          This method provides access to the LPOPURAMT.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POPurchaseAmountAccessBean

public POPurchaseAmountAccessBean()

Default constructor. Maps to findByPrimaryKey.


POPurchaseAmountAccessBean

public POPurchaseAmountAccessBean(javax.ejb.EJBObject object)
                           throws java.rmi.RemoteException

Creates an access bean for the specified EJB

Parameters:
object - The EJB Object used for the access bean construction.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

POPurchaseAmountAccessBean

public POPurchaseAmountAccessBean(java.lang.Long aPOId,
                                  java.lang.Long orderId,
                                  java.math.BigDecimal amount)
                           throws javax.ejb.CreateException,
                                  java.rmi.RemoteException,
                                  javax.naming.NamingException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
aPOId - The internal ID of the Limited Purchase Order (PO).
orderId - The ID of the Order.
amount - The expected purchase amount for this Order against this Limited PO. The amount is in the same currency as the Purchase Limit Amount specified in the Limited PO.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception

POPurchaseAmountAccessBean

public POPurchaseAmountAccessBean(java.lang.Long aPOId,
                                  java.lang.Long orderId,
                                  java.math.BigDecimal amount,
                                  java.lang.String currency)
                           throws javax.ejb.CreateException,
                                  java.rmi.RemoteException,
                                  javax.naming.NamingException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
aPOId - The internal ID of the Limited Purchase Order (PO).
orderId - The ID of the Order.
amount - The expected purchase amount for this Order against this Limited PO. The amount is in the same currency as the Purchase Limit Amount specified in the Limited PO.
currency - The currency of the specified amount.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception
Method Detail

commitCopyHelper

public void commitCopyHelper()
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException

Update(flush) data to the EJBObject (persistent storage).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getAmount

public java.lang.String getAmount()
                           throws java.rmi.RemoteException,
                                  javax.ejb.CreateException,
                                  javax.ejb.FinderException,
                                  javax.naming.NamingException

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.

Specified by:
getAmount in interface POPurchaseAmountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getAmountInEJBType

public java.math.BigDecimal getAmountInEJBType()
                                        throws java.rmi.RemoteException,
                                               javax.ejb.CreateException,
                                               javax.ejb.FinderException,
                                               javax.naming.NamingException

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
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getBuyerPurchaseOrderId

public java.lang.String getBuyerPurchaseOrderId()
                                         throws java.rmi.RemoteException,
                                                javax.ejb.CreateException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException

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.

Specified by:
getBuyerPurchaseOrderId in interface POPurchaseAmountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getBuyerPurchaseOrderIdInEJBType

public java.lang.Long getBuyerPurchaseOrderIdInEJBType()
                                                throws java.rmi.RemoteException,
                                                       javax.ejb.CreateException,
                                                       javax.ejb.FinderException,
                                                       javax.naming.NamingException

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
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getCurrency

public java.lang.String getCurrency()
                             throws java.rmi.RemoteException,
                                    javax.ejb.CreateException,
                                    javax.ejb.FinderException,
                                    javax.naming.NamingException

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.

Specified by:
getCurrency in interface POPurchaseAmountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getOrderId

public java.lang.String getOrderId()
                            throws java.rmi.RemoteException,
                                   javax.ejb.CreateException,
                                   javax.ejb.FinderException,
                                   javax.naming.NamingException

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.

Specified by:
getOrderId in interface POPurchaseAmountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getOrderIdInEJBType

public java.lang.Long getOrderIdInEJBType()
                                   throws java.rmi.RemoteException,
                                          javax.ejb.CreateException,
                                          javax.ejb.FinderException,
                                          javax.naming.NamingException

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
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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

setAmount

public void setAmount(java.lang.String 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.

Specified by:
setAmount in interface POPurchaseAmountAccessBeanData
Parameters:
aAmount - java.lang.String

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

setBuyerPurchaseOrderId

public void setBuyerPurchaseOrderId(java.lang.String 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.

Specified by:
setBuyerPurchaseOrderId in interface POPurchaseAmountAccessBeanData
Parameters:
aBuyerPurchaseOrderId - java.lang.String

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.

Specified by:
setCurrency in interface POPurchaseAmountAccessBeanData
Parameters:
aCurrency - java.lang.String

setInitKey_buyerPurchaseOrderId

public void setInitKey_buyerPurchaseOrderId(java.lang.String aInitKey_buyerPurchaseOrderId)

Set the primary key for this object

Parameters:
aInitKey_buyerPurchaseOrderId - java.lang.String

setInitKey_orderId

public void setInitKey_orderId(java.lang.String aInitKey_orderId)

Set the primary key for this object

Parameters:
aInitKey_orderId - java.lang.String

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

setOrderId

public void setOrderId(java.lang.String 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.

Specified by:
setOrderId in interface POPurchaseAmountAccessBeanData
Parameters:
aOrderId - java.lang.String