Module org.jooq
Package org.jooq

Class Decfloat

All Implemented Interfaces:
Serializable, Data

public final class Decfloat extends Number implements Data
A wrapper type for SQL:2016 standard DECFLOAT data types.

The wrapper represents DECFLOAT data() in serialised string form. A CAST(NULL AS DECFLOAT) value is represented by a null reference of type Decfloat, not as data() == null. This is consistent with jOOQ's general way of returning NULL from Result and Record methods.

See Also:
  • Method Details

    • data

      @NotNull public final @NotNull String data()
      Description copied from interface: Data
      Get the vendor specific String representation of this Data object.
      Specified by:
      data in interface Data
    • valueOf

      @NotNull public static final @NotNull Decfloat valueOf(String data)
      Create a new Decfloat instance from string data input.
    • decfloat

      @NotNull public static final @NotNull Decfloat decfloat(String data)
      Create a new Decfloat instance from string data input.

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

    • decfloatOrNull

      @Nullable public static final @Nullable Decfloat decfloatOrNull(String data)
      Create a new Decfloat instance from string data input, or null if the input is null.
    • isNaN

      public final boolean isNaN()
      Check whether this value is the Decfloat equivalent of Double.NaN.
    • isPositiveInfinity

      public final boolean isPositiveInfinity()
      Check whether this value is the Decfloat equivalent of Double.POSITIVE_INFINITY.
    • isNegativeInfinity

      public final boolean isNegativeInfinity()
      Check whether this value is the Decfloat equivalent of Double.NEGATIVE_INFINITY.
    • doubleValue

      public final double doubleValue()
      Specified by:
      doubleValue in class Number
    • floatValue

      public final float floatValue()
      Specified by:
      floatValue in class Number
    • intValue

      public final int intValue()
      Specified by:
      intValue in class Number
    • longValue

      public final long longValue()
      Specified by:
      longValue in class Number
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object