com.ibm.commerce.couponpromotion.objects
Class PromoProdAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
        |
        +--com.ibm.commerce.couponpromotion.objects.PromoProdAccessBean
All Implemented Interfaces:
PromoProdAccessBeanData

public class PromoProdAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements PromoProdAccessBeanData

This table contains the purchase conditions for a promotion. If the purchase condition type in CPPMN table was &quo

See Also:
Serialized Form

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

PromoProdAccessBean

public PromoProdAccessBean()
constructor

PromoProdAccessBean

public PromoProdAccessBean(javax.ejb.EJBObject o)
                    throws java.rmi.RemoteException
constructor
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException

PromoProdAccessBean

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
constructor
Parameters:
arg0 - java.lang.Integer
arg1 - java.lang.Long
arg2 - java.lang.Double
arg3 - java.lang.String
Throws:
javax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException
javax.ejb.FinderException
Method Detail

findByPromoIdProdId

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 = ?)

Returns:
The row from CPPMNPROD table.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByPromoId

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 = ?)

Returns:
The rows from CPPMNPROD table.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

setInitKey_itemId

public void setInitKey_itemId(java.lang.Long newValue)

Set the primary key for this object

Parameters:
newValue - java.lang.Long
Returns:
void

setInitKey_promoId

public void setInitKey_promoId(java.lang.Integer newValue)

Set the primary key for this object

Parameters:
newValue - java.lang.Integer
Returns:
void

defaultJNDIName

protected java.lang.String defaultJNDIName()
Returns:
String

instantiateEJB

protected void instantiateEJB()
                       throws java.rmi.RemoteException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException
Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

instantiateEJBByPrimaryKey

protected boolean instantiateEJBByPrimaryKey()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.naming.NamingException
Returns:
boolean
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.naming.NamingException

commitCopyHelper

public void commitCopyHelper()
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException

Update(flush) data to the EJBObject (persistent storage).

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getItemId

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.

Specified by:
getItemId in interface PromoProdAccessBeanData
Returns:
java.lang.Long
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setItemId

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.

Specified by:
setItemId in interface PromoProdAccessBeanData
Parameters:
newValue - java.lang.Long
Returns:
void

getQtyMeasure

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.

Specified by:
getQtyMeasure in interface PromoProdAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setQtyMeasure

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.

Specified by:
setQtyMeasure in interface PromoProdAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

getItemQty

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 to be bought to satisfy the condition.

Specified by:
getItemQty in interface PromoProdAccessBeanData
Returns:
java.lang.Double
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setItemQty

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.

Specified by:
setItemQty in interface PromoProdAccessBeanData
Parameters:
newValue - java.lang.Double
Returns:
void

getPromoId

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:

Primary key. Foreign key to the CPPMN table.

Specified by:
getPromoId in interface PromoProdAccessBeanData
Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setPromoId

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.

Specified by:
setPromoId in interface PromoProdAccessBeanData
Parameters:
newValue - java.lang.Integer
Returns:
void