EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

Class MetadataSourceAdapter

  extended by org.eclipse.persistence.jpa.metadata.MetadataSourceAdapter
All Implemented Interfaces:
Direct Known Subclasses:

public abstract 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:
Chris Delahunt
EclipseLink 2.3

Constructor Summary
Method Summary
 org.eclipse.persistence.internal.jpa.metadata.xml.XMLEntityMappings getEntityMappings(java.util.Map<java.lang.String,java.lang.Object> properties, java.lang.ClassLoader classLoader, SessionLog log)
          PUBLIC: This method is responsible for returning the object representation of the object-relational mapping overrides.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.persistence.jpa.metadata.MetadataSource

Constructor Detail


public MetadataSourceAdapter()
Method Detail


public org.eclipse.persistence.internal.jpa.metadata.xml.XMLEntityMappings getEntityMappings(java.util.Map<java.lang.String,java.lang.Object> properties,
                                                                                             java.lang.ClassLoader classLoader,
                                                                                             SessionLog log)
Description copied from interface: MetadataSource
PUBLIC: This method is responsible for returning the object representation of the object-relational mapping overrides. It is called on initial deployment of the persistence unit and when the persistence unit is reloaded to allow customization of the persistence unit above and beyond what is packaged in the persistence.xml and what is code into the application. IMPORTANT: This method is called during the predeploy stage that is used both for weaving and runtime EMF deployment. Runtime properties might not be available during weaving, and mapping options that require weaving changes should not be used. For example adding a lazy OneToOne mapping after weaving has already occurred will result in an exception if they are expected to have been woven into the class.

Specified by:
getEntityMappings in interface MetadataSource

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference