Package org.insightech.er.editor.persistent

Examples of org.insightech.er.editor.persistent.Persistent


  public Map<String,ERTable> findAllTable(Project project){
    Map<String,ERTable> map = Maps.newLinkedHashMap();
    if(Collections3.isEmpty(project.getErmPathList())){
      return map;
    }
    Persistent persistent = Persistent.getInstance();
    InputStream in = null;
    for(String ermPath:project.getErmPathList()) {
      File file = new File(FileUtils.getAbsolutePath(ermPath));
      try {
        in =new BufferedInputStream(new FileInputStream(file));
        ERDiagram diagram = persistent.load(in);
        List<ERTable> erTableList = diagram.getDiagramContents().getContents().getTableSet().getList();
        for(ERTable erTable:erTableList) {
          map.put(erTable.getPhysicalName(), erTable);
        }
      } catch (FileNotFoundException e) {
View Full Code Here

TOP

Related Classes of org.insightech.er.editor.persistent.Persistent

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.