- java.lang.Object
-
- io.helidon.dbclient.jsonp.JsonProcessingMapper
-
- All Implemented Interfaces:
DbMapper<JsonObject>
public final class JsonProcessingMapper extends Object implements DbMapper<JsonObject>
Json processing mapper.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonProcessingMappercreate()JsonObjectread(DbRow row)Get a JSON-P representation of this row.List<Object>toIndexedParameters(JsonObject value)Map<String,Object>toNamedParameters(JsonObject value)
-
-
-
Method Detail
-
create
public static JsonProcessingMapper create()
- Returns:
- a new mapper
-
read
public JsonObject read(DbRow row)
Get a JSON-P representation of this row.- Specified by:
readin interfaceDbMapper<JsonObject>- Returns:
- json object containing column name to column value.
-
toNamedParameters
public Map<String,Object> toNamedParameters(JsonObject value)
- Specified by:
toNamedParametersin interfaceDbMapper<JsonObject>
-
toIndexedParameters
public List<Object> toIndexedParameters(JsonObject value)
- Specified by:
toIndexedParametersin interfaceDbMapper<JsonObject>
-
-