com.ibm.commerce.couponredemption.objects
Class TempOrderCouponMapAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.couponredemption.objects.TempOrderCouponMapAccessBean
All Implemented Interfaces:
TempOrderCouponMapAccessBeanData

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

This table stores information about the coupons that are applicable on the current shopping cart while the decision support system is running. This access bean corresponds to the database table 'TORCPMAP'.

See Also:
Serialized Form

Constructor Summary
TempOrderCouponMapAccessBean()
Zero argument constructor used to initialize the access bean.
TempOrderCouponMapAccessBean(javax.ejb.EJBObject o)
constructor
TempOrderCouponMapAccessBean(java.lang.Long newOrderId, java.lang.Long newBcId)
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).
protected java.lang.String defaultJNDIName()
TempOrderCouponMapAccessBean findByBcId(java.lang.Long paramBcId)
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 paramOrderId)
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 paramOrderId, java.lang.Long paramBcId)
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.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setBcId(java.lang.Long newValue)
This method accesses a non-CMP field
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 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

TempOrderCouponMapAccessBean

public TempOrderCouponMapAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.couponredemption.objects.TempOrderCouponMap com.ibm.commerce.couponredemption.objimpl.TempOrderCouponMapHomeBase.findByPrimaryKey(com.ibm.commerce.couponredemption.objects.TempOrderCouponMapKey) throws java.rmi.RemoteException,javax.ejb.FinderException The home interface method properties need to be set by calling the following setter methods before calling any business methods: setInitKey_bcId( java.lang.Long ) setInitKey_orderId( java.lang.Long )

TempOrderCouponMapAccessBean

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

TempOrderCouponMapAccessBean

public TempOrderCouponMapAccessBean(java.lang.Long newOrderId,
                                    java.lang.Long newBcId)
                             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.
newBcId - 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

findByBcId

public TempOrderCouponMapAccessBean findByBcId(java.lang.Long paramBcId)
                                        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 = ?)

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

findByOrderIdBcId

public TempOrderCouponMapAccessBean findByOrderIdBcId(java.lang.Long paramOrderId,
                                                      java.lang.Long paramBcId)
                                               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:
paramOrderId - The order Id.
paramBcId - 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

findByOrderId

public java.util.Enumeration findByOrderId(java.lang.Long paramOrderId)
                                    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:
paramOrderId - 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

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

The following is a description of this column:

Foreign key to CPWALLET table. This is the coupon ID. This is a primary key.

Specified by:
getBcId in interface TempOrderCouponMapAccessBeanData
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 accesses a non-CMP field
Specified by:
setBcId in interface TempOrderCouponMapAccessBeanData

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:

Foreign key to ORDERS table. This is a primary key.

Specified by:
getOrderId in interface TempOrderCouponMapAccessBeanData
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 accesses a non-CMP field
Specified by:
setOrderId in interface TempOrderCouponMapAccessBeanData

Feedback