com.ibm.commerce.marketingcenter.objects
Class MCInitiativeJDBCHelperAccessBean

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

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

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

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

INITIATIVE.RULE - rule XML document of the initiative

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
MCInitiativeJDBCHelperAccessBean()
          Zero argument constructor used to initialize the access bean.
MCInitiativeJDBCHelperAccessBean(javax.ejb.EJBObject MCInitiativeJDBCHelperEJBObj)
          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 findInitiativeRule(java.lang.Integer initiativeId)
          This method gets the rule XML document of the given initiative.
 java.lang.String findInitiativeRule(java.lang.Integer initiativeId, boolean isFlush)
          This method gets the rule XML document of the given initiative.
protected  void instantiateEJB()
          IBM internal use only.
 int updateInitiativeRule(java.lang.Integer initiativeId, java.lang.String rule)
          This method updates the rule XML document of the given initiative.
 int updateInitiativeRule(java.lang.Integer initiativeId, java.lang.String rule, boolean isFlush)
          This method updates the rule XML document of the given initiative.
 
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

MCInitiativeJDBCHelperAccessBean

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

MCInitiativeJDBCHelperAccessBean

public MCInitiativeJDBCHelperAccessBean(javax.ejb.EJBObject MCInitiativeJDBCHelperEJBObj)
                                 throws java.rmi.RemoteException
Maps to a corresponding ejbCreate method in the home interface of the EJB.
Parameters:
MCInitiativeJDBCHelperEJBObj - - a MCInitiativeJDBCHelper 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

findInitiativeRule

public java.lang.String findInitiativeRule(java.lang.Integer initiativeId)
                                    throws javax.naming.NamingException,
                                           java.sql.SQLException,
                                           java.rmi.RemoteException,
                                           javax.ejb.CreateException
This method gets the rule XML document of the given initiative. This field will be loaded upon successful completion: INITIATIVE.RULE
Parameters:
initiativeId - - the internal reference number of the initiative
Returns:
java.lang.String - the rule XML document of the initiative
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.

findInitiativeRule

public java.lang.String findInitiativeRule(java.lang.Integer initiativeId,
                                           boolean isFlush)
                                    throws javax.naming.NamingException,
                                           java.sql.SQLException,
                                           java.rmi.RemoteException,
                                           javax.ejb.CreateException
This method gets the rule XML document of the given initiative. This field will be loaded upon successful completion: INITIATIVE.RULE
Parameters:
initiativeId - - the internal reference number of the initiative
isFlush - - the flag indicates that if a flush is needed
Returns:
java.lang.String - the rule XML document of the initiative
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

updateInitiativeRule

public int updateInitiativeRule(java.lang.Integer initiativeId,
                                java.lang.String rule)
                         throws javax.naming.NamingException,
                                java.sql.SQLException,
                                java.rmi.RemoteException,
                                javax.ejb.CreateException
This method updates the rule XML document of the given initiative. This field will be updated upon successful completion: INITIATIVE.RULE
Parameters:
initiativeId - - the internal reference number of the initiative
rule - - the rule XML document of the initiative
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.

updateInitiativeRule

public int updateInitiativeRule(java.lang.Integer initiativeId,
                                java.lang.String rule,
                                boolean isFlush)
                         throws javax.naming.NamingException,
                                java.sql.SQLException,
                                java.rmi.RemoteException,
                                javax.ejb.CreateException
This method updates the rule XML document of the given initiative. This field will be updated upon successful completion: INITIATIVE.RULE
Parameters:
initiativeId - - the internal reference number of the initiative
rule - - the rule XML document of the initiative
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.