com.ibm.commerce.payment.objects
Class TradingPurchaseAmountAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
        |
        +--com.ibm.commerce.payment.objects.TradingPurchaseAmountAccessBean
All Implemented Interfaces:
TradingPurchaseAmountAccessBeanData

public class TradingPurchaseAmountAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements TradingPurchaseAmountAccessBeanData

This table is used to keep track of Purchase Amounts by Trading Agreements, by Orders or OrderItems. Entries are created only for Trading Agreement with Right-to-Buy by Amount or Obligation-to-Buy by Amount Terms and Conditions.

See Also:
Serialized Form

Constructor Summary
TradingPurchaseAmountAccessBean()
          constructor
TradingPurchaseAmountAccessBean(javax.ejb.EJBObject o)
          constructor
TradingPurchaseAmountAccessBean(java.lang.Long arg0, java.lang.Long arg1, java.math.BigDecimal arg2)
          constructor
TradingPurchaseAmountAccessBean(java.lang.Long arg0, java.lang.Long arg1, java.lang.Long arg2, java.math.BigDecimal arg3, java.lang.String arg4)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByOrderId(java.lang.Long arg0)
          Retrieves the TradingPurchaseAmountAccessBeans for the specified Order.
 java.lang.String getAmount()
          This method provides access to the TRDPURAMT.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL.
 java.math.BigDecimal getAmountInEJBType()
          This method provides access to the TRDPURAMT.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL.
 java.lang.String getCurrency()
          This method provides access to the TRDPURAMT.SETCCURR column of DB2 type CHAR(3).
 java.lang.String getOrderId()
          This method provides access to the TRDPURAMT.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderIdInEJBType()
          This method provides access to the TRDPURAMT.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getOrderItemId()
          This method provides access to the TRDPURAMT.ORDERITEMS_ID column of DB2 type BIGINT.
 java.lang.Long getOrderItemIdInEJBType()
          This method provides access to the TRDPURAMT.ORDERITEMS_ID column of DB2 type BIGINT.
 java.lang.String getTradingId()
          This method provides access to the TRDPURAMT.TRADING_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getTradingIdInEJBType()
          This method provides access to the TRDPURAMT.TRADING_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getTradingPurchaseAmountId()
          This method provides access to the TRDPURAMT.TRDPURAMT_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getTradingPurchaseAmountIdInEJBType()
          This method provides access to the TRDPURAMT.TRDPURAMT_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 provides access to the TRDPURAMT.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL.
 void setAmount(java.lang.String newValue)
          This method provides access to the TRDPURAMT.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL.
 void setCurrency(java.lang.String newValue)
          This method provides access to the TRDPURAMT.SETCCURR column of DB2 type CHAR(3).
 void setInitKey_tradingPurchaseAmountId(java.lang.String newValue)
          Set the primary key for this object
 void setOrderId(java.lang.Long newValue)
          This method provides access to the TRDPURAMT.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 void setOrderId(java.lang.String newValue)
          This method provides access to the TRDPURAMT.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 void setOrderItemId(java.lang.Long newValue)
          This method provides access to the TRDPURAMT.ORDERITEMS_ID column of DB2 type BIGINT.
 void setOrderItemId(java.lang.String newValue)
          This method provides access to the TRDPURAMT.ORDERITEMS_ID column of DB2 type BIGINT.
 void setTradingId(java.lang.Long newValue)
          This method provides access to the TRDPURAMT.TRADING_ID column of DB2 type BIGINT NOT NULL.
 void setTradingId(java.lang.String newValue)
          This method provides access to the TRDPURAMT.TRADING_ID column of DB2 type BIGINT NOT NULL.
 void setTradingPurchaseAmountId(java.lang.Long newValue)
          This method provides access to the TRDPURAMT.TRDPURAMT_ID column of DB2 type BIGINT NOT NULL.
 void setTradingPurchaseAmountId(java.lang.String newValue)
          This method provides access to the TRDPURAMT.TRDPURAMT_ID column of DB2 type BIGINT NOT NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TradingPurchaseAmountAccessBean

public TradingPurchaseAmountAccessBean()
constructor

TradingPurchaseAmountAccessBean

public TradingPurchaseAmountAccessBean(javax.ejb.EJBObject o)
                                throws java.rmi.RemoteException
constructor
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException

TradingPurchaseAmountAccessBean

public TradingPurchaseAmountAccessBean(java.lang.Long arg0,
                                       java.lang.Long arg1,
                                       java.lang.Long arg2,
                                       java.math.BigDecimal arg3,
                                       java.lang.String arg4)
                                throws javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException,
                                       java.rmi.RemoteException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.Long
arg2 - java.lang.Long
arg3 - java.math.BigDecimal
arg4 - java.lang.String
Throws:
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
java.rmi.RemoteException

TradingPurchaseAmountAccessBean

public TradingPurchaseAmountAccessBean(java.lang.Long arg0,
                                       java.lang.Long arg1,
                                       java.math.BigDecimal arg2)
                                throws javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException,
                                       java.rmi.RemoteException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.Long
arg2 - java.math.BigDecimal
Throws:
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
java.rmi.RemoteException
Method Detail

findByOrderId

public java.util.Enumeration findByOrderId(java.lang.Long arg0)
                                    throws java.rmi.RemoteException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException

Retrieves the TradingPurchaseAmountAccessBeans for the specified Order.

The SQL query used to fetch all the required rows from the TRDPURAMT table is:

SELECT * FROM TRDPURAMT T1 WHERE T1.ORDERS_ID=?

