Module org.jooq
Package org.jooq


  • All Implemented Interfaces:

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

    The wrapper represents JSONB data() in serialised string form. A CAST(NULL AS JSONB) value is represented by a null reference of type JSONB, 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

        public final @NotNull String data()
      • valueOf

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

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

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

      • hashCode

        public int hashCode()
        hashCode in class Object