public class JdbcResponse extends ClientListenerResponse implements JdbcRawBinarylizable
STATUS_FAILED, STATUS_SUCCESS| Constructor and Description |
|---|
JdbcResponse()
Default constructs is used for deserialization
|
JdbcResponse(int status,
String err)
Constructs failed rest response.
|
JdbcResponse(JdbcResult res)
Constructs successful rest response.
|
| Modifier and Type | Method and Description |
|---|---|
void |
readBinary(BinaryReaderExImpl reader)
Reads fields from provided reader.
|
JdbcResult |
response() |
String |
toString() |
void |
writeBinary(BinaryWriterExImpl writer)
Writes fields to provided writer.
|
error, error, status, statuspublic JdbcResponse()
public JdbcResponse(JdbcResult res)
res - Response result.public JdbcResponse(int status,
@Nullable
String err)
status - Response status.err - Error, null if success is true.public JdbcResult response()
public void writeBinary(BinaryWriterExImpl writer) throws BinaryObjectException
writeBinary in interface JdbcRawBinarylizablewriter - Binary object writer.BinaryObjectException - In case of error.public void readBinary(BinaryReaderExImpl reader) throws BinaryObjectException
readBinary in interface JdbcRawBinarylizablereader - Binary object reader.BinaryObjectException - In case of error.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018