Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.config.persistenceunit

public Class MetadataSource

extends XMLMetadataSource
Class Inheritance
Imports
java.util.Map, org.eclipse.persistence.internal.jpa.metadata.xml.XMLEntityMappings, org.eclipse.persistence.jpa.config.PersistenceUnit, org.eclipse.persistence.jpa.metadata.XMLMetadataSource, org.eclipse.persistence.logging.SessionLog

JPA scripting API implementation.
Author
Guy Pelletier
Since
EclipseLink 2.5.1

Field Summary

Modifier and TypeField and Description
private PersistenceUnitImpl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public XMLEntityMappings
getEntityMappings(Map<String, Object> properties, ClassLoader classLoader, SessionLog log)

Overrides org.eclipse.persistence.jpa.metadata.XMLMetadataSource.getEntityMappings.

Implements org.eclipse.persistence.jpa.metadata.MetadataSource.getEntityMappings.

This method is responsible for returning the object representation of the MetadataSource.
Inherited from org.eclipse.persistence.jpa.metadata.XMLMetadataSource:
getConfigPropertyLogDebuggetEntityMappingsReadergetFileURLgetPropertyOverridesgetRepositoryName

Field Detail

persistenceUnitback to summary
private PersistenceUnitImpl persistenceUnit

Constructor Detail

MetadataSourceback to summary
public MetadataSource(PersistenceUnit pu)

Method Detail

getEntityMappingsback to summary
public XMLEntityMappings getEntityMappings(Map<String, Object> properties, ClassLoader classLoader, SessionLog log)

Overrides org.eclipse.persistence.jpa.metadata.XMLMetadataSource.getEntityMappings.

Implements org.eclipse.persistence.jpa.metadata.MetadataSource.getEntityMappings.

Doc from org.eclipse.persistence.jpa.metadata.XMLMetadataSource.getEntityMappings.

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.

Returns:XMLEntityMappings

XMLEntityMappings - object representation of the EclipseLink-orm.xml for this repository

Annotations
@Override