com.ibm.commerce.couponwallet.objects
Class CouponWalletAccessBean

java.lang.Object
  |
  +--AbstractEntityAccessBean
        |
        +--com.ibm.commerce.couponwallet.objects.CouponWalletAccessBean
All Implemented Interfaces:
CouponWalletAccessBeanData

public class CouponWalletAccessBean
extends AbstractEntityAccessBean
implements CouponWalletAccessBeanData

This table contains the coupons that the user has accepted. CouponWalletAccessBean

See Also:
Serialized Form

Constructor Summary
CouponWalletAccessBean()
          constructor
CouponWalletAccessBean(java.lang.Integer newPromoId, java.lang.Long newShopperId, java.lang.String newState, java.lang.String newAcceptFromType)
          CouponWalletAccessBean constructor
CouponWalletAccessBean(javax.ejb.EJBObject o)
          CouponWalletAccessBean constructor
 
Method Summary
 void commitCopyHelper()
          commitCopyHelper
 java.lang.String defaultJNDIName()
          defaultJNDIName
  CouponWalletAccessBean findByBcId(java.lang.Long paramBcId)
          This method executes the following SQL script: SELECT T1.TIMEACCEPT, T1.USERS_ID, T1.STATE, T1.CPPMN_ID, T1.NUMUSE, T1.ACCEPTFROMTYPE, T1.CPWALLET_ID, T1.FIELD1 FROM CPWALLET T1 WHERE T1.CPWALLET_ID = ?
 java.util.Enumeration findByCppmnId(java.lang.Integer paramCppmnId)
          This method executes the following SQL script: SELECT T1.TIMEACCEPT, T1.USERS_ID, T1.STATE, T1.CPPMN_ID, T1.NUMUSE, T1.ACCEPTFROMTYPE, T1.CPWALLET_ID, T1.FIELD1 FROM CPWALLET T1 WHERE T1.CPPMN_ID = ?
 java.util.Enumeration findByCppmnIdAndShopperId(java.lang.Integer paramCppmnId, java.lang.Long paramShopperId)
          findByCppmnIdAndShopperId
 java.util.Enumeration findByShopperIdState(java.lang.Long paramShopperId, java.lang.String paramState)
          This method executes the following SQL script: SELECT T1.TIMEACCEPT, T1.USERS_ID, T1.STATE, T1.CPPMN_ID, T1.NUMUSE, T1.ACCEPTFROMTYPE, T1.CPWALLET_ID, T1.FIELD1 FROM CPWALLET T1 WHERE (T1.USERS_ID = ?) AND (T1.STATE = ?)
 boolean fulfills(java.lang.Long arg0, java.lang.String arg1)
          fulfills
 java.lang.String getAcceptFromType()
          This method provides access to the CPWALLET.ACCEPTFROMTYPE column of DB2 type CHAR(4) NOT NULL.
 java.lang.Long getBcId()
          This method provides access to the CPWALLET.CPWALLET_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getField1()
          This method provides access to the CPWALLET.FIELD1 column of DB2 type VARCHAR(64) NULL.
 java.lang.Integer getNumUse()
          This method provides access to the CPWALLET.NUMUSE column of DB2 type INTEGER NOT NULL.
 java.lang.Long getOwner()
          This method accesses a non-CMP field
 java.lang.Integer getPromoId()
          This method provides access to the CPWALLET.CPPMN_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Long getShopperId()
          This method provides access to the CPWALLET.USERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getState()
          This method provides access to the CPWALLET.STATE column of DB2 type CHAR(4) NOT NULL.
 java.sql.Timestamp getTimeAccept()
          This method provides access to the CPWALLET.TIMEACCEPT column of DB2 type TIMESTAMP NULL.
protected  void instantiateEJB()
          instantiateEJB
protected  boolean instantiateEJBByPrimaryKey()
          instantiateEJBByPrimaryKey
 void refreshCopyHelper()
          refreshCopyHelper
 void setAcceptFromType(java.lang.String newValue)
          This method provides access to the CPWALLET.ACCEPTFROMTYPE column of DB2 type CHAR(4) NOT NULL.
 void setField1(java.lang.String newValue)
          This method provides access to the CPWALLET.FIELD1 column of DB2 type VARCHAR(64) NULL.
 void setInitKey_bcId(java.lang.Long newValue)
          setInitKey_bcId
 void setNumUse(java.lang.Integer newValue)
          This method provides access to the CPWALLET.NUMUSE column of DB2 type INTEGER NOT NULL.
 void setPromoId(java.lang.Integer newValue)
          This method provides access to the CPWALLET.CPPMN_ID column of DB2 type INTEGER NOT NULL.
 void setShopperId(java.lang.Long newValue)
          This method provides access to the CPWALLET.USERS_ID column of DB2 type BIGINT NOT NULL.
 void setState(java.lang.String newValue)
          This method provides access to the CPWALLET.STATE column of DB2 type CHAR(4) NOT NULL.
 void setTimeAccept(java.sql.Timestamp newValue)
          This method provides access to the CPWALLET.TIMEACCEPT column of DB2 type TIMESTAMP NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CouponWalletAccessBean

