public class DrillStatementImpl extends org.apache.calcite.avatica.AvaticaStatement implements DrillStatement
Statement.cancelFlag, closed, closeOnCompletion, DEFAULT_FETCH_SIZE, handle, maxRowCount, openResultSet, updateCountCLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Modifier and Type | Method and Description |
|---|---|
void |
addBatch(String sql) |
protected void |
checkOpen()
Throws AlreadyClosedSqlException iff this Statement is closed.
|
void |
cleanUp() |
void |
clearBatch() |
boolean |
execute(String sql,
int autoGeneratedKeys) |
boolean |
execute(String sql,
int[] columnIndexes) |
boolean |
execute(String sql,
String[] columnNames) |
int[] |
executeBatch() |
long |
executeLargeUpdate(String sql,
int autoGeneratedKeys) |
long |
executeLargeUpdate(String sql,
int[] columnIndexes) |
long |
executeLargeUpdate(String sql,
String[] columnNames) |
int |
executeUpdate(String sql,
int autoGeneratedKeys) |
int |
executeUpdate(String sql,
int[] columnIndexes) |
int |
executeUpdate(String sql,
String[] columnNames) |
DrillConnectionImpl |
getConnection() |
ResultSet |
getGeneratedKeys() |
boolean |
getMoreResults() |
boolean |
getMoreResults(int current) |
boolean |
isClosed() |
void |
setCursorName(String name) |
void |
setEscapeProcessing(boolean enable) |
void |
setLargeMaxRows(long maxRowCount) |
void |
setPoolable(boolean poolable) |
void |
setResultSet(org.apache.calcite.avatica.AvaticaResultSet resultSet) |
void |
setUpdateCount(int value) |
cancel, clearWarnings, close_, close, closeOnCompletion, execute, executeBatchInternal, executeInternal, executeInternal, executeLargeBatch, executeLargeUpdate, executeQuery, executeQueryInternal, executeUpdate, getBoundParameterValues, getFetchDirection, getFetchSize, getId, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getParameterValues, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getSignature, getStatementType, getUpdateCount, getWarnings, isCloseOnCompletion, isPoolable, isWrapperFor, resetStatement, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout, setSignature, syncResults, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetQueryTimeout, setQueryTimeoutcancel, clearWarnings, close, closeOnCompletion, execute, executeLargeBatch, executeLargeUpdate, executeQuery, executeUpdate, getFetchDirection, getFetchSize, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isCloseOnCompletion, isPoolable, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRowsisWrapperFor, unwrapprotected void checkOpen()
throws AlreadyClosedSqlException
checkOpen in class org.apache.calcite.avatica.AvaticaStatementAlreadyClosedSqlException - if Statement is closedpublic DrillConnectionImpl getConnection() throws SQLException
getConnection in interface StatementgetConnection in class org.apache.calcite.avatica.AvaticaStatementSQLExceptionpublic long executeLargeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeLargeUpdate in interface StatementSQLExceptionpublic long executeLargeUpdate(String sql, int[] columnIndexes) throws SQLException
executeLargeUpdate in interface StatementSQLExceptionpublic long executeLargeUpdate(String sql, String[] columnNames) throws SQLException
executeLargeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String sql, int[] columnIndexes) throws SQLException
executeUpdate in interface StatementexecuteUpdate in class org.apache.calcite.avatica.AvaticaStatementSQLExceptionpublic int executeUpdate(String sql, String[] columnNames) throws SQLException
executeUpdate in interface StatementexecuteUpdate in class org.apache.calcite.avatica.AvaticaStatementSQLExceptionpublic void cleanUp()
public boolean isClosed()
DrillStatementDrill: Does not throw SQLException.
isClosed in interface StatementisClosed in interface DrillStatementisClosed in class org.apache.calcite.avatica.AvaticaStatementpublic void setEscapeProcessing(boolean enable)
throws SQLException
setEscapeProcessing in interface StatementsetEscapeProcessing in class org.apache.calcite.avatica.AvaticaStatementSQLExceptionpublic void setCursorName(String name) throws SQLException
setCursorName in interface StatementsetCursorName in class org.apache.calcite.avatica.AvaticaStatementSQLExceptionpublic boolean getMoreResults()
throws SQLException
getMoreResults in interface StatementgetMoreResults in class org.apache.calcite.avatica.AvaticaStatementSQLExceptionpublic void addBatch(String sql) throws SQLException
addBatch in interface StatementaddBatch in class org.apache.calcite.avatica.AvaticaStatementSQLExceptionpublic void clearBatch()
throws SQLException
clearBatch in interface StatementclearBatch in class org.apache.calcite.avatica.AvaticaStatementSQLExceptionpublic int[] executeBatch()
throws SQLException
executeBatch in interface StatementexecuteBatch in class org.apache.calcite.avatica.AvaticaStatementSQLExceptionpublic boolean getMoreResults(int current)
throws SQLException
getMoreResults in interface StatementgetMoreResults in class org.apache.calcite.avatica.AvaticaStatementSQLExceptionpublic ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys in interface StatementgetGeneratedKeys in class org.apache.calcite.avatica.AvaticaStatementSQLExceptionpublic int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeUpdate in interface StatementexecuteUpdate in class org.apache.calcite.avatica.AvaticaStatementSQLExceptionpublic boolean execute(String sql, int autoGeneratedKeys) throws SQLException
execute in interface Statementexecute in class org.apache.calcite.avatica.AvaticaStatementSQLExceptionpublic boolean execute(String sql, int[] columnIndexes) throws SQLException
execute in interface Statementexecute in class org.apache.calcite.avatica.AvaticaStatementSQLExceptionpublic boolean execute(String sql, String[] columnNames) throws SQLException
execute in interface Statementexecute in class org.apache.calcite.avatica.AvaticaStatementSQLExceptionpublic void setPoolable(boolean poolable)
throws SQLException
setPoolable in interface StatementsetPoolable in class org.apache.calcite.avatica.AvaticaStatementSQLExceptionpublic void setResultSet(org.apache.calcite.avatica.AvaticaResultSet resultSet)
setResultSet in interface DrillStatementpublic void setUpdateCount(int value)
setUpdateCount in interface DrillStatementpublic void setLargeMaxRows(long maxRowCount)
throws SQLException
setLargeMaxRows in interface StatementsetLargeMaxRows in class org.apache.calcite.avatica.AvaticaStatementSQLExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.