Package org.insightech.er.editor.model.diagram_contents.element.node.table

Examples of org.insightech.er.editor.model.diagram_contents.element.node.table.TableView


 
  public boolean isMappedBy(){
    boolean mappedBy = false;
    if(RELATION_TYPE_MANY_TO_MANY.equals(getRelationType())) {
      String tableName = relation.getSourceTableView().getPhysicalName();
      TableView joinTable =relation.getTargetTableView();
      if(!joinTable.getExpandedColumns().get(0).getRelationList().get(0).getSourceTableView().getPhysicalName().equals(tableName)){
        mappedBy = true;
      }
    }
    return mappedBy;
  }  
View Full Code Here


    return importList;
  }
 
  private TableView getFinalTargetTableView(){
    String tableName = getFinalSourceTableView().getPhysicalName();
    TableView tableView = relation.getTargetTableView();
    if(!isOutgoing()) {
      tableView=relation.getSourceTableView();
    }
    if(RELATION_TYPE_MANY_TO_MANY.equals(getRelationType())) {
      TableView joinTable =relation.getTargetTableView();
      for(NormalColumn normalColumn:joinTable.getExpandedColumns()) {
        for(Relation r:normalColumn.getRelationList()) {
          if(!r.getSourceTableView().getPhysicalName().equals(tableName)) {
            tableView = r.getSourceTableView();
            break;
          }
View Full Code Here

    }
    return tableView;
  }
 
  private TableView getFinalSourceTableView(){
    TableView tableView = null;
    if(isOutgoing()) {
      tableView = relation.getSourceTableView();
    } else {
      tableView = relation.getTargetTableView();
    }
View Full Code Here

TOP

Related Classes of org.insightech.er.editor.model.diagram_contents.element.node.table.TableView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.