org.openejb.test
Class PostgreSqlTestDatabase

java.lang.Object
  extended byorg.openejb.test.PostgreSqlTestDatabase
All Implemented Interfaces:
TestDatabase

public class PostgreSqlTestDatabase
extends Object
implements TestDatabase

Author:
David Blevins

Field Summary
protected  Database database
           
protected  InitialContext initialContext
           
 
Constructor Summary
PostgreSqlTestDatabase()
           
 
Method Summary
 void createAccountTable()
           
 void createEntityTable()
           
 void dropAccountTable()
           
 void dropEntityTable()
           
 void init(Properties props)
           
static void main(String[] args)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

database

protected Database database

initialContext

protected InitialContext initialContext
Constructor Detail

PostgreSqlTestDatabase

public PostgreSqlTestDatabase()
Method Detail

createEntityTable

public void createEntityTable()
                       throws SQLException
Specified by:
createEntityTable in interface TestDatabase
Throws:
SQLException

dropEntityTable

public void dropEntityTable()
                     throws SQLException
Specified by:
dropEntityTable in interface TestDatabase
Throws:
SQLException

createAccountTable

public void createAccountTable()
                        throws SQLException
Specified by:
createAccountTable in interface TestDatabase
Throws:
SQLException

dropAccountTable

public void dropAccountTable()
                      throws SQLException
Specified by:
dropAccountTable in interface TestDatabase
Throws:
SQLException

start

public void start()
           throws IllegalStateException
Specified by:
start in interface TestDatabase
Throws:
IllegalStateException

stop

public void stop()
          throws IllegalStateException
Specified by:
stop in interface TestDatabase
Throws:
IllegalStateException

init

public void init(Properties props)
          throws IllegalStateException
Specified by:
init in interface TestDatabase
Throws:
IllegalStateException

main

public static void main(String[] args)


Copyright © 1999-2007 OpenEJB. All Rights Reserved.