org.openejb.test
Class PostgreSqlTestDatabase

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

public class PostgreSqlTestDatabase
extends java.lang.Object
implements TestDatabase

Author:
David Blevins

Field Summary
protected  Database database
           
protected  javax.naming.InitialContext initialContext
           
 
Constructor Summary
PostgreSqlTestDatabase()
           
 
Method Summary
 void createAccountTable()
           
 void createEntityTable()
           
 void dropAccountTable()
           
 void dropEntityTable()
           
 void init(java.util.Properties props)
           
static void main(java.lang.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 javax.naming.InitialContext initialContext
Constructor Detail

PostgreSqlTestDatabase

public PostgreSqlTestDatabase()
Method Detail

createEntityTable

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

dropEntityTable

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

createAccountTable

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

dropAccountTable

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

start

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

stop

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

init

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

main

public static void main(java.lang.String[] args)


Copyright © 1999-2011 OpenEJB. All Rights Reserved.