org.apache.openjpa.jdbc.kernel
Class JDBCBrokerFactory

java.lang.Object
  extended by org.apache.openjpa.kernel.AbstractBrokerFactory
      extended by org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory
All Implemented Interfaces:
java.io.Serializable, org.apache.openjpa.kernel.BrokerFactory, org.apache.openjpa.lib.util.Closeable

public class JDBCBrokerFactory
extends org.apache.openjpa.kernel.AbstractBrokerFactory

BrokerFactory type for use with the JDBC runtime.

Author:
Abe White, Marc Prud'hommeaux
See Also:
Serialized Form

Constructor Summary
JDBCBrokerFactory(JDBCConfiguration conf)
          Construct the factory with the given option settings; however, the factory construction methods are recommended.
 
Method Summary
static JDBCBrokerFactory getInstance(org.apache.openjpa.lib.conf.ConfigurationProvider cp)
          Factory method for obtaining a possibly-pooled factory from properties.
static JDBCBrokerFactory getInstance(JDBCConfiguration conf)
          Factory method for constructing a factory from a configuration.
 java.util.Properties getProperties()
           
protected  org.apache.openjpa.kernel.BrokerImpl newBrokerImpl(java.lang.String user, java.lang.String pass)
           
static JDBCBrokerFactory newInstance(org.apache.openjpa.lib.conf.ConfigurationProvider cp)
          Factory method for constructing a factory from properties.
protected  org.apache.openjpa.kernel.StoreManager newStoreManager()
           
 
Methods inherited from class org.apache.openjpa.kernel.AbstractBrokerFactory
addLifecycleListener, addLifecycleListeners, close, configureBroker, findBroker, findTransactionalBroker, getConfiguration, getPooledFactory, getPooledFactory, getUserObject, isClosed, lock, makeReadOnly, newBroker, newBroker, newBroker, newBroker, newBroker, pool, putUserObject, readResolve, removeLifecycleListener, setup, unlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCBrokerFactory

public JDBCBrokerFactory(JDBCConfiguration conf)
Construct the factory with the given option settings; however, the factory construction methods are recommended.

Method Detail

newInstance

public static JDBCBrokerFactory newInstance(org.apache.openjpa.lib.conf.ConfigurationProvider cp)
Factory method for constructing a factory from properties. Invoked from Bootstrap.newBrokerFactory().


getInstance

public static JDBCBrokerFactory getInstance(org.apache.openjpa.lib.conf.ConfigurationProvider cp)
Factory method for obtaining a possibly-pooled factory from properties. Invoked from Bootstrap.getBrokerFactory().


getInstance

public static JDBCBrokerFactory getInstance(JDBCConfiguration conf)
Factory method for constructing a factory from a configuration.


getProperties

public java.util.Properties getProperties()
Specified by:
getProperties in interface org.apache.openjpa.kernel.BrokerFactory
Overrides:
getProperties in class org.apache.openjpa.kernel.AbstractBrokerFactory

newStoreManager

protected org.apache.openjpa.kernel.StoreManager newStoreManager()
Specified by:
newStoreManager in class org.apache.openjpa.kernel.AbstractBrokerFactory

newBrokerImpl

protected org.apache.openjpa.kernel.BrokerImpl newBrokerImpl(java.lang.String user,
                                                             java.lang.String pass)
Overrides:
newBrokerImpl in class org.apache.openjpa.kernel.AbstractBrokerFactory


Copyright © 2006 Apache Software Foundation. All Rights Reserved.