Class JsonProcessingMapper

  • All Implemented Interfaces:
    DbMapper<javax.json.JsonObject>

    public final class JsonProcessingMapper
    extends Object
    implements DbMapper<javax.json.JsonObject>
    Json processing mapper.
    • Method Detail

      • create

        public static JsonProcessingMapper create()
        Create a new mapper that can map JsonObject to DB parameters and DbRow to a JsonObject.
        Returns:
        a new mapper
      • read

        public javax.json.JsonObject read​(DbRow row)
        Get a JSON-P representation of this row.
        Specified by:
        read in interface DbMapper<javax.json.JsonObject>
        Returns:
        json object containing column name to column value.