org.wamblee.support.persistence
Class DatabaseStarter

java.lang.Object
  extended by org.wamblee.support.persistence.DatabaseStarter

public class DatabaseStarter
extends java.lang.Object

This class is used for starting the database from ant.


Constructor Summary
DatabaseStarter()
          Constructs a database starter with the derby database.
DatabaseStarter(java.lang.Class aClass)
          Constructs the database starter.
 
Method Summary
static void main(java.lang.String[] aArgs)
          Execution as a main program.
 void start()
          Starts the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseStarter

public DatabaseStarter(java.lang.Class aClass)
                throws java.lang.Exception
Constructs the database starter.

Parameters:
aClassName - Classname of the database class to use.
Throws:
java.lang.Exception

DatabaseStarter

public DatabaseStarter()
                throws java.lang.Exception
Constructs a database starter with the derby database.

Throws:
java.lang.Exception
Method Detail

main

public static void main(java.lang.String[] aArgs)
                 throws java.lang.Exception
Execution as a main program. Commandline
 
    DatabaseStarter <databaseClassName>
 
 
where the database class name must be the name of a concrete subclass of Database.

Parameters:
aArgs -
Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Starts the database.

Throws:
java.lang.Exception


Copyright © 2010. All Rights Reserved.