public class ResultSetConverter extends Object implements JsonCodec<ResultSet,JsonObject>
| Modifier and Type | Field and Description |
|---|---|
static ResultSetConverter |
INSTANCE |
| Constructor and Description |
|---|
ResultSetConverter() |
| Modifier and Type | Method and Description |
|---|---|
ResultSet |
decode(JsonObject value)
Decode
<J> to <T>. |
JsonObject |
encode(ResultSet value)
Encode
<T> to <J>. |
static void |
fromJson(Iterable<Map.Entry<String,Object>> json,
ResultSet obj) |
Class<ResultSet> |
getTargetClass() |
static void |
toJson(ResultSet obj,
JsonObject json) |
static void |
toJson(ResultSet obj,
Map<String,Object> json) |
public static final ResultSetConverter INSTANCE
public JsonObject encode(ResultSet value)
JsonEncoder<T> to <J>.
value will not be null and the implementation must not return null.encode in interface JsonEncoder<ResultSet,JsonObject>value - the valuepublic ResultSet decode(JsonObject value)
JsonDecoder<J> to <T>.
json will not be null and the implementation must not return null.decode in interface JsonDecoder<ResultSet,JsonObject>value - the json valuepublic Class<ResultSet> getTargetClass()
getTargetClass in interface JsonDecoder<ResultSet,JsonObject>getTargetClass in interface JsonEncoder<ResultSet,JsonObject><T>public static void toJson(ResultSet obj, JsonObject json)
Copyright © 2019 Eclipse. All rights reserved.