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_STOREFields inherited from interface org.apache.openjpa.lib.conf.ProductDerivation
TYPE_FEATURE, TYPE_PRODUCT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCalled after the specification has been set.booleanProvides the instance with the opportunity to mutateconfbefore the user configuration is applied.Return set of Query hint keys recognized by this receiver.intgetType()Return the type of derivation.voidLoad default alias options into the given map.voidvalidate()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, loadGlobalsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.openjpa.lib.conf.ProductDerivation
beforeConfigurationClose, beforeConfigurationConstruct, getAnchorsInFile, getAnchorsInResource, getConfigurationPrefix, getDefaultResourceLocation, load, load, loadDefaults, loadGlobals
-
Constructor Details
-
JDBCPersistenceProductDerivation
public JDBCPersistenceProductDerivation()
-
-
Method Details
-
putBrokerFactoryAliases
Description copied from interface:OpenJPAProductDerivationLoad 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:
putBrokerFactoryAliasesin interfaceOpenJPAProductDerivation
-
getType
public int getType()Description copied from interface:ProductDerivationReturn the type of derivation.- Specified by:
getTypein interfaceProductDerivation
-
validate
Description copied from interface:ProductDerivationEnsure 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:
validatein interfaceProductDerivation- Overrides:
validatein classAbstractProductDerivation- Throws:
Exception
-
beforeConfigurationLoad
Description copied from interface:ProductDerivationProvides the instance with the opportunity to mutateconfbefore the user configuration is applied.- Specified by:
beforeConfigurationLoadin interfaceProductDerivation- Overrides:
beforeConfigurationLoadin classAbstractProductDerivation- Returns:
- true if given Configuration has been mutated.
-
afterSpecificationSet
Description copied from interface:ProductDerivationCalled after the specification has been set.- Specified by:
afterSpecificationSetin interfaceProductDerivation- Overrides:
afterSpecificationSetin classAbstractProductDerivation- Returns:
- true if given Configuration has been mutated.
-
getSupportedQueryHints
Description copied from interface:ProductDerivationReturn set of Query hint keys recognized by this receiver.- Specified by:
getSupportedQueryHintsin interfaceProductDerivation- Overrides:
getSupportedQueryHintsin classAbstractProductDerivation
-