- All Implemented Interfaces:
org.apache.ignite.internal.jdbc.proto.JdbcQueryEventHandler
public class JdbcQueryEventHandlerImpl
extends Object
implements org.apache.ignite.internal.jdbc.proto.JdbcQueryEventHandler
Jdbc query event handler implementation.
-
Field Summary
Fields
Client registry resources.
static final Set<org.apache.ignite.internal.sql.engine.SqlQueryType>
SqlQueryTypes allowed in JDBC select statements.
static final Set<org.apache.ignite.internal.sql.engine.SqlQueryType>
SqlQueryTypes allowed in JDBC update statements.
static final Set<org.apache.ignite.internal.sql.engine.SqlQueryType>
SqlQueryTypes types that return 0 in executeUpdate and execute / getUpdateCount.
-
Constructor Summary
Constructors
-
Method Summary
CompletableFuture<org.apache.ignite.internal.jdbc.proto.event.JdbcBatchExecuteResult>
batchAsync(long connectionId,
org.apache.ignite.internal.jdbc.proto.event.JdbcBatchExecuteRequest req)
CompletableFuture<org.apache.ignite.internal.jdbc.proto.event.JdbcBatchExecuteResult>
batchPrepStatementAsync(long connectionId,
org.apache.ignite.internal.jdbc.proto.event.JdbcBatchPreparedStmntRequest req)
columnsMetaAsync(org.apache.ignite.internal.jdbc.proto.event.JdbcMetaColumnsRequest req)
CompletableFuture<org.apache.ignite.internal.jdbc.proto.event.JdbcMetaPrimaryKeysResult>
queryAsync(long connectionId,
org.apache.ignite.internal.jdbc.proto.event.JdbcQueryExecuteRequest req)
schemasMetaAsync(org.apache.ignite.internal.jdbc.proto.event.JdbcMetaSchemasRequest req)
tablesMetaAsync(org.apache.ignite.internal.jdbc.proto.event.JdbcMetaTablesRequest req)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
UPDATE_STATEMENT_QUERIES
public static final Set<org.apache.ignite.internal.sql.engine.SqlQueryType> UPDATE_STATEMENT_QUERIES
SqlQueryTypes allowed in JDBC update statements.
-
SELECT_STATEMENT_QUERIES
public static final Set<org.apache.ignite.internal.sql.engine.SqlQueryType> SELECT_STATEMENT_QUERIES
SqlQueryTypes allowed in JDBC select statements.
-
ZERO_UPDATE_COUNT_QUERIES
public static final Set<org.apache.ignite.internal.sql.engine.SqlQueryType> ZERO_UPDATE_COUNT_QUERIES
SqlQueryTypes types that return 0 in executeUpdate and execute / getUpdateCount.
-
resources
Client registry resources.
-
-
Method Details
-
connect
- Specified by:
connect in interface org.apache.ignite.internal.jdbc.proto.JdbcQueryEventHandler
-
queryAsync
public CompletableFuture<? extends org.apache.ignite.internal.jdbc.proto.event.Response> queryAsync(long connectionId,
org.apache.ignite.internal.jdbc.proto.event.JdbcQueryExecuteRequest req)
- Specified by:
queryAsync in interface org.apache.ignite.internal.jdbc.proto.JdbcQueryEventHandler
-
batchAsync
public CompletableFuture<org.apache.ignite.internal.jdbc.proto.event.JdbcBatchExecuteResult> batchAsync(long connectionId,
org.apache.ignite.internal.jdbc.proto.event.JdbcBatchExecuteRequest req)
- Specified by:
batchAsync in interface org.apache.ignite.internal.jdbc.proto.JdbcQueryEventHandler
-
batchPrepStatementAsync
public CompletableFuture<org.apache.ignite.internal.jdbc.proto.event.JdbcBatchExecuteResult> batchPrepStatementAsync(long connectionId,
org.apache.ignite.internal.jdbc.proto.event.JdbcBatchPreparedStmntRequest req)
- Specified by:
batchPrepStatementAsync in interface org.apache.ignite.internal.jdbc.proto.JdbcQueryEventHandler
-
-
-
-
-
finishTxAsync
public CompletableFuture<org.apache.ignite.internal.jdbc.proto.event.JdbcFinishTxResult> finishTxAsync(long connectionId,
boolean commit)
- Specified by:
finishTxAsync in interface org.apache.ignite.internal.jdbc.proto.JdbcQueryEventHandler
-
cancelAsync
public CompletableFuture<org.apache.ignite.internal.jdbc.proto.event.JdbcQueryCancelResult> cancelAsync(long connectionId,
long correlationToken)
- Specified by:
cancelAsync in interface org.apache.ignite.internal.jdbc.proto.JdbcQueryEventHandler