public class DruidJdbcPreparedStatement extends AbstractDruidJdbcStatement
PreparedStatement class. A prepared statement can be prepared
once with a query, then executed any number of times, typically with
parameter values. No parameters are provided during prepare, though we do
learn the parameter definitions passed back to the client and used by
Avatica for serialization. Each execution produces a
DruidJdbcResultSet. Only one execution is active at a time.connectionId, resultSet, START_OFFSET, statementId, throwable| Constructor and Description |
|---|
DruidJdbcPreparedStatement(String connectionId,
int statementId,
PreparedStatement stmt,
long maxRowCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
execute(List<org.apache.calcite.avatica.remote.TypedValue> parameters) |
org.apache.calcite.avatica.Meta.Signature |
getSignature() |
void |
prepare() |
closeResultSet, createColumnMetaData, createSignature, getConnectionId, getCurrentOffset, getStatementId, isDone, nextFrame, requireResultSetpublic DruidJdbcPreparedStatement(String connectionId, int statementId, PreparedStatement stmt, long maxRowCount)
public void prepare()
public org.apache.calcite.avatica.Meta.Signature getSignature()
getSignature in class AbstractDruidJdbcStatementpublic void execute(List<org.apache.calcite.avatica.remote.TypedValue> parameters)
public void close()
close in interface Closeableclose in interface AutoCloseableclose in class AbstractDruidJdbcStatementCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.