public interface MappingTableElement extends MappingMemberElement
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 |
addKeyColumn(org.netbeans.modules.dbschema.ColumnElement column)
Adds a column to the primary key of columns in this mapping table.
|
void |
addReferencingKey(MappingReferenceKeyElement referencingKey)
Adds a referencing key to the list of keys in this mapping table.
|
ArrayList |
getKey()
Returns the list of column names in the primary key for this
mapping table.
|
ArrayList |
getReferencingKeys()
Returns the list of keys (MappingReferenceKeyElements) for this
mapping table.
|
String |
getTable()
Returns the name of the table element used by this mapping table.
|
boolean |
isEqual(org.netbeans.modules.dbschema.TableElement table)
Returns true if the table element used by this mapping table is equal
to the supplied table.
|
void |
removeKeyColumn(String columnName)
Removes a column from the primary key of columns in this mapping table.
|
void |
removeReference(MappingTableElement table)
Removes the referencing key for the supplied table element from list
of keys in this mapping table.
|
void |
setTable(org.netbeans.modules.dbschema.TableElement table)
Set the table element for this mapping table to the supplied table.
|
getDeclaringClass
addPropertyChangeListener, addVetoableChangeListener, getName, removePropertyChangeListener, removeVetoableChangeListener, setName
compareTo
String getTable()
void setTable(org.netbeans.modules.dbschema.TableElement table) throws ModelException
table
- table element to be used by the mapping table.ModelException
- if impossibleboolean isEqual(org.netbeans.modules.dbschema.TableElement table)
true
if table elements are equal,
false
otherwise.ArrayList getKey()
void addKeyColumn(org.netbeans.modules.dbschema.ColumnElement column) throws ModelException
column
- column element to be addedModelException
- if impossiblevoid removeKeyColumn(String columnName) throws ModelException
columnName
- the relative name of the column to be removedModelException
- if impossibleArrayList getReferencingKeys()
void addReferencingKey(MappingReferenceKeyElement referencingKey) throws ModelException
referencingKey
- referencing key element to be addedModelException
- if impossiblevoid removeReference(MappingTableElement table) throws ModelException
table
- mapping table element for which to remove referencing keysModelException
- if impossibleCopyright © 2019. All rights reserved.