Interface JsonRecordSetter

All Known Implementing Classes:
JsonRecordUtil.JsonBigDecimalSetter, JsonRecordUtil.JsonBigIntegerSetter, JsonRecordUtil.JsonBooleanSetter, JsonRecordUtil.JsonDateTimeSetter, JsonRecordUtil.JsonDoubleSetter, JsonRecordUtil.JsonFloatSetter, JsonRecordUtil.JsonIntSetter, JsonRecordUtil.JsonLongSetter, JsonRecordUtil.JsonSetter, JsonRecordUtil.JsonShortSetter, JsonRecordUtil.JsonStringSetter

public interface JsonRecordSetter
An interface for RowSetters that obtain their values from JSON objects.
  • Method Summary

    Modifier and Type Method Description
    void set​(JsonRecord record, String key, RowSetter setter)
    A RowSetter that will set a value obtained from a JsonRecord as indicated in the record by the key.
  • Method Details

    • set

      void set​(JsonRecord record, String key, RowSetter setter)
      A RowSetter that will set a value obtained from a JsonRecord as indicated in the record by the key. The setter and the value it sets will be matched to the type of the column.
      Parameters:
      record - The JsonRecord from which to get the value.
      key - The property name by which to retrieve the value from the record.
      setter - The RowSetter for which the set method will be called.