Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa » slice » jdbc » [javadoc | source]
org.apache.openjpa.slice.jdbc
public class: DistributedJDBCConfigurationImpl [javadoc | source]
java.lang.Object
   org.apache.openjpa.lib.conf.ConfigurationImpl
      org.apache.openjpa.conf.OpenJPAConfigurationImpl
         org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl
            org.apache.openjpa.slice.jdbc.DistributedJDBCConfigurationImpl

All Implemented Interfaces:
    DistributedJDBCConfiguration, JDBCConfiguration, OpenJPAConfiguration, Configuration, Externalizable, ValueListener

Implements a distributed configuration of JDBCStoreManagers. The original configuration properties are analyzed to create a set of Slice specific properties with defaulting rules.
Field Summary
protected  BooleanValue lenientPlugin     
protected  StringValue masterPlugin     
protected  StringListValue namesPlugin     
protected  ExecutorServiceValue executorServicePlugin     
protected  PluginValue distributionPolicyPlugin     
public static final  String DOT     
public static final  String REGEX_DOT     
public static final  String PREFIX_SLICE     
public static final  String PREFIX_OPENJPA     
Fields inherited from org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl:
schema,  schemas,  transactionIsolation,  resultSetType,  fetchDirection,  eagerFetchMode,  subclassFetchMode,  lrsSize,  synchronizeMappings,  jdbcListenerPlugins,  connectionDecoratorPlugins,  dbdictionaryPlugin,  updateManagerPlugin,  schemaFactoryPlugin,  sqlFactoryPlugin,  mappingDefaultsPlugin,  driverDataSourcePlugin,  mappingFactoryPlugin
Fields inherited from org.apache.openjpa.conf.OpenJPAConfigurationImpl:
metaRepository,  remoteEventManager,  classResolverPlugin,  brokerPlugin,  dataCachePlugin,  dataCacheManagerPlugin,  dataCacheTimeout,  queryCachePlugin,  dynamicDataStructs,  managedRuntimePlugin,  transactionMode,  connectionRetainMode,  fetchBatchSize,  maxFetchDepth,  fetchGroups,  flushBeforeQueries,  lockTimeout,  readLockLevel,  writeLockLevel,  seqPlugin,  filterListenerPlugins,  aggregateListenerPlugins,  retryClassRegistration,  proxyManagerPlugin,  connectionUserName,  connectionPassword,  connectionURL,  connectionDriverName,  connectionFactory,  connectionFactoryName,  connectionProperties,  connectionFactoryProperties,  connectionFactoryMode,  connection2UserName,  connection2Password,  connection2URL,  connection2DriverName,  connection2Properties,  connectionFactory2,  connectionFactory2Name,  connectionFactory2Properties,  optimistic,  autoClear,  retainState,  restoreState,  detachStatePlugin,  ignoreChanges,  nontransactionalRead,  nontransactionalWrite,  multithreaded,  mapping,  metaFactoryPlugin,  metaRepositoryPlugin,  lockManagerPlugin,  inverseManagerPlugin,  savepointManagerPlugin,  orphanedKeyPlugin,  compatibilityPlugin,  queryCompilationCachePlugin,  runtimeUnenhancedClasses,  cacheMarshallerPlugins,  brokerFactoryPlugin,  remoteProviderPlugin,  autoDetach
Fields inherited from org.apache.openjpa.lib.conf.ConfigurationImpl:
logFactoryPlugin,  id
Constructor:
 public DistributedJDBCConfigurationImpl(ConfigurationProvider cp) 
    Configure itself as well as underlying slices.
