Last update: 2011-06-23

org.proteios.core
Class Install

java.lang.Object
  extended by org.proteios.core.Install

public final class Install
extends Object

This class contains static methods used to install items into an empty database.

Version:
2.0
Author:
Nicklas
Last modified
$Date: 2011-03-03 14:48:16 +0100 (Thu, 03 Mar 2011) $

Field Summary
static int NEW_SCHEMA_VERSION
          The schema version to give to new installations.
 
Constructor Summary
Install()
           
 
Method Summary
static void createTables(boolean update, ProgressReporter progress)
           
static void initDatabase(ProgressReporter progress, String rootPassword)
          Initialise the database by creating all items that are required for Proteios to work properly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEW_SCHEMA_VERSION

public static final int NEW_SCHEMA_VERSION
The schema version to give to new installations. Already existing installations will be updated to this version number by the Update.updateDatabase(ProgressReporter, String, String) method.

See Also:
Constant Field Values
Constructor Detail

Install

public Install()
Method Detail

createTables

public static void createTables(boolean update,
                                ProgressReporter progress)
                         throws BaseException
Throws:
BaseException

initDatabase

public static void initDatabase(ProgressReporter progress,
                                String rootPassword)
                         throws BaseException
Initialise the database by creating all items that are required for Proteios to work properly. Items that already exists will not be modified.

Parameters:
progress - An object implementing the ProgressReporter interface
Throws:
BaseException - This exception is thrown if there is an error

Last update: 2011-06-23