public abstract class JdbcDB extends Object implements Executor
| Modifier and Type | Field and Description |
|---|---|
protected String |
password |
protected String |
url |
protected String |
user |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Cleans up the JDBC resource without waiting for the Garbage Collection
|
Iterator<Object> |
execute(Connection conn,
String sql) |
Iterator<Object> |
executeQuery(String sql) |
protected abstract String |
getCatalogSql() |
abstract Connection |
getConnection() |
com.google.common.collect.ImmutableMap<String,org.apache.calcite.schema.Schema> |
getSchemas() |
protected com.google.common.collect.ImmutableMap<String,Integer> |
getTypes(Connection connection) |
boolean |
isCaseSensitive() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultSchema, getProductName, getSqlDialectprotected final String url
protected final String user
protected final String password
public abstract Connection getConnection() throws ClassNotFoundException, SQLException
ClassNotFoundExceptionSQLExceptionprotected abstract String getCatalogSql()
public com.google.common.collect.ImmutableMap<String,org.apache.calcite.schema.Schema> getSchemas() throws QuarkException
getSchemas in interface DataSourceQuarkExceptionprotected com.google.common.collect.ImmutableMap<String,Integer> getTypes(Connection connection) throws SQLException
SQLExceptionpublic Iterator<Object> executeQuery(String sql) throws Exception
executeQuery in interface ExecutorExceptionpublic Iterator<Object> execute(Connection conn, String sql) throws Exception
Exceptionpublic void cleanup()
throws SQLException
cleanup in interface ExecutorSQLExceptionpublic boolean isCaseSensitive()
isCaseSensitive in interface DataSourceCopyright © 2017. All rights reserved.