Class SimpleNaturalIntegerJson

  • All Implemented Interfaces:
    Serializable

    public class SimpleNaturalIntegerJson
    extends BaseJson
    this json allows us to differentiate between the following case when supplying integer values for updating in the DB 1. the field is not being sent in the json ( a null value will occur when using the SimpleIntegerJson as member in another json)- signifies not to touch the current value 2. the field appears as an empty json (just the internal value of SimpleIntegerJson will be null, but the member will not) - signifies reset to null
    See Also:
    Serialized Form
    • Constructor Detail

      • SimpleNaturalIntegerJson

        public SimpleNaturalIntegerJson()
    • Method Detail

      • getValue

        public Integer getValue()
        Value
        Returns:
        Value
      • setValue

        public void setValue​(Integer value)
        Value
        Parameters:
        value - Value