org.mesopotamia.lang.java.util
Class InitDatabase

java.lang.Object
  extended by org.mesopotamia.lang.java.util.InitDatabase

public class InitDatabase
extends java.lang.Object

This utility class populates Mesopotamia table with Java-specific data.

Author:
Pavel Vlasov

Constructor Summary
InitDatabase()
           
 
Method Summary
 boolean execute(SQLProcessor processor)
           
static void main(java.lang.String[] args)
          Connects to database and initializes it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitDatabase

public InitDatabase()
Method Detail

execute

public boolean execute(SQLProcessor processor)
                throws java.sql.SQLException
Throws:
java.sql.SQLException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Connects to database and initializes it. Connects to HSQLDB on localhost with user sa and empty password.

Parameters:
args - Optional first parameter is database name.
Throws:
java.sql.SQLException
java.lang.ClassNotFoundException
java.lang.Exception


Copyright © 2005 Hammurapi Group. All Rights Reserved.