public CouponWalletAccessBean()
constructor

CouponWalletAccessBean

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

CouponWalletAccessBean

public CouponWalletAccessBean(java.lang.Integer newPromoId,
                              java.lang.Long newShopperId,
                              java.lang.String newState,
                              java.lang.String newAcceptFromType)
                       throws javax.naming.NamingException,
                              javax.ejb.FinderException,
                              javax.ejb.CreateException,
                              java.rmi.RemoteException
CouponWalletAccessBean constructor
Parameters:
newPromoId - java.lang.Integer
newShopperId - java.lang.Long
newState - java.lang.String
newAcceptFromType - java.lang.String
Throws:
javax.naming.NamingException
javax.ejb.FinderException
javax.ejb.CreateException
java.rmi.RemoteException
Method Detail

getAcceptFromType

public java.lang.String getAcceptFromType()
                                   throws java.rmi.RemoteException,
                                          javax.ejb.CreateException,
                                          javax.ejb.FinderException,
                                          javax.naming.NamingException

This method provides access to the CPWALLET.ACCEPTFROMTYPE column of DB2 type CHAR(4) NOT NULL.

The following is a description of this column:

Indicates from where the coupon was accepted: B = banner advertisement. E = e-mail. O = offerlist.

Specified by:
getAcceptFromType in interface CouponWalletAccessBeanData
Returns:
The acceptance method(banner ad, e-mail or offerlist).
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setAcceptFromType

public void setAcceptFromType(java.lang.String newValue)

This method provides access to the CPWALLET.ACCEPTFROMTYPE column of DB2 type CHAR(4) NOT NULL.

The following is a description of this column:

Indicates from where the coupon was accepted: B = banner advertisement. E = e-mail. O = offerlist.

Specified by:
setAcceptFromType in interface CouponWalletAccessBeanData
Throws:
java.rmi.RemoteException

getBcId

public java.lang.Long getBcId()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

This method provides access to the CPWALLET.CPWALLET_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Primary Key.

Specified by:
getBcId in interface CouponWalletAccessBeanData
Returns:
The coupon Id.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getField1

public java.lang.String getField1()
                           throws java.rmi.RemoteException,
                                  javax.ejb.CreateException,
                                  javax.ejb.FinderException,
                                  javax.naming.NamingException

This method provides access to the CPWALLET.FIELD1 column of DB2 type VARCHAR(64) NULL.

The following is a description of this column:

Customizable.

Specified by:
getField1 in interface CouponWalletAccessBeanData
Returns:
The customizable field.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setField1

public void setField1(java.lang.String newValue)

This method provides access to the CPWALLET.FIELD1 column of DB2 type VARCHAR(64) NULL.

The following is a description of this column:

Customizable.

Specified by:
setField1 in interface CouponWalletAccessBeanData
Throws:
java.rmi.RemoteException

getNumUse

public java.lang.Integer getNumUse()
                            throws java.rmi.RemoteException,
                                   javax.ejb.CreateException,
                                   javax.ejb.FinderException,
                                   javax.naming.NamingException

This method provides access to the CPWALLET.NUMUSE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Number of times this coupon has been used.

Specified by:
getNumUse in interface CouponWalletAccessBeanData
Returns:
The number of times coupon has been used.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setNumUse

public void setNumUse(java.lang.Integer newValue)

This method provides access to the CPWALLET.NUMUSE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Number of times this coupon has been used.

Specified by:
setNumUse in interface CouponWalletAccessBeanData
Throws:
java.rmi.RemoteException

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 CPWALLET.CPPMN_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Promotion ID. Foreign key to CPPMN table.

Specified by:
getPromoId in interface CouponWalletAccessBeanData
Returns:
The coupon promotion id.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setPromoId

public void setPromoId(java.lang.Integer newValue)

This method provides access to the CPWALLET.CPPMN_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Promotion ID. Foreign key to CPPMN table.

Specified by:
setPromoId in interface CouponWalletAccessBeanData
Throws:
java.rmi.RemoteException

getShopperId

public java.lang.Long getShopperId()
                            throws java.rmi.RemoteException,
                                   javax.ejb.CreateException,
                                   javax.ejb.FinderException,
                                   javax.naming.NamingException

This method provides access to the CPWALLET.USERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Customer ID. Foreign key to USERS table.

Specified by:
getShopperId in interface CouponWalletAccessBeanData
Returns:
The user Id.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setShopperId

public void setShopperId(java.lang.Long newValue)

This method provides access to the CPWALLET.USERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Customer ID. Foreign key to USERS table.

Specified by:
setShopperId in interface CouponWalletAccessBeanData
Throws:
java.rmi.RemoteException

getState

public java.lang.String getState()
                          throws java.rmi.RemoteException,
                                 javax.ejb.CreateException,
                                 javax.ejb.FinderException,
                                 javax.naming.NamingException

This method provides access to the CPWALLET.STATE column of DB2 type CHAR(4) NOT NULL.

