com.ibm.commerce.couponpromotion.objects
Class PromoDescriptionAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.couponpromotion.objects.PromoDescriptionAccessBean
All Implemented Interfaces:
PromoDescriptionAccessBeanData

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

This table contains the language specific description of the promotion. This access bean corresponds to the database table 'CPPMNDESC'.

See Also:
Serialized Form

Constructor Summary
PromoDescriptionAccessBean()
Zero argument constructor used to initialize the access bean.
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.
PromoDescriptionAccessBean(javax.ejb.EJBObject o)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
PromoDescriptionAccessBean findByPromoIdLanguageId(java.lang.Integer newPromoId, java.lang.Integer newLanguageId)
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).
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).
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).
java.lang.String getThumbNailPath()
This method provides access to the CPPMNDESC.THUMBNAILPATH column of DB2 type VARCHAR(254).
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setFullImagePath(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_languageId(java.lang.Integer newValue)
Set the primary key for this object
void setInitKey_promoId(java.lang.Integer newValue)
Set the primary key for this object
void setLanguageId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setLongDesc(java.lang.String newValue)
This method accesses a non-CMP field
void setPromoId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setShortDesc(java.lang.String newValue)
This method accesses a non-CMP field
void setThumbNailPath(java.lang.String newValue)
This method accesses a non-CMP field
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

PromoDescriptionAccessBean

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

PromoDescriptionAccessBean

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

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

findByPromoIdLanguageId

public PromoDescriptionAccessBean findByPromoIdLanguageId(java.lang.Integer newPromoId,
                                                          java.lang.Integer newLanguageId)
                                                   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:
newPromoId - The coupon promotion Id
newLanguageId - 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

setInitKey_languageId

public void setInitKey_languageId(java.lang.Integer newValue)

Set the primary key for this object

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

setInitKey_promoId

public void setInitKey_promoId(java.lang.Integer newValue)

Set the primary key for this object

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

defaultJNDIName

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

instantiateEJB

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

instantiateEJBByPrimaryKey

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

commitCopyHelper

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

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

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

refreshCopyHelper

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

Load data from the EJBObject.

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

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

The following is a description of this column:

Long description of the promotion for this language.

Specified by:
getLongDesc in interface PromoDescriptionAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setLongDesc

public void setLongDesc(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setLongDesc in interface PromoDescriptionAccessBeanData

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:

Foreign key to LANGUAGE table. For a list of language components, see the LANGUAGE table. This is a primary key.

Specified by:
getLanguageId in interface PromoDescriptionAccessBeanData
Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setLanguageId

public void setLanguageId(java.lang.Integer newValue)
This method accesses a non-CMP field
Specified by:
setLanguageId in interface PromoDescriptionAccessBeanData

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

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:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setFullImagePath

public void setFullImagePath(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setFullImagePath in interface PromoDescriptionAccessBeanData

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

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:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setThumbNailPath

public void setThumbNailPath(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setThumbNailPath in interface PromoDescriptionAccessBeanData

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

The following is a description of this column:

Short description of the promotion for this language.

Specified by:
getShortDesc in interface PromoDescriptionAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setShortDesc

public void setShortDesc(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setShortDesc in interface PromoDescriptionAccessBeanData

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:

Foreign key to the CPPMN table. This is a primary key.

Specified by:
getPromoId in interface PromoDescriptionAccessBeanData
Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setPromoId

public void setPromoId(java.lang.Integer newValue)
This method accesses a non-CMP field
Specified by:
setPromoId in interface PromoDescriptionAccessBeanData

Feedback