public class AbstractStoreBrokerFactory extends AbstractBrokerFactory
BrokerFactory implementation for use with the
 AbstractStoreManager. This provides integration into the
 Bootstrap.getBrokerFactory() bootstrapping mechanism, to facilitate
 the process of creating a subclass of AbstractStoreManager. New
 store manager implementations need not extend this class. Instead, set the
 openjpa.BrokerFactory configuration property to
 abstractstore,
 and set the openjpa.abstractstore.AbstractStoreManager
 configuration property to the full class name of your implementation.
  Additionally, you can optionally create your own
 BrokerFactory implementation. However, we recommend that you
 use the AbstractStoreBrokerFactory, as it deals with pooling
 and bootstrapping from a Map object (the strategy used by
 Bootstrap to create a factory in a vendor-neutral manner).| Modifier | Constructor and Description | 
|---|---|
protected  | 
AbstractStoreBrokerFactory(OpenJPAConfiguration conf,
                          String storeCls,
                          String storeProps,
                          String platform)
Construct the factory with the given settings. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static AbstractStoreBrokerFactory | 
getInstance(ConfigurationProvider cp)
Factory method for obtaining a possibly-pooled  
BrokerFactory
 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 | 
static AbstractStoreBrokerFactory | 
newInstance(ConfigurationProvider cp)
Factory method for constructing a  
BrokerFactory
 from properties. | 
protected StoreManager | 
newStoreManager()
Return a new StoreManager for this runtime. 
 | 
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, newBrokerImpl, pool, postCreationCallback, putUserObject, readResolve, releaseBroker, removeLifecycleListener, removeTransactionListener, setup, toPoolKey, unlockprotected AbstractStoreBrokerFactory(OpenJPAConfiguration conf, String storeCls, String storeProps, String platform)
public static AbstractStoreBrokerFactory getInstance(ConfigurationProvider cp)
BrokerFactory
 from properties. Invoked from Bootstrap.getBrokerFactory().public static AbstractStoreBrokerFactory newInstance(ConfigurationProvider cp)
BrokerFactory
 from properties. Invoked from Bootstrap.newBrokerFactory().public Map<String,Object> getProperties()
AbstractBrokerFactoryPlatform
 property listing the runtime platform, such as:
 OpenJPA JDBC Edition: Oracle DatabasegetProperties in interface BrokerFactorygetProperties in class AbstractBrokerFactoryprotected StoreManager newStoreManager()
AbstractBrokerFactoryAbstractBrokerFactory.newBroker() method.newStoreManager in class AbstractBrokerFactoryCopyright © 2006–2022 Apache Software Foundation. All rights reserved.