org.apache.openjpa.persistence
Class PersistenceProductDerivation
java.lang.Object
   org.apache.openjpa.lib.conf.AbstractProductDerivation
org.apache.openjpa.lib.conf.AbstractProductDerivation
       org.apache.openjpa.persistence.PersistenceProductDerivation
org.apache.openjpa.persistence.PersistenceProductDerivation
- All Implemented Interfaces: 
- OpenJPAProductDerivation, ProductDerivation
- public class PersistenceProductDerivation 
- extends AbstractProductDerivation- implements OpenJPAProductDerivation
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).
- Author:
- Abe White
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
SPEC_JPA
public static final java.lang.String SPEC_JPA
- See Also:
- Constant Field Values
ALIAS_EJB
public static final java.lang.String ALIAS_EJB
- See Also:
- Constant Field Values
RSRC_GLOBAL
public static final java.lang.String RSRC_GLOBAL
- See Also:
- Constant Field Values
RSRC_DEFAULT
public static final java.lang.String RSRC_DEFAULT
- See Also:
- Constant Field Values
PersistenceProductDerivation
public PersistenceProductDerivation()
putBrokerFactoryAliases
public void putBrokerFactoryAliases(java.util.Map m)
- 
- Specified by:
- putBrokerFactoryAliasesin interface- OpenJPAProductDerivation
 
- 
 
getType
public int getType()
- 
- Specified by:
- getTypein interface- ProductDerivation
 
- 
 
validate
public void validate()
              throws java.lang.Exception
- 
- Specified by:
- validatein interface- ProductDerivation
- Overrides:
- validatein class- AbstractProductDerivation
 
- 
- Throws:
- java.lang.Exception
 
beforeConfigurationLoad
public boolean beforeConfigurationLoad(Configuration c)
- 
- Specified by:
- beforeConfigurationLoadin interface- ProductDerivation
- Overrides:
- beforeConfigurationLoadin class- AbstractProductDerivation
 
- 
 
afterSpecificationSet
public boolean afterSpecificationSet(Configuration c)
- 
- Specified by:
- afterSpecificationSetin interface- ProductDerivation
- Overrides:
- afterSpecificationSetin class- AbstractProductDerivation
 
- 
 
load
public ConfigurationProvider load(javax.persistence.spi.PersistenceUnitInfo pinfo,
                                  java.util.Map m)
                           throws java.io.IOException
- Load configuration from the given persistence unit with the specified
 user properties.
 
- 
 
- 
- Throws:
- java.io.IOException
 
load
public ConfigurationProvider load(java.lang.String rsrc,
                                  java.lang.String name,
                                  java.util.Map m)
                           throws java.io.IOException
- Load configuration from the given resource and unit names, which may
 be null.
 
- 
 
- 
- Throws:
- java.io.IOException
 
load
public ConfigurationProvider load(java.lang.String rsrc,
                                  java.lang.String anchor,
                                  java.lang.ClassLoader loader)
                           throws java.io.IOException
- 
- Specified by:
- loadin interface- ProductDerivation
- Overrides:
- loadin class- AbstractProductDerivation
 
- 
- Throws:
- java.io.IOException
 
load
public ConfigurationProvider load(java.io.File file,
                                  java.lang.String anchor)
                           throws java.io.IOException
- 
- Specified by:
- loadin interface- ProductDerivation
- Overrides:
- loadin class- AbstractProductDerivation
 
- 
- Throws:
- java.io.IOException
 
getDefaultResourceLocation
public java.lang.String getDefaultResourceLocation()
- 
- Specified by:
- getDefaultResourceLocationin interface- ProductDerivation
- Overrides:
- getDefaultResourceLocationin class- AbstractProductDerivation
 
- 
 
getAnchorsInFile
public java.util.List getAnchorsInFile(java.io.File file)
                                throws java.io.IOException
- 
- Specified by:
- getAnchorsInFilein interface- ProductDerivation
- Overrides:
- getAnchorsInFilein class- AbstractProductDerivation
 
- 
- Throws:
- java.io.IOException
 
getAnchorsInResource
public java.util.List getAnchorsInResource(java.lang.String resource)
                                    throws java.lang.Exception
- 
- Specified by:
- getAnchorsInResourcein interface- ProductDerivation
- Overrides:
- getAnchorsInResourcein class- AbstractProductDerivation
 
- 
- Throws:
- java.lang.Exception
 
loadGlobals
public ConfigurationProvider loadGlobals(java.lang.ClassLoader loader)
                                  throws java.io.IOException
- 
- Specified by:
- loadGlobalsin interface- ProductDerivation
- Overrides:
- loadGlobalsin class- AbstractProductDerivation
 
- 
- Throws:
- java.io.IOException
 
loadDefaults
public ConfigurationProvider loadDefaults(java.lang.ClassLoader loader)
                                   throws java.io.IOException
- 
- Specified by:
- loadDefaultsin interface- ProductDerivation
- Overrides:
- loadDefaultsin class- AbstractProductDerivation
 
- 
- Throws:
- java.io.IOException
 
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.