public interface MappingReferenceKeyElement extends MappingMemberElement, org.netbeans.modules.dbschema.ReferenceKey
PROP_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 |
addColumnPair(org.netbeans.modules.dbschema.ColumnPairElement pair)
Add a new column pair to the holder.
|
void |
addColumnPairs(org.netbeans.modules.dbschema.ColumnPairElement[] pairs)
Add some new column pairs to the holder.
|
ArrayList |
getColumnPairNames()
Returns the list of relative column pair names in this referencing key.
|
MappingTableElement |
getTable()
Returns the mapping table element for this referencing key.
|
void |
removeColumnPair(org.netbeans.modules.dbschema.ColumnPairElement pair)
Remove a column pair from the holder.
|
void |
removeColumnPair(String pairName)
Remove a column pair from the holder.
|
void |
removeColumnPairs(ArrayList pairNames)
Remove some column pairs from the holder.
|
void |
removeColumnPairs(org.netbeans.modules.dbschema.ColumnPairElement[] pairs)
Remove some column pairs from the holder.
|
void |
setColumnPairs(org.netbeans.modules.dbschema.ColumnPairElement[] pairs)
Set the column pairs for this holder.
|
void |
setTable(MappingTableElement table)
Set the mapping table for this referencing key to the supplied table.
|
getDeclaringClass
addPropertyChangeListener, addVetoableChangeListener, getName, removePropertyChangeListener, removeVetoableChangeListener, setName
compareTo
MappingTableElement getTable()
void setTable(MappingTableElement table) throws ModelException
table
- mapping table element to be used with this key.ModelException
- if impossibleArrayList getColumnPairNames()
void removeColumnPair(String pairName) throws ModelException
pairName
- the relative name of the column pair to removeModelException
- if impossiblevoid removeColumnPairs(ArrayList pairNames) throws ModelException
pairNames
- the relative names of the column pairs to removeModelException
- if impossiblevoid addColumnPair(org.netbeans.modules.dbschema.ColumnPairElement pair) throws ModelException
addColumnPair
in interface org.netbeans.modules.dbschema.ColumnPairElementHolder
pair
- the pair to addModelException
- if impossiblevoid addColumnPairs(org.netbeans.modules.dbschema.ColumnPairElement[] pairs) throws ModelException
addColumnPairs
in interface org.netbeans.modules.dbschema.ColumnPairElementHolder
pairs
- the column pairs to addModelException
- if impossiblevoid removeColumnPair(org.netbeans.modules.dbschema.ColumnPairElement pair) throws ModelException
removeColumnPair
in interface org.netbeans.modules.dbschema.ColumnPairElementHolder
pair
- the column pair to removeModelException
- if impossiblevoid removeColumnPairs(org.netbeans.modules.dbschema.ColumnPairElement[] pairs) throws ModelException
removeColumnPairs
in interface org.netbeans.modules.dbschema.ColumnPairElementHolder
pairs
- the column pairs to removeModelException
- if impossiblevoid setColumnPairs(org.netbeans.modules.dbschema.ColumnPairElement[] pairs) throws ModelException
setColumnPairs
in interface org.netbeans.modules.dbschema.ColumnPairElementHolder
pairs
- the new column pairsModelException
- if impossibleCopyright © 2021. All rights reserved.