Method from org.apache.openjpa.slice.jdbc.DistributedJDBCConfigurationImpl Summary:
createSliceProperties,   getActiveSliceNames,   getAvailableSliceNames,   getConnectionFactory,   getConnectionInfo,   getDistributionPolicyInstance,   getExecutorService,   getExecutorServiceInstance,   getMaster,   getSlice,   getSlices,   isXACompliant,   setDistributionPolicyInstance,   setExecutorService,   setSlices
Methods from org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl:
getConnectionDecoratorInstances,   getConnectionDecorators,   getConnectionFactory,   getConnectionFactory2,   getDBDictionary,   getDBDictionaryInstance,   getDataSource,   getDataSource2,   getDriverDataSource,   getEagerFetchMode,   getEagerFetchModeConstant,   getFetchDirection,   getFetchDirectionConstant,   getJDBCListenerInstances,   getJDBCListeners,   getLRSSize,   getLRSSizeConstant,   getMappingDefaults,   getMappingDefaultsInstance,   getMappingFactory,   getMappingRepositoryInstance,   getResultSetType,   getResultSetTypeConstant,   getSQLFactory,   getSQLFactoryInstance,   getSchema,   getSchemaFactory,   getSchemaFactoryInstance,   getSchemas,   getSchemasList,   getSubclassFetchMode,   getSubclassFetchModeConstant,   getSynchronizeMappings,   getTransactionIsolation,   getTransactionIsolationConstant,   getUpdateManager,   getUpdateManagerInstance,   isInvalidProperty,   newBrokerInstance,   newDriverDataSourceInstance,   newMappingRepositoryInstance,   newMetaDataFactoryInstance,   preClose,   setConnectionDecorators,   setConnectionDecorators,   setConnectionFactory,   setConnectionFactory2,   setDBDictionary,   setDBDictionary,   setDriverDataSource,   setEagerFetchMode,   setEagerFetchMode,   setFetchDirection,   setFetchDirection,   setJDBCListeners,   setJDBCListeners,   setLRSSize,   setLRSSize,   setMappingDefaults,   setMappingDefaults,   setMappingFactory,   setResultSetType,   setResultSetType,   setSQLFactory,   setSQLFactory,   setSchema,   setSchemaFactory,   setSchemaFactory,   setSchemas,   setSchemas,   setSubclassFetchMode,   setSubclassFetchMode,   setSynchronizeMappings,   setTransactionIsolation,   setTransactionIsolation,   setUpdateManager,   setUpdateManager
Methods from org.apache.openjpa.conf.OpenJPAConfigurationImpl:
getAggregateListenerInstances,   getAggregateListeners,   getAutoClear,   getAutoClearConstant,   getAutoDetach,   getAutoDetachConstant,   getBrokerFactory,   getBrokerFactoryEventManager,   getBrokerImpl,   getCacheMarshallerInstances,   getCacheMarshallers,   getClassResolver,   getClassResolverInstance,   getCompatibility,   getCompatibilityInstance,   getConfigurationLog,   getConnection2DriverName,   getConnection2Password,   getConnection2Properties,   getConnection2URL,   getConnection2UserName,   getConnectionDriverName,   getConnectionFactory,   getConnectionFactory2,   getConnectionFactory2Name,   getConnectionFactory2Properties,   getConnectionFactoryMode,   getConnectionFactoryName,   getConnectionFactoryProperties,   getConnectionPassword,   getConnectionProperties,   getConnectionRetainMode,   getConnectionRetainModeConstant,   getConnectionURL,   getConnectionUserName,   getDataCache,   getDataCacheManager,   getDataCacheManagerInstance,   getDataCacheTimeout,   getDetachState,   getDetachStateInstance,   getDynamicDataStructs,   getFetchBatchSize,   getFetchGroups,   getFetchGroupsList,   getFilterListenerInstances,   getFilterListeners,   getFlushBeforeQueries,   getFlushBeforeQueriesConstant,   getIgnoreChanges,   getInverseManager,   getLockManager,   getLockTimeout,   getManagedRuntime,   getManagedRuntimeInstance,   getMapping,   getMaxFetchDepth,   getMetaDataFactory,   getMetaDataRepository,   getMetaDataRepositoryInstance,   getMultithreaded,   getNontransactionalRead,   getNontransactionalWrite,   getOptimistic,   getOrphanedKeyAction,   getOrphanedKeyActionInstance,   getProxyManager,   getProxyManagerInstance,   getQueryCache,   getQueryCompilationCache,   getQueryCompilationCacheInstance,   getReadLockLevel,   getReadLockLevelConstant,   getRemoteCommitEventManager,   getRemoteCommitProvider,   getRestoreState,   getRestoreStateConstant,   getRetainState,   getRetryClassRegistration,   getRuntimeUnenhancedClasses,   getRuntimeUnenhancedClassesConstant,   getSavepointManager,   getSavepointManagerInstance,   getSequence,   getSequenceInstance,   getSpecification,   getStoreFacadeTypeRegistry,   getTransactionMode,   getWriteLockLevel,   getWriteLockLevelConstant,   instantiateAll,   isConnectionFactoryModeManaged,   isTransactionModeManaged,   metaDataRepositoryAvailable,   newBrokerInstance,   newInverseManagerInstance,   newLockManagerInstance,   newMetaDataFactoryInstance,   newMetaDataRepositoryInstance,   newRemoteCommitProviderInstance,   preClose,   setAggregateListeners,   setAggregateListeners,   setAutoClear,   setAutoClear,   setAutoDetach,   setAutoDetach,   setBrokerFactory,   setBrokerImpl,   setCacheMarshallers,   setClassResolver,   setClassResolver,   setCompatibility,   setConnection2DriverName,   setConnection2Password,   setConnection2Properties,   setConnection2URL,   setConnection2UserName,   setConnectionDriverName,   setConnectionFactory,   setConnectionFactory2,   setConnectionFactory2Name,   setConnectionFactory2Properties,   setConnectionFactoryMode,   setConnectionFactoryModeManaged,   setConnectionFactoryName,   setConnectionFactoryProperties,   setConnectionPassword,   setConnectionProperties,   setConnectionRetainMode,   setConnectionRetainMode,   setConnectionURL,   setConnectionUserName,   setDataCache,   setDataCacheManager,   setDataCacheManager,   setDataCacheTimeout,   setDataCacheTimeout,   setDetachState,   setDetachState,   setDynamicDataStructs,   setDynamicDataStructs,   setFetchBatchSize,   setFetchBatchSize,   setFetchGroups,   setFetchGroups,   setFilterListeners,   setFilterListeners,   setFlushBeforeQueries,   setFlushBeforeQueries,   setIgnoreChanges,   setIgnoreChanges,   setInverseManager,   setLockManager,   setLockTimeout,   setLockTimeout,   setManagedRuntime,   setManagedRuntime,   setMapping,   setMaxFetchDepth,   setMaxFetchDepth,   setMetaDataFactory,   setMetaDataRepository,   setMetaDataRepository,   setMultithreaded,   setMultithreaded,   setNontransactionalRead,   setNontransactionalRead,   setNontransactionalWrite,   setNontransactionalWrite,   setOptimistic,   setOptimistic,   setOrphanedKeyAction,   setOrphanedKeyAction,   setProxyManager,   setProxyManager,   setQueryCache,   setQueryCompilationCache,   setReadLockLevel,   setReadLockLevel,   setRemoteCommitEventManager,   setRemoteCommitProvider,   setRestoreState,   setRestoreState,   setRetainState,   setRetainState,   setRetryClassRegistration,   setRetryClassRegistration,   setRuntimeUnenhancedClasses,   setRuntimeUnenhancedClasses,   setSavepointManager,   setSequence,   setSequence,   setSpecification,   setTransactionMode,   setTransactionModeManaged,   setWriteLockLevel,   setWriteLockLevel,   supportedOptions
Methods from org.apache.openjpa.lib.conf.ConfigurationImpl:
addBoolean,   addDouble,   addFile,   addInt,   addObject,   addPlugin,   addPluginList,   addPropertyChangeListener,   addString,   addStringList,   addValue,   clone,   close,   equals,   fromProperties,   getAdditionalBeanInfo,   getBeanDescriptor,   getConfigurationLog,   getDefaultEventIndex,   getDefaultPropertyIndex,   getEventSetDescriptors,   getIcon,   getId,   getLog,   getLog,   getLogFactory,   getMethodDescriptors,   getProductName,   getPropertiesResource,   getPropertyDescriptors,   getValue,   getValues,   hashCode,   instantiateAll,   isInvalidProperty,   isReadOnly,   loadGlobals,   preClose,   readExternal,   removePropertyChangeListener,   removeValue,   setId,   setLog,   setLogFactory,   setProductName,   setProperties,   setPropertiesFile,   setReadOnly,   toProperties,   toXMLName,   valueChanged,   writeExternal
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.slice.jdbc.DistributedJDBCConfigurationImpl Detail:
 Map createSliceProperties(Map original,
    String slice) 
    Creates given slice specific configuration properties from given original key-value map. The rules are
  • if key begins with "slice.XXX." where XXX is the given slice name, then replace "slice.XXX. with openjpa..
  • if key begins with "slice." but not with "slice.XXX.", the ignore i.e. any property of other slices or global slice property e.g. slice.DistributionPolicy if key starts with "openjpa." and a corresponding "slice.XXX." property does not exist, then use this as default property property with any other prefix is simply copied
 public List getActiveSliceNames() 
    Gets the name of the active slices.
 public List getAvailableSliceNames() 
    Gets the name of the available slices.
 public Object getConnectionFactory() 
 String getConnectionInfo(OpenJPAConfiguration conf) 
 public DistributionPolicy getDistributionPolicyInstance() 
 public String getExecutorService() 
 public ExecutorService getExecutorServiceInstance() 
 public Slice getMaster() 
    Gets the master slice.
 public Slice getSlice(String name) 
    Get the configuration for given slice.
 public List getSlices(Slice.Status statuses) 
    Gets the slices of given status. Null returns all irrespective of status.
 boolean isXACompliant(DataSource ds) 
 public  void setDistributionPolicyInstance(String val) 
 public  void setExecutorService(ExecutorService txnManager) 
  void setSlices(Map original) 
    Create individual slices with configurations from the given properties.