java.lang.Object | +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean | +--com.ibm.commerce.couponpromotion.objects.PromoDiscAccessBean
This table contains the discount conditions for a promotion. Every coupon has exactly one calculation code.
Constructor Summary | |
---|---|
PromoDiscAccessBean() constructor | |
PromoDiscAccessBean(java.lang.Integer arg0,
java.lang.Integer arg1) constructor | |
PromoDiscAccessBean(javax.ejb.EJBObject o) constructor |
Method Summary | |
---|---|
void |
commitCopyHelper() Update(flush) data to the EJBObject (persistent storage). |
protected
java.lang.String |
defaultJNDIName() |
PromoDiscAccessBean |
findByPromoDiscId(java.lang.Integer arg0) 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 arg0) 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. |
protected
void |
instantiateEJB() |
protected
boolean |
instantiateEJBByPrimaryKey() |
void |
refreshCopyHelper() Load data from the EJBObject. |
void |
setCalcCodeId(java.lang.Integer newValue) This method provides access to the CPPMNDISC.CALCODE_ID column of DB2 type INTEGER NOT NULL. |
void |
setInitKey_promoDiscId(java.lang.Integer newValue) Set the primary key for this object |
void |
setPromoDiscId(java.lang.Integer newValue) This method provides access to the CPPMNDISC.CPPMNDISC_ID column of DB2 type INTEGER NOT NULL. |
void |
setPromoId(java.lang.Integer newValue) This method provides access to the CPPMNDISC.CPPMN_ID column of DB2 type INTEGER NOT NULL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Constructor Detail |
---|
public PromoDiscAccessBean()
public PromoDiscAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
o
- javax.ejb.EJBObjectjava.rmi.RemoteException
public PromoDiscAccessBean(java.lang.Integer arg0, java.lang.Integer arg1) throws javax.naming.NamingException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException
arg0
- java.lang.Integerarg1
- java.lang.Integerjavax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException
javax.ejb.FinderException
Method Detail |
---|
public PromoDiscAccessBean findByPromoDiscId(java.lang.Integer arg0) 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 = ?
java.rmi.RemoteException
- The java.rmi.RemoteException
exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException
exceptionjavax.naming.NamingException
public java.util.Enumeration findByPromoId(java.lang.Integer arg0) 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 = ?
java.rmi.RemoteException
- The java.rmi.RemoteException
exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException
exceptionjavax.naming.NamingException
public void setInitKey_promoDiscId(java.lang.Integer newValue)
Set the primary key for this object
newValue
- java.lang.Integerprotected java.lang.String defaultJNDIName()
protected void instantiateEJB() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException
protected boolean instantiateEJBByPrimaryKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.CreateException
javax.naming.NamingException
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
public void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
public 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. The primary key.
getPromoDiscId
in interface
PromoDiscAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
public void setPromoDiscId(java.lang.Integer newValue)
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. The primary key.
setPromoDiscId
in interface
PromoDiscAccessBeanData
newValue
- java.lang.Integerpublic 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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
public void setCalcCodeId(java.lang.Integer newValue)
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
newValue
- java.lang.Integerpublic 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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
public void setPromoId(java.lang.Integer newValue)
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
newValue
- java.lang.Integer