Module org.jooq
Package org.jooq

Class Geography

java.lang.Object
org.jooq.Geography
All Implemented Interfaces:
Serializable, Spatial

public final class Geography extends Object implements Spatial
A wrapper type for spatial data obtained from the database.

The wrapper represents spatial data() in serialised string form either as a well known text (WKT) or well known binary in hex format (WKB), depending on your dialect's default behaviour. A CAST(NULL AS GEOGRAPHY) value is represented by a null reference of type Geography, not as data() == null. This is consistent with jOOQ's general way of returning NULL from Result and Record methods.

This data type is supported only by the commercial editions of jOOQ.

See Also:
  • Method Details

    • data

      @NotNull public final @NotNull String data()
      Specified by:
      data in interface Spatial
    • valueOf

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

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

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

    • geographyOrNull

      @Nullable public static final @Nullable Geography geographyOrNull(String data)
      Create a new Geography instance from string data input, or null if the input is null.
    • 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