public class HsqldbTestDatabase extends Object implements TestDatabase
| Modifier and Type | Field and Description |
|---|---|
protected Database |
database |
protected InitialContext |
initialContext |
| Constructor and Description |
|---|
HsqldbTestDatabase() |
| Modifier and Type | Method and Description |
|---|---|
void |
createAccountTable() |
void |
createEntityTable() |
void |
dropAccountTable() |
void |
dropEntityTable() |
void |
init(Properties props) |
void |
start() |
void |
stop() |
protected Database database
protected InitialContext initialContext
public void createEntityTable()
throws SQLException
createEntityTable in interface TestDatabaseSQLExceptionpublic void dropEntityTable()
throws SQLException
dropEntityTable in interface TestDatabaseSQLExceptionpublic void createAccountTable()
throws SQLException
createAccountTable in interface TestDatabaseSQLExceptionpublic void dropAccountTable()
throws SQLException
dropAccountTable in interface TestDatabaseSQLExceptionpublic void start()
throws IllegalStateException
start in interface TestDatabaseIllegalStateExceptionpublic void stop()
throws IllegalStateException
stop in interface TestDatabaseIllegalStateExceptionpublic void init(Properties props) throws IllegalStateException
init in interface TestDatabaseIllegalStateExceptionCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.