public class JdbcResponse extends ClientListenerResponse implements JdbcRawBinarylizable
STATUS_FAILED, STATUS_SUCCESS| Constructor and Description |
|---|
JdbcResponse()
Default constructs is used for deserialization
|
JdbcResponse(int status,
@Nullable String err)
Constructs failed rest response.
|
JdbcResponse(JdbcResult res)
Constructs successful rest response.
|
JdbcResponse(JdbcResult res,
@Nullable AffinityTopologyVersion affinityVer)
Constructs successful rest response.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
activeTransaction() |
void |
activeTransaction(boolean activeTx) |
AffinityTopologyVersion |
affinityVersion() |
void |
readBinary(BinaryReaderExImpl reader,
ClientListenerProtocolVersion ver)
Reads fields from provided reader.
|
JdbcResult |
response() |
String |
toString() |
void |
writeBinary(BinaryWriterExImpl writer,
ClientListenerProtocolVersion ver)
Writes fields to provided writer.
|
error, error, status, statuspublic JdbcResponse()
public JdbcResponse(JdbcResult res)
res - Response result.public JdbcResponse(JdbcResult res, @Nullable @Nullable AffinityTopologyVersion affinityVer)
res - Response result.public JdbcResponse(int status,
@Nullable
@Nullable String err)
status - Response status.err - Error, null if success is true.public JdbcResult response()
public AffinityTopologyVersion affinityVersion()
public boolean activeTransaction()
public void activeTransaction(boolean activeTx)
activeTx - Sets active transaction flag.public void writeBinary(BinaryWriterExImpl writer, ClientListenerProtocolVersion ver) throws BinaryObjectException
writeBinary in interface JdbcRawBinarylizablewriter - Binary object writer.ver - ver Protocol version.BinaryObjectException - In case of error.public void readBinary(BinaryReaderExImpl reader, ClientListenerProtocolVersion ver) throws BinaryObjectException
readBinary in interface JdbcRawBinarylizablereader - Binary object reader.ver - Protocol version.BinaryObjectException - In case of error.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020