com.ibm.commerce.couponpromotion.objects
Class PromoOrderAccessBean

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

public class PromoOrderAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements PromoOrderAccessBeanData

This table contains the minimum purchase amount in the shopping cart for this coupon to be applicable to.

See Also:
Serialized Form

Constructor Summary
PromoOrderAccessBean()
          constructor
PromoOrderAccessBean(java.lang.Integer arg0, java.math.BigDecimal arg1)
          constructor
PromoOrderAccessBean(javax.ejb.EJBObject o)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
  PromoOrderAccessBean findByPromoId(java.lang.Integer arg0)
          This method executes the following SQL script: SELECT T1.ORDERMAX, T1.ORDERMIN, T1.CPPMN_ID FROM CPPMNORD T1 WHERE T1.CPPMN_ID = ?
 java.math.BigDecimal getOrderMax()
          This method provides access to the CPPMNORD.ORDERMAX column of DB2 type DECIMAL(20 5).
 java.math.BigDecimal getOrderMin()
          This method provides access to the CPPMNORD.ORDERMIN column of DB2 type DECIMAL(20 5) NOT NULL.
 java.lang.Integer getPromoId()
          This method provides access to the CPPMNORD.CPPMN_ID column of DB2 type INTEGER NOT NULL.
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_promoId(java.lang.Integer newValue)
          Set the primary key for this object
 void setOrderMax(java.math.BigDecimal newValue)
          This method provides access to the CPPMNORD.ORDERMAX column of DB2 type DECIMAL(20 5).
 void setOrderMin(java.math.BigDecimal newValue)
          This method provides access to the CPPMNORD.ORDERMIN column of DB2 type DECIMAL(20 5) NOT NULL.
 void setPromoId(java.lang.Integer newValue)
          This method provides access to the CPPMNORD.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

PromoOrderAccessBean

public PromoOrderAccessBean()
constructor

PromoOrderAccessBean

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

PromoOrderAccessBean

public PromoOrderAccessBean(java.lang.Integer arg0,
                            java.math.BigDecimal arg1)
                     throws javax.naming.NamingException,
                            javax.ejb.CreateException,
                            java.rmi.RemoteException,
                            javax.ejb.FinderException
constructor
Parameters:
arg0 - java.lang.Integer
arg1 - java.math.BigDecimal
Throws:
javax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException
javax.ejb.FinderException
Method Detail

findByPromoId

public PromoOrderAccessBean findByPromoId(java.lang.Integer arg0)
                                   throws java.rmi.RemoteException,
                                          javax.ejb.FinderException,
                                          javax.naming.NamingException

This method executes the following SQL script: SELECT T1.ORDERMAX, T1.ORDERMIN, T1.CPPMN_ID FROM CPPMNORD T1 WHERE T1.CPPMN_ID = ?

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

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

getOrderMin

public java.math.BigDecimal getOrderMin()
                                 throws java.rmi.RemoteException,
                                        javax.ejb.CreateException,
                                        javax.ejb.FinderException,
                                        javax.naming.NamingException

This method provides access to the CPPMNORD.ORDERMIN column of DB2 type DECIMAL(20 5) NOT NULL.

The following is a description of this column:

Minimum purchase amount in the shopping cart.

Specified by:
getOrderMin in interface PromoOrderAccessBeanData
Returns:
java.math.BigDecimal
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setOrderMin

public void setOrderMin(java.math.BigDecimal newValue)

This method provides access to the CPPMNORD.ORDERMIN column of DB2 type DECIMAL(20 5) NOT NULL.

The following is a description of this column:

Minimum purchase amount in the shopping cart.

Specified by:
setOrderMin in interface PromoOrderAccessBeanData
Parameters:
newValue - java.math.BigDecimal
Returns:
void

getOrderMax

public java.math.BigDecimal getOrderMax()
                                 throws java.rmi.RemoteException,
                                        javax.ejb.CreateException,
                                        javax.ejb.FinderException,
                                        javax.naming.NamingException

This method provides access to the CPPMNORD.ORDERMAX column of DB2 type DECIMAL(20 5).

The following is a description of this column:

Maximum purchase amount in the shopping cart.

Specified by:
getOrderMax in interface PromoOrderAccessBeanData
Returns:
java.math.BigDecimal
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setOrderMax

public void setOrderMax(java.math.BigDecimal newValue)

This method provides access to the CPPMNORD.ORDERMAX column of DB2 type DECIMAL(20 5).

The following is a description of this column:

Maximum purchase amount in the shopping cart.

Specified by:
setOrderMax in interface PromoOrderAccessBeanData
Parameters:
newValue - java.math.BigDecimal
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 CPPMNORD.CPPMN_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Foreign key to the CPPMN table.

Specified by:
getPromoId in interface PromoOrderAccessBeanData
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 CPPMNORD.CPPMN_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Foreign key to the CPPMN table.

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