- java.lang.Object
-
- org.jooq.JSONB
-
- All Implemented Interfaces:
Serializable
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. ACAST(NULL AS JSONB)
value is represented by anull
reference of typeJSONB
, not asdata() == null
. This is consistent with jOOQ's general way of returningNULL
fromResult
andRecord
methods.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull String
data()
boolean
equals(Object obj)
int
hashCode()
static @NotNull JSONB
jsonb(String data)
Create a newJSONB
instance from string data input.String
toString()
static @NotNull JSONB
valueOf(String data)
Create a newJSONB
instance from string data input.
-
-
-
Method Detail
-
data
@NotNull public final @NotNull String data()
-
valueOf
@NotNull public static final @NotNull JSONB valueOf(String data)
Create a newJSONB
instance from string data input.
-
jsonb
@NotNull public static final @NotNull JSONB jsonb(String data)
Create a newJSONB
instance from string data input.This is the same as
valueOf(String)
, but it can be static imported.
-
-