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 |
|---|---|
int |
compareTo(Object o)
Compares this edge to the given one using
the
nodes first. |
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()
public int compareTo(Object o)
EdgeEdge.getFrom() nodes first.
If those are equal the Edge.getTo()}
is used for comparison.compareTo in interface ComparablecompareTo in class EdgeComparable.compareTo(java.lang.Object)Copyright © 2002-2017. All Rights Reserved.