Package org.takadb.editor.export

Examples of org.takadb.editor.export.ExportSQL


    }
  }

  public void loadAllSQL (String loadDatabaseName) {

    ExportSQL exportSQL = new ExportSQL(this, this.jdbcDriverClassName, this.jdbcProtocol, this.databaseHost, this.databaseUsername, this.databasePassword);

    Connection conn;

    System.out.println ("Importing data from database " + loadDatabaseName);
    conn = sqlConnect (loadDatabaseName);

    if (conn == null) {
      System.err.println ("Failed to connect to database");
      Runtime.getRuntime().halt(1);
    }

    // categories
    System.out.println ("+ Loading categories...");
    setAllCategories (exportSQL.sqlLoadAllCategories (conn));

    // characters
    System.out.println ("+ Loading characters...");
    setAllCharacters (exportSQL.sqlLoadAllCharacters (conn));

    // elements
    System.out.println ("+ Loading elements...");
    setAllElements (exportSQL.sqlLoadAllElements (conn));

    // radicals
    System.out.println ("+ Loading radicals...");
    setAllRadicals (exportSQL.sqlLoadAllRadicals (conn));

    System.out.println ("Done loading");


  }
View Full Code Here


  }

  public void saveAllSQL (String saveDatabaseName) {

    ExportSQL exportSQL = new ExportSQL(this, this.jdbcDriverClassName, this.jdbcProtocol, this.databaseHost, this.databaseUsername, this.databasePassword);
    exportSQL.saveAllSQL (saveDatabaseName);
  }
View Full Code Here

TOP

Related Classes of org.takadb.editor.export.ExportSQL

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.