Package com.mckoi.database

Examples of com.mckoi.database.DatabaseSystem


    }

    WorkingDialog workDialog = new WorkingDialog(null);
    workDialog.setVisible(true);
    workDialog.SetProgress(0);
    DatabaseSystem system = new DatabaseSystem();
    // Create a default configuration
    DefaultDBConfig config = new DefaultDBConfig();
    File ff;
    try {
      ff = Fileio.getFile("data", "data", false, false);
    } catch (Exception ee) {
      SystemLog.ErrorPrint("Cant find db.conf : " + ee.getMessage());
      workDialog.dispose();
      return;
    }
    config.setDatabasePath(ff.getAbsolutePath());
    config.setMinimumDebugLevel(Integer.MAX_VALUE);
    // Set up the log file
    system.setDebugLevel(Integer.MAX_VALUE);
    // Initialize the DatabaseSystem,
    // -----------------------------
    // This will throw an Error exception if the database system has already
    // been initialized.
    system.init(config);
    // Note, currently we only register one database, and it is named
    //   'DefaultDatabase'.
    Database database = new Database(system, "DefaultDatabase");
    boolean success = false;
    try {
View Full Code Here

TOP

Related Classes of com.mckoi.database.DatabaseSystem

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.