java.lang.Object | +--com.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
Constructor Summary | |
---|---|
PromoProdAccessBean() constructor | |
PromoProdAccessBean(java.lang.Integer arg0, java.lang.Long arg1,
java.lang.Double arg2, java.lang.String arg3) constructor | |
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 arg0) 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 arg0,
java.lang.Long arg1) 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 provides access to the CPPMNPROD.CATENTRY_ID column of DB2 type BIGINT NOT NULL. |
void |
setItemQty(java.lang.Double newValue) This method provides access to the CPPMNPROD.QUANTITY column of DB2 type FLOAT NOT NULL. |
void |
setPromoId(java.lang.Integer newValue) This method provides access to the CPPMNPROD.CPPMN_ID column of DB2 type INTEGER NOT NULL. |
void |
setQtyMeasure(java.lang.String newValue) This method provides access to the CPPMNPROD.QTYMEASURE column of DB2 type CHAR(16) NOT NULL. |
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
o
- javax.ejb.EJBObjectjava.rmi.RemoteException
public PromoProdAccessBean(java.lang.Integer arg0, java.lang.Long arg1, java.lang.Double arg2, java.lang.String arg3) throws javax.naming.NamingException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException
arg0
- java.lang.Integerarg1
- java.lang.Longarg2
- java.lang.Doublearg3
- java.lang.Stringjavax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException
javax.ejb.FinderException
Method Detail |
---|
public PromoProdAccessBean findByPromoIdProdId(java.lang.Integer arg0, java.lang.Long arg1) 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 = ?)
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.CATENTRY_ID, T1.CPPMN_ID, T1.QTYMEASURE, T1.QUANTITY FROM CPPMNPROD 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_itemId(java.lang.Long newValue)
Set the primary key for this object
newValue
- java.lang.Longpublic void setInitKey_promoId(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.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:
Primary key. This is product ID. Foreign key to the CATENTRY table.
getItemId
in interface
PromoProdAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
public void setItemId(java.lang.Long newValue)
This method provides access to the CPPMNPROD.CATENTRY_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
Primary key. This is product ID. Foreign key to the CATENTRY table.
setItemId
in interface
PromoProdAccessBeanData
newValue
- java.lang.Longpublic 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.
getQtyMeasure
in interface
PromoProdAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
public void setQtyMeasure(java.lang.String newValue)
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.
setQtyMeasure
in interface
PromoProdAccessBeanData
newValue
- java.lang.Stringpublic 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 to be bought to satisfy the condition.
getItemQty
in interface
PromoProdAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
public void setItemQty(java.lang.Double newValue)
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 to be bought to satisfy the condition.
setItemQty
in interface
PromoProdAccessBeanData
newValue
- java.lang.Doublepublic 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:
Primary key. Foreign key to the CPPMN table.
getPromoId
in interface
PromoProdAccessBeanData
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 CPPMNPROD.CPPMN_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Primary key. Foreign key to the CPPMN table.
setPromoId
in interface
PromoProdAccessBeanData
newValue
- java.lang.Integer