Module org.jooq
Package org.jooq

Interface Data

All Superinterfaces:
Serializable
All Known Subinterfaces:
Spatial
All Known Implementing Classes:
Decfloat, Geography, Geometry, JSON, JSONB, XML

public interface Data extends Serializable
A type holding data(), which is a String based representation of a SQL data type with no reasonable representation in the JDK or in JDBC.

JDBC maps most types to JDK types, but some vendor specific types lack an equivalent in the JDK, or the relevant type is unsatisfactory (such as SQLXML, which is a resource). To work around such limitations, jOOQ establishes the set of Data types, with these properties:

  • They contain a NotNull representation of their data(). In other words, a CAST(NULL AS …) value is represented by a null reference of type Data, not as data() == null. This is consistent with jOOQ's general way of returning NULL from Result and Record methods.
  • They're Serializable
  • They may or may not use an internal, normalised representation of their data() for
    invalid reference
    #equals(Object)
    ,
    invalid reference
    #hashCode()
    , and
    invalid reference
    #toString()
    (e.g. JSONB)
Author:
Lukas Eder
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    Get the vendor specific String representation of this Data object.
  • Method Details

    • data

      @NotNull @NotNull String data()
      Get the vendor specific String representation of this Data object.