Package org.apache.drill.jdbc
Interface DrillConnection
- All Superinterfaces:
AutoCloseable,Connection,Wrapper
- All Known Implementing Classes:
DrillConnectionImpl
Drill-specific
Connection.- See Also:
-
Field Summary
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit()Drill: Not supported.booleanReturns a view onto this connection's configuration properties.intDrill: Returns zero.intbooleanisClosed()booleanisWrapperFor(Class<?> iface) voidreleaseSavepoint(Savepoint savepoint) Drill: Not supported.voidrollback()Drill: Not supported.voidDrill: Not supported.voidsetAutoCommit(boolean autoCommit) voidsetNetworkTimeout(Executor executor, int milliseconds) Drill: Not supported (for non-zero timeout value).Drill: Not supported.setSavepoint(String name) Drill: Not supported.voidvoidsetTransactionIsolation(int level) <T> TMethods inherited from interface java.sql.Connection
abort, beginRequest, clearWarnings, close, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, endRequest, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getTypeMap, getWarnings, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, setCatalog, setClientInfo, setClientInfo, setHoldability, setReadOnly, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid, setTypeMap
-
Method Details
-
unwrap
Drill: Accepts
DrillConnection.class.- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
isWrapperFor
Drill: Returns true for
DrillConnection.class.- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
setAutoCommit
Drill: Accepts only
true.- Specified by:
setAutoCommitin interfaceConnection- Throws:
SQLFeatureNotSupportedException- if called withfalseSQLException
-
getAutoCommit
Drill: Always returns
true.- Specified by:
getAutoCommitin interfaceConnection- Throws:
SQLException
-
commit
Drill: Not supported. Always throwsSQLFeatureNotSupportedException(orAlreadyClosedSqlException).- Specified by:
commitin interfaceConnection- Throws:
SQLException
-
rollback
Drill: Not supported. Always throwsSQLFeatureNotSupportedException(orAlreadyClosedSqlException).- Specified by:
rollbackin interfaceConnection- Throws:
SQLException
-
isClosed
boolean isClosed()Drill: Does not throw SQLException.
- Specified by:
isClosedin interfaceConnection
-
setTransactionIsolation
Drill: Accepts only
Connection.TRANSACTION_NONE.- Specified by:
setTransactionIsolationin interfaceConnection- Throws:
SQLFeatureNotSupportedException- iflevelis notConnection.TRANSACTION_NONE.SQLException
-
getTransactionIsolation
Drill: Always returns
Connection.TRANSACTION_NONE.- Specified by:
getTransactionIsolationin interfaceConnection- Throws:
SQLException
-
setSavepoint
Drill: Not supported. Always throwsSQLFeatureNotSupportedException(orAlreadyClosedSqlException).- Specified by:
setSavepointin interfaceConnection- Throws:
SQLException
-
setSavepoint
Drill: Not supported. Always throwsSQLFeatureNotSupportedException(orAlreadyClosedSqlException).- Specified by:
setSavepointin interfaceConnection- Throws:
SQLException
-
rollback
Drill: Not supported. Always throwsSQLFeatureNotSupportedException(orAlreadyClosedSqlException).- Specified by:
rollbackin interfaceConnection- Throws:
SQLException
-
releaseSavepoint
Drill: Not supported. Always throwsSQLFeatureNotSupportedException(orAlreadyClosedSqlException).- Specified by:
releaseSavepointin interfaceConnection- Throws:
SQLException
-
setSchema
- Specified by:
setSchemain interfaceConnection- Throws:
SQLException
-
getSchema
- Specified by:
getSchemain interfaceConnection- Throws:
SQLException
-
setNetworkTimeout
void setNetworkTimeout(Executor executor, int milliseconds) throws AlreadyClosedSqlException, JdbcApiSqlException, SQLFeatureNotSupportedException Drill: Not supported (for non-zero timeout value).Normally, just throws
SQLFeatureNotSupportedExceptionunless request is trivially for no timeout (zeromillisecondsvalue).- Specified by:
setNetworkTimeoutin interfaceConnection- Throws:
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)
-
getNetworkTimeout
Drill: Returns zero.- Specified by:
getNetworkTimeoutin interfaceConnection- Throws:
AlreadyClosedSqlException- if connection is closed
-
getConfig
DrillConnectionConfig getConfig()Returns a view onto this connection's configuration properties. Code within Optiq should use this view rather than callingProperties.getProperty(String). -
getClient
DrillClient getClient()
-