Class JDBCPersistenceProductDerivation
- java.lang.Object
-
- org.apache.openjpa.lib.conf.AbstractProductDerivation
-
- org.apache.openjpa.persistence.jdbc.JDBCPersistenceProductDerivation
-
- All Implemented Interfaces:
OpenJPAProductDerivation
,ProductDerivation
public class JDBCPersistenceProductDerivation extends AbstractProductDerivation implements OpenJPAProductDerivation
Sets JDBC-specific JPA specification defaults.- Author:
- Abe White
-
-
Field Summary
-
Fields inherited from interface org.apache.openjpa.conf.OpenJPAProductDerivation
TYPE_PRODUCT_STORE, TYPE_SPEC, TYPE_SPEC_STORE, TYPE_STORE
-
Fields inherited from interface org.apache.openjpa.lib.conf.ProductDerivation
TYPE_FEATURE, TYPE_PRODUCT
-
-
Constructor Summary
Constructors Constructor Description JDBCPersistenceProductDerivation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
afterSpecificationSet(Configuration c)
Called after the specification has been set.boolean
beforeConfigurationLoad(Configuration c)
Provides the instance with the opportunity to mutateconf
before the user configuration is applied.java.util.Set<java.lang.String>
getSupportedQueryHints()
Return set of Query hint keys recognized by this receiver.int
getType()
Return the type of derivation.void
putBrokerFactoryAliases(java.util.Map<java.lang.String,java.lang.String> m)
Load default alias options into the given map.void
validate()
Ensure that this derivation is valid.-
Methods inherited from class org.apache.openjpa.lib.conf.AbstractProductDerivation
beforeConfigurationClose, beforeConfigurationConstruct, getAnchorsInFile, getAnchorsInResource, getConfigurationPrefix, getDefaultResourceLocation, load, load, loadDefaults, loadGlobals
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.openjpa.lib.conf.ProductDerivation
beforeConfigurationClose, beforeConfigurationConstruct, getAnchorsInFile, getAnchorsInResource, getConfigurationPrefix, getDefaultResourceLocation, load, load, loadDefaults, loadGlobals
-
-
-
-
Method Detail
-
putBrokerFactoryAliases
public void putBrokerFactoryAliases(java.util.Map<java.lang.String,java.lang.String> m)
Description copied from interface:OpenJPAProductDerivation
Load default alias options into the given map. Each entry maps an alias to a broker factory class name. Replace anything previously under the desired keys.- Specified by:
putBrokerFactoryAliases
in interfaceOpenJPAProductDerivation
-
getType
public int getType()
Description copied from interface:ProductDerivation
Return the type of derivation.- Specified by:
getType
in interfaceProductDerivation
-
validate
public void validate() throws java.lang.Exception
Description copied from interface:ProductDerivation
Ensure that this derivation is valid. This action might consist of loading classes for the product this derivation represents to be sure they exist. Throw any throwable to indicate an invalid derivation. Invalid derivations will not be used.- Specified by:
validate
in interfaceProductDerivation
- Overrides:
validate
in classAbstractProductDerivation
- Throws:
java.lang.Exception
-
beforeConfigurationLoad
public boolean beforeConfigurationLoad(Configuration c)
Description copied from interface:ProductDerivation
Provides the instance with the opportunity to mutateconf
before the user configuration is applied.- Specified by:
beforeConfigurationLoad
in interfaceProductDerivation
- Overrides:
beforeConfigurationLoad
in classAbstractProductDerivation
- Returns:
- true if given Configuration has been mutated.
-
afterSpecificationSet
public boolean afterSpecificationSet(Configuration c)
Description copied from interface:ProductDerivation
Called after the specification has been set.- Specified by:
afterSpecificationSet
in interfaceProductDerivation
- Overrides:
afterSpecificationSet
in classAbstractProductDerivation
- Returns:
- true if given Configuration has been mutated.
-
getSupportedQueryHints
public java.util.Set<java.lang.String> getSupportedQueryHints()
Description copied from interface:ProductDerivation
Return set of Query hint keys recognized by this receiver.- Specified by:
getSupportedQueryHints
in interfaceProductDerivation
- Overrides:
getSupportedQueryHints
in classAbstractProductDerivation
-
-