public interface DrillConnection extends Connection
Connection.unwrap(java.lang.Class<T>)TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Drill:
Not supported.
|
boolean |
getAutoCommit() |
DrillClient |
getClient() |
DrillConnectionConfig |
getConfig()
Returns a view onto this connection's configuration properties.
|
int |
getNetworkTimeout()
Drill:
Returns zero.
|
String |
getSchema() |
int |
getTransactionIsolation() |
boolean |
isClosed() |
boolean |
isWrapperFor(Class<?> iface) |
void |
releaseSavepoint(Savepoint savepoint)
Drill:
Not supported.
|
void |
rollback()
Drill:
Not supported.
|
void |
rollback(Savepoint savepoint)
Drill:
Not supported.
|
void |
setAutoCommit(boolean autoCommit) |
void |
setNetworkTimeout(Executor executor,
int milliseconds)
Drill:
Not supported (for non-zero timeout value).
|
Savepoint |
setSavepoint()
Drill:
Not supported.
|
Savepoint |
setSavepoint(String name)
Drill:
Not supported.
|
void |
setSchema(String schema) |
void |
setTransactionIsolation(int level) |
<T> T |
unwrap(Class<T> iface) |
abort, clearWarnings, close, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getTypeMap, getWarnings, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, setCatalog, setClientInfo, setClientInfo, setHoldability, setReadOnly, setTypeMap<T> T unwrap(Class<T> iface) throws SQLException
Drill:
Accepts DrillConnection.class.
unwrap in interface WrapperSQLExceptionboolean isWrapperFor(Class<?> iface) throws SQLException
Drill:
Returns true for DrillConnection.class.
isWrapperFor in interface WrapperSQLExceptionvoid setAutoCommit(boolean autoCommit)
throws SQLFeatureNotSupportedException,
SQLException
Drill:
Accepts only true.
setAutoCommit in interface ConnectionSQLFeatureNotSupportedException - if called with falseSQLExceptionboolean getAutoCommit()
throws SQLException
Drill:
Always returns true.
getAutoCommit in interface ConnectionSQLExceptionvoid commit()
throws SQLException
SQLFeatureNotSupportedException (or
AlreadyClosedSqlException).commit in interface ConnectionSQLExceptionvoid rollback()
throws SQLException
SQLFeatureNotSupportedException (or
AlreadyClosedSqlException).rollback in interface ConnectionSQLExceptionboolean isClosed()
Drill: Does not throw SQLException.
isClosed in interface Connectionvoid setTransactionIsolation(int level)
throws SQLFeatureNotSupportedException,
SQLException
Drill:
Accepts only Connection.TRANSACTION_NONE.
setTransactionIsolation in interface ConnectionSQLFeatureNotSupportedException - if level is not
Connection.TRANSACTION_NONE.SQLExceptionint getTransactionIsolation()
throws SQLException
Drill:
Always returns Connection.TRANSACTION_NONE.
getTransactionIsolation in interface ConnectionSQLExceptionSavepoint setSavepoint() throws SQLException
SQLFeatureNotSupportedException (or
AlreadyClosedSqlException).setSavepoint in interface ConnectionSQLExceptionSavepoint setSavepoint(String name) throws SQLException
SQLFeatureNotSupportedException (or
AlreadyClosedSqlException).setSavepoint in interface ConnectionSQLExceptionvoid rollback(Savepoint savepoint) throws SQLException
SQLFeatureNotSupportedException (or
AlreadyClosedSqlException).rollback in interface ConnectionSQLExceptionvoid releaseSavepoint(Savepoint savepoint) throws SQLException
SQLFeatureNotSupportedException (or
AlreadyClosedSqlException).releaseSavepoint in interface ConnectionSQLExceptionvoid setSchema(String schema) throws SQLException
setSchema in interface ConnectionSQLExceptionString getSchema() throws SQLException
getSchema in interface ConnectionSQLExceptionvoid setNetworkTimeout(Executor executor, int milliseconds) throws AlreadyClosedSqlException, JdbcApiSqlException, SQLFeatureNotSupportedException
Normally, just throws SQLFeatureNotSupportedException unless
request is trivially for no timeout (zero milliseconds value).
setNetworkTimeout in interface ConnectionAlreadyClosedSqlException - if connection is closedJdbcApiSqlException - if an invalid parameter value is detected (and not above case)SQLFeatureNotSupportedException - if timeout is non-zero (and not above case)int getNetworkTimeout()
throws AlreadyClosedSqlException
getNetworkTimeout in interface ConnectionAlreadyClosedSqlException - if connection is closedDrillConnectionConfig getConfig()
Properties.getProperty(String).DrillClient getClient()
Copyright © 2021 The Apache Software Foundation. All rights reserved.