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 Wrapper
SQLException
boolean isWrapperFor(Class<?> iface) throws SQLException
Drill:
Returns true for DrillConnection.class
.
isWrapperFor
in interface Wrapper
SQLException
void setAutoCommit(boolean autoCommit) throws SQLFeatureNotSupportedException, SQLException
Drill:
Accepts only true
.
setAutoCommit
in interface Connection
SQLFeatureNotSupportedException
- if called with false
SQLException
boolean getAutoCommit() throws SQLException
Drill:
Always returns true
.
getAutoCommit
in interface Connection
SQLException
void commit() throws SQLException
SQLFeatureNotSupportedException
(or
AlreadyClosedSqlException
).commit
in interface Connection
SQLException
void rollback() throws SQLException
SQLFeatureNotSupportedException
(or
AlreadyClosedSqlException
).rollback
in interface Connection
SQLException
boolean isClosed()
Drill: Does not throw SQLException.
isClosed
in interface Connection
void setTransactionIsolation(int level) throws SQLFeatureNotSupportedException, SQLException
Drill:
Accepts only Connection.TRANSACTION_NONE
.
setTransactionIsolation
in interface Connection
SQLFeatureNotSupportedException
- if level
is not
Connection.TRANSACTION_NONE
.SQLException
int getTransactionIsolation() throws SQLException
Drill:
Always returns Connection.TRANSACTION_NONE
.
getTransactionIsolation
in interface Connection
SQLException
Savepoint setSavepoint() throws SQLException
SQLFeatureNotSupportedException
(or
AlreadyClosedSqlException
).setSavepoint
in interface Connection
SQLException
Savepoint setSavepoint(String name) throws SQLException
SQLFeatureNotSupportedException
(or
AlreadyClosedSqlException
).setSavepoint
in interface Connection
SQLException
void rollback(Savepoint savepoint) throws SQLException
SQLFeatureNotSupportedException
(or
AlreadyClosedSqlException
).rollback
in interface Connection
SQLException
void releaseSavepoint(Savepoint savepoint) throws SQLException
SQLFeatureNotSupportedException
(or
AlreadyClosedSqlException
).releaseSavepoint
in interface Connection
SQLException
void setSchema(String schema) throws SQLException
setSchema
in interface Connection
SQLException
String getSchema() throws SQLException
getSchema
in interface Connection
SQLException
void 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 Connection
AlreadyClosedSqlException
- 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 Connection
AlreadyClosedSqlException
- if connection is closedDrillConnectionConfig getConfig()
Properties.getProperty(String)
.DrillClient getClient()
Copyright © 1970 The Apache Software Foundation. All rights reserved.