All Implemented Interfaces:
org.apache.ignite.internal.jdbc.proto.JdbcDatabaseMetadataHandler
public class JdbcQueryEventHandlerImpl
extends Object
implements org.apache.ignite.internal.jdbc.proto.JdbcDatabaseMetadataHandler
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
All Methods Instance Methods Concrete Methods Deprecated Methods
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
Deprecated.
Create connection context on a server and returns connection identity.
Parameters:
timeZoneId - Client time-zone ID.
username - Current user name.
Returns:
A future representing result of the operation.
queryAsync
@Deprecated
public CompletableFuture <? extends org.apache.ignite.internal.jdbc.proto.event.Response> queryAsync (long connectionId,
org.apache.ignite.internal.jdbc.proto.event.JdbcQueryExecuteRequest req)
Deprecated.
JdbcQueryExecuteRequest command handler.
Parameters:
connectionId - Identifier of the connection.
req - Execute query request.
Returns:
Result future.
batchAsync
@Deprecated
public CompletableFuture <org.apache.ignite.internal.jdbc.proto.event.JdbcBatchExecuteResult> batchAsync (long connectionId,
org.apache.ignite.internal.jdbc.proto.event.JdbcBatchExecuteRequest req)
Deprecated.
JdbcBatchExecuteRequest command handler.
Parameters:
connectionId - Identifier of the connection.
req - Batch query request.
Returns:
Result future.
batchPrepStatementAsync
@Deprecated
public CompletableFuture <org.apache.ignite.internal.jdbc.proto.event.JdbcBatchExecuteResult> batchPrepStatementAsync (long connectionId,
org.apache.ignite.internal.jdbc.proto.event.JdbcBatchPreparedStmntRequest req)
Deprecated.
JdbcBatchPreparedStmntRequest command handler.
Parameters:
connectionId - The identifier of the connection.
req - Batch query request.
Returns:
Result future.
finishTxAsync
@Deprecated
public CompletableFuture <org.apache.ignite.internal.jdbc.proto.event.JdbcFinishTxResult> finishTxAsync (long connectionId,
boolean commit)
Deprecated.
Parameters:
connectionId - An identifier of the connection on a server.
commit - True to commit active transaction, false to rollback it.
Returns:
Result future.
cancelAsync
@Deprecated
public CompletableFuture <org.apache.ignite.internal.jdbc.proto.event.JdbcQueryCancelResult> cancelAsync (long connectionId,
long correlationToken)
Deprecated.
Cancels the execution of JDBC statement.
Parameters:
connectionId - An identifier of the connection on a server.
correlationToken - A token associated with the execution.
Returns:
Result future.