public interface MappingRelationshipElement extends MappingFieldElement
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.GROUP_DEFAULT, GROUP_INDEPENDENT, GROUP_NONEPROP_ASSOCIATED_COLUMNS, PROP_COLUMNS, PROP_CONSISTENCY, PROP_DATABASE_ROOT, PROP_FETCH_GROUP, PROP_FIELDS, PROP_IN_CONCURRENCY_CHECK, PROP_KEY_COLUMNS, PROP_MODIFIED, PROP_NAME, PROP_NAVIGABLE, PROP_READ_ONLY, PROP_REFERENCING_KEYS, PROP_TABLE, PROP_TABLES, PROP_VERSION_FIELD| Modifier and Type | Method and Description |
|---|---|
void |
addAssociatedColumn(org.netbeans.modules.dbschema.ColumnPairElement column)
Adds a column to the list of associated columns mapped by this mapping
field.
|
void |
addLocalColumn(org.netbeans.modules.dbschema.ColumnPairElement column)
Adds a column to the list of columns mapped by this mapping field.
|
ArrayList |
getAssociatedColumns()
Returns the list of associated column names to which this
mapping field is mapped.
|
addColumn, getColumns, getFetchGroup, isInConcurrencyCheck, isReadOnly, isVersion, removeColumn, setFetchGroup, setInConcurrencyCheck, setReadOnly, setVersiongetDeclaringClassaddPropertyChangeListener, addVetoableChangeListener, getName, removePropertyChangeListener, removeVetoableChangeListener, setNamecompareToArrayList getAssociatedColumns()
MappingFieldElement.getColumns()void addLocalColumn(org.netbeans.modules.dbschema.ColumnPairElement column)
throws ModelException
addColumn when mapping join
tables. This method is used to map between the local column and the
join table, while addAssociatedColumn is used to
map between the join table and the foreign table.column - foreign column element to be added to the mappingModelException - if impossibleMappingFieldElement.addColumn(org.netbeans.modules.dbschema.DBMemberElement),
addAssociatedColumn(org.netbeans.modules.dbschema.ColumnPairElement)void addAssociatedColumn(org.netbeans.modules.dbschema.ColumnPairElement column)
throws ModelException
addColumn when mapping
join tables. This method is used to map between the join table column
and the foreign table column, while addLocalColumn is used
to map between the local table and the join table.column - foreign column element to be added to the mappingModelException - if impossibleMappingFieldElement.addColumn(org.netbeans.modules.dbschema.DBMemberElement),
addLocalColumn(org.netbeans.modules.dbschema.ColumnPairElement)Copyright © 2013. All Rights Reserved.