public interface SchemaUtilDao
| Modifier and Type | Method and Description |
|---|---|
void |
createTable(SchemaTable table)
Creates a single table.
|
void |
createUnitTestDatabases(java.lang.String className) |
void |
dropTable(SchemaTable table)
Drops a single table.
|
void |
dropUnitTestDatabases(java.lang.String className) |
boolean |
exists(SchemaTable table)
Returns whether the specified table exists in the database
|
int |
getCountEstimate(SchemaTable table)
Returns an estimated row count for the specified table.
|
int |
getCountExact(SchemaTable table)
Returns an exact row count for the specified table.
|
void createTable(SchemaTable table) throws AlreadyExistsException
table - Table to create.AlreadyExistsExceptionboolean exists(SchemaTable table)
void dropTable(SchemaTable table) throws NotFoundException
table - Table to drop.NotFoundExceptionint getCountExact(SchemaTable table)
Note: This can / will be slow for large tables.
getCountEstimate(SchemaTable)int getCountEstimate(SchemaTable table)
Note: While not percise, this is fast for large tables
getCountExact(SchemaTable)void createUnitTestDatabases(java.lang.String className)
throws java.net.UnknownHostException
java.net.UnknownHostExceptionvoid dropUnitTestDatabases(java.lang.String className)
throws java.net.UnknownHostException
java.net.UnknownHostException