|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteasik.sketch.util.Export.Components.ExportEdge
public class ExportEdge
Class to store edge information. Should only be used for exportation to a database. Does not provide functionality for graphical display.
| Field Summary | |
|---|---|
private boolean |
_injective
Stores whether the edge is injective |
private java.lang.String |
_name
The name of the edge |
private java.lang.String |
_source
The source of the edge |
private java.lang.String |
_target
The target of the edges |
| Constructor Summary | |
|---|---|
ExportEdge(java.lang.String n,
boolean injective,
java.lang.String source,
java.lang.String target)
Constructor. |
|
| Method Summary | |
|---|---|
static java.lang.String |
getForeignKeyString(ExportTable t)
Formats the foreign key string for SQL. |
java.lang.String |
getName()
Getter method for the name of the edge |
java.lang.String |
getSource()
Getter method of the name of the source (that is, domain) of this edge. |
java.lang.String |
getTarget()
Getter method of the name of the target (that is, codomain) of this edge. |
boolean |
isInjective()
Determines whether an edge is injective. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String _name
private java.lang.String _source
private java.lang.String _target
private boolean _injective
| Constructor Detail |
|---|
public ExportEdge(java.lang.String n,
boolean injective,
java.lang.String source,
java.lang.String target)
n - The name of the edgeinjective - true if edge is injective, false otherwisesource - The name of the source tabletarget - The name of the target table| Method Detail |
|---|
public java.lang.String getName()
public boolean isInjective()
public java.lang.String getTarget()
public java.lang.String getSource()
public static java.lang.String getForeignKeyString(ExportTable t)
t - The table for which the foreign key string should be determined
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||