Package org.apache.openjpa.jdbc.conf
Class MappingFactoryValue
- java.lang.Object
-
- org.apache.openjpa.lib.conf.Value
-
- org.apache.openjpa.lib.conf.ObjectValue
-
- org.apache.openjpa.lib.conf.PluginValue
-
- org.apache.openjpa.jdbc.conf.MappingFactoryValue
-
- All Implemented Interfaces:
java.lang.Cloneable
public class MappingFactoryValue extends PluginValue
Handles the complex logic of creating aMetaDataFactory
for combined metadata and mapping.- Author:
- Abe White
-
-
Constructor Summary
Constructors Constructor Description MappingFactoryValue(java.lang.String prop)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetaDataFactory
instantiateMetaDataFactory(Configuration conf, PluginValue metaPlugin, java.lang.String mapping)
Intantiate aMetaDataFactory
responsible for both metadata and mapping.MetaDataFactory
instantiateMetaDataFactory(Configuration conf, PluginValue metaPlugin, java.lang.String mapping, boolean fatal)
Intantiate aMetaDataFactory
responsible for both metadata and mapping.void
setMappedMetaDataFactoryDefault(java.lang.String metaAlias, java.lang.String mappingAlias)
If theMapping
property is set, we check these defaults before checking metadata factory defaults.void
setMetaDataFactoryDefault(java.lang.String metaAlias, java.lang.String mappingAlias)
Default setting for a givenMetaDataFactory
alias setting.-
Methods inherited from class org.apache.openjpa.lib.conf.PluginValue
configure, getClassName, getInternalString, getProperties, getString, getValueType, instantiate, isSingleton, objectChanged, set, setClassName, setInternalString, setProperties, setString
-
Methods inherited from class org.apache.openjpa.lib.conf.ObjectValue
configure, get, instantiate, newInstance, set, setInternalObject
-
Methods inherited from class org.apache.openjpa.lib.conf.Value
addEquivalentKey, addListener, alias, alias, assertChangeable, clone, equals, getAliases, getDefault, getEquivalentKeys, getInstantiatingGetter, getListeners, getLoadKey, getOriginalValue, getProperty, getPropertyKeys, getScope, hashCode, hide, isAliasListComprehensive, isDynamic, isHidden, isPrivate, makePrivate, matches, removeListener, setAlias, setAlias, setAliases, setAliasListComprehensive, setDefault, setDynamic, setInstantiatingGetter, setLoadKey, setObject, setProperty, setScope, toString, unalias, unalias, valueChanged
-
-
-
-
Method Detail
-
setMetaDataFactoryDefault
public void setMetaDataFactoryDefault(java.lang.String metaAlias, java.lang.String mappingAlias)
Default setting for a givenMetaDataFactory
alias setting. If aMappingFactory
value is not supplied, we check these defaults against theMetaDataFactory
setting. If theMetaDataFactory
does not have a default, we assume it handles both metadata and mapping factory.
-
setMappedMetaDataFactoryDefault
public void setMappedMetaDataFactoryDefault(java.lang.String metaAlias, java.lang.String mappingAlias)
If theMapping
property is set, we check these defaults before checking metadata factory defaults.
-
instantiateMetaDataFactory
public MetaDataFactory instantiateMetaDataFactory(Configuration conf, PluginValue metaPlugin, java.lang.String mapping)
Intantiate aMetaDataFactory
responsible for both metadata and mapping.
-
instantiateMetaDataFactory
public MetaDataFactory instantiateMetaDataFactory(Configuration conf, PluginValue metaPlugin, java.lang.String mapping, boolean fatal)
Intantiate aMetaDataFactory
responsible for both metadata and mapping.
-
-