Returns:
An Enumeration of all the TradingPurchaseAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

setInitKey_tradingPurchaseAmountId

public void setInitKey_tradingPurchaseAmountId(java.lang.String newValue)

Set the primary key for this object

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

defaultJNDIName

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

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

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

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

getTradingPurchaseAmountId

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

This method provides access to the TRDPURAMT.TRDPURAMT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key for this row.

Specified by:
getTradingPurchaseAmountId in interface TradingPurchaseAmountAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getTradingPurchaseAmountIdInEJBType

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

This method provides access to the TRDPURAMT.TRDPURAMT_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
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setTradingPurchaseAmountId

public void setTradingPurchaseAmountId(java.lang.String newValue)

This method provides access to the TRDPURAMT.TRDPURAMT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key for this row.

Specified by:
setTradingPurchaseAmountId in interface TradingPurchaseAmountAccessBeanData
Parameters:
newValue - String
Returns:
void

setTradingPurchaseAmountId

public void setTradingPurchaseAmountId(java.lang.Long newValue)

This method provides access to the TRDPURAMT.TRDPURAMT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key for this row.

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

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 TRDPURAMT.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL.

The following is a description of this column:

Expected purchase amounts for this Trading Agreement for this Order or OrderItem. The amount is in the same currency of the Right-to-Buy Amount and Obligation-to-Buy Amount.

Specified by:
getAmount in interface TradingPurchaseAmountAccessBeanData
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 TRDPURAMT.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL.

The following is a description of this column:

Expected purchase amounts for this Trading Agreement for this Order or OrderItem. The amount is in the same currency of the Right-to-Buy Amount and Obligation-to-Buy Amount.

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

setAmount

public void setAmount(java.lang.String newValue)

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

The following is a description of this column:

Expected purchase amounts for this Trading Agreement for this Order or OrderItem. The amount is in the same currency of the Right-to-Buy Amount and Obligation-to-Buy Amount.

Specified by:
setAmount in interface TradingPurchaseAmountAccessBeanData
Parameters:
newValue - String
Returns:
void

setAmount

public void setAmount(java.math.BigDecimal newValue)

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

The following is a description of this column:

Expected purchase amounts for this Trading Agreement for this Order or OrderItem. The amount is in the same currency of the Right-to-Buy Amount and Obligation-to-Buy Amount.

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

getTradingId

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

This method provides access to the TRDPURAMT.TRADING_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

ID for the Trading Agreement. Foreign key to the TRADING table.

Specified by:
getTradingId in interface TradingPurchaseAmountAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getTradingIdInEJBType

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

This method provides access to the TRDPURAMT.TRADING_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

ID for the Trading Agreement. Foreign key to the TRADING table.

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

setTradingId

public void setTradingId(java.lang.String newValue)

This method provides access to the TRDPURAMT.TRADING_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

ID for the Trading Agreement. Foreign key to the TRADING table.

Specified by:
setTradingId in interface TradingPurchaseAmountAccessBeanData
Parameters:
newValue - String
Returns:
void

setTradingId

public void setTradingId(java.lang.Long newValue)

This method provides access to the TRDPURAMT.TRADING_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

ID for the Trading Agreement. Foreign key to the TRADING table.

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

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 TRDPURAMT.SETCCURR column of DB2 type CHAR(3).

The following is a description of this column:

Currency of the Amount field. This is a currency code as per ISO 4217 standards.

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

setCurrency

public void setCurrency(java.lang.String newValue)

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

The following is a description of this column:

Currency of the Amount field. This is a currency code as per ISO 4217 standards.

Specified by:
setCurrency in interface TradingPurchaseAmountAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

getOrderItemId

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

This method provides access to the TRDPURAMT.ORDERITEMS_ID column of DB2 type BIGINT.

The following is a description of this column:

ID of the OrderItem. This is set to null if all the OrderItems of the Order specify the same Trading ID. Foreign key to the ORDERITEMS table.

Specified by:
getOrderItemId in interface TradingPurchaseAmountAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getOrderItemIdInEJBType

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

This method provides access to the TRDPURAMT.ORDERITEMS_ID column of DB2 type BIGINT.

The following is a description of this column:

ID of the OrderItem. This is set to null if all the OrderItems of the Order specify the same Trading ID. Foreign key to the ORDERITEMS table.

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

setOrderItemId

public void setOrderItemId(java.lang.String newValue)

This method provides access to the TRDPURAMT.ORDERITEMS_ID column of DB2 type BIGINT.

The following is a description of this column:

ID of the OrderItem. This is set to null if all the OrderItems of the Order specify the same Trading ID. Foreign key to the ORDERITEMS table.

Specified by:
setOrderItemId in interface TradingPurchaseAmountAccessBeanData
Parameters:
newValue - String
Returns:
void

setOrderItemId

public void setOrderItemId(java.lang.Long newValue)

This method provides access to the TRDPURAMT.ORDERITEMS_ID column of DB2 type BIGINT.

The following is a description of this column:

ID of the OrderItem. This is set to null if all the OrderItems of the Order specify the same Trading ID. Foreign key to the ORDERITEMS table.

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

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 TRDPURAMT.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 TradingPurchaseAmountAccessBeanData
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 TRDPURAMT.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

setOrderId

public void setOrderId(java.lang.String newValue)

This method provides access to the TRDPURAMT.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 TradingPurchaseAmountAccessBeanData
Parameters:
newValue - String
Returns:
void

setOrderId

public void setOrderId(java.lang.Long newValue)

This method provides access to the TRDPURAMT.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:
newValue - java.lang.Long
Returns:
void