org.apache.openjpa.persistence.jdbc
Class JDBCPersistenceProductDerivation

java.lang.Object
  extended by org.apache.openjpa.lib.conf.AbstractProductDerivation
      extended by 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
JDBCPersistenceProductDerivation()
           
 
Method Summary
 boolean afterSpecificationSet(Configuration c)
          Called after the specification has been set.
 boolean beforeConfigurationLoad(Configuration c)
          Provides the instance with the opportunity to mutate conf before the user configuration is applied.
 int getType()
          Return the type of derivation.
 void putBrokerFactoryAliases(Map m)
          Load default alias options into the given map.
 
Methods inherited from class org.apache.openjpa.lib.conf.AbstractProductDerivation
beforeConfigurationConstruct, getConfigurationPrefix, 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
beforeConfigurationConstruct, getConfigurationPrefix, load, load, loadDefaults, loadGlobals
 

Constructor Detail

JDBCPersistenceProductDerivation

public JDBCPersistenceProductDerivation()
Method Detail

putBrokerFactoryAliases

public void putBrokerFactoryAliases(Map 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 perviously under the desired keys.

Specified by:
putBrokerFactoryAliases in interface OpenJPAProductDerivation

getType

public int getType()
Description copied from interface: ProductDerivation
Return the type of derivation.

Specified by:
getType in interface ProductDerivation

beforeConfigurationLoad

public boolean beforeConfigurationLoad(Configuration c)
Description copied from interface: ProductDerivation
Provides the instance with the opportunity to mutate conf before the user configuration is applied.

Specified by:
beforeConfigurationLoad in interface ProductDerivation
Overrides:
beforeConfigurationLoad in class AbstractProductDerivation
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 interface ProductDerivation
Overrides:
afterSpecificationSet in class AbstractProductDerivation
Returns:
true if given Configuration has been mutated.


Copyright © 2006 Apache Software Foundation. All Rights Reserved.