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,
ClassLoader loader)
Factory method for obtaining a possibly-pooled factory from properties.
|
Map<String,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(String user,
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.
|
void |
postCreationCallback()
This method is invoked AFTER a BrokerFactory has been instantiated.
|
protected boolean |
synchronizeMappings(ClassLoader loader) |
protected boolean |
synchronizeMappings(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, unlockpublic JDBCBrokerFactory(JDBCConfiguration conf)
public static JDBCBrokerFactory newInstance(ConfigurationProvider cp)
Bootstrap.newBrokerFactory().public static JDBCBrokerFactory getInstance(ConfigurationProvider cp, ClassLoader loader)
Bootstrap.getBrokerFactory().public Map<String,Object> getProperties()
AbstractBrokerFactoryPlatform
property listing the runtime platform, such as:
OpenJPA JDBC Edition: Oracle DatabasegetProperties in interface BrokerFactorygetProperties in class AbstractBrokerFactorypublic void postCreationCallback()
AbstractBrokerFactorypostCreationCallback in interface BrokerFactorypostCreationCallback in class AbstractBrokerFactoryprotected StoreManager newStoreManager()
AbstractBrokerFactoryAbstractBrokerFactory.newBroker() method.newStoreManager in class AbstractBrokerFactoryprotected BrokerImpl newBrokerImpl(String user, String pass)
AbstractBrokerFactorynewBrokerImpl in class AbstractBrokerFactoryprotected boolean synchronizeMappings(ClassLoader loader, JDBCConfiguration conf)
protected boolean synchronizeMappings(ClassLoader loader)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.