The following is a description of this column:

State of the coupon, where U=Usable, D=Deleted, N=Not Usable, and E=Expired.

Specified by:
getState in interface CouponWalletAccessBeanData
Returns:
The state of the coupon in the wallet.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setState

public void setState(java.lang.String newValue)

This method provides access to the CPWALLET.STATE column of DB2 type CHAR(4) NOT NULL.

The following is a description of this column:

State of the coupon, where U=Usable, D=Deleted, N=Not Usable, and E=Expired.

Specified by:
setState in interface CouponWalletAccessBeanData
Throws:
java.rmi.RemoteException

getTimeAccept

public java.sql.Timestamp getTimeAccept()
                                 throws java.rmi.RemoteException,
                                        javax.ejb.CreateException,
                                        javax.ejb.FinderException,
                                        javax.naming.NamingException

This method provides access to the CPWALLET.TIMEACCEPT column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time when the table entry was made.

Specified by:
getTimeAccept in interface CouponWalletAccessBeanData
Returns:
The time at which coupon was accepted.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setTimeAccept

public void setTimeAccept(java.sql.Timestamp newValue)

This method provides access to the CPWALLET.TIMEACCEPT column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time when the table entry was made.

Specified by:
setTimeAccept in interface CouponWalletAccessBeanData
Throws:
java.rmi.RemoteException

setInitKey_bcId

public void setInitKey_bcId(java.lang.Long newValue)
setInitKey_bcId

Set the primary key for this object

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

defaultJNDIName

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

instantiateEJB

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

instantiateEJBByPrimaryKey

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

refreshCopyHelper

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

Load data from the EJBObject.

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

commitCopyHelper

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

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

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

findByShopperIdState

public java.util.Enumeration findByShopperIdState(java.lang.Long paramShopperId,
                                                  java.lang.String paramState)
                                           throws javax.naming.NamingException,
                                                  javax.ejb.FinderException,
                                                  java.rmi.RemoteException

This method executes the following SQL script: SELECT T1.TIMEACCEPT, T1.USERS_ID, T1.STATE, T1.CPPMN_ID, T1.NUMUSE, T1.ACCEPTFROMTYPE, T1.CPWALLET_ID, T1.FIELD1 FROM CPWALLET T1 WHERE (T1.USERS_ID = ?) AND (T1.STATE = ?)

Parameters:
paramShopperId - The user Id.
paramState - The state of the coupon.
Returns:
The rows from CPWALLET table.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByCppmnId

public java.util.Enumeration findByCppmnId(java.lang.Integer paramCppmnId)
                                    throws javax.naming.NamingException,
                                           javax.ejb.FinderException,
                                           java.rmi.RemoteException

This method executes the following SQL script: SELECT T1.TIMEACCEPT, T1.USERS_ID, T1.STATE, T1.CPPMN_ID, T1.NUMUSE, T1.ACCEPTFROMTYPE, T1.CPWALLET_ID, T1.FIELD1 FROM CPWALLET T1 WHERE T1.CPPMN_ID = ?

Parameters:
paramCppmnId - The coupon promotion id.
Returns:
The rows from CPWALLET table.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByCppmnIdAndShopperId

public java.util.Enumeration findByCppmnIdAndShopperId(java.lang.Integer paramCppmnId,
                                                       java.lang.Long paramShopperId)
                                                throws javax.naming.NamingException,
                                                       javax.ejb.FinderException,
                                                       java.rmi.RemoteException
findByCppmnIdAndShopperId
Parameters:
paramCppmnId - java.lang.Integer
paramShopperId - java.lang.Long
Returns:
java.util.Enumeration
Throws:
javax.naming.NamingException
javax.ejb.FinderException
java.rmi.RemoteException

findByBcId

public CouponWalletAccessBean findByBcId(java.lang.Long paramBcId)
                                  throws javax.naming.NamingException,
                                         javax.ejb.FinderException,
                                         java.rmi.RemoteException

This method executes the following SQL script: SELECT T1.TIMEACCEPT, T1.USERS_ID, T1.STATE, T1.CPPMN_ID, T1.NUMUSE, T1.ACCEPTFROMTYPE, T1.CPWALLET_ID, T1.FIELD1 FROM CPWALLET T1 WHERE T1.CPWALLET_ID = ?

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

getOwner

public java.lang.Long getOwner()
                        throws javax.naming.NamingException,
                               javax.ejb.FinderException,
                               java.lang.Exception,
                               java.rmi.RemoteException
This method accesses a non-CMP field
javax.naming.NamingException
javax.ejb.FinderException
java.lang.Exception
java.rmi.RemoteException

fulfills

public boolean fulfills(java.lang.Long arg0,
                        java.lang.String arg1)
                 throws javax.naming.NamingException,
                        javax.ejb.FinderException,
                        java.lang.Exception,
                        java.rmi.RemoteException
fulfills
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.String
Returns:
boolean
Throws:
javax.naming.NamingException
javax.ejb.FinderException
java.lang.Exception
java.rmi.RemoteException