org.eclipse.persistence.jpa.metadata
Class XMLMetadataSource
java.lang.Object
org.eclipse.persistence.jpa.metadata.MetadataSourceAdapter
org.eclipse.persistence.jpa.metadata.XMLMetadataSource
- All Implemented Interfaces:
- MetadataSource
public class XMLMetadataSource
- extends MetadataSourceAdapter
Purpose: Support reading metadata for a persistence unit in an XML format from a file
or URL. If undefined, it will look for repository-orm.xml as a URL and then as a file.
Method Summary |
org.eclipse.persistence.internal.jpa.metadata.xml.XMLEntityMappings |
getEntityMappings(java.util.Map properties,
java.lang.ClassLoader classLoader,
SessionLog log)
PUBLIC:
This is used to return the object representation of the mappings used by EclipseLink from the repository. |
java.io.Reader |
getEntityMappingsStream(java.util.Map properties,
java.lang.ClassLoader classLoader,
SessionLog log)
|
java.lang.String |
getRepositoryName()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLMetadataSource
public XMLMetadataSource()
getEntityMappingsStream
public java.io.Reader getEntityMappingsStream(java.util.Map properties,
java.lang.ClassLoader classLoader,
SessionLog log)
getEntityMappings
public org.eclipse.persistence.internal.jpa.metadata.xml.XMLEntityMappings getEntityMappings(java.util.Map properties,
java.lang.ClassLoader classLoader,
SessionLog log)
- Description copied from interface:
MetadataSource
- PUBLIC:
This is used to return the object representation of the mappings used by EclipseLink from the repository.
It is called on initial deployment and when the EntityManagerFactoryImpl is reloaded.
- Specified by:
getEntityMappings
in interface MetadataSource
- Overrides:
getEntityMappings
in class MetadataSourceAdapter
getRepositoryName
public java.lang.String getRepositoryName()