EclipseLink 2.3.0, build 'v20110516-r9382' API Reference

org.eclipse.persistence.jpa.metadata
Class MetadataSourceAdapter

java.lang.Object
  extended by org.eclipse.persistence.jpa.metadata.MetadataSourceAdapter
All Implemented Interfaces:
MetadataSource
Direct Known Subclasses:
XMLMetadataSource

public class MetadataSourceAdapter
extends java.lang.Object
implements MetadataSource

Purpose: To provide a trivial implementation of MetadataRepository. You may subclass this class rather than implement the MetadataRepositoryReader interface allowing insulation from future additions to the interface.

See Also:
MetadataRepository
Author:
Chris Delahunt
Since:
EclipseLink 2.3

Constructor Summary
MetadataSourceAdapter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataSourceAdapter

public MetadataSourceAdapter()
Method Detail

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

EclipseLink 2.3.0, build 'v20110516-r9382' API Reference