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) |
containsTable, createTables, getConnection, insert, updateInsertStatement
public H2Util(Path db)
public static boolean databaseExists(Path db)
public String getJDBCDriverClass()
JDBCUtil
getJDBCDriverClass
in class JDBCUtil
public boolean dropTableIfExists(Connection conn, String tableName) throws SQLException
dropTableIfExists
in class JDBCUtil
SQLException
public String getConnectionString()
getConnectionString
in class JDBCUtil
public Set<String> getTables(Connection connection) throws SQLException
getTables
in class JDBCUtil
SQLException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.