com.ibm.commerce.couponredemption.objects
Class OrderCouponMapAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
        |
        +--com.ibm.commerce.couponredemption.objects.OrderCouponMapAccessBean
All Implemented Interfaces:
OrderCouponMapAccessBeanData

public class OrderCouponMapAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements OrderCouponMapAccessBeanData

This table stores information about the electronic coupons that were used with the given (completed) Order.

See Also:
Serialized Form

Constructor Summary
OrderCouponMapAccessBean()
          constructor
OrderCouponMapAccessBean(javax.ejb.EJBObject o)
          constructor
OrderCouponMapAccessBean(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 findByOrderId(java.lang.Long arg0)
          This method executes the following SQL script: SELECT T1.CPWALLET_ID, T1.ORDERS_ID FROM ORCPMAP T1 WHERE (T1.ORDERS_ID = ?)
 java.lang.Long getBcId()
          This method provides access to the ORCPMAP.CPWALLET_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderId()
          This method provides access to the ORCPMAP.ORDERS_ID column of DB2 type BIGINT NOT NULL.
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setBcId(java.lang.Long newValue)
          This method provides access to the ORCPMAP.CPWALLET_ID column of DB2 type BIGINT NOT NULL.
 void setInitKey_bcId(java.lang.Long newValue)
          Set the primary key for this object
 void setInitKey_orderId(java.lang.Long newValue)
          Set the primary key for this object
 void setOrderId(java.lang.Long newValue)
          This method provides access to the ORCPMAP.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderCouponMapAccessBean

public OrderCouponMapAccessBean()
constructor

OrderCouponMapAccessBean

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

OrderCouponMapAccessBean

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

findByOrderId

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

This method executes the following SQL script: SELECT T1.CPWALLET_ID, T1.ORDERS_ID FROM ORCPMAP T1 WHERE (T1.ORDERS_ID = ?)

Returns:
The row from ORCPMAP table.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

setInitKey_bcId

public void setInitKey_bcId(java.lang.Long newValue)

Set the primary key for this object

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

setInitKey_orderId

public void setInitKey_orderId(java.lang.Long newValue)

Set the primary key for this object

Parameters:
newValue - java.lang.Long
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

getBcId

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

This method provides access to the ORCPMAP.CPWALLET_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary key. Foreign key to the CPWALLET table.

Specified by:
getBcId in interface OrderCouponMapAccessBeanData
Returns:
java.lang.Long
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setBcId

public void setBcId(java.lang.Long newValue)

This method provides access to the ORCPMAP.CPWALLET_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary key. Foreign key to the CPWALLET table.

Specified by:
setBcId in interface OrderCouponMapAccessBeanData
Parameters:
newValue - java.lang.Long
Returns:
void

getOrderId

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

This method provides access to the ORCPMAP.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary key. Foreign key to the ORDERS table.

Specified by:
getOrderId in interface OrderCouponMapAccessBeanData
Returns:
java.lang.Long
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setOrderId

public void setOrderId(java.lang.Long newValue)

This method provides access to the ORCPMAP.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary key. Foreign key to the ORDERS table.

Specified by:
setOrderId in interface OrderCouponMapAccessBeanData
Parameters:
newValue - java.lang.Long
Returns:
void