public void addLink(Constraint foreignkey)
 {
     string destTable = foreignkey.getRemoteTableName();
     Table tab = getAllTable(destTable);
     if (tab.getName() == destTable) {
         tab.addLink(foreignkey);
     }
 }
 public Constraint(Constraint c)
 {
     localAttributes = c.localAttributes;
     remoteAttributes = c.remoteAttributes;
     parentTable = c.parentTable;
     remoteTable = c.remoteTable;
     sName = c.sName;
     type =c.type;
     obj_bb = c.obj_bb;
     obj_pos = c.obj_pos;
     orth_points = c.orth_points;
     orth_orient = c.orth_orient;
 }
 public void addToCurrentDiagram(Constraint foreignkey)
 {
     string destTable = foreignkey.getRemoteTableName();
     Table tab = getTable(destTable);
     if ( tab.getName() != destTable) { // not already there
         tab = getAllTable(destTable);
         if (tab.getName().Length != 0) {
             tables.Add(tab);
         }
     }
 }