public class DrillStatementImpl extends org.apache.calcite.avatica.AvaticaStatement implements DrillStatement
Statement
.cancelFlag, closed, closeOnCompletion, DEFAULT_FETCH_SIZE, handle, maxRowCount, openResultSet, updateCount
CLOSE_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, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getQueryTimeout, setQueryTimeout
cancel, 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, setMaxRows
isWrapperFor, unwrap
protected void checkOpen() throws AlreadyClosedSqlException
checkOpen
in class org.apache.calcite.avatica.AvaticaStatement
AlreadyClosedSqlException
- if Statement is closedpublic DrillConnectionImpl getConnection() throws SQLException
getConnection
in interface Statement
getConnection
in class org.apache.calcite.avatica.AvaticaStatement
SQLException
public long executeLargeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeLargeUpdate
in interface Statement
SQLException
public long executeLargeUpdate(String sql, int[] columnIndexes) throws SQLException
executeLargeUpdate
in interface Statement
SQLException
public long executeLargeUpdate(String sql, String[] columnNames) throws SQLException
executeLargeUpdate
in interface Statement
SQLException
public int executeUpdate(String sql, int[] columnIndexes) throws SQLException
executeUpdate
in interface Statement
executeUpdate
in class org.apache.calcite.avatica.AvaticaStatement
SQLException
public int executeUpdate(String sql, String[] columnNames) throws SQLException
executeUpdate
in interface Statement
executeUpdate
in class org.apache.calcite.avatica.AvaticaStatement
SQLException
public void cleanUp()
public boolean isClosed()
DrillStatement
Drill: Does not throw SQLException.
isClosed
in interface Statement
isClosed
in interface DrillStatement
isClosed
in class org.apache.calcite.avatica.AvaticaStatement
public void setEscapeProcessing(boolean enable) throws SQLException
setEscapeProcessing
in interface Statement
setEscapeProcessing
in class org.apache.calcite.avatica.AvaticaStatement
SQLException
public void setCursorName(String name) throws SQLException
setCursorName
in interface Statement
setCursorName
in class org.apache.calcite.avatica.AvaticaStatement
SQLException
public boolean getMoreResults() throws SQLException
getMoreResults
in interface Statement
getMoreResults
in class org.apache.calcite.avatica.AvaticaStatement
SQLException
public void addBatch(String sql) throws SQLException
addBatch
in interface Statement
addBatch
in class org.apache.calcite.avatica.AvaticaStatement
SQLException
public void clearBatch() throws SQLException
clearBatch
in interface Statement
clearBatch
in class org.apache.calcite.avatica.AvaticaStatement
SQLException
public int[] executeBatch() throws SQLException
executeBatch
in interface Statement
executeBatch
in class org.apache.calcite.avatica.AvaticaStatement
SQLException
public boolean getMoreResults(int current) throws SQLException
getMoreResults
in interface Statement
getMoreResults
in class org.apache.calcite.avatica.AvaticaStatement
SQLException
public ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys
in interface Statement
getGeneratedKeys
in class org.apache.calcite.avatica.AvaticaStatement
SQLException
public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeUpdate
in interface Statement
executeUpdate
in class org.apache.calcite.avatica.AvaticaStatement
SQLException
public boolean execute(String sql, int autoGeneratedKeys) throws SQLException
execute
in interface Statement
execute
in class org.apache.calcite.avatica.AvaticaStatement
SQLException
public boolean execute(String sql, int[] columnIndexes) throws SQLException
execute
in interface Statement
execute
in class org.apache.calcite.avatica.AvaticaStatement
SQLException
public boolean execute(String sql, String[] columnNames) throws SQLException
execute
in interface Statement
execute
in class org.apache.calcite.avatica.AvaticaStatement
SQLException
public void setPoolable(boolean poolable) throws SQLException
setPoolable
in interface Statement
setPoolable
in class org.apache.calcite.avatica.AvaticaStatement
SQLException
public void setResultSet(org.apache.calcite.avatica.AvaticaResultSet resultSet)
setResultSet
in interface DrillStatement
public void setUpdateCount(int value)
setUpdateCount
in interface DrillStatement
public void setLargeMaxRows(long maxRowCount) throws SQLException
setLargeMaxRows
in interface Statement
setLargeMaxRows
in class org.apache.calcite.avatica.AvaticaStatement
SQLException
Copyright © 1970 The Apache Software Foundation. All rights reserved.