com.ibm.commerce.order.objects
Class OrderItemTradingRelationshipAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.order.objects.OrderItemTradingRelationshipAccessBean
All Implemented Interfaces:
OrderItemTradingRelationshipAccessBeanData
Direct Known Subclasses:
OrderItemTradingRelationshipDataBeanBase

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

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

See Also:
Serialized Form

Constructor Summary
OrderItemTradingRelationshipAccessBean()
Zero argument constructor used to initialize the access bean.
OrderItemTradingRelationshipAccessBean(javax.ejb.EJBObject o)
constructor
OrderItemTradingRelationshipAccessBean(java.lang.Long aTradingId, java.lang.Long aOrderItemId)
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 findByOrderItemId(java.lang.Long orderItemId) 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 tradingId) 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 accesses a non-CMP field
java.lang.Long getOrderItemIdInEJBType()
This method accesses a non-CMP field
java.lang.String getTradingId()
This method accesses a non-CMP field
java.lang.Long getTradingIdInEJBType()
This method accesses a non-CMP field
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setInitKey_iOrderItemId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_iTradingId(java.lang.String newValue)
Set the primary key for this object
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

OrderItemTradingRelationshipAccessBean

public OrderItemTradingRelationshipAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.order.objects.OrderItemTradingRelationship com.ibm.commerce.order.objimpl.OrderItemTradingRelationshipHomeBase.findByPrimaryKey(com.ibm.commerce.order.objects.OrderItemTradingRelationshipKey) 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_iOrderItemId( java.lang.Long ) setInitKey_iTradingId( java.lang.Long )

OrderItemTradingRelationshipAccessBean

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

OrderItemTradingRelationshipAccessBean

public OrderItemTradingRelationshipAccessBean(java.lang.Long aTradingId,
                                              java.lang.Long aOrderItemId)
                                       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:
aTradingId - java.lang.Long Trading agreement identifier
aOrderItemId - 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

findByOrderItemId

public java.util.Enumeration findByOrderItemId(java.lang.Long orderItemId)
                                        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:
orderItemId - 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

findByTradingId

public java.util.Enumeration findByTradingId(java.lang.Long tradingId)
                                      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:
tradingId - 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

setInitKey_iOrderItemId

public void setInitKey_iOrderItemId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_iTradingId

public void setInitKey_iTradingId(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

getTradingId

public java.lang.String getTradingId()
                              throws java.rmi.RemoteException,
                                     javax.ejb.CreateException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getTradingId in interface OrderItemTradingRelationshipAccessBeanData
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 accesses a non-CMP field
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setTradingId

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

setTradingId

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

getOrderItemId

public java.lang.String getOrderItemId()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getOrderItemId in interface OrderItemTradingRelationshipAccessBeanData
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 accesses a non-CMP field
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setOrderItemId

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

setOrderItemId

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

Feedback