Top Description Constructors Methods
org.eclipse.persistence.jpa.metadata

public abstract Class MetadataSourceAdapter

extends Object
implements MetadataSource
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.jpa.metadata.MetadataSource
Known Direct Subclasses
org.eclipse.persistence.jpa.metadata.XMLMetadataSource
Imports
java.util.Map, org.eclipse.persistence.internal.jpa.metadata.xml.XMLEntityMappings, org.eclipse.persistence.logging.SessionLog

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

Author
Chris Delahunt
Since
EclipseLink 2.3
See Also
MetadataSource

Constructor Summary

AccessConstructor and Description
protected
MetadataSourceAdapter()

Default constructor.

Method Summary

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

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

PUBLIC: This method is responsible for returning the object representation of the object-relational mapping overrides.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MetadataSourceAdapterback to summary
protected MetadataSourceAdapter()

Default constructor.

Method Detail

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

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

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

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 Note

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.

Annotations
@Override