java.lang.Objectcom.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. This access bean corresponds to the database table 'CPPMNDISC'.
Constructor Summary | |
PromoDiscAccessBean() Zero argument constructor used to initialize the access bean. |
|
PromoDiscAccessBean(java.lang.Integer paramPromoId, java.lang.Integer paramCalcCodeId) Maps to a corresponding ejbCreate method in the home interface of the EJB to create an entry in CPPMNDISC table. |
|
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 paramPromoDiscid) 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 paramPromoId) 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 accesses a non-CMP field |
void | setInitKey_promoDiscId(java.lang.Integer newValue) Set the primary key for this object |
void | setPromoDiscId(java.lang.Integer newValue) This method accesses a non-CMP field |
void | setPromoId(java.lang.Integer 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 |
public PromoDiscAccessBean()
public PromoDiscAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
public PromoDiscAccessBean(java.lang.Integer paramPromoId, java.lang.Integer paramCalcCodeId) 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.
Method Detail |
public PromoDiscAccessBean findByPromoDiscId(java.lang.Integer paramPromoDiscid) 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 = ?
public java.util.Enumeration findByPromoId(java.lang.Integer paramPromoId) 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 = ?
public void setInitKey_promoDiscId(java.lang.Integer newValue)
Set the primary key for this object
protected java.lang.String defaultJNDIName()
protected void instantiateEJB() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
protected boolean instantiateEJBByPrimaryKey() throws 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).
public void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
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.
public void setPromoDiscId(java.lang.Integer newValue)
public 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.
public void setCalcCodeId(java.lang.Integer newValue)
public 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.
public void setPromoId(java.lang.Integer newValue)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.