com.ibm.commerce.couponredemption.objects
Class TempCouponItemMapAccessBean

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

public class TempCouponItemMapAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements TempCouponItemMapAccessBeanData

This table stores all the items from the shopping cart that are applicable to the current coupon for the Coupon Decision Support system.

See Also:
Serialized Form

Constructor Summary
TempCouponItemMapAccessBean()
          constructor
TempCouponItemMapAccessBean(javax.ejb.EJBObject o)
          constructor
TempCouponItemMapAccessBean(java.lang.Long arg0, java.lang.Long arg1, java.math.BigDecimal arg2)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByBcId(java.lang.Long arg0)
          This method executes the following SQL script: SELECT T1.ORDERITEMS_ID, T1.CPWALLET_ID, T1.DISCAMT FROM TCPITMAP T1 WHERE (T1.CPWALLET_ID = ?)
 java.lang.Long getBcId()
          This method provides access to the TCPITMAP.CPWALLET_ID column of DB2 type BIGINT NOT NULL.
 java.math.BigDecimal getDiscAmt()
          This method provides access to the TCPITMAP.DISCAMT column of DB2 type DECIMAL(20 5) NOT NULL.
 java.lang.Long getItemId()
          This method provides access to the TCPITMAP.ORDERITEMS_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 TCPITMAP.CPWALLET_ID column of DB2 type BIGINT NOT NULL.
 void setDiscAmt(java.math.BigDecimal newValue)
          This method provides access to the TCPITMAP.DISCAMT column of DB2 type DECIMAL(20 5) NOT NULL.
 void setInitKey_bcId(java.lang.Long newValue)
          Set the primary key for this object
 void setInitKey_itemId(java.lang.Long newValue)
          Set the primary key for this object
 void setItemId(java.lang.Long newValue)
          This method provides access to the TCPITMAP.ORDERITEMS_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

TempCouponItemMapAccessBean

public TempCouponItemMapAccessBean()
constructor

TempCouponItemMapAccessBean

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

TempCouponItemMapAccessBean

public TempCouponItemMapAccessBean(java.lang.Long arg0,
                                   java.lang.Long arg1,
                                   java.math.BigDecimal arg2)
                            throws javax.naming.NamingException,
                                   javax.ejb.CreateException,
                                   java.rmi.RemoteException,
                                   javax.ejb.FinderException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.Long
arg2 - java.math.BigDecimal
Throws:
javax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException
javax.ejb.FinderException
Method Detail

findByBcId

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

This method executes the following SQL script: SELECT T1.ORDERITEMS_ID, T1.CPWALLET_ID, T1.DISCAMT FROM TCPITMAP T1 WHERE (T1.CPWALLET_ID = ?)

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

setInitKey_itemId

public void setInitKey_itemId(java.lang.Long newValue)

Set the primary key for this object

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

setInitKey_bcId

public void setInitKey_bcId(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

getItemId

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

This method provides access to the TCPITMAP.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary Key. Foreign key to ORDERITEMS table.

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

setItemId

public void setItemId(java.lang.Long newValue)

This method provides access to the TCPITMAP.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary Key. Foreign key to ORDERITEMS table.

Specified by:
setItemId in interface TempCouponItemMapAccessBeanData
Parameters:
newValue - java.lang.Long
Returns:
void

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

The following is a description of this column:

Primary Key. Foreign key to CPWALLET table.

Specified by:
getBcId in interface TempCouponItemMapAccessBeanData
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 TCPITMAP.CPWALLET_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary Key. Foreign key to CPWALLET table.

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

getDiscAmt

public java.math.BigDecimal getDiscAmt()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException

This method provides access to the TCPITMAP.DISCAMT column of DB2 type DECIMAL(20 5) NOT NULL.

The following is a description of this column:

The discount amount for this item when this coupon is used.

Specified by:
getDiscAmt in interface TempCouponItemMapAccessBeanData
Returns:
java.math.BigDecimal
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setDiscAmt

public void setDiscAmt(java.math.BigDecimal newValue)

This method provides access to the TCPITMAP.DISCAMT column of DB2 type DECIMAL(20 5) NOT NULL.

The following is a description of this column:

The discount amount for this item when this coupon is used.

Specified by:
setDiscAmt in interface TempCouponItemMapAccessBeanData
Parameters:
newValue - java.math.BigDecimal
Returns:
void