public class ForeignKeyRelationshipEdge extends Edge
from
node is the table which have the FK, while the
to
node is the table with the PK. In other words, the edge
A->B means FK(A) = PK(B).Constructor and Description |
---|
ForeignKeyRelationshipEdge(String tableFrom,
String tableTo,
String fkColumn,
String pkColumn)
Creates an edge representing a FK.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getFKColumn()
Gets the name of the foreign key column in the relationship.
|
String |
getPKColumn()
Gets the name of the primary key column in the relationship.
|
int |
hashCode() |
String |
toString() |
public ForeignKeyRelationshipEdge(String tableFrom, String tableTo, String fkColumn, String pkColumn)
tableFrom
- table that has the FKtableTo
- table that has the PKfkColumn
- name of the FK column on tableFrompkColumn
- name of the PK column on tableTopublic String getFKColumn()
public String getPKColumn()
Copyright © 2002–2017. All rights reserved.