org.apache.openjpa.jdbc.kernel
public class JDBCBrokerFactory extends AbstractBrokerFactory
Constructor and Description |
---|
JDBCBrokerFactory(JDBCConfiguration conf)
Construct the factory with the given option settings; however, the
factory construction methods are recommended.
|
Modifier and Type | Method and Description |
---|---|
static JDBCBrokerFactory |
getInstance(ConfigurationProvider cp)
Factory method for obtaining a possibly-pooled factory from properties.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Subclasses should override this method to add a
Platform
property listing the runtime platform, such as:
OpenJPA JDBC Edition: Oracle Database |
protected BrokerImpl |
newBrokerImpl(java.lang.String user,
java.lang.String pass)
Return a broker configured with the proper settings.
|
static JDBCBrokerFactory |
newInstance(ConfigurationProvider cp)
Factory method for constructing a factory from properties.
|
protected StoreManager |
newStoreManager()
Return a new StoreManager for this runtime.
|
protected void |
synchronizeMappings(java.lang.ClassLoader loader) |
protected void |
synchronizeMappings(java.lang.ClassLoader loader,
JDBCConfiguration conf)
Synchronize the mappings of the classes listed in the configuration.
|
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
public JDBCBrokerFactory(JDBCConfiguration conf)
public static JDBCBrokerFactory newInstance(ConfigurationProvider cp)
Bootstrap.newBrokerFactory()
.public static JDBCBrokerFactory getInstance(ConfigurationProvider cp)
Bootstrap.getBrokerFactory()
.public java.util.Map<java.lang.String,java.lang.Object> getProperties()
AbstractBrokerFactory
Platform
property listing the runtime platform, such as:
OpenJPA JDBC Edition: Oracle Database
getProperties
in interface BrokerFactory
getProperties
in class AbstractBrokerFactory
protected StoreManager newStoreManager()
AbstractBrokerFactory
AbstractBrokerFactory.newBroker()
method.newStoreManager
in class AbstractBrokerFactory
protected BrokerImpl newBrokerImpl(java.lang.String user, java.lang.String pass)
AbstractBrokerFactory
newBrokerImpl
in class AbstractBrokerFactory
protected void synchronizeMappings(java.lang.ClassLoader loader, JDBCConfiguration conf)
protected void synchronizeMappings(java.lang.ClassLoader loader)