Package org.apache.calcite.jdbc
Class CalciteStatement
- java.lang.Object
-
- org.apache.calcite.avatica.AvaticaStatement
-
- org.apache.calcite.jdbc.CalciteStatement
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.sql.Statement
,java.sql.Wrapper
- Direct Known Subclasses:
CalciteJdbc41Factory.CalciteJdbc41Statement
public abstract class CalciteStatement extends org.apache.calcite.avatica.AvaticaStatement
Implementation ofStatement
for the Calcite engine.
-
-
Constructor Summary
Constructors Constructor Description CalciteStatement(CalciteConnectionImpl connection, org.apache.calcite.avatica.Meta.StatementHandle h, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
Creates a CalciteStatement.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
close_()
CalciteConnectionImpl
getConnection()
protected <T> CalcitePrepare.CalciteSignature<T>
prepare(Queryable<T> queryable)
<T> T
unwrap(java.lang.Class<T> iface)
-
Methods inherited from class org.apache.calcite.avatica.AvaticaStatement
addBatch, cancel, checkOpen, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeBatchInternal, executeInternal, executeInternal, executeLargeBatch, executeLargeUpdate, executeQuery, executeQueryInternal, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getBoundParameterValues, getFetchDirection, getFetchSize, getGeneratedKeys, getId, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getParameterValues, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getSignature, getStatementType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, resetStatement, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, setSignature, syncResults
-
-
-
-
Constructor Detail
-
CalciteStatement
CalciteStatement(CalciteConnectionImpl connection, org.apache.calcite.avatica.Meta.StatementHandle h, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
Creates a CalciteStatement.- Parameters:
connection
- Connectionh
- Statement handleresultSetType
- Result set typeresultSetConcurrency
- Result set concurrencyresultSetHoldability
- Result set holdability
-
-
Method Detail
-
unwrap
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException
- Specified by:
unwrap
in interfacejava.sql.Wrapper
- Overrides:
unwrap
in classorg.apache.calcite.avatica.AvaticaStatement
- Throws:
java.sql.SQLException
-
getConnection
public CalciteConnectionImpl getConnection()
- Specified by:
getConnection
in interfacejava.sql.Statement
- Overrides:
getConnection
in classorg.apache.calcite.avatica.AvaticaStatement
-
prepare
protected <T> CalcitePrepare.CalciteSignature<T> prepare(Queryable<T> queryable)
-
close_
protected void close_()
- Overrides:
close_
in classorg.apache.calcite.avatica.AvaticaStatement
-
-