Class MetadataSource
- java.lang.Object
-
- org.eclipse.persistence.jpa.metadata.MetadataSourceAdapter
-
- org.eclipse.persistence.jpa.metadata.XMLMetadataSource
-
- org.eclipse.persistence.internal.jpa.config.persistenceunit.MetadataSource
-
- All Implemented Interfaces:
MetadataSource
public class MetadataSource extends XMLMetadataSource
JPA scripting API implementation.- Since:
- EclipseLink 2.5.1
- Author:
- Guy Pelletier
-
-
Constructor Summary
Constructors Constructor Description MetadataSource(PersistenceUnit pu)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLEntityMappings
getEntityMappings(java.util.Map<java.lang.String,java.lang.Object> properties, java.lang.ClassLoader classLoader, org.eclipse.persistence.logging.SessionLog log)
This method is responsible for returning the object representation of the MetadataSource.-
Methods inherited from class org.eclipse.persistence.jpa.metadata.XMLMetadataSource
getConfigPropertyLogDebug, getEntityMappingsReader, getFileURL, getPropertyOverrides, getRepositoryName
-
-
-
-
Constructor Detail
-
MetadataSource
public MetadataSource(PersistenceUnit pu)
-
-
Method Detail
-
getEntityMappings
public XMLEntityMappings getEntityMappings(java.util.Map<java.lang.String,java.lang.Object> properties, java.lang.ClassLoader classLoader, org.eclipse.persistence.logging.SessionLog log)
Description copied from class:XMLMetadataSource
This method is responsible for returning the object representation of the MetadataSource. This implementation makes a call to getEntityMappingsReader to get a Reader which is passed to an XMLUnmarshaller, and closes the reader in a finally block.- Specified by:
getEntityMappings
in interfaceMetadataSource
- Overrides:
getEntityMappings
in classXMLMetadataSource
- Returns:
- XMLEntityMappings - object representation of the EclipseLink-orm.xml for this repository
-
-