com.ibm.commerce.payment.objects
Class POPurchaseAmountAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.payment.objects.POPurchaseAmountAccessBean
All Implemented Interfaces:
POPurchaseAmountAccessBeanData

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

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. This access bean corresponds to the database table 'LPOPURAMT'.

See Also:
Serialized Form

Constructor Summary
POPurchaseAmountAccessBean()
Zero argument constructor used to initialize the access bean.
POPurchaseAmountAccessBean(javax.ejb.EJBObject o)
constructor
POPurchaseAmountAccessBean(java.lang.Long newBuyerPurchaseOrderId, java.lang.Long newOrderId, java.math.BigDecimal newAmount)
Maps to a corresponding ejbCreate method in the home interface of the EJB
POPurchaseAmountAccessBean(java.lang.Long newBuyerPurchaseOrderId, java.lang.Long newOrderId, java.math.BigDecimal newAmount, java.lang.String newCurrency)
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).
protected java.lang.String defaultJNDIName()
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).
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.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setAmount(java.math.BigDecimal newValue)
This method accesses a non-CMP field
void setAmount(java.lang.String newValue)
This method accesses a non-CMP field
void setBuyerPurchaseOrderId(java.lang.Long newValue)
This method accesses a non-CMP field
void setBuyerPurchaseOrderId(java.lang.String newValue)
This method accesses a non-CMP field
void setCurrency(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_buyerPurchaseOrderId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_orderId(java.lang.String newValue)
Set the primary key for this object
void setOrderId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrderId(java.lang.String newValue)
This method accesses a non-CMP field
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

POPurchaseAmountAccessBean

public POPurchaseAmountAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.payment.objects.POPurchaseAmount com.ibm.commerce.payment.objimpl.POPurchaseAmountHomeBase.findByPrimaryKey(com.ibm.commerce.payment.objects.POPurchaseAmountKey) throws java.rmi.RemoteException,javax.ejb.FinderException The home interface method properties need to be set by calling the following setter methods before calling any business methods: setInitKey_buyerPurchaseOrderId( java.lang.Long ) setInitKey_orderId( java.lang.Long )

POPurchaseAmountAccessBean

public POPurchaseAmountAccessBean(java.lang.Long newBuyerPurchaseOrderId,
                                  java.lang.Long newOrderId,
                                  java.math.BigDecimal newAmount)
                           throws javax.ejb.CreateException,
                                  java.rmi.RemoteException,
                                  javax.naming.NamingException

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

Parameters:
newBuyerPurchaseOrderId - The internal ID of the Limited Purchase Order (PO).
newOrderId - The ID of the Order.
newAmount - The expected purchase newAmount for this Order against this Limited PO. The newAmount 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

POPurchaseAmountAccessBean

public POPurchaseAmountAccessBean(java.lang.Long newBuyerPurchaseOrderId,
                                  java.lang.Long newOrderId,
                                  java.math.BigDecimal newAmount,
                                  java.lang.String newCurrency)
                           throws javax.ejb.CreateException,
                                  java.rmi.RemoteException,
                                  javax.naming.NamingException

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

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

POPurchaseAmountAccessBean

public POPurchaseAmountAccessBean(javax.ejb.EJBObject o)
                           throws java.rmi.RemoteException
constructor
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException
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).

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

defaultJNDIName

protected java.lang.String defaultJNDIName()
Returns:
String

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

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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).

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

instantiateEJB

protected void instantiateEJB()
                       throws java.rmi.RemoteException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException
Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

instantiateEJBByPrimaryKey

protected boolean instantiateEJBByPrimaryKey()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.naming.NamingException
Returns:
boolean
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.naming.NamingException

refreshCopyHelper

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

Load data from the EJBObject.

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setAmount

public void setAmount(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setAmount in interface POPurchaseAmountAccessBeanData

setAmount

public void setAmount(java.math.BigDecimal newValue)
This method accesses a non-CMP field

setBuyerPurchaseOrderId

public void setBuyerPurchaseOrderId(java.lang.Long newValue)
This method accesses a non-CMP field

setBuyerPurchaseOrderId

public void setBuyerPurchaseOrderId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setBuyerPurchaseOrderId in interface POPurchaseAmountAccessBeanData

setCurrency

public void setCurrency(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setCurrency in interface POPurchaseAmountAccessBeanData

setInitKey_buyerPurchaseOrderId

public void setInitKey_buyerPurchaseOrderId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_orderId

public void setInitKey_orderId(java.lang.String newValue)

Set the primary key for this object

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

setOrderId

public void setOrderId(java.lang.Long newValue)
This method accesses a non-CMP field

setOrderId

public void setOrderId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setOrderId in interface POPurchaseAmountAccessBeanData

Feedback