Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa » persistence » [javadoc | source]
org.apache.openjpa.persistence
public class: PersistenceProductDerivation [javadoc | source]
java.lang.Object
   org.apache.openjpa.lib.conf.AbstractProductDerivation
      org.apache.openjpa.persistence.PersistenceProductDerivation

All Implemented Interfaces:
    OpenJPAProductDerivation, ProductDerivation

Sets JPA specification defaults and parses JPA specification XML files. For globals, looks in openjpa.properties system property for the location of a file to parse. If no system property is defined, the default resource location of META-INF/openjpa.xml is used. For defaults, looks for META-INF/persistence.xml. Within persistence.xml, look for the named persistence unit, or if no name given, an OpenJPA unit (preferring an unnamed OpenJPA unit to a named one).
Nested Class Summary:
public static class  PersistenceProductDerivation.ConfigurationProviderImpl  Custom configuration provider. 
public static class  PersistenceProductDerivation.ConfigurationParser  SAX handler capable of parsing an JPA persistence.xml file. Package-protected for testing. 
Field Summary
public static final  String SPEC_JPA     
public static final  String ALIAS_EJB     
public static final  String RSRC_GLOBAL     
public static final  String RSRC_DEFAULT     
Method from org.apache.openjpa.persistence.PersistenceProductDerivation Summary:
afterSpecificationSet,   beforeConfigurationLoad,   getAnchorsInFile,   getAnchorsInResource,   getDefaultResourceLocation,   getType,   load,   load,   load,   load,   loadDefaults,   loadGlobals,   putBrokerFactoryAliases,   validate
Methods from org.apache.openjpa.lib.conf.AbstractProductDerivation:
afterSpecificationSet,   beforeConfigurationClose,   beforeConfigurationConstruct,   beforeConfigurationLoad,   getAnchorsInFile,   getAnchorsInResource,   getConfigurationPrefix,   getDefaultResourceLocation,   load,   load,   loadDefaults,   loadGlobals,   validate
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.persistence.PersistenceProductDerivation Detail:
 public boolean afterSpecificationSet(Configuration c) 
 public boolean beforeConfigurationLoad(Configuration c) 
 public List getAnchorsInFile(File file) throws IOException 
 public List getAnchorsInResource(String resource) throws Exception 
 public String getDefaultResourceLocation() 
 public int getType() 
 public ConfigurationProvider load(PersistenceUnitInfo pinfo,
    Map m) throws IOException 
    Load configuration from the given persistence unit with the specified user properties.
 public ConfigurationProvider load(File file,
    String anchor) throws IOException 
 public ConfigurationProvider load(String rsrc,
    String name,
    Map m) throws IOException 
    Load configuration from the given resource and unit names, which may be null.
 public ConfigurationProvider load(String rsrc,
    String anchor,
    ClassLoader loader) throws IOException 
 public ConfigurationProvider loadDefaults(ClassLoader loader) throws IOException 
 public ConfigurationProvider loadGlobals(ClassLoader loader) throws IOException 
 public  void putBrokerFactoryAliases(Map m) 
 public  void validate() throws Exception