|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.ivj.ejb.runtime.AbstractAccessBean | +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean | +--com.ibm.commerce.couponwallet.objects.CouponWalletAccessBean
This bean provides access to the CPWALLET table.
The following is a description of this table:
This table contains the coupons that the user has accepted.
Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean |
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef |
Constructor Summary | |
CouponWalletAccessBean()
Default constructor. |
|
CouponWalletAccessBean(javax.ejb.EJBObject newCouponWalletEJB)
Maps to a corresponding ejbCreate method in the home interface of the EJB to create an entry in CPWALLET table. |
|
CouponWalletAccessBean(java.lang.Integer newPromoId,
java.lang.Long newUserId,
java.lang.String newState,
java.lang.String newAcceptFromType)
Maps to a corresponding ejbCreate method in the home interface of the EJB to create an entry in CPWALLET table. |
Method Summary | |
void |
commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage). |
CouponWalletAccessBean |
findByBcId(java.lang.Long aDByBcId)
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 couponPromotionId)
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 |
findByShopperIdState(java.lang.Long userId,
java.lang.String couponState)
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 userId,
java.lang.String relation)
This method is used for access control. |
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()
thsi method is used for access control. |
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. |
void |
refreshCopyHelper()
Load data from the EJBObject. |
void |
setAcceptFromType(java.lang.String acceptanceMethod)
This method provides access to the CPWALLET.ACCEPTFROMTYPE column of DB2 type CHAR(4) NOT NULL. |
void |
setBcId(java.lang.Long couponId)
This method provides access to the CPWALLET.CPWALLET_ID column of DB2 type BIGINT NOT NULL. |
void |
setField1(java.lang.String field1)
This method provides access to the CPWALLET.FIELD1 column of DB2 type VARCHAR(64) NULL. |
void |
setInitKey_bcId(java.lang.Long couponId)
Set the primary key for this object |
void |
setNumUse(java.lang.Integer numTimesCouponUsed)
This method provides access to the CPWALLET.NUMUSE column of DB2 type INTEGER NOT NULL. |
void |
setPromoId(java.lang.Integer couponPromotionId)
This method provides access to the CPWALLET.CPPMN_ID column of DB2 type INTEGER NOT NULL. |
void |
setShopperId(java.lang.Long shopperId)
This method provides access to the CPWALLET.USERS_ID column of DB2 type BIGINT NOT NULL. |
void |
setState(java.lang.String couponState)
This method provides access to the CPWALLET.STATE column of DB2 type CHAR(4) NOT NULL. |
void |
setTimeAccept(java.sql.Timestamp timeOfAdditionToWallet)
This method provides access to the CPWALLET.TIMEACCEPT column of DB2 type TIMESTAMP NULL. |
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean |
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef |
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean |
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CouponWalletAccessBean()
Default constructor. Maps to findByPrimaryKey.
public CouponWalletAccessBean(javax.ejb.EJBObject newCouponWalletEJB) throws java.rmi.RemoteException
Maps to a corresponding ejbCreate method in the home interface of the EJB to create an entry in CPWALLET table.
newCouponWalletEJB
- The coupon wallet EJB.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic CouponWalletAccessBean(java.lang.Integer newPromoId, java.lang.Long newUserId, java.lang.String newState, java.lang.String newAcceptFromType) 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 CPWALLET table.
newPromoId
- The coupon promotion Id.newUserId
- The user Id.newState
- The state of the coupon.newAcceptFromType
- The accept type (banner Ad or e-mail or offerlist).javax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionMethod Detail |
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
commitCopyHelper
in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic CouponWalletAccessBean findByBcId(java.lang.Long aDByBcId) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
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 = ?
couponId
- The coupon Id.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.util.Enumeration findByCppmnId(java.lang.Integer couponPromotionId) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
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 = ?
couponPromotionId
- The coupon promotion id.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.util.Enumeration findByShopperIdState(java.lang.Long userId, java.lang.String couponState) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
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 = ?)
userId
- The user Id.couponState
- The state of the coupon.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic boolean fulfills(java.lang.Long userId, java.lang.String relation) throws java.rmi.RemoteException, java.lang.Exception, javax.ejb.FinderException, javax.naming.NamingException
This method is used for access control.
userId
- The user Id.relation
- The relation.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjava.lang.Exception
- The java.lang.Exception exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getAcceptFromType
in interface CouponWalletAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getBcId
in interface CouponWalletAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getField1
in interface CouponWalletAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getNumUse
in interface CouponWalletAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.lang.Long getOwner() throws java.lang.Exception, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
thsi method is used for access control.
java.lang.Exception
- The java.lang.Exception exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getPromoId
in interface CouponWalletAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getShopperId
in interface CouponWalletAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getState
in interface CouponWalletAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getTimeAccept
in interface CouponWalletAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
refreshCopyHelper
in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic void setAcceptFromType(java.lang.String acceptanceMethod)
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.
setAcceptFromType
in interface CouponWalletAccessBeanData
acceptanceMethod
- The acceptance method(banner ad, e-mail or offerlist).public void setBcId(java.lang.Long couponId)
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.
setBcId
in interface CouponWalletAccessBeanData
couponId
- The coupon id.public void setField1(java.lang.String field1)
This method provides access to the CPWALLET.FIELD1 column of DB2 type VARCHAR(64) NULL.
The following is a description of this column:
Customizable.
setField1
in interface CouponWalletAccessBeanData
field1
- The customizable field.public void setInitKey_bcId(java.lang.Long couponId)
Set the primary key for this object
couponId
- The coupon Id.public void setNumUse(java.lang.Integer numTimesCouponUsed)
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.
setNumUse
in interface CouponWalletAccessBeanData
numTimesCouponUsed
- The number of times a coupon has been used.public void setPromoId(java.lang.Integer couponPromotionId)
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.
setPromoId
in interface CouponWalletAccessBeanData
couponPromotionId
- The coupon promotion Id.public void setShopperId(java.lang.Long shopperId)
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.
setShopperId
in interface CouponWalletAccessBeanData
shopperId
- The shopper Id.public void setState(java.lang.String couponState)
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.
setState
in interface CouponWalletAccessBeanData
couponState
- The state of the coupon in the wallet.public void setTimeAccept(java.sql.Timestamp timeOfAdditionToWallet)
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.
setTimeAccept
in interface CouponWalletAccessBeanData
timeOfAdditionToWallet
- The time at which coupon was added to coupon wallet.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |