public interface Database
| Modifier and Type | Method and Description |
|---|---|
void |
create()
Creates this database
|
Connection |
getConnection()
Retrieves a connection to this database
|
boolean |
hasTable(String tableName)
Checks whether the specified table is created within this database (does not check schema)
|
boolean |
hasTable(String schemaName,
String tableName)
Checks whether the specified table is created within this database
|
void |
shutdown()
Shuts down this database
|
void create()
throws SQLException
SQLException - if any errors occurvoid shutdown()
throws SQLException
SQLException - if any errors occurConnection getConnection() throws SQLException
SQLException - if any errors occurboolean hasTable(String tableName) throws SQLException
tableName - the name of the table to checkSQLException - if any I/O errors occurboolean hasTable(String schemaName, String tableName) throws SQLException
schemaName - the database schema nametableName - the name of the table to checkSQLException - if any I/O errors occurCopyright © 2020 The Apache Software Foundation. All rights reserved.