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(java.lang.String tableFrom,
java.lang.String tableTo,
java.lang.String fkColumn,
java.lang.String pkColumn)
Creates an edge representing a FK.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o)
Compares this edge to the given one using
the
nodes first. |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFKColumn()
Gets the name of the foreign key column in the relationship.
|
java.lang.String |
getPKColumn()
Gets the name of the primary key column in the relationship.
|
int |
hashCode() |
java.lang.String |
toString() |
public ForeignKeyRelationshipEdge(java.lang.String tableFrom,
java.lang.String tableTo,
java.lang.String fkColumn,
java.lang.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 java.lang.String getFKColumn()
public java.lang.String getPKColumn()
public int compareTo(java.lang.Object o)
EdgeEdge.getFrom() nodes first.
If those are equal the Edge.getTo()}
is used for comparison.Copyright © 2002-2018. All Rights Reserved.