| java.lang.Object org.springframework.orm.jpa.persistenceunit.PersistenceUnitReader
PersistenceUnitReader | class PersistenceUnitReader (Code) | | Internal helper class for reading persistence.xml files.
author: Costin Leau author: Juergen Hoeller since: 2.0 |
PersistenceUnitReader | public PersistenceUnitReader(ResourcePatternResolver resourcePatternResolver, DataSourceLookup dataSourceLookup)(Code) | | Create a new PersistenceUnitReader.
Parameters: resourcePatternResolver - the ResourcePatternResolver to use for loading resources Parameters: dataSourceLookup - the DataSourceLookup to resolve DataSource names inpersistence.xml files against |
determinePersistenceUnitRootUrl | protected URL determinePersistenceUnitRootUrl(Resource resource) throws IOException(Code) | | Determine the persistence unit root URL based on the given resource
(which points to the persistence.xml file we're reading).
Parameters: resource - the resource to check the corresponding persistence unit root URL throws: IOException - if the checking failed |
findSchemaResource | protected Resource findSchemaResource()(Code) | | Try to locate the schema first in the class path before using the URL specified inside the XML.
an existing resource, or null if none found |
readPersistenceUnitInfos | public SpringPersistenceUnitInfo[] readPersistenceUnitInfos(String persistenceXmlLocation)(Code) | | Parse and build all persistence unit infos defined in the specified XML file(s).
Parameters: persistenceXmlLocation - the resource location (can be a pattern) the resulting PersistenceUnitInfo instances |
readPersistenceUnitInfos | public SpringPersistenceUnitInfo[] readPersistenceUnitInfos(String[] persistenceXmlLocations)(Code) | | Parse and build all persistence unit infos defined in the given XML files.
Parameters: persistenceXmlLocations - the resource locations (can be patterns) the resulting PersistenceUnitInfo instances |
|
|