java.lang.Object
org.jooq.JSON
- All Implemented Interfaces:
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:
-
Method Summary
Modifier and TypeMethodDescriptionfinal @NotNull String
data()
boolean
int
hashCode()
static final @NotNull JSON
Create a newJSON
instance from string data input.static final @Nullable JSON
jsonOrNull
(String data) toString()
static final @NotNull JSON
Create a newJSON
instance from string data input.
-
Method Details
-
data
-
valueOf
Create a newJSON
instance from string data input. -
json
Create a newJSON
instance from string data input.This is the same as
valueOf(String)
, but it can be static imported. -
jsonOrNull
-
hashCode
public int hashCode() -
equals
-
toString
-