}
}
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");
}