java.lang.Objectcom.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
com.ibm.commerce.couponpromotion.objects.PromoProdAccessBean
This table contains the purchase conditions for a promotion. If the purchase condition type in CPPMN table was &quo This access bean corresponds to the database table 'CPPMNPROD'.
Constructor Summary | |
PromoProdAccessBean() Zero argument constructor used to initialize the access bean. |
|
PromoProdAccessBean(java.lang.Integer newPromoId, java.lang.Long newItemId, java.lang.Double newItemQty, java.lang.String newQtyMeasure) Maps to a corresponding ejbCreate method in the home interface of the EJB to create an entry in CPPMNPROD table. |
|
PromoProdAccessBean(javax.ejb.EJBObject o) constructor |
Method Summary | |
void | commitCopyHelper() Update(flush) data to the EJBObject (persistent storage). |
protected java.lang.String | defaultJNDIName() |
java.util.Enumeration | findByPromoId(java.lang.Integer paramPromoId) This method executes the following SQL script: SELECT T1.CATENTRY_ID, T1.CPPMN_ID, T1.QTYMEASURE, T1.QUANTITY FROM CPPMNPROD T1 WHERE (T1.CPPMN_ID = ?) |
PromoProdAccessBean | findByPromoIdProdId(java.lang.Integer paramPromoId, java.lang.Long paramProdId) This method executes the following SQl script: SELECT T1.CATENTRY_ID, T1.CPPMN_ID, T1.QTYMEASURE, T1.QUANTITY FROM CPPMNPROD T1 WHERE (T1.CPPMN_ID = ?) AND (T1.CATENTRY_ID = ?) |
java.lang.Long | getItemId() This method provides access to the CPPMNPROD.CATENTRY_ID column of DB2 type BIGINT NOT NULL. |
java.lang.Double | getItemQty() This method provides access to the CPPMNPROD.QUANTITY column of DB2 type FLOAT NOT NULL. |
java.lang.Integer | getPromoId() This method provides access to the CPPMNPROD.CPPMN_ID column of DB2 type INTEGER NOT NULL. |
java.lang.String | getQtyMeasure() This method provides access to the CPPMNPROD.QTYMEASURE column of DB2 type CHAR(16) NOT NULL. |
protected void | instantiateEJB() |
protected boolean | instantiateEJBByPrimaryKey() |
void | refreshCopyHelper() Load data from the EJBObject. |
void | setInitKey_itemId(java.lang.Long newValue) Set the primary key for this object |
void | setInitKey_promoId(java.lang.Integer newValue) Set the primary key for this object |
void | setItemId(java.lang.Long newValue) This method accesses a non-CMP field |
void | setItemQty(java.lang.Double newValue) This method accesses a non-CMP field |
void | setPromoId(java.lang.Integer newValue) This method accesses a non-CMP field |
void | setQtyMeasure(java.lang.String 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 PromoProdAccessBean()
public PromoProdAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
public PromoProdAccessBean(java.lang.Integer newPromoId, java.lang.Long newItemId, java.lang.Double newItemQty, java.lang.String newQtyMeasure) 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 CPPMNPROD table.
Method Detail |
public PromoProdAccessBean findByPromoIdProdId(java.lang.Integer paramPromoId, java.lang.Long paramProdId) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
This method executes the following SQl script: SELECT T1.CATENTRY_ID, T1.CPPMN_ID, T1.QTYMEASURE, T1.QUANTITY FROM CPPMNPROD T1 WHERE (T1.CPPMN_ID = ?) AND (T1.CATENTRY_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.CATENTRY_ID, T1.CPPMN_ID, T1.QTYMEASURE, T1.QUANTITY FROM CPPMNPROD T1 WHERE (T1.CPPMN_ID = ?)
public void setInitKey_itemId(java.lang.Long newValue)
Set the primary key for this object
public void setInitKey_promoId(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.Long getItemId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMNPROD.CATENTRY_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
Foreign key to the CATENTRY table. This is the product ID. This is a primary key.
public void setItemId(java.lang.Long newValue)
public java.lang.String getQtyMeasure() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMNPROD.QTYMEASURE column of DB2 type CHAR(16) NOT NULL.
The following is a description of this column:
Specifies the quantity measure for the item.
public void setQtyMeasure(java.lang.String newValue)
public java.lang.Double getItemQty() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMNPROD.QUANTITY column of DB2 type FLOAT NOT NULL.
The following is a description of this column:
This is the quantity of the item that must be bought to satisfy the condition.
public void setItemQty(java.lang.Double 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 CPPMNPROD.CPPMN_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Foreign key to the CPPMN table. This is a primary key.
public void setPromoId(java.lang.Integer newValue)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.