org.eclipse.persistence.mappings
Interface EmbeddableMapping

All Known Implementing Classes:
AggregateCollectionMapping, AggregateObjectMapping

public interface EmbeddableMapping

INTERNAL Common interface to those mappings that are used to map JPA Embedded objects. - ElementCollection -> AggregateCollectionMapping - Embedded -> AggregateObjectMapping This interface was build to ease the metadata processing, namely to avoid costly casting between the mappings above since their common parent is DatabaseMapping.

Since:
EclipseLink 1.2
Author:
Guy Pelletier

Method Summary
 void addFieldNameTranslation(String sourceFieldName, String aggregateFieldName)
           
 void addNestedFieldNameTranslation(String attributeName, String sourceFieldName, String aggregateFieldName)
           
 void addOverrideManyToManyMapping(ManyToManyMapping mapping)
           
 void addOverrideUnidirectionalOneToManyMapping(UnidirectionalOneToManyMapping mapping)
           
 String getAttributeName()
           
 

Method Detail

getAttributeName

String getAttributeName()

addOverrideManyToManyMapping

void addOverrideManyToManyMapping(ManyToManyMapping mapping)

addOverrideUnidirectionalOneToManyMapping

void addOverrideUnidirectionalOneToManyMapping(UnidirectionalOneToManyMapping mapping)

addFieldNameTranslation

void addFieldNameTranslation(String sourceFieldName,
                             String aggregateFieldName)

addNestedFieldNameTranslation

void addNestedFieldNameTranslation(String attributeName,
                                   String sourceFieldName,
                                   String aggregateFieldName)