|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectschemacrawler.utility.TestDatabase
public class TestDatabase
Sets up a database schema for tests and examples.
| Constructor Summary | |
|---|---|
TestDatabase()
|
|
| Method Summary | |
|---|---|
void |
createMemoryDatabase()
Create database in memory. |
Catalog |
getCatalog(SchemaCrawlerOptions schemaCrawlerOptions)
|
Connection |
getConnection()
Gets the connection. |
Database |
getDatabase(SchemaCrawlerOptions schemaCrawlerOptions)
|
DatabaseConnectionOptions |
getDatabaseConnectionOptions()
|
Schema |
getSchema(SchemaCrawlerOptions schemaCrawlerOptions,
String schemaName)
|
static void |
initializeApplicationLogging()
|
static void |
main(String[] args)
Starts up a test database in server mode. |
void |
shutdownDatabase()
Shuts down the database server. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestDatabase()
| Method Detail |
|---|
public static void initializeApplicationLogging()
public static void main(String[] args)
throws Exception
args - Command line arguments
Exception - Exception
public void createMemoryDatabase()
throws SchemaCrawlerException
SchemaCrawlerException
public Catalog getCatalog(SchemaCrawlerOptions schemaCrawlerOptions)
throws SchemaCrawlerException,
SQLException
SchemaCrawlerException
SQLException
public Connection getConnection()
throws SchemaCrawlerException
SQLException
SchemaCrawlerException
public Database getDatabase(SchemaCrawlerOptions schemaCrawlerOptions)
throws SchemaCrawlerException,
SQLException
SchemaCrawlerException
SQLExceptionpublic DatabaseConnectionOptions getDatabaseConnectionOptions()
public Schema getSchema(SchemaCrawlerOptions schemaCrawlerOptions,
String schemaName)
throws SchemaCrawlerException,
SQLException
SchemaCrawlerException
SQLExceptionpublic void shutdownDatabase()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||