com.ibm.commerce.couponredemption.objects
Class TempOrderCouponMapAccessBean

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

public class TempOrderCouponMapAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements TempOrderCouponMapAccessBeanData

This bean provides access to the TORCPMAP table.

The following is a description of this table:

This table stores information about the coupons that are applicable on the current shopping basket while the decision support system is running.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
TempOrderCouponMapAccessBean()
          Default constructor.
TempOrderCouponMapAccessBean(javax.ejb.EJBObject newTempOrderCouponMapEJB)
          Maps to a corresponding ejbCreate method in the home interface of the EJB to create an entry in TORCPMAP table.
TempOrderCouponMapAccessBean(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 TORCPMAP table.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 TempOrderCouponMapAccessBean findByBcId(java.lang.Long aDByBcId)
          This method executes the following SQL Script: SELECT T1.CPWALLET_ID, T1.ORDERS_ID FROM TORCPMAP T1 WHERE (T1.CPWALLET_ID = ?)
 java.util.Enumeration findByOrderId(java.lang.Long orderId)
          This method executes the following SQL script: SELECT T1.CPWALLET_ID, T1.ORDERS_ID FROM TORCPMAP T1 WHERE (T1.ORDERS_ID = ?)
 TempOrderCouponMapAccessBean findByOrderIdBcId(java.lang.Long orderId, java.lang.Long couponWalletId)
          This method executes the following SQL script: SELECT T1.CPWALLET_ID, T1.ORDERS_ID FROM TORCPMAP T1 WHERE (T1.ORDERS_ID = ?) AND (T1.CPWALLET_ID = ?)
 java.lang.Long getBcId()
          This method provides access to the TORCPMAP.CPWALLET_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderId()
          This method provides access to the TORCPMAP.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 TORCPMAP.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 TORCPMAP.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

TempOrderCouponMapAccessBean

public TempOrderCouponMapAccessBean()

Default constructor. Maps to findByPrimaryKey.


TempOrderCouponMapAccessBean

public TempOrderCouponMapAccessBean(javax.ejb.EJBObject newTempOrderCouponMapEJB)
                             throws java.rmi.RemoteException

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

Parameters:
newTempOrderCouponMapEJB - The temporary order coupon map EJB.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

TempOrderCouponMapAccessBean

public TempOrderCouponMapAccessBean(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 TORCPMAP table.

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

findByBcId

public TempOrderCouponMapAccessBean findByBcId(java.lang.Long aDByBcId)
                                        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 TORCPMAP T1 WHERE (T1.CPWALLET_ID = ?)

Parameters:
couponId - The coupon Id.
Returns:
The row from TORCPMAP 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

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 TORCPMAP T1 WHERE (T1.ORDERS_ID = ?)

Parameters:
orderId - The order Id.
Returns:
The rows from TORCPMAP 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

findByOrderIdBcId

public TempOrderCouponMapAccessBean findByOrderIdBcId(java.lang.Long orderId,
                                                      java.lang.Long couponWalletId)
                                               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 TORCPMAP T1 WHERE (T1.ORDERS_ID = ?) AND (T1.CPWALLET_ID = ?)

Parameters:
orderId - The order Id.
couponWalletId - The coupon wallet Id.
Returns:
The row from TORCPMAP 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 TORCPMAP.CPWALLET_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary Key. Coupon ID. Foreign key to CPWALLET table.

Specified by:
getBcId in interface TempOrderCouponMapAccessBeanData
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 TORCPMAP.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary Key. Foreign key to ORDERS table.

Specified by:
getOrderId in interface TempOrderCouponMapAccessBeanData
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 TORCPMAP.CPWALLET_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary Key. Coupon ID. Foreign key to CPWALLET table.

Specified by:
setBcId in interface TempOrderCouponMapAccessBeanData
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 TORCPMAP.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary Key. Foreign key to ORDERS table.

Specified by:
setOrderId in interface TempOrderCouponMapAccessBeanData
Parameters:
orderId - The order Id.