java.lang.Objectcom.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
com.ibm.commerce.payment.objects.TradingPurchaseAmountAccessBean
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. This access bean corresponds to the database table 'TRDPURAMT'.
Constructor Summary | |
TradingPurchaseAmountAccessBean() Zero argument constructor used to initialize the access bean. |
|
TradingPurchaseAmountAccessBean(javax.ejb.EJBObject o) constructor |
|
TradingPurchaseAmountAccessBean(java.lang.Long newTradingId, java.lang.Long newOrderId, java.math.BigDecimal newAmount) Maps to a corresponding ejbCreate method in the home interface of the EJB |
|
TradingPurchaseAmountAccessBean(java.lang.Long newTradingId, java.lang.Long newOrderId, java.lang.Long newOrderItemId, 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.util.Enumeration | findByOrderId(java.lang.Long orderId) 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 accesses a non-CMP field |
void | setAmount(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_tradingPurchaseAmountId(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 |
void | setOrderItemId(java.lang.Long newValue) This method accesses a non-CMP field |
void | setOrderItemId(java.lang.String newValue) This method accesses a non-CMP field |
void | setTradingId(java.lang.Long newValue) This method accesses a non-CMP field |
void | setTradingId(java.lang.String newValue) This method accesses a non-CMP field |
void | setTradingPurchaseAmountId(java.lang.Long newValue) This method accesses a non-CMP field |
void | setTradingPurchaseAmountId(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 |
public TradingPurchaseAmountAccessBean()
public TradingPurchaseAmountAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
public TradingPurchaseAmountAccessBean(java.lang.Long newTradingId, java.lang.Long newOrderId, java.lang.Long newOrderItemId, java.math.BigDecimal newAmount, java.lang.String newCurrency) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException
Maps to a corresponding ejbCreate method in the home interface of the EJB
public TradingPurchaseAmountAccessBean(java.lang.Long newTradingId, java.lang.Long newOrderId, java.math.BigDecimal newAmount) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException
Maps to a corresponding ejbCreate method in the home interface of the EJB
Method Detail |
public java.util.Enumeration findByOrderId(java.lang.Long orderId) 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=?
public void setInitKey_tradingPurchaseAmountId(java.lang.String newValue)
Set the primary key for this object
protected java.lang.String defaultJNDIName()
protected void instantiateEJB() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
protected boolean instantiateEJBByPrimaryKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.naming.NamingException
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
public void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
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.
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.
public void setTradingPurchaseAmountId(java.lang.String newValue)
public void setTradingPurchaseAmountId(java.lang.Long newValue)
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.
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.
public void setAmount(java.lang.String newValue)
public void setAmount(java.math.BigDecimal newValue)
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.
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.
public void setTradingId(java.lang.String newValue)
public void setTradingId(java.lang.Long newValue)
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.
public void setCurrency(java.lang.String newValue)
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.
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.
public void setOrderItemId(java.lang.String newValue)
public void setOrderItemId(java.lang.Long newValue)
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.
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.
public void setOrderId(java.lang.String newValue)
public void setOrderId(java.lang.Long newValue)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.