com.ibm.commerce.marketingcenter.campaign.objects
Class MCCollateralDescriptionJDBCHelperAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractSessionAccessBean
              |
              +--com.ibm.commerce.marketingcenter.campaign.objects.MCCollateralDescriptionJDBCHelperAccessBean
All Implemented Interfaces:
java.io.Serializable

public class MCCollateralDescriptionJDBCHelperAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractSessionAccessBean

This bean provides method to select and update LONG VARCHAR type fields from the COLLDESC table.

The following is a description of the field that is provided access to:

COLLDESC.MARKETINGTEXT - the marketing text of the collateral

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
MCCollateralDescriptionJDBCHelperAccessBean()
          Zero argument constructor used to initialize the access bean.
MCCollateralDescriptionJDBCHelperAccessBean(javax.ejb.EJBObject MCCollateralDescriptionJDBCHelperEJBObj)
          Maps to a corresponding ejbCreate method in the home interface of the EJB.
 
Method Summary
protected  java.lang.String defaultJNDIName()
          Obtain the JNDI name for this EJB
 java.lang.String findCollateralDescriptionMarketingText(java.lang.Integer collateralId, java.lang.Integer languageId)
          This method gets the collateral marketing text of the given collateral.
 java.lang.String findCollateralDescriptionMarketingText(java.lang.Integer collateralId, java.lang.Integer languageId, boolean isFlush)
          This method gets the collateral marketing text of the given collateral.
protected  void instantiateEJB()
          IBM internal use only.
 int updateCollateralDescriptionMarketingText(java.lang.Integer collateralId, java.lang.Integer languageId, java.lang.String marketingText)
          This method updates the collateral marketing text of the given collateral.
 int updateCollateralDescriptionMarketingText(java.lang.Integer collateralId, java.lang.Integer languageId, java.lang.String marketingText, boolean isFlush)
          This method updates the collateral marketing text of the given collateral.
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, resetEJBRef, resetHomeCache, setEJBRef, 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

MCCollateralDescriptionJDBCHelperAccessBean

public MCCollateralDescriptionJDBCHelperAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.marketingcenter.campaign.objects.MCCollateralDescriptionJDBCHelper com.ibm.commerce.marketingcenter.campaign.objects.MCCollateralDescriptionJDBCHelperHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException

MCCollateralDescriptionJDBCHelperAccessBean

public MCCollateralDescriptionJDBCHelperAccessBean(javax.ejb.EJBObject MCCollateralDescriptionJDBCHelperEJBObj)
                                            throws java.rmi.RemoteException
Maps to a corresponding ejbCreate method in the home interface of the EJB.
Parameters:
MCCollateralDescriptionJDBCHelperEJBObj - - a MCCollateralDescriptionJDBCHelper EJBObject reference
Throws:
java.rmi.RemoteException - - Thrown when the ejbCreate method is failed to invoke.
Method Detail

defaultJNDIName

protected java.lang.String defaultJNDIName()
Obtain the JNDI name for this EJB
Overrides:
defaultJNDIName in class com.ibm.ivj.ejb.runtime.AbstractAccessBean
Returns:
java.lang.String - the JNDI name for this EJB

findCollateralDescriptionMarketingText

public java.lang.String findCollateralDescriptionMarketingText(java.lang.Integer collateralId,
                                                               java.lang.Integer languageId)
                                                        throws javax.naming.NamingException,
                                                               java.sql.SQLException,
                                                               java.rmi.RemoteException,
                                                               javax.ejb.CreateException
This method gets the collateral marketing text of the given collateral. This field will be loaded upon successful completion: COLLDESC.MARKETINGTEXT
Parameters:
collateralId - - the internal reference number of the collateral
languageId - - the internal reference number of the language the description is in
Returns:
java.lang.String - the marketing text of the collateral
Throws:
javax.naming.NamingException - - Thrown when a naming exception is encountered.
java.sql.SQLException - - Thrown when an error occurs during the execution of the SQL prepared statement.
java.rmi.RemoteException - - Thrown when the ejbCreate method is failed to invoke.
javax.ejb.CreateException - - Thrown when the creation of the EJB object failed.

findCollateralDescriptionMarketingText

public java.lang.String findCollateralDescriptionMarketingText(java.lang.Integer collateralId,
                                                               java.lang.Integer languageId,
                                                               boolean isFlush)
                                                        throws javax.naming.NamingException,
                                                               java.sql.SQLException,
                                                               java.rmi.RemoteException,
                                                               javax.ejb.CreateException
This method gets the collateral marketing text of the given collateral. This field will be loaded upon successful completion: COLLDESC.MARKETINGTEXT
Parameters:
collateralId - - the internal reference number of the collateral
languageId - - the internal reference number of the language the description is in
isFlush - - the flag indicates that if a flush is needed
Returns:
java.lang.String - the marketing text of the collateral
Throws:
javax.naming.NamingException - - Thrown when a naming exception is encountered.
java.sql.SQLException - - Thrown when an error occurs during the execution of the SQL prepared statement.
java.rmi.RemoteException - - Thrown when the ejbCreate method is failed to invoke.
javax.ejb.CreateException - - Thrown when the creation of the EJB object failed.

instantiateEJB

protected void instantiateEJB()
                       throws javax.ejb.CreateException,
                              java.rmi.RemoteException,
                              javax.naming.NamingException
IBM internal use only.
Overrides:
instantiateEJB in class com.ibm.ivj.ejb.runtime.AbstractAccessBean

updateCollateralDescriptionMarketingText

public int updateCollateralDescriptionMarketingText(java.lang.Integer collateralId,
                                                    java.lang.Integer languageId,
                                                    java.lang.String marketingText)
                                             throws javax.naming.NamingException,
                                                    java.sql.SQLException,
                                                    java.rmi.RemoteException,
                                                    javax.ejb.CreateException
This method updates the collateral marketing text of the given collateral. This field will be updated upon successful completion: COLLDESC.MARKETINGTEXT
Parameters:
collateralId - - the internal reference number of the collateral
languageId - - the internal reference number of the language the description is in
marketingText - - the marketing text of the collateral
Returns:
int - the total number of rows that have been successfully updated
Throws:
javax.naming.NamingException - - Thrown when a naming exception is encountered.
java.sql.SQLException - - Thrown when an error occurs during the execution of the SQL prepared statement.
java.rmi.RemoteException - - Thrown when the ejbCreate method is failed to invoke.
javax.ejb.CreateException - - Thrown when the creation of the EJB object failed.

updateCollateralDescriptionMarketingText

public int updateCollateralDescriptionMarketingText(java.lang.Integer collateralId,
                                                    java.lang.Integer languageId,
                                                    java.lang.String marketingText,
                                                    boolean isFlush)
                                             throws javax.naming.NamingException,
                                                    java.sql.SQLException,
                                                    java.rmi.RemoteException,
                                                    javax.ejb.CreateException
This method updates the collateral marketing text of the given collateral. This field will be updated upon successful completion: COLLDESC.MARKETINGTEXT
Parameters:
collateralId - - the internal reference number of the collateral
languageId - - the internal reference number of the language the description is in
marketingText - - the marketing text of the collateral
isFlush - - the flag indicates that if a flush is needed
Returns:
int - the total number of rows that have been successfully updated
Throws:
javax.naming.NamingException - - Thrown when a naming exception is encountered.
java.sql.SQLException - - Thrown when an error occurs during the execution of the SQL prepared statement.
java.rmi.RemoteException - - Thrown when the ejbCreate method is failed to invoke.
javax.ejb.CreateException - - Thrown when the creation of the EJB object failed.