Method Summary |
|
final public void | addField(Field field) Add given field to list of foreign key fields. |
final public void | addReferenceField(Field field) Add given field to list of fields referenced by the foreign key. |
final public boolean | equals(Object other) |
final protected void | fieldNames(DDLWriter writer) Concatenate all field names delimited by field delimiter and whitespace. |
final public Field | getField(int index) Get foreign key field at given index.
Parameters: index - Index of foreign key field to return. |
final public int | getFieldCount() Get number of foreign key fields. |
final public Field | getReferenceField(int index) Get field referenced by the foreign key at given index.
Parameters: index - Index of referenced field to return. |
final public int | getReferenceFieldCount() Get number of fields referenced by the foreign key. |
final public Table | getReferenceTable() Get table referenced by the foreign key. |
final public int | getRelationType() Get type of relation. |
final public Table | getTable() Get table that holds foreign key. |
final public int | hashCode() |
final public void | merge(ForeignKey fk) Check if given foreign key can be merged with this one. |
final protected void | referencedFieldNames(DDLWriter writer) Concatenate all referenced field names delimited by field delimiter and whitespace. |
final public void | setReferenceTable(Table table) Set table referenced by the foreign key. |
final public void | setRelationType(int relationType) Set type of relation. |
final public void | setTable(Table table) Set table that holds foreign key. |
final public void | toDropDDL(DDLWriter writer) |