|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.ivj.ejb.runtime.AbstractAccessBean | +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean | +--com.ibm.commerce.couponredemption.objects.TempCouponItemMapAccessBean
This bean provides access to the TCPITMAP table.
The following is a description of this table:
This table stores all the items from the shopping cart that are applicable to the current coupon for the Coupon Decision Support system.
Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean |
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef |
Constructor Summary | |
TempCouponItemMapAccessBean()
Default constructor. |
|
TempCouponItemMapAccessBean(javax.ejb.EJBObject newTempCouponItemMapEJB)
Maps to a corresponding ejbCreate method in the home interface of the EJB to make an entry in TCPITMAP table. |
|
TempCouponItemMapAccessBean(java.lang.Long newCPWalletId,
java.lang.Long newItemId,
java.math.BigDecimal newDiscAmt)
Maps to a corresponding ejbCreate method in the home interface of the EJB to create an entry in TCPITMAP table. |
Method Summary | |
void |
commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage). |
java.util.Enumeration |
findByBcId(java.lang.Long couponId)
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. |
void |
refreshCopyHelper()
Load data from the EJBObject. |
void |
setBcId(java.lang.Long couponId)
This method provides access to the TCPITMAP.CPWALLET_ID column of DB2 type BIGINT NOT NULL. |
void |
setDiscAmt(java.math.BigDecimal discountAmount)
This method provides access to the TCPITMAP.DISCAMT column of DB2 type DECIMAL(20,5) NOT NULL. |
void |
setInitKey_bcId(java.lang.Long couponId)
Set the primary key for this object |
void |
setInitKey_itemId(java.lang.Long itemId)
Set the primary key for this object |
void |
setItemId(java.lang.Long itemId)
This method provides access to the TCPITMAP.ORDERITEMS_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 |
public TempCouponItemMapAccessBean()
Default constructor. Maps to findByPrimaryKey.
public TempCouponItemMapAccessBean(javax.ejb.EJBObject newTempCouponItemMapEJB) throws java.rmi.RemoteException
Maps to a corresponding ejbCreate method in the home interface of the EJB to make an entry in TCPITMAP table.
newTempCouponItemMapEJB
- The temporary coupon Item map EJB.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic TempCouponItemMapAccessBean(java.lang.Long newCPWalletId, java.lang.Long newItemId, java.math.BigDecimal newDiscAmt) 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 TCPITMAP table.
newCPWalletId
- The coupon Id.newItemId
- The product Id.newDiscAmt
- The discount amount.javax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionMethod Detail |
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
commitCopyHelper
in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.util.Enumeration findByBcId(java.lang.Long couponId) 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 = ?)
couponId
- The coupon Id.javax.ejb.CreateException
- The javax.ejb.CreateException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionpublic 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.
getBcId
in interface TempCouponItemMapAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getDiscAmt
in interface TempCouponItemMapAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getItemId
in interface TempCouponItemMapAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
refreshCopyHelper
in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic void setBcId(java.lang.Long couponId)
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.
setBcId
in interface TempCouponItemMapAccessBeanData
couponId
- The coupon Id.public void setDiscAmt(java.math.BigDecimal discountAmount)
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.
setDiscAmt
in interface TempCouponItemMapAccessBeanData
discountAmount
- The discount amount.public void setInitKey_bcId(java.lang.Long couponId)
Set the primary key for this object
couponId
- the coupon Id.public void setInitKey_itemId(java.lang.Long itemId)
Set the primary key for this object
itemId
- The product Id.public void setItemId(java.lang.Long itemId)
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.
setItemId
in interface TempCouponItemMapAccessBeanData
itemId
- The product Id.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |