EclipseLink 2.3.0, build 'v20110516-r9382' API Reference

org.eclipse.persistence.jpa.metadata
Class XMLMetadataSource

java.lang.Object
  extended by org.eclipse.persistence.jpa.metadata.MetadataSourceAdapter
      extended by 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.


Constructor Summary
XMLMetadataSource()
           
 
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
 

Constructor Detail

XMLMetadataSource

public XMLMetadataSource()
Method Detail

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()

EclipseLink 2.3.0, build 'v20110516-r9382' API Reference