|
||||||||
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.couponpromotion.objects.PromoDiscAccessBean
This bean provides access to the CPPMNDISC table.
The following is a description of this table:
This table contains the discount conditions for a promotion. Every coupon has exactly one calculation code.
Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean |
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef |
Constructor Summary | |
PromoDiscAccessBean()
Default constructor. |
|
PromoDiscAccessBean(javax.ejb.EJBObject newPromoDiscEJB)
Maps to a corresponding ejbCreate method in the home interface of the EJB to create an entry in CPPMNDISC table. |
|
PromoDiscAccessBean(java.lang.Integer newPromoId,
java.lang.Integer newCalcCodeId)
Maps to a corresponding ejbCreate method in the home interface of the EJB to create an entry in CPPMNDISC table. |
Method Summary | |
void |
commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage). |
PromoDiscAccessBean |
findByPromoDiscId(java.lang.Integer promotionDiscountId)
This method executes the following SQL script: SELECT T1.CPPMNDISC_ID, T1.CPPMN_ID, T1.CALCODE_ID FROM CPPMNDISC T1 WHERE T1.CPPMNDISC_ID = ? |
java.util.Enumeration |
findByPromoId(java.lang.Integer promotionId)
This method executes the following SQL Script: SELECT T1.CPPMNDISC_ID, T1.CPPMN_ID, T1.CALCODE_ID FROM CPPMNDISC T1 WHERE T1.CPPMN_ID = ? |
java.lang.Integer |
getCalcCodeId()
This method provides access to the CPPMNDISC.CALCODE_ID column of DB2 type INTEGER NOT NULL. |
java.lang.Integer |
getPromoDiscId()
This method provides access to the CPPMNDISC.CPPMNDISC_ID column of DB2 type INTEGER NOT NULL. |
java.lang.Integer |
getPromoId()
This method provides access to the CPPMNDISC.CPPMN_ID column of DB2 type INTEGER NOT NULL. |
void |
refreshCopyHelper()
Load data from the EJBObject. |
void |
setCalcCodeId(java.lang.Integer calcCodeId)
This method provides access to the CPPMNDISC.CALCODE_ID column of DB2 type INTEGER NOT NULL. |
void |
setInitKey_promoDiscId(java.lang.Integer promotionDiscountId)
Set the primary key for this object |
void |
setPromoDiscId(java.lang.Integer promotionDiscountId)
This method provides access to the CPPMNDISC.CPPMNDISC_ID column of DB2 type INTEGER NOT NULL. |
void |
setPromoId(java.lang.Integer promotionId)
This method provides access to the CPPMNDISC.CPPMN_ID column of DB2 type INTEGER 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 PromoDiscAccessBean()
Default constructor. Maps to findByPrimaryKey.
public PromoDiscAccessBean(javax.ejb.EJBObject newPromoDiscEJB) throws java.rmi.RemoteException
Maps to a corresponding ejbCreate method in the home interface of the EJB to create an entry in CPPMNDISC table.
newPromoDiscEJB
- The coupon promotion discount EJB.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic PromoDiscAccessBean(java.lang.Integer newPromoId, java.lang.Integer newCalcCodeId) 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 CPPMNDISC table.
newPromoId
- The coupon promotion Id.newCalcCodeId
- The calculation code Id.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 PromoDiscAccessBean findByPromoDiscId(java.lang.Integer promotionDiscountId) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
This method executes the following SQL script: SELECT T1.CPPMNDISC_ID, T1.CPPMN_ID, T1.CALCODE_ID FROM CPPMNDISC T1 WHERE T1.CPPMNDISC_ID = ?
promotionDiscountId
- The coupon promotion discount Id.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.util.Enumeration findByPromoId(java.lang.Integer promotionId) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
This method executes the following SQL Script: SELECT T1.CPPMNDISC_ID, T1.CPPMN_ID, T1.CALCODE_ID FROM CPPMNDISC T1 WHERE T1.CPPMN_ID = ?
promotionId
- The coupon promotion Id.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.lang.Integer getCalcCodeId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMNDISC.CALCODE_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Foreign key to the CALCCODE table to represent discount condition for the promotion.
getCalcCodeId
in interface PromoDiscAccessBeanData
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.Integer getPromoDiscId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMNDISC.CPPMNDISC_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Coupon Discount ID, primary key.
getPromoDiscId
in interface PromoDiscAccessBeanData
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.Integer getPromoId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMNDISC.CPPMN_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Foreign key to the CPPMN table.
getPromoId
in interface PromoDiscAccessBeanData
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 setCalcCodeId(java.lang.Integer calcCodeId)
This method provides access to the CPPMNDISC.CALCODE_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Foreign key to the CALCCODE table to represent discount condition for the promotion.
setCalcCodeId
in interface PromoDiscAccessBeanData
calcCodeId
- The calcode Id.public void setInitKey_promoDiscId(java.lang.Integer promotionDiscountId)
Set the primary key for this object
promotionDiscountId
- The coupon promotion discount Id.public void setPromoDiscId(java.lang.Integer promotionDiscountId)
This method provides access to the CPPMNDISC.CPPMNDISC_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Coupon Discount ID, primary key.
setPromoDiscId
in interface PromoDiscAccessBeanData
promotionDiscountId
- The coupon promotion discount Id.public void setPromoId(java.lang.Integer promotionId)
This method provides access to the CPPMNDISC.CPPMN_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Foreign key to the CPPMN table.
setPromoId
in interface PromoDiscAccessBeanData
promotionId
- The coupon promotion Id.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |