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.

See Also:
Serialized Form

Constructor Summary
PromoDescriptionAccessBean()
          constructor
PromoDescriptionAccessBean(java.lang.Integer arg0, java.lang.Integer arg1, java.lang.String arg2, java.lang.String arg3, java.lang.String arg4, java.lang.String arg5)
          constructor
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 arg0, java.lang.Integer arg1)
          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 provides access to the CPPMNDESC.FULLIMAGEPATH column of DB2 type VARCHAR(254).
 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 provides access to the CPPMNDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setLongDesc(java.lang.String newValue)
          This method provides access to the CPPMNDESC.LONGDESC column of DB2 type VARCHAR(254).
 void setPromoId(java.lang.Integer newValue)
          This method provides access to the CPPMNDESC.CPPMN_ID column of DB2 type INTEGER NOT NULL.
 void setShortDesc(java.lang.String newValue)
          This method provides access to the CPPMNDESC.SHORTDESC column of DB2 type VARCHAR(64).
 void setThumbNailPath(java.lang.String newValue)
          This method provides access to the CPPMNDESC.THUMBNAILPATH column of DB2 type VARCHAR(254).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PromoDescriptionAccessBean

public PromoDescriptionAccessBean()
constructor

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 arg0,
                                  java.lang.Integer arg1,
                                  java.lang.String arg2,
                                  java.lang.String arg3,
                                  java.lang.String arg4,
                                  java.lang.String arg5)
                           throws javax.naming.NamingException,
                                  javax.ejb.CreateException,
                                  java.rmi.RemoteException,
                                  javax.ejb.FinderException
constructor
Parameters:
arg0 - java.lang.Integer
arg1 - java.lang.Integer
arg2 - java.lang.String
arg3 - java.lang.String
arg4 - java.lang.String
arg5 - java.lang.String
Throws:
javax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException
javax.ejb.FinderException
Method Detail

findByPromoIdLanguageId

public PromoDescriptionAccessBean findByPromoIdLanguageId(java.lang.Integer arg0,
                                                          java.lang.Integer arg1)
                                                   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 = ?)

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.

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

Specified by:
setLongDesc in interface PromoDescriptionAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

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:
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 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:
newValue - java.lang.Integer
Returns:
void

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 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:
setFullImagePath in interface PromoDescriptionAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

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 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:
setThumbNailPath in interface PromoDescriptionAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

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.

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

Specified by:
setShortDesc in interface PromoDescriptionAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

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:
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 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:
newValue - java.lang.Integer
Returns:
void