|
||||||||
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.couponpromotion.objects.CouponPromotionAccessBean
This bean provides access to the CPPMN table.
The following is a description of this table:
This table gives the details of what a promotion is, and reference to its purchase, validity and discount conditions.
Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean |
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef |
Constructor Summary | |
CouponPromotionAccessBean()
Default constructor. |
|
CouponPromotionAccessBean(javax.ejb.EJBObject newCouponPromotionEJB)
This method calls the ejbCreate method to create an entry in CPPMN table. |
|
CouponPromotionAccessBean(java.lang.Integer newInitiativeId,
java.lang.Integer newValidityId,
java.lang.String newPurchaseCondType,
java.lang.Integer newNumSeenAllowed,
java.lang.String newPromoDispType,
java.lang.Integer newNumUseAllowed,
java.lang.Integer newTotalNumOffer,
java.lang.String newCurrency,
java.lang.String newPromoName,
java.lang.String newPromoDesc,
java.sql.Timestamp newStartTime,
java.sql.Timestamp newEndTime,
java.lang.Integer newStoreId)
This method calls ejbCreate method to create an entry in CPPMN table. |
Method Summary | |
void |
commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage). |
CouponPromotionAccessBean |
findByCouponPromotionId(java.lang.Integer couponPromotionId)
This method executes the following SQL Script: SELECT T1.CPPMN_ID, T1.CREATIONTIME, T1.SETCCURR, T1.EARLYBIRDLIMIT, T1.ENDDATE, T1.FIELD1, T1.INITIATIVE_ID, T1.NUMOFFERED, T1.NUMSEENALLOWED, T1.NUMUSEALLOWED, T1.PROMODISPTYPE, T1.CPPMNDESC, T1.CPPMNNAME, T1.PURCHASECONDTYPE, T1.STARTDATE, T1.STATUS, T1.STOREENT_ID, T1.TOTALNUMOFFER, T1.CPPMNVAL_ID FROM CPPMN T1 WHERE T1.CPPMN_ID = ? |
java.util.Enumeration |
findByEndDateBefore(java.sql.Timestamp endDate)
This method executes the following SQL script: SELECT T1.CPPMN_ID, T1.CREATIONTIME, T1.SETCCURR, T1.EARLYBIRDLIMIT, T1.ENDDATE, T1.FIELD1, T1.INITIATIVE_ID, T1.NUMOFFERED, T1.NUMSEENALLOWED, T1.NUMUSEALLOWED, T1.PROMODISPTYPE, T1.CPPMNDESC, T1.CPPMNNAME, T1.PURCHASECONDTYPE, T1.STARTDATE, T1.STATUS, T1.STOREENT_ID, T1.TOTALNUMOFFER, T1.CPPMNVAL_ID FROM CPPMN T1 WHERE T1.ENDDATE < ?. |
java.util.Enumeration |
findByInitiativeId(java.lang.Integer initiativeId)
This method executes the following SQL Script: SELECT T1.CPPMN_ID, T1.CREATIONTIME, T1.SETCCURR, T1.EARLYBIRDLIMIT, T1.ENDDATE, T1.FIELD1, T1.INITIATIVE_ID, T1.NUMOFFERED, T1.NUMSEENALLOWED, T1.NUMUSEALLOWED, T1.PROMODISPTYPE, T1.CPPMNDESC, T1.CPPMNNAME, T1.PURCHASECONDTYPE, T1.STARTDATE, T1.STATUS, T1.STOREENT_ID, T1.TOTALNUMOFFER, T1.CPPMNVAL_ID FROM CPPMN T1 WHERE T1.INITIATIVE_ID = ? |
CouponPromotionAccessBean |
findByPromoNameStoreId(java.lang.String couponPromotionName,
java.lang.Integer storeId)
This method executes the following SQL script: SELECT T1.CPPMN_ID, T1.CREATIONTIME, T1.SETCCURR, T1.EARLYBIRDLIMIT, T1.ENDDATE, T1.FIELD1, T1.INITIATIVE_ID, T1.NUMOFFERED, T1.NUMSEENALLOWED, T1.NUMUSEALLOWED, T1.PROMODISPTYPE, T1.CPPMNDESC, T1.CPPMNNAME, T1.PURCHASECONDTYPE, T1.STARTDATE, T1.STATUS, T1.STOREENT_ID, T1.TOTALNUMOFFER, T1.CPPMNVAL_ID FROM CPPMN T1 WHERE T1.CPPMNNAME = ? AND T1.STOREENT_ID = ? |
java.util.Enumeration |
findByStoreIdStatus(java.lang.Integer storeId,
java.lang.String status)
This method executes the following SQL script: SELECT T1.CPPMN_ID, T1.CREATIONTIME, T1.SETCCURR, T1.EARLYBIRDLIMIT, T1.ENDDATE, T1.FIELD1, T1.INITIATIVE_ID, T1.NUMOFFERED, T1.NUMSEENALLOWED, T1.NUMUSEALLOWED, T1.PROMODISPTYPE, T1.CPPMNDESC, T1.CPPMNNAME, T1.PURCHASECONDTYPE, T1.STARTDATE, T1.STATUS, T1.STOREENT_ID, T1.TOTALNUMOFFER, T1.CPPMNVAL_ID FROM CPPMN T1 WHERE T1.STOREENT_ID = ? AND T1.STATUS = ? |
boolean |
fulfills(java.lang.Long userId,
java.lang.String relationship)
This method is used for access control. |
java.lang.Integer |
getCouponPromotionId()
This method provides access to the CPPMN.CPPMN_ID column of DB2 type INTEGER NOT NULL. |
java.sql.Timestamp |
getCreationTime()
This method provides access to the CPPMN.CREATIONTIME column of DB2 type TIMESTAMP NULL. |
java.lang.String |
getCurrency()
This method provides access to the CPPMN.SETCCURR column of DB2 type CHAR(3) NULL. |
java.lang.Integer |
getEarlyBirdLimit()
This method provides access to the CPPMN.EARLYBIRDLIMIT column of DB2 type INTEGER NULL. |
java.sql.Timestamp |
getEndDate()
This method provides access to the CPPMN.ENDDATE column of DB2 type TIMESTAMP NULL. |
java.lang.String |
getField1()
This method provides access to the CPPMN.FIELD1 column of DB2 type VARCHAR(64) NULL. |
java.lang.Integer |
getInitiativeId()
This method provides access to the CPPMN.INITIATIVE_ID column of DB2 type INTEGER NULL. |
java.lang.Integer |
getNumOffered()
This method provides access to the CPPMN.NUMOFFERED column of DB2 type INTEGER NOT NULL. |
java.lang.Integer |
getNumSeenAllowed()
This method provides access to the CPPMN.NUMSEENALLOWED column of DB2 type INTEGER NOT NULL. |
java.lang.Integer |
getNumUseAllowed()
This method provides access to the CPPMN.NUMUSEALLOWED column of DB2 type INTEGER NOT NULL. |
java.lang.Long |
getOwner()
This method is used for access control. |
java.lang.String |
getPromoDispType()
This method provides access to the CPPMN.PROMODISPTYPE column of DB2 type CHAR(4) NOT NULL. |
java.lang.String |
getPromotionDescription()
This method provides access to the CPPMN.CPPMNDESC column of DB2 type CHAR(254) NULL. |
java.lang.String |
getPromotionName()
This method provides access to the CPPMN.CPPMNNAME column of DB2 type CHAR(64) NOT NULL. |
java.lang.String |
getPurchaseCondType()
This method provides access to the CPPMN.PURCHASECONDTYPE column of DB2 type CHAR(4) NOT NULL. |
java.sql.Timestamp |
getStartDate()
This method provides access to the CPPMN.STARTDATE column of DB2 type TIMESTAMP NOT NULL. |
java.lang.String |
getStatus()
This method provides access to the CPPMN.STATUS column of DB2 type CHAR(1) NOT NULL. |
java.lang.Integer |
getStoreId()
This method provides access to the CPPMN.STOREENT_ID column of DB2 type INTEGER NOT NULL. |
java.lang.Integer |
getTotalNumOffer()
This method provides access to the CPPMN.TOTALNUMOFFER column of DB2 type INTEGER NOT NULL. |
java.lang.Integer |
getValidityId()
This method provides access to the CPPMN.CPPMNVAL_ID column of DB2 type INTEGER NULL. |
void |
refreshCopyHelper()
Load data from the EJBObject. |
void |
setCouponPromotionId(java.lang.Integer couponPromotionId)
This method provides access to the CPPMN.CPPMN_ID column of DB2 type INTEGER NOT NULL. |
void |
setCreationTime(java.sql.Timestamp creationTime)
This method provides access to the CPPMN.CREATIONTIME column of DB2 type TIMESTAMP NULL. |
void |
setCurrency(java.lang.String currency)
This method provides access to the CPPMN.SETCCURR column of DB2 type CHAR(3) NULL. |
void |
setEarlyBirdLimit(java.lang.Integer earlyBirdLimit)
This method provides access to the CPPMN.EARLYBIRDLIMIT column of DB2 type INTEGER NULL. |
void |
setEndDate(java.sql.Timestamp endDate)
This method provides access to the CPPMN.ENDDATE column of DB2 type TIMESTAMP NULL. |
void |
setField1(java.lang.String field1)
This method provides access to the CPPMN.FIELD1 column of DB2 type VARCHAR(64) NULL. |
void |
setInitiativeId(java.lang.Integer initiativeId)
This method provides access to the CPPMN.INITIATIVE_ID column of DB2 type INTEGER NULL. |
void |
setInitKey_couponPromotionId(java.lang.Integer couponPromotionId)
Set the primary key for this object |
void |
setNumOffered(java.lang.Integer numOffered)
This method provides access to the CPPMN.NUMOFFERED column of DB2 type INTEGER NOT NULL. |
void |
setNumSeenAllowed(java.lang.Integer numTimesPromotionOfferedToUser)
This method provides access to the CPPMN.NUMSEENALLOWED column of DB2 type INTEGER NOT NULL. |
void |
setNumUseAllowed(java.lang.Integer numUsesAllowed)
This method provides access to the CPPMN.NUMUSEALLOWED column of DB2 type INTEGER NOT NULL. |
void |
setPromoDispType(java.lang.String promoDisplayType)
This method provides access to the CPPMN.PROMODISPTYPE column of DB2 type CHAR(4) NOT NULL. |
void |
setPromotionDescription(java.lang.String promotionDescription)
This method provides access to the CPPMN.CPPMNDESC column of DB2 type CHAR(254) NULL. |
void |
setPromotionName(java.lang.String promotionName)
This method provides access to the CPPMN.CPPMNNAME column of DB2 type CHAR(64) NOT NULL. |
void |
setPurchaseCondType(java.lang.String purchaseCondType)
This method provides access to the CPPMN.PURCHASECONDTYPE column of DB2 type CHAR(4) NOT NULL. |
void |
setStartDate(java.sql.Timestamp startDate)
This method provides access to the CPPMN.STARTDATE column of DB2 type TIMESTAMP NOT NULL. |
void |
setStatus(java.lang.String couponPromotionStatus)
This method provides access to the CPPMN.STATUS column of DB2 type CHAR(1) NOT NULL. |
void |
setStoreId(java.lang.Integer storeId)
This method provides access to the CPPMN.STOREENT_ID column of DB2 type INTEGER NOT NULL. |
void |
setTotalNumOffer(java.lang.Integer totalNumCouponsOffered)
This method provides access to the CPPMN.TOTALNUMOFFER column of DB2 type INTEGER NOT NULL. |
void |
setValidityId(java.lang.Integer validityId)
This method provides access to the CPPMN.CPPMNVAL_ID column of DB2 type INTEGER 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 CouponPromotionAccessBean()
Default constructor. Maps to findByPrimaryKey.
public CouponPromotionAccessBean(javax.ejb.EJBObject newCouponPromotionEJB) throws java.rmi.RemoteException
This method calls the ejbCreate method to create an entry in CPPMN table.
newCouponPromotionEJB
- The coupon promotion EJB.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic CouponPromotionAccessBean(java.lang.Integer newInitiativeId, java.lang.Integer newValidityId, java.lang.String newPurchaseCondType, java.lang.Integer newNumSeenAllowed, java.lang.String newPromoDispType, java.lang.Integer newNumUseAllowed, java.lang.Integer newTotalNumOffer, java.lang.String newCurrency, java.lang.String newPromoName, java.lang.String newPromoDesc, java.sql.Timestamp newStartTime, java.sql.Timestamp newEndTime, java.lang.Integer newStoreId) throws javax.naming.NamingException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException
This method calls ejbCreate method to create an entry in CPPMN table.
newInitiativeId
- The initiative Id.newValidityId
- The validity Id.newPurchaseCondType
- The purchase condition type (Order or Product)newNumSeenAllowed
- The number of times the coupons of this promotion be allowed to be seen.newPromoDispType
- The Promotion display type(Banner Ad or E-mail or Offerlist)newNumUseAllowed
- The number of times the coupons of this promition be allowed to be used.newTotalNumOffer
- The number of coupons to offer.newCurrency
- The currency.newPromoName
- The coupon promotion name.newPromoDesc
- The coupon promotion description.newStartTime
- The start time of the coupon promotion.newEndTime
- The end time of the coupon promotion.newStoreId
- The store Id.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 CouponPromotionAccessBean findByCouponPromotionId(java.lang.Integer couponPromotionId) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
This method executes the following SQL Script: SELECT T1.CPPMN_ID, T1.CREATIONTIME, T1.SETCCURR, T1.EARLYBIRDLIMIT, T1.ENDDATE, T1.FIELD1, T1.INITIATIVE_ID, T1.NUMOFFERED, T1.NUMSEENALLOWED, T1.NUMUSEALLOWED, T1.PROMODISPTYPE, T1.CPPMNDESC, T1.CPPMNNAME, T1.PURCHASECONDTYPE, T1.STARTDATE, T1.STATUS, T1.STOREENT_ID, T1.TOTALNUMOFFER, T1.CPPMNVAL_ID FROM CPPMN 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 findByEndDateBefore(java.sql.Timestamp endDate) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
This method executes the following SQL script: SELECT T1.CPPMN_ID, T1.CREATIONTIME, T1.SETCCURR, T1.EARLYBIRDLIMIT, T1.ENDDATE, T1.FIELD1, T1.INITIATIVE_ID, T1.NUMOFFERED, T1.NUMSEENALLOWED, T1.NUMUSEALLOWED, T1.PROMODISPTYPE, T1.CPPMNDESC, T1.CPPMNNAME, T1.PURCHASECONDTYPE, T1.STARTDATE, T1.STATUS, T1.STOREENT_ID, T1.TOTALNUMOFFER, T1.CPPMNVAL_ID FROM CPPMN T1 WHERE T1.ENDDATE < ?.
endDate
- The end date of the coupon promotion.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 findByInitiativeId(java.lang.Integer initiativeId) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
This method executes the following SQL Script: SELECT T1.CPPMN_ID, T1.CREATIONTIME, T1.SETCCURR, T1.EARLYBIRDLIMIT, T1.ENDDATE, T1.FIELD1, T1.INITIATIVE_ID, T1.NUMOFFERED, T1.NUMSEENALLOWED, T1.NUMUSEALLOWED, T1.PROMODISPTYPE, T1.CPPMNDESC, T1.CPPMNNAME, T1.PURCHASECONDTYPE, T1.STARTDATE, T1.STATUS, T1.STOREENT_ID, T1.TOTALNUMOFFER, T1.CPPMNVAL_ID FROM CPPMN T1 WHERE T1.INITIATIVE_ID = ?
initiativeId
- The initiative Id.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic CouponPromotionAccessBean findByPromoNameStoreId(java.lang.String couponPromotionName, java.lang.Integer storeId) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
This method executes the following SQL script: SELECT T1.CPPMN_ID, T1.CREATIONTIME, T1.SETCCURR, T1.EARLYBIRDLIMIT, T1.ENDDATE, T1.FIELD1, T1.INITIATIVE_ID, T1.NUMOFFERED, T1.NUMSEENALLOWED, T1.NUMUSEALLOWED, T1.PROMODISPTYPE, T1.CPPMNDESC, T1.CPPMNNAME, T1.PURCHASECONDTYPE, T1.STARTDATE, T1.STATUS, T1.STOREENT_ID, T1.TOTALNUMOFFER, T1.CPPMNVAL_ID FROM CPPMN T1 WHERE T1.CPPMNNAME = ? AND T1.STOREENT_ID = ?
couponPromotionName
- The coupon promotion name.storeId
- The store 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 findByStoreIdStatus(java.lang.Integer storeId, java.lang.String status) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
This method executes the following SQL script: SELECT T1.CPPMN_ID, T1.CREATIONTIME, T1.SETCCURR, T1.EARLYBIRDLIMIT, T1.ENDDATE, T1.FIELD1, T1.INITIATIVE_ID, T1.NUMOFFERED, T1.NUMSEENALLOWED, T1.NUMUSEALLOWED, T1.PROMODISPTYPE, T1.CPPMNDESC, T1.CPPMNNAME, T1.PURCHASECONDTYPE, T1.STARTDATE, T1.STATUS, T1.STOREENT_ID, T1.TOTALNUMOFFER, T1.CPPMNVAL_ID FROM CPPMN T1 WHERE T1.STOREENT_ID = ? AND T1.STATUS = ?
storeId
- The store Idstatus
- The statusjava.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 relationship) throws java.rmi.RemoteException, java.lang.Exception, javax.ejb.FinderException, javax.naming.NamingException
This method is used for access control.
userId
- The user.relationship
- The relationship.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.Integer getCouponPromotionId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMN.CPPMN_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Coupon Promotion ID (primary key).
getCouponPromotionId
in interface CouponPromotionAccessBeanData
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 getCreationTime() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMN.CREATIONTIME column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
Date and time when this entry was made.
getCreationTime
in interface CouponPromotionAccessBeanData
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 getCurrency() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMN.SETCCURR column of DB2 type CHAR(3) NULL.
The following is a description of this column:
The default currency for this promotion. This is a currency code as per ISO 4217 standards.
getCurrency
in interface CouponPromotionAccessBeanData
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 getEarlyBirdLimit() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMN.EARLYBIRDLIMIT column of DB2 type INTEGER NULL.
The following is a description of this column:
Limit for early-bird coupons. If this attribute is NULL, it indicates that the promotion is not of early-bird type.
getEarlyBirdLimit
in interface CouponPromotionAccessBeanData
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 getEndDate() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMN.ENDDATE column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
The date after which this coupon promotion will not be effective.
getEndDate
in interface CouponPromotionAccessBeanData
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 CPPMN.FIELD1 column of DB2 type VARCHAR(64) NULL.
The following is a description of this column:
Customizable.
getField1
in interface CouponPromotionAccessBeanData
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 getInitiativeId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMN.INITIATIVE_ID column of DB2 type INTEGER NULL.
The following is a description of this column:
Foreign Key to the initiative table, to which this promotion belong to.
getInitiativeId
in interface CouponPromotionAccessBeanData
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 getNumOffered() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMN.NUMOFFERED column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Number of coupons already offered from this promotion.
getNumOffered
in interface CouponPromotionAccessBeanData
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 getNumSeenAllowed() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMN.NUMSEENALLOWED column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
This field denotes the number of times this promotion should be offered to the user. Valid for only banner ads not for OfferLists.
getNumSeenAllowed
in interface CouponPromotionAccessBeanData
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 getNumUseAllowed() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMN.NUMUSEALLOWED column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Number of times this coupon can be redeemed.
getNumUseAllowed
in interface CouponPromotionAccessBeanData
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
This 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.String getPromoDispType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMN.PROMODISPTYPE column of DB2 type CHAR(4) NOT NULL.
The following is a description of this column:
How is the promotion communicated with the media. That is, where is it shown. Possible values: B=Banner Ad, E=Email, and O=OfferList.
getPromoDispType
in interface CouponPromotionAccessBeanData
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 getPromotionDescription() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMN.CPPMNDESC column of DB2 type CHAR(254) NULL.
The following is a description of this column:
Description of the coupon promotion (for merchant viewing).
getPromotionDescription
in interface CouponPromotionAccessBeanData
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 getPromotionName() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMN.CPPMNNAME column of DB2 type CHAR(64) NOT NULL.
The following is a description of this column:
Name of the coupon promotion.
getPromotionName
in interface CouponPromotionAccessBeanData
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 getPurchaseCondType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMN.PURCHASECONDTYPE column of DB2 type CHAR(4) NOT NULL.
The following is a description of this column:
This field specifies the promotion purchase condition type. Possible values: P=Product and O=Order.
getPurchaseCondType
in interface CouponPromotionAccessBeanData
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 getStartDate() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMN.STARTDATE column of DB2 type TIMESTAMP NOT NULL.
The following is a description of this column:
The date before which this coupon promotion will not be effective.
getStartDate
in interface CouponPromotionAccessBeanData
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 getStatus() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMN.STATUS column of DB2 type CHAR(1) NOT NULL.
The following is a description of this column:
Indicates the status of the coupon promotion. Valid values: A=active, D=deleted, or E=expired.
getStatus
in interface CouponPromotionAccessBeanData
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 getStoreId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMN.STOREENT_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
The ID of the store that owns this coupon promotion.
getStoreId
in interface CouponPromotionAccessBeanData
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 getTotalNumOffer() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMN.TOTALNUMOFFER column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Number of coupons to be offered for this promotion. This indicates the accepted number of coupons by the customers.
getTotalNumOffer
in interface CouponPromotionAccessBeanData
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 getValidityId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CPPMN.CPPMNVAL_ID column of DB2 type INTEGER NULL.
The following is a description of this column:
Foreign key to CPPMNVAL table.
getValidityId
in interface CouponPromotionAccessBeanData
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 setCouponPromotionId(java.lang.Integer couponPromotionId)
This method provides access to the CPPMN.CPPMN_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Coupon Promotion ID (primary key).
setCouponPromotionId
in interface CouponPromotionAccessBeanData
couponPromotionId
- The coupon promotion Id.public void setCreationTime(java.sql.Timestamp creationTime)
This method provides access to the CPPMN.CREATIONTIME column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
Date and time when this entry was made.
setCreationTime
in interface CouponPromotionAccessBeanData
creationTime
- The creation time.public void setCurrency(java.lang.String currency)
This method provides access to the CPPMN.SETCCURR column of DB2 type CHAR(3) NULL.
The following is a description of this column:
The default currency for this promotion. This is a currency code as per ISO 4217 standards.
setCurrency
in interface CouponPromotionAccessBeanData
currency
- The currency.public void setEarlyBirdLimit(java.lang.Integer earlyBirdLimit)
This method provides access to the CPPMN.EARLYBIRDLIMIT column of DB2 type INTEGER NULL.
The following is a description of this column:
Limit for early-bird coupons. If this attribute is NULL, it indicates that the promotion is not of early-bird type.
setEarlyBirdLimit
in interface CouponPromotionAccessBeanData
earlyBirdLimit
- The limit of early-bird coupons.public void setEndDate(java.sql.Timestamp endDate)
This method provides access to the CPPMN.ENDDATE column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
The date after which this coupon promotion will not be effective.
setEndDate
in interface CouponPromotionAccessBeanData
endDate
- The end date of the coupon promotion.public void setField1(java.lang.String field1)
This method provides access to the CPPMN.FIELD1 column of DB2 type VARCHAR(64) NULL.
The following is a description of this column:
Customizable.
setField1
in interface CouponPromotionAccessBeanData
field1
- The customizable field.public void setInitiativeId(java.lang.Integer initiativeId)
This method provides access to the CPPMN.INITIATIVE_ID column of DB2 type INTEGER NULL.
The following is a description of this column:
Foreign Key to the initiative table, to which this promotion belong to.
setInitiativeId
in interface CouponPromotionAccessBeanData
initiativeId
- The initiative Id.public void setInitKey_couponPromotionId(java.lang.Integer couponPromotionId)
Set the primary key for this object
couponPromotionId
- The coupon promotion Id.public void setNumOffered(java.lang.Integer numOffered)
This method provides access to the CPPMN.NUMOFFERED column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Number of coupons already offered from this promotion.
setNumOffered
in interface CouponPromotionAccessBeanData
numOffered
- The number of coupons already offered.public void setNumSeenAllowed(java.lang.Integer numTimesPromotionOfferedToUser)
This method provides access to the CPPMN.NUMSEENALLOWED column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
This field denotes the number of times this promotion should be offered to the user. Valid for only banner ads not for OfferLists.
setNumSeenAllowed
in interface CouponPromotionAccessBeanData
numTimesPromotionOfferedToUser
- The number of times the coupon promotion should be offered to the user.public void setNumUseAllowed(java.lang.Integer numUsesAllowed)
This method provides access to the CPPMN.NUMUSEALLOWED column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Number of times this coupon can be redeemed.
setNumUseAllowed
in interface CouponPromotionAccessBeanData
numUsesAllowed
- The number of times a coupon of this promotion be allowed to use.public void setPromoDispType(java.lang.String promoDisplayType)
This method provides access to the CPPMN.PROMODISPTYPE column of DB2 type CHAR(4) NOT NULL.
The following is a description of this column:
How is the promotion communicated with the media. That is, where is it shown. Possible values: B=Banner Ad, E=Email, and O=OfferList.
setPromoDispType
in interface CouponPromotionAccessBeanData
promoDisplayType
- The promotion display media (Banner Ad, e-mail or offerlist)public void setPromotionDescription(java.lang.String promotionDescription)
This method provides access to the CPPMN.CPPMNDESC column of DB2 type CHAR(254) NULL.
The following is a description of this column:
Description of the coupon promotion (for merchant viewing).
setPromotionDescription
in interface CouponPromotionAccessBeanData
promotionDescription
- The coupon promotion description.public void setPromotionName(java.lang.String promotionName)
This method provides access to the CPPMN.CPPMNNAME column of DB2 type CHAR(64) NOT NULL.
The following is a description of this column:
Name of the coupon promotion.
setPromotionName
in interface CouponPromotionAccessBeanData
promotionName
- The coupon promotion name.public void setPurchaseCondType(java.lang.String purchaseCondType)
This method provides access to the CPPMN.PURCHASECONDTYPE column of DB2 type CHAR(4) NOT NULL.
The following is a description of this column:
This field specifies the promotion purchase condition type. Possible values: P=Product and O=Order.
setPurchaseCondType
in interface CouponPromotionAccessBeanData
purchaseCondType
- The purchase condition type(product or order).public void setStartDate(java.sql.Timestamp startDate)
This method provides access to the CPPMN.STARTDATE column of DB2 type TIMESTAMP NOT NULL.
The following is a description of this column:
The date before which this coupon promotion will not be effective.
setStartDate
in interface CouponPromotionAccessBeanData
startDate
- The start date of the coupon promotion.public void setStatus(java.lang.String couponPromotionStatus)
This method provides access to the CPPMN.STATUS column of DB2 type CHAR(1) NOT NULL.
The following is a description of this column:
Indicates the status of the coupon promotion. Valid values: A=active, D=deleted, or E=expired.
setStatus
in interface CouponPromotionAccessBeanData
couponPromotionStatus
- The status of the coupon promotion.public void setStoreId(java.lang.Integer storeId)
This method provides access to the CPPMN.STOREENT_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
The ID of the store that owns this coupon promotion.
setStoreId
in interface CouponPromotionAccessBeanData
storeId
- The store Id.public void setTotalNumOffer(java.lang.Integer totalNumCouponsOffered)
This method provides access to the CPPMN.TOTALNUMOFFER column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Number of coupons to be offered for this promotion. This indicates the accepted number of coupons by the customers.
setTotalNumOffer
in interface CouponPromotionAccessBeanData
totalNumCouponsOffered
- The total number of coupons to offer.public void setValidityId(java.lang.Integer validityId)
This method provides access to the CPPMN.CPPMNVAL_ID column of DB2 type INTEGER NULL.
The following is a description of this column:
Foreign key to CPPMNVAL table.
setValidityId
in interface CouponPromotionAccessBeanData
validityId
- The validity Id.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |