com.ibm.commerce.couponpromotion.objects
Class PromoDescriptionAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.couponpromotion.objects.PromoDescriptionAccessBean
All Implemented Interfaces:
PromoDescriptionAccessBeanData, java.io.Serializable

public class PromoDescriptionAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements PromoDescriptionAccessBeanData

This bean provides access to the CPPMNDESC table.

The following is a description of this table:

This table contains the language specific description of the promotion.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
PromoDescriptionAccessBean()
          Default constructor.
PromoDescriptionAccessBean(javax.ejb.EJBObject newPromoDescEJB)
          Maps to a corresponding ejbCreate method in the home interface of the EJB to create an entry in CPPMNDESC table.
PromoDescriptionAccessBean(java.lang.Integer newPromoId, java.lang.Integer newLanguageId, java.lang.String newThumbNailPath, java.lang.String newFullImagePath, java.lang.String newShortDesc, java.lang.String newLongDesc)
          This method calls the ejbCreate method to create an entry in CPPMNDESC table.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 PromoDescriptionAccessBean findByPromoIdLanguageId(java.lang.Integer couponPromotionId, java.lang.Integer languageId)
          This method executes the following SQl script: SELECT T1.CPPMN_ID, T1.THUMBNAILPATH, T1.LONGDESC, T1.SHORTDESC, T1.LANGUAGE_ID, T1.FULLIMAGEPATH FROM CPPMNDESC T1 WHERE (T1.CPPMN_ID = ?) AND (T1.LANGUAGE_ID = ?)
 java.lang.String getFullImagePath()
          This method provides access to the CPPMNDESC.FULLIMAGEPATH column of DB2 type VARCHAR(254) NULL.
 java.lang.Integer getLanguageId()
          This method provides access to the CPPMNDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getLongDesc()
          This method provides access to the CPPMNDESC.LONGDESC column of DB2 type VARCHAR(254) NULL.
 java.lang.Integer getPromoId()
          This method provides access to the CPPMNDESC.CPPMN_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getShortDesc()
          This method provides access to the CPPMNDESC.SHORTDESC column of DB2 type VARCHAR(64) NULL.
 java.lang.String getThumbNailPath()
          This method provides access to the CPPMNDESC.THUMBNAILPATH column of DB2 type VARCHAR(254) NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setFullImagePath(java.lang.String fullImagePath)
          This method provides access to the CPPMNDESC.FULLIMAGEPATH column of DB2 type VARCHAR(254) NULL.
 void setInitKey_languageId(java.lang.Integer languageId)
          Set the primary key for this object
 void setInitKey_promoId(java.lang.Integer promoId)
          Set the primary key for this object
 void setLanguageId(java.lang.Integer languageId)
          This method provides access to the CPPMNDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setLongDesc(java.lang.String longDesc)
          This method provides access to the CPPMNDESC.LONGDESC column of DB2 type VARCHAR(254) NULL.
 void setPromoId(java.lang.Integer promoId)
          This method provides access to the CPPMNDESC.CPPMN_ID column of DB2 type INTEGER NOT NULL.
 void setShortDesc(java.lang.String shortDesc)
          This method provides access to the CPPMNDESC.SHORTDESC column of DB2 type VARCHAR(64) NULL.
 void setThumbNailPath(java.lang.String thumbNailPath)
          This method provides access to the CPPMNDESC.THUMBNAILPATH column of DB2 type VARCHAR(254) 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

PromoDescriptionAccessBean

public PromoDescriptionAccessBean()

Default constructor. Maps to findByPrimaryKey.


PromoDescriptionAccessBean

public PromoDescriptionAccessBean(javax.ejb.EJBObject newPromoDescEJB)
                           throws java.rmi.RemoteException

Maps to a corresponding ejbCreate method in the home interface of the EJB to create an entry in CPPMNDESC table.

Parameters:
newPromoDescEJB - The Coupon promotion description EJB.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

PromoDescriptionAccessBean

public PromoDescriptionAccessBean(java.lang.Integer newPromoId,
                                  java.lang.Integer newLanguageId,
                                  java.lang.String newThumbNailPath,
                                  java.lang.String newFullImagePath,
                                  java.lang.String newShortDesc,
                                  java.lang.String newLongDesc)
                           throws javax.naming.NamingException,
                                  javax.ejb.CreateException,
                                  java.rmi.RemoteException,
                                  javax.ejb.FinderException

This method calls the ejbCreate method to create an entry in CPPMNDESC table.

Parameters:
newPromoId - The Promotion Id.
newLanguageId - The language Id.
newThumbNailPath - The directory path of the thumbnail image of the coupon.
newFullImagePath - The directory path of the full image of the coupon.
newShortDesc - The short description of the coupon.
newLongDesc - The long description.
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

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).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByPromoIdLanguageId

public PromoDescriptionAccessBean findByPromoIdLanguageId(java.lang.Integer couponPromotionId,
                                                          java.lang.Integer languageId)
                                                   throws javax.naming.NamingException,
                                                          java.rmi.RemoteException,
                                                          javax.ejb.CreateException,
                                                          javax.ejb.FinderException

This method executes the following SQl script: SELECT T1.CPPMN_ID, T1.THUMBNAILPATH, T1.LONGDESC, T1.SHORTDESC, T1.LANGUAGE_ID, T1.FULLIMAGEPATH FROM CPPMNDESC T1 WHERE (T1.CPPMN_ID = ?) AND (T1.LANGUAGE_ID = ?)

Parameters:
couponPromotionId - The coupon promotion Id
languageId - The language Id.
Returns:
The row from CPPMNDESC table.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception

getFullImagePath

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

This method provides access to the CPPMNDESC.FULLIMAGEPATH column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Path of the full image to be shown for this promotion for this language.

Specified by:
getFullImagePath in interface PromoDescriptionAccessBeanData
Returns:
The full image path of the coupon promotion.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getLanguageId

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

This method provides access to the CPPMNDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Primary key. Foreign key to LANGUAGE table. For a list of language components, see the LANGUAGE table.

Specified by:
getLanguageId in interface PromoDescriptionAccessBeanData
Returns:
The language Id.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getLongDesc

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

This method provides access to the CPPMNDESC.LONGDESC column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Long description of the promotion.

Specified by:
getLongDesc in interface PromoDescriptionAccessBeanData
Returns:
The long description of the coupon promotion.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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

The following is a description of this column:

Primary Key. Foreign key to CPPMN table.

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

getShortDesc

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

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

The following is a description of this column:

Short description of the promotion.

Specified by:
getShortDesc in interface PromoDescriptionAccessBeanData
Returns:
The short description of the coupon promotion.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getThumbNailPath

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

This method provides access to the CPPMNDESC.THUMBNAILPATH column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Path of the thumbnail to be shown for this promotion for this language.

Specified by:
getThumbNailPath in interface PromoDescriptionAccessBeanData
Returns:
The tumb nail path of the coupon promotion.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

refreshCopyHelper

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

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setFullImagePath

public void setFullImagePath(java.lang.String fullImagePath)

This method provides access to the CPPMNDESC.FULLIMAGEPATH column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Path of the full image to be shown for this promotion for this language.

Specified by:
setFullImagePath in interface PromoDescriptionAccessBeanData
Parameters:
fullImagePath - The full image path of the coupon promotion.

setInitKey_languageId

public void setInitKey_languageId(java.lang.Integer languageId)

Set the primary key for this object

Parameters:
languageId - The language Id.

setInitKey_promoId

public void setInitKey_promoId(java.lang.Integer promoId)

Set the primary key for this object

Parameters:
promoId - The coupon promotion Id.

setLanguageId

public void setLanguageId(java.lang.Integer languageId)

This method provides access to the CPPMNDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Primary key. Foreign key to LANGUAGE table. For a list of language components, see the LANGUAGE table.

Specified by:
setLanguageId in interface PromoDescriptionAccessBeanData
Parameters:
languageId - The language Id.

setLongDesc

public void setLongDesc(java.lang.String longDesc)

This method provides access to the CPPMNDESC.LONGDESC column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Long description of the promotion.

Specified by:
setLongDesc in interface PromoDescriptionAccessBeanData
Parameters:
longDesc - The long description of the coupon promotion.

setPromoId

public void setPromoId(java.lang.Integer promoId)

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

The following is a description of this column:

Primary Key. Foreign key to CPPMN table.

Specified by:
setPromoId in interface PromoDescriptionAccessBeanData
Parameters:
promoId - The coupon promotion Id.

setShortDesc

public void setShortDesc(java.lang.String shortDesc)

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

The following is a description of this column:

Short description of the promotion.

Specified by:
setShortDesc in interface PromoDescriptionAccessBeanData
Parameters:
shortDesc - The short description of the coupon promotion.

setThumbNailPath

public void setThumbNailPath(java.lang.String thumbNailPath)

This method provides access to the CPPMNDESC.THUMBNAILPATH column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Path of the thumbnail to be shown for this promotion for this language.

Specified by:
setThumbNailPath in interface PromoDescriptionAccessBeanData
Parameters:
thumbNailPath - The thumbnail path of the coupon promotion.