public class XMLMetadataSource extends MetadataSourceAdapter
Purpose: Support reading metadata for a persistence unit in an XML format from a URL and if the property is undefined, it will look for a file.
Constructor and Description |
---|
XMLMetadataSource() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.persistence.internal.jpa.metadata.xml.XMLEntityMappings |
getEntityMappings(Map<String,Object> properties,
ClassLoader classLoader,
SessionLog log)
This method is responsible for returning the object representation of the MetadataSource.
|
Reader |
getEntityMappingsReader(Map<String,Object> properties,
ClassLoader classLoader,
SessionLog log)
This class returns a Reader for an EclipseLink-ORM.xml.
|
String |
getRepositoryName()
Used by getEntityMappings when creating the XMLEntityMappings as a way of describing where it was read from.
|
public Reader getEntityMappingsReader(Map<String,Object> properties, ClassLoader classLoader, SessionLog log)
properties
- classLoader
- log
- - SessionLog used for status messages.getEntityMappings
public org.eclipse.persistence.internal.jpa.metadata.xml.XMLEntityMappings getEntityMappings(Map<String,Object> properties, ClassLoader classLoader, SessionLog log)
getEntityMappings
in interface MetadataSource
getEntityMappings
in class MetadataSourceAdapter
public String getRepositoryName()
EclipseLink 2.3.2, "build v20111125-r10461" API Reference