Interface MappingRelationshipElement

All Superinterfaces:
Comparable, MappingElement, MappingElementProperties, MappingFieldElement, MappingMemberElement
All Known Implementing Classes:
MappingRelationshipElementImpl

public interface MappingRelationshipElement extends MappingFieldElement
This is a specialized field element which represents a relationship between two classes. The mapping portion should be set up as follows: When mapping a non-join table relationship, call the MappingFieldElement.addColumn(org.netbeans.modules.dbschema.DBMemberElement) method once with each pair of columns between the local table and the foreign table. When mapping a join table relationship, call the addLocalColumn(org.netbeans.modules.dbschema.ColumnPairElement) once for each pair of columns between the local table and the join table and addAssociatedColumn(org.netbeans.modules.dbschema.ColumnPairElement) once for each pair of columns between the join table and the foreign table. Note that the number of pairs (local and associated) may differ and that the order of adding them (local first or associated first) is not important.
Version:
%I%
Author:
Mark Munro, Rochelle Raccah