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.
Unlike the purely text based, formatting-preserving JSON data type,
the JSONB type uses a normalised representation of the JSON content,
meaning that e.g. the following two documents are equal, despite their
different object attribute order and formatting:
{"a":1,"b":2}{"b": 2, "a": 1}This impacts the behaviour (and performance!) of
The data() content, however, is not normalised.
| Modifier and Type | Method and Description |
|---|---|
| public final @NotNull String | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public int | |
| public static final @NotNull JSONB | |
| public static final @Nullable JSONB | jsonbOrNull(String data)
Create a new |
| private final Object | |
| public String | |
| public static final @NotNull JSONB |
| data | back to summary |
|---|---|
| private final String data | |
| parsed | back to summary |
|---|---|
| private transient Object parsed | |
| JSONB | back to summary |
|---|---|
| private JSONB(String data) | |
| data | back to summary |
|---|---|
public final @NotNull String data()
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| jsonb | back to summary |
|---|---|
| public static final @NotNull JSONB jsonb(String data) Create a new
This is the same as
| |
| jsonbOrNull | back to summary |
|---|---|
| public static final @Nullable JSONB jsonbOrNull(String data) Create a new
| |
| parsed | back to summary |
|---|---|
| private final Object parsed() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| valueOf | back to summary |
|---|---|
| public static final @NotNull JSONB valueOf(String data) Create a new
| |