public class DistributedJDBCBrokerFactory extends JDBCBrokerFactory implements DistributedBrokerFactory
| Constructor and Description |
|---|
DistributedJDBCBrokerFactory(DistributedJDBCConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
Slice |
addSlice(String name,
Map properties)
Adds the given slice with the given properties.
|
DistributedJDBCConfiguration |
getConfiguration() |
protected Object |
getFactoryInitializationBanner() |
static JDBCBrokerFactory |
getInstance(org.apache.openjpa.lib.conf.ConfigurationProvider cp)
Factory method for obtaining a possibly-pooled factory from properties.
|
static JDBCBrokerFactory |
getInstance(DistributedJDBCConfiguration conf)
Factory method for constructing a factory from a configuration.
|
DistributedBroker |
newBroker() |
static DistributedJDBCBrokerFactory |
newInstance(org.apache.openjpa.lib.conf.ConfigurationProvider cp)
Factory method for constructing a factory from properties.
|
protected org.apache.openjpa.slice.jdbc.DistributedJDBCStoreManager |
newStoreManager() |
protected boolean |
synchronizeMappings(ClassLoader loader) |
getInstance, getProperties, newBrokerImpl, postCreationCallback, synchronizeMappingsaddLifecycleListener, addListeners, addTransactionListener, assertOpen, close, configureBroker, createDelegatingStoreManager, findBroker, findTransactionalBroker, getOpenBrokers, getPooledFactoryForKey, getPoolKey, getSupportedProperties, getUserObject, isClosed, loadPersistentTypes, lock, makeReadOnly, newBroker, newBroker, newBroker, newBroker, newBroker, pool, putUserObject, readResolve, releaseBroker, removeLifecycleListener, removeTransactionListener, setup, toPoolKey, unlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLifecycleListener, addTransactionListener, assertOpen, close, getProperties, getSupportedProperties, getUserObject, isClosed, lock, newBroker, newBroker, postCreationCallback, putUserObject, removeLifecycleListener, removeTransactionListener, unlockpublic DistributedJDBCBrokerFactory(DistributedJDBCConfiguration conf)
public static DistributedJDBCBrokerFactory newInstance(org.apache.openjpa.lib.conf.ConfigurationProvider cp)
Bootstrap.newBrokerFactory().public static JDBCBrokerFactory getInstance(org.apache.openjpa.lib.conf.ConfigurationProvider cp)
Bootstrap.getBrokerFactory().public static JDBCBrokerFactory getInstance(DistributedJDBCConfiguration conf)
public DistributedJDBCConfiguration getConfiguration()
getConfiguration in interface BrokerFactorygetConfiguration in class AbstractBrokerFactorypublic Slice addSlice(String name, Map properties)
DistributedBrokerFactoryaddSlice in interface DistributedBrokerFactoryname - logical name of the to be added slice. Must be different from
any currently available slices.properties - key-value pair of configuration for the slice to be
added. The keys must have openjpa.slice.<name>.* as prefix.DistributedConfiguration.getAvailableSliceNames(),
DistributedConfiguration#addSlice(String, Map)protected org.apache.openjpa.slice.jdbc.DistributedJDBCStoreManager newStoreManager()
newStoreManager in class JDBCBrokerFactorypublic DistributedBroker newBroker()
newBroker in interface BrokerFactorynewBroker in class AbstractBrokerFactoryprotected boolean synchronizeMappings(ClassLoader loader)
synchronizeMappings in class JDBCBrokerFactoryprotected Object getFactoryInitializationBanner()
getFactoryInitializationBanner in class AbstractBrokerFactoryCopyright © 2006–2022 Apache Software Foundation. All rights reserved.