Module org.jooq
Package org.jooq

Class XML

java.lang.Object
org.jooq.XML
All Implemented Interfaces:
Serializable

public final class XML extends Object implements Serializable
An XML wrapper type for XML data obtained from the database.

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

See Also:
Serialized Form
  • Method Details

    • data

      @NotNull public final @NotNull String data()
    • valueOf

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

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

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

    • xmlOrNull

      @Nullable public static final @Nullable XML xmlOrNull(String data)
      Create a new XML 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