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:
Serializable, BrokerFactory, Closeable

public class JDBCBrokerFactory
extends 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(ConfigurationProvider cp, ClassLoader loader)
          Factory method for obtaining a possibly-pooled factory from properties.
 Map<String,Object> getProperties()
           
protected  BrokerImpl newBrokerImpl(String user, String pass)
           
static JDBCBrokerFactory newInstance(ConfigurationProvider cp)
          Factory method for constructing a factory from properties.
protected  StoreManager newStoreManager()
           
 void postCreationCallback()
           
protected  void synchronizeMappings(ClassLoader loader)
           
protected  void synchronizeMappings(ClassLoader loader, JDBCConfiguration conf)
          Synchronize the mappings of the classes listed in the configuration.
 
Methods inherited from class org.apache.openjpa.kernel.AbstractBrokerFactory
addLifecycleListener, addListeners, addTransactionListener, assertOpen, close, configureBroker, createDelegatingStoreManager, findBroker, findTransactionalBroker, getConfiguration, getFactoryInitializationBanner, getOpenBrokers, getPooledFactoryForKey, getPoolKey, getSupportedProperties, getUserObject, isClosed, loadPersistentTypes, lock, makeReadOnly, newBroker, newBroker, newBroker, newBroker, newBroker, newBroker, pool, putUserObject, readResolve, releaseBroker, removeLifecycleListener, removeTransactionListener, setup, toPoolKey, 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(ConfigurationProvider cp)
Factory method for constructing a factory from properties. Invoked from Bootstrap.newBrokerFactory().


getInstance

public static JDBCBrokerFactory getInstance(ConfigurationProvider cp,
                                            ClassLoader loader)
Factory method for obtaining a possibly-pooled factory from properties. Invoked from Bootstrap.getBrokerFactory().


getProperties

public Map<String,Object> getProperties()
Specified by:
getProperties in interface BrokerFactory
Overrides:
getProperties in class AbstractBrokerFactory

postCreationCallback

public void postCreationCallback()
Specified by:
postCreationCallback in interface BrokerFactory
Overrides:
postCreationCallback in class AbstractBrokerFactory

newStoreManager

protected StoreManager newStoreManager()
Specified by:
newStoreManager in class AbstractBrokerFactory

newBrokerImpl

protected BrokerImpl newBrokerImpl(String user,
                                   String pass)
Overrides:
newBrokerImpl in class AbstractBrokerFactory

synchronizeMappings

protected void synchronizeMappings(ClassLoader loader,
                                   JDBCConfiguration conf)
Synchronize the mappings of the classes listed in the configuration.


synchronizeMappings

protected void synchronizeMappings(ClassLoader loader)


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.