com.ibm.commerce.order.objects
Class OrderItemOfferRelationshipAccessBean

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

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

This bean provides access to the ORDIOFFER table.

The following is a description of this table:

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

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
OrderItemOfferRelationshipAccessBean()
          Default constructor.
OrderItemOfferRelationshipAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
OrderItemOfferRelationshipAccessBean(java.lang.Long anOfferId, 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 findByOfferId(java.lang.Long anOfferId)
          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 anOrderItemId)
          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 provides access to the ORDIOFFER.OFFER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOfferIdInEJBType()
          This method provides access to the ORDIOFFER.OFFER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getOrderItemId()
          This method provides access to the ORDIOFFER.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderItemIdInEJBType()
          This method provides access to the ORDIOFFER.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_iOfferId(java.lang.String aInitKey_iOfferId)
          Set the primary key for this object
 void setInitKey_iOrderItemId(java.lang.String aInitKey_iOrderItemId)
          Set the primary key for this object
 void setOfferId(java.lang.Long aOfferId)
          This method provides access to the ORDIOFFER.OFFER_ID column of DB2 type BIGINT NOT NULL.
 void setOfferId(java.lang.String aOfferId)
          This method provides access to the ORDIOFFER.OFFER_ID column of DB2 type BIGINT NOT NULL.
 void setOrderItemId(java.lang.Long aOrderItemId)
          This method provides access to the ORDIOFFER.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 void setOrderItemId(java.lang.String aOrderItemId)
          This method provides access to the ORDIOFFER.ORDERITEMS_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

OrderItemOfferRelationshipAccessBean

public OrderItemOfferRelationshipAccessBean()

Default constructor. Maps to findByPrimaryKey.


OrderItemOfferRelationshipAccessBean

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

OrderItemOfferRelationshipAccessBean

public OrderItemOfferRelationshipAccessBean(java.lang.Long anOfferId,
                                            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:
anOfferId - java.lang.Long Offer 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

findByOfferId

public java.util.Enumeration findByOfferId(java.lang.Long anOfferId)
                                    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 = ?)

Parameters:
anOfferId - java.lang.Long Offer identifier
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 - 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 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 = ?)

Parameters:
anOrderItemId - java.lang.Long Order item identifier
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 - The javax.naming.NamingException exception

getOfferId

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

This method provides access to the ORDIOFFER.OFFER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Offer.

Specified by:
getOfferId in interface OrderItemOfferRelationshipAccessBeanData
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

getOfferIdInEJBType

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

This method provides access to the ORDIOFFER.OFFER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Offer.

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

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

The following is a description of this column:

The OrderItem.

Specified by:
getOrderItemId in interface OrderItemOfferRelationshipAccessBeanData
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 ORDIOFFER.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

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_iOfferId

public void setInitKey_iOfferId(java.lang.String aInitKey_iOfferId)

Set the primary key for this object

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

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

setOfferId

public void setOfferId(java.lang.Long aOfferId)

This method provides access to the ORDIOFFER.OFFER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Offer.

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

setOfferId

public void setOfferId(java.lang.String aOfferId)

This method provides access to the ORDIOFFER.OFFER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Offer.

Specified by:
setOfferId in interface OrderItemOfferRelationshipAccessBeanData
Parameters:
aOfferId - java.lang.String
Returns:
void

setOrderItemId

public void setOrderItemId(java.lang.Long aOrderItemId)

This method provides access to the ORDIOFFER.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 ORDIOFFER.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderItem.

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