Module org.jooq
Package org.jooq

Class JSON

  • All Implemented Interfaces:
    Serializable

    public final class JSON
    extends Object
    implements Serializable
    A JSON wrapper type for JSON data obtained from the database.

    The wrapper represents JSON data() in serialised string form. A CAST(NULL AS JSON) value is represented by a null reference of type JSON, not as data() == null. This is consistent with jOOQ's general way of returning NULL from Result and Record methods.

    See Also:
    Serialized Form
    • Method Detail

      • data

        @NotNull
        public final @NotNull String data()
      • valueOf

        @NotNull
        public static final @NotNull JSON valueOf​(String data)
        Create a new JSON instance from string data input.
      • json

        @NotNull
        public static final @NotNull JSON json​(String data)
        Create a new JSON instance from string data input.

        This is the same as valueOf(String), but it can be static imported.

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object