public class H2Util extends JDBCUtil
JDBCUtil.CREATE_TABLE| Modifier and Type | Method and Description |
|---|---|
static boolean |
databaseExists(Path db) |
boolean |
dropTableIfExists(Connection conn,
String tableName) |
String |
getConnectionString() |
String |
getJDBCDriverClass()
JDBC driver class.
|
Set<String> |
getTables(Connection connection) |
batchInsert, containsTable, createTables, getConnection, insert, updateInsertStatementpublic H2Util(Path db)
public static boolean databaseExists(Path db)
public String getJDBCDriverClass()
JDBCUtilgetJDBCDriverClass in class JDBCUtilpublic boolean dropTableIfExists(Connection conn, String tableName) throws SQLException
dropTableIfExists in class JDBCUtilSQLExceptionpublic String getConnectionString()
getConnectionString in class JDBCUtilpublic Set<String> getTables(Connection connection) throws SQLException
getTables in class JDBCUtilSQLExceptionCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.