com.ibm.commerce.couponredemption.objects
Class OrderCouponMapAccessBean

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

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

This bean provides access to the ORCPMAP table.

The following is a description of this table:

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

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
OrderCouponMapAccessBean()
          Default constructor.
OrderCouponMapAccessBean(javax.ejb.EJBObject newOrderCouponMapEJB)
          Maps to a corresponding ejbCreate method in the home interface of the EJB to create an entry in ORCPMAP table.
OrderCouponMapAccessBean(java.lang.Long newOrderId, java.lang.Long newCPWalletId)
          Maps to a corresponding ejbCreate method in the home interface of the EJB to create an entry in ORCPMAP table.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByOrderId(java.lang.Long orderId)
          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.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setBcId(java.lang.Long couponId)
          This method provides access to the ORCPMAP.CPWALLET_ID column of DB2 type BIGINT NOT NULL.
 void setInitKey_bcId(java.lang.Long couponId)
          Set the primary key for this object
 void setInitKey_orderId(java.lang.Long orderId)
          Set the primary key for this object
 void setOrderId(java.lang.Long orderId)
          This method provides access to the ORCPMAP.ORDERS_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

OrderCouponMapAccessBean

public OrderCouponMapAccessBean()

Default constructor. Maps to findByPrimaryKey.


OrderCouponMapAccessBean

public OrderCouponMapAccessBean(javax.ejb.EJBObject newOrderCouponMapEJB)
                         throws java.rmi.RemoteException

Maps to a corresponding ejbCreate method in the home interface of the EJB to create an entry in ORCPMAP table.

Parameters:
newOrderCouponMapEJB - The order coupon Map EJB.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

OrderCouponMapAccessBean

public OrderCouponMapAccessBean(java.lang.Long newOrderId,
                                java.lang.Long newCPWalletId)
                         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 to create an entry in ORCPMAP table.

Parameters:
newOrderId - The order Id in which the coupon was applied.
newCPWalletId - The coupon id.
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
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

findByOrderId

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

Parameters:
orderId - The order 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 - The javax.naming.NamingException exception

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:
The coupon Id.
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

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:
The order Id.
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
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

setBcId

public void setBcId(java.lang.Long couponId)

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:
couponId - The coupon Id.

setInitKey_bcId

public void setInitKey_bcId(java.lang.Long couponId)

Set the primary key for this object

Parameters:
couponId - The coupon Id.

setInitKey_orderId

public void setInitKey_orderId(java.lang.Long orderId)

Set the primary key for this object

Parameters:
orderId - The order Id.

setOrderId

public void setOrderId(java.lang.Long orderId)

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:
orderId - the order Id.