com.ibm.commerce.order.objects
Class OrderItemOfferRelationshipAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
        |
        +--com.ibm.commerce.order.objects.OrderItemOfferRelationshipAccessBean
All Implemented Interfaces:
OrderItemOfferRelationshipAccessBeanData

public class OrderItemOfferRelationshipAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements OrderItemOfferRelationshipAccessBeanData

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

See Also:
Serialized Form

Constructor Summary
OrderItemOfferRelationshipAccessBean()
          constructor
OrderItemOfferRelationshipAccessBean(javax.ejb.EJBObject o)
          constructor
OrderItemOfferRelationshipAccessBean(java.lang.Long arg0, java.lang.Long arg1)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByOfferId(java.lang.Long arg0)           Retrieves all the order items for which the price was obtained by searching the specified offer. The SQL query used to fetch all the required rows from the ORDIOFFER table is:
SELECT * FROM ORDIOFFER T1 WHERE (T1.OFFER_ID = ?)
 java.util.Enumeration findByOrderItemId(java.lang.Long arg0)           Retrieves all the offers searched to obtain the price for specified order item. The SQL query used to fetch all the required rows from the ORDIOFFER table is:
SELECT * FROM ORDIOFFER T1 WHERE (T1.ORDERITEM_ID = ?)
 java.lang.String getOfferId()
          This method accesses a non-CMP field
 java.lang.Long getOfferIdInEJBType()
          This method accesses a non-CMP field
 java.lang.String getOrderItemId()
          This method accesses a non-CMP field
 java.lang.Long getOrderItemIdInEJBType()
          This method accesses a non-CMP field
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_iOfferId(java.lang.String newValue)
          Set the primary key for this object
 void setInitKey_iOrderItemId(java.lang.String newValue)
          Set the primary key for this object
 void setOfferId(java.lang.Long newValue)
          This method accesses a non-CMP field
 void setOfferId(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderItemOfferRelationshipAccessBean

public OrderItemOfferRelationshipAccessBean()
constructor

OrderItemOfferRelationshipAccessBean

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

OrderItemOfferRelationshipAccessBean

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

findByOfferId

public java.util.Enumeration findByOfferId(java.lang.Long arg0)
                                    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 offer.
The SQL query used to fetch all the required rows from the ORDIOFFER table is: SELECT * FROM ORDIOFFER T1 WHERE (T1.OFFER_ID = ?)

Returns:
java.util.Enumeration An Enumeration of all the OrderItemOfferRelationshipAccessBean 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

findByOrderItemId

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

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

Returns:
java.util.Enumeration An Enumeration of all the OrderItemOfferRelationshipAccessBean 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_iOfferId

public void setInitKey_iOfferId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_iOrderItemId

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

getOfferId

public java.lang.String getOfferId()
                            throws java.rmi.RemoteException,
                                   javax.ejb.CreateException,
                                   javax.ejb.FinderException,
                                   javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getOfferId in interface OrderItemOfferRelationshipAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getOfferIdInEJBType

public java.lang.Long getOfferIdInEJBType()
                                   throws java.rmi.RemoteException,
                                          javax.ejb.CreateException,
                                          javax.ejb.FinderException,
                                          javax.naming.NamingException
This method accesses a non-CMP field
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setOfferId

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

setOfferId

public void setOfferId(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 OrderItemOfferRelationshipAccessBeanData
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
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 OrderItemOfferRelationshipAccessBeanData

setOrderItemId

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