Package | Description |
---|---|
tap.metadata |
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<TAPForeignKey> |
TAPTable.foreignKeys
List of all foreign keys linking this table to others.
|
protected java.util.ArrayList<TAPForeignKey> |
TAPColumn.lstSources
List all foreign keys in which this column is a target.
|
protected java.util.ArrayList<TAPForeignKey> |
TAPColumn.lstTargets
List all foreign keys in which this column is a source.
|
Modifier and Type | Method and Description |
---|---|
TAPForeignKey |
TAPTable.addForeignKey(java.lang.String keyId,
TAPTable targetTable,
java.util.Map<java.lang.String,java.lang.String> columns)
Build a foreign key using the ID, the target table and the given list of columns.
|
TAPForeignKey |
TAPTable.addForeignKey(java.lang.String keyId,
TAPTable targetTable,
java.util.Map<java.lang.String,java.lang.String> columns,
java.lang.String description,
java.lang.String utype)
Build a foreign key using the ID, the target table, the given list of columns, the given description and the given UType.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<TAPForeignKey> |
TAPTable.getForeignKeys()
Get the list of all foreign keys associated whose the source is this table.
|
java.util.Iterator<TAPForeignKey> |
TAPColumn.getSources()
Get the list of foreign keys in which this column is a target (= is targeted another column).
|
java.util.Iterator<TAPForeignKey> |
TAPColumn.getTargets()
Get the list of foreign keys in which this column is a source (= is targeting another column).
|
Modifier and Type | Method and Description |
---|---|
void |
TAPTable.addForeignKey(TAPForeignKey key)
Add the given foreign key to this table.
|
protected void |
TAPColumn.addSource(TAPForeignKey key)
Let add a foreign key in which this column is a target (= which is targeted by another column).
|
protected void |
TAPColumn.addTarget(TAPForeignKey key)
Let add a foreign key in which this column is a source (= which is targeting another column).
|
protected void |
TAPTable.deleteRelations(TAPForeignKey key)
Delete the link between all columns of the given foreign key
and this foreign key.
|
boolean |
TAPTable.removeForeignKey(TAPForeignKey keyToRemove)
Remove the given foreign key from this table.
|
protected void |
TAPColumn.removeSource(TAPForeignKey key)
Remove the fact that this column is a target (= is targeted by another column)
in the given foreign key.
|
protected void |
TAPColumn.removeTarget(TAPForeignKey key)
Remove the fact that this column is a source (= is targeting another column)
in the given foreign key.
|
protected void |
TAPMetadata.writeForeignKey(TAPForeignKey fk,
java.io.PrintWriter writer)
Format in XML the given foreign key and then write it in the given writer.
|