com.ibm.commerce.order.objects
Class OrderItemTradingRelationshipAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.order.objects.OrderItemTradingRelationshipAccessBean
All Implemented Interfaces:
OrderItemTradingRelationshipAccessBeanData, java.io.Serializable

public class OrderItemTradingRelationshipAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements OrderItemTradingRelationshipAccessBeanData

This bean provides access to the ORDITRD table.

The following is a description of this table:

Each row of this table indicates a TradingAgreement that was searched to obtain the price for an OrderItem. These rows are created by the OrderItemAdd and OrderItemUpdate commands.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
OrderItemTradingRelationshipAccessBean()
          Default constructor.
OrderItemTradingRelationshipAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
OrderItemTradingRelationshipAccessBean(java.lang.Long anTradingId, java.lang.Long anOrderItemId)
          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.util.Enumeration findByOrderItemId(java.lang.Long anOrderItemId)
          Retrieves all the trading agreements searched to obtain the price for specified order item.
The SQL query used to fetch all the required rows from the ORDITRD table is:
SELECT * FROM ORDITRD T1 WHERE (T1.ORDERITEMS_ID = ?)
 java.util.Enumeration findByTradingId(java.lang.Long anTradingId)
          Retrieves all the order items for which the price was obtained by searching the specified trading agreement.
The SQL query used to fetch all the required rows from the ORDITRD table is:
SELECT * FROM ORDITRD T1 WHERE (T1.TRADING_ID = ?)
 java.lang.String getOrderItemId()
          This method provides access to the ORDITRD.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderItemIdInEJBType()
          This method provides access to the ORDITRD.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getTradingId()
          This method provides access to the ORDITRD.TRADING_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getTradingIdInEJBType()
          This method provides access to the ORDITRD.TRADING_ID column of DB2 type BIGINT NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_iOrderItemId(java.lang.String aInitKey_iOrderItemId)
          Set the primary key for this object
 void setInitKey_iTradingId(java.lang.String aInitKey_iTradingId)
          Set the primary key for this object
 void setOrderItemId(java.lang.Long aOrderItemId)
          This method provides access to the ORDITRD.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 void setOrderItemId(java.lang.String aOrderItemId)
          This method provides access to the ORDITRD.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 void setTradingId(java.lang.Long aTradingId)
          This method provides access to the ORDITRD.TRADING_ID column of DB2 type BIGINT NOT NULL.
 void setTradingId(java.lang.String aTradingId)
          This method provides access to the ORDITRD.TRADING_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

OrderItemTradingRelationshipAccessBean

public OrderItemTradingRelationshipAccessBean()

Default constructor. Maps to findByPrimaryKey.


OrderItemTradingRelationshipAccessBean

public OrderItemTradingRelationshipAccessBean(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

OrderItemTradingRelationshipAccessBean

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

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

Parameters:
anTradingId - java.lang.Long Trading agreement identifier
anOrderItemId - java.lang.Long Order item identifier
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException 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
Returns:
void
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

findByOrderItemId

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

Retrieves all the trading agreements searched to obtain the price for specified order item.
The SQL query used to fetch all the required rows from the ORDITRD table is:
SELECT * FROM ORDITRD T1 WHERE (T1.ORDERITEMS_ID = ?)

Parameters:
anOrderItemId - java.lang.Long Order item identifier
Returns:
java.util.Enumeration An Enumeration of all the OrderItemTradingRelationshipAccessBean objects 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 - The javax.naming.NamingException exception

findByTradingId

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

Retrieves all the order items for which the price was obtained by searching the specified trading agreement.
The SQL query used to fetch all the required rows from the ORDITRD table is:
SELECT * FROM ORDITRD T1 WHERE (T1.TRADING_ID = ?)

Parameters:
anTradingId - java.lang.Long Trading agreement identifier
Returns:
java.util.Enumeration An Enumeration of all the OrderItemTradingRelationshipAccessBean objects 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 - The javax.naming.NamingException exception

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 ORDITRD.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderItem.

Specified by:
getOrderItemId in interface OrderItemTradingRelationshipAccessBeanData
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

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 ORDITRD.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderItem.

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

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 ORDITRD.TRADING_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The TradingAgreement.

Specified by:
getTradingId in interface OrderItemTradingRelationshipAccessBeanData
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

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 ORDITRD.TRADING_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The TradingAgreement.

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
Returns:
void
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

setInitKey_iOrderItemId

public void setInitKey_iOrderItemId(java.lang.String aInitKey_iOrderItemId)

Set the primary key for this object

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

setInitKey_iTradingId

public void setInitKey_iTradingId(java.lang.String aInitKey_iTradingId)

Set the primary key for this object

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

setOrderItemId

public void setOrderItemId(java.lang.Long aOrderItemId)

This method provides access to the ORDITRD.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderItem.

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

setOrderItemId

public void setOrderItemId(java.lang.String aOrderItemId)

This method provides access to the ORDITRD.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderItem.

Specified by:
setOrderItemId in interface OrderItemTradingRelationshipAccessBeanData
Parameters:
aOrderItemId - java.lang.String
Returns:
void

setTradingId

public void setTradingId(java.lang.Long aTradingId)

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

The following is a description of this column:

The TradingAgreement.

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

setTradingId

public void setTradingId(java.lang.String aTradingId)

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

The following is a description of this column:

The TradingAgreement.

Specified by:
setTradingId in interface OrderItemTradingRelationshipAccessBeanData
Parameters:
aTradingId - java.lang.String
Returns:
void