com.objectwave.persist.bean
Class DefaultEjbSetup

java.lang.Object
  |
  +--com.objectwave.persist.bean.DefaultEjbSetup

public class DefaultEjbSetup
extends java.lang.Object

Do the necessary setup for JGrinder to work in an Ejb environment, assuming all of the defaults.

Version:
$Id: DefaultEjbSetup.java,v 2.3 2001/10/04 19:42:17 dave_hoag Exp $
Author:
dhoag

Constructor Summary
DefaultEjbSetup()
          Constructor for the DefaultEjbSetup object
 
Method Summary
 void initializeRDBBroker(java.lang.String brokerClassName)
          After calling this method, JGrinder Persistence will be integrated into the Ejb environment.
 void initializeRDBBroker(java.lang.String brokerClassName, boolean override)
          After calling this method, JGrinder Persistence will be integrated into the Ejb environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEjbSetup

public DefaultEjbSetup()
Constructor for the DefaultEjbSetup object

Method Detail

initializeRDBBroker

public void initializeRDBBroker(java.lang.String brokerClassName)
                         throws java.lang.ClassNotFoundException,
                                java.lang.IllegalAccessException,
                                java.lang.InstantiationException,
                                java.lang.ClassCastException,
                                javax.naming.NamingException
After calling this method, JGrinder Persistence will be integrated into the Ejb environment. When this is done, JGrinder still generates the SQL and supports the JGrinder proxy realization an query language, but transaction management is done by the container.

Parameters:
brokerClassName - String A name of an RDBBroker class.
Throws:
java.lang.ClassNotFoundException - The name provided in the parameter could not be found.
java.lang.IllegalAccessException - Our code can not reflectively create an instance
java.lang.InstantiationException - This method got an exception attempting to create an instance of the brokerClassName
java.lang.ClassCastException - The broker name provided is not an RDBBroker
javax.naming.NamingException - The Ejb TransactionManager could not be found by jgrinder's EjbTransactionManager at java:/TransactionManager

initializeRDBBroker

public void initializeRDBBroker(java.lang.String brokerClassName,
                                boolean override)
                         throws java.lang.ClassNotFoundException,
                                java.lang.IllegalAccessException,
                                java.lang.InstantiationException,
                                java.lang.ClassCastException,
                                javax.naming.NamingException
After calling this method, JGrinder Persistence will be integrated into the Ejb environment. When this is done, JGrinder still generates the SQL and supports the JGrinder proxy realization an query language, but transaction management is done by the container.

Parameters:
brokerClassName - String A name of an RDBBroker class.
override - Force a reinitialization
Throws:
java.lang.ClassNotFoundException - The name provided in the parameter could not be found.
java.lang.IllegalAccessException - Our code can not reflectively create an instance
java.lang.InstantiationException - This method got an exception attempting to create an instance of the brokerClassName
java.lang.ClassCastException - The broker name provided is not an RDBBroker
javax.naming.NamingException - The Ejb TransactionManager could not be found by jgrinder's EjbTransactionManager at java:/TransactionManager