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 that must be in the shopping cart before this coupon is applicable. This access bean corresponds to the database table 'CPPMNORD'.

See Also:
Serialized Form

Constructor Summary
PromoOrderAccessBean()
Zero argument constructor used to initialize the access bean.
PromoOrderAccessBean(java.lang.Integer newPromoId, java.math.BigDecimal newOrderMin)
Maps to a corresponding ejbCreate method in the home interface of the EJB to create an entry in CPPMNORD table.
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 paramPromoId)
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 accesses a non-CMP field
void setOrderMin(java.math.BigDecimal 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

PromoOrderAccessBean

public PromoOrderAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.couponpromotion.objects.PromoOrder com.ibm.commerce.couponpromotion.objimpl.PromoOrderHomeBase.findByPrimaryKey(com.ibm.commerce.couponpromotion.objects.PromoOrderKey) throws java.rmi.RemoteException,javax.ejb.FinderException The home interface method properties need to be set by calling the following setter methods before calling any business methods: setInitKey_promoId( java.lang.Integer )

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 newPromoId,
                            java.math.BigDecimal newOrderMin)
                     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 CPPMNORD table.

Parameters:
newPromoId - The coupon promotion Id.
newOrderMin - The minimum order amount required to redeem the coupon.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
Method Detail

findByPromoId

public PromoOrderAccessBean findByPromoId(java.lang.Integer paramPromoId)
                                   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 = ?

Parameters:
paramPromoId - The coupon promotion 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 that must be 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 accesses a non-CMP field
Specified by:
setOrderMin in interface PromoOrderAccessBeanData

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 allowed 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 accesses a non-CMP field
Specified by:
setOrderMax in interface PromoOrderAccessBeanData

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 accesses a non-CMP field
Specified by:
setPromoId in interface PromoOrderAccessBeanData

Feedback