Class JdbcOrderedBatchExecuteRequest
- java.lang.Object
-
- org.apache.ignite.internal.processors.odbc.ClientListenerRequestNoId
-
- org.apache.ignite.internal.processors.odbc.jdbc.JdbcRequest
-
- org.apache.ignite.internal.processors.odbc.jdbc.JdbcBatchExecuteRequest
-
- org.apache.ignite.internal.processors.odbc.jdbc.JdbcOrderedBatchExecuteRequest
-
- All Implemented Interfaces:
Comparable<JdbcOrderedBatchExecuteRequest>,ClientListenerRequest,JdbcRawBinarylizable
public class JdbcOrderedBatchExecuteRequest extends JdbcBatchExecuteRequest implements Comparable<JdbcOrderedBatchExecuteRequest>
JDBC batch execute ordered request.
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.odbc.jdbc.JdbcRequest
BATCH_EXEC, BINARY_TYPE_GET, BINARY_TYPE_NAME_GET, BINARY_TYPE_NAME_PUT, BINARY_TYPE_PUT, CACHE_PARTITIONS, META_COLUMNS, META_INDEXES, META_PARAMS, META_PRIMARY_KEYS, META_SCHEMAS, META_TABLES, QRY_EXEC, QRY_META, TX_END, TX_SET_PARAMS
-
Fields inherited from interface org.apache.ignite.internal.processors.odbc.ClientListenerRequest
HANDSHAKE
-
-
Constructor Summary
Constructors Constructor Description JdbcOrderedBatchExecuteRequest()Default constructor.JdbcOrderedBatchExecuteRequest(String schemaName, List<JdbcQuery> queries, boolean autoCommit, boolean lastStreamBatch, long order)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(@NotNull JdbcOrderedBatchExecuteRequest o)longorder()voidreadBinary(BinaryReaderExImpl reader, JdbcProtocolContext protoCtx)Reads fields from provided reader.StringtoString()voidwriteBinary(BinaryWriterExImpl writer, JdbcProtocolContext protoCtx)Writes fields to provided writer.-
Methods inherited from class org.apache.ignite.internal.processors.odbc.jdbc.JdbcBatchExecuteRequest
isLastStreamBatch, queries, schemaName
-
Methods inherited from class org.apache.ignite.internal.processors.odbc.jdbc.JdbcRequest
readRequest, readRequestId, readType, requestId, type
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.processors.odbc.ClientListenerRequest
beforeStartupRequest
-
-
-
-
Constructor Detail
-
JdbcOrderedBatchExecuteRequest
public JdbcOrderedBatchExecuteRequest()
Default constructor.
-
JdbcOrderedBatchExecuteRequest
public JdbcOrderedBatchExecuteRequest(String schemaName, List<JdbcQuery> queries, boolean autoCommit, boolean lastStreamBatch, long order)
- Parameters:
schemaName- Schema name.queries- Queries.autoCommit- Client auto commit flag state.lastStreamBatch-truein case the request is the last batch at the stream.order- Request order.
-
-
Method Detail
-
order
public long order()
- Returns:
- Request order.
-
writeBinary
public void writeBinary(BinaryWriterExImpl writer, JdbcProtocolContext protoCtx) throws BinaryObjectException
Writes fields to provided writer.- Specified by:
writeBinaryin interfaceJdbcRawBinarylizable- Overrides:
writeBinaryin classJdbcBatchExecuteRequest- Parameters:
writer- Binary object writer.protoCtx- JDBC protocol context.- Throws:
BinaryObjectException- In case of error.
-
readBinary
public void readBinary(BinaryReaderExImpl reader, JdbcProtocolContext protoCtx) throws BinaryObjectException
Reads fields from provided reader.- Specified by:
readBinaryin interfaceJdbcRawBinarylizable- Overrides:
readBinaryin classJdbcBatchExecuteRequest- Parameters:
reader- Binary object reader.protoCtx- JDBC protocol context.- Throws:
BinaryObjectException- In case of error.
-
toString
public String toString()
- Overrides:
toStringin classJdbcBatchExecuteRequest
-
compareTo
public int compareTo(@NotNull @NotNull JdbcOrderedBatchExecuteRequest o)- Specified by:
compareToin interfaceComparable<JdbcOrderedBatchExecuteRequest>
-
-