Package org.apache.tika.eval.app.db
Class H2Util
- java.lang.Object
-
- org.apache.tika.eval.app.db.JDBCUtil
-
- org.apache.tika.eval.app.db.H2Util
-
public class H2Util extends JDBCUtil
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.tika.eval.app.db.JDBCUtil
JDBCUtil.CREATE_TABLE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
databaseExists(Path db)
boolean
dropTableIfExists(Connection conn, String tableName)
String
getConnectionString()
String
getJDBCDriverClass()
JDBC driver class.Set<String>
getTables(Connection connection)
-
Methods inherited from class org.apache.tika.eval.app.db.JDBCUtil
batchInsert, containsTable, createTables, getConnection, insert, updateInsertStatement
-
-
-
-
Constructor Detail
-
H2Util
public H2Util(Path db)
-
-
Method Detail
-
databaseExists
public static boolean databaseExists(Path db)
-
getJDBCDriverClass
public String getJDBCDriverClass()
Description copied from class:JDBCUtil
JDBC driver class. Override as necessary.- Overrides:
getJDBCDriverClass
in classJDBCUtil
- Returns:
-
dropTableIfExists
public boolean dropTableIfExists(Connection conn, String tableName) throws SQLException
- Overrides:
dropTableIfExists
in classJDBCUtil
- Throws:
SQLException
-
getConnectionString
public String getConnectionString()
- Overrides:
getConnectionString
in classJDBCUtil
-
getTables
public Set<String> getTables(Connection connection) throws SQLException
- Overrides:
getTables
in classJDBCUtil
- Throws:
SQLException
-
-