Module org.jooq
Package org.jooq.conf

Class MappedUDT

java.lang.Object
org.jooq.conf.MappedUDT
All Implemented Interfaces:
Serializable, Cloneable, MappedSchemaObject, XMLAppendable

public class MappedUDT extends Object implements Serializable, Cloneable, MappedSchemaObject, XMLAppendable
A udt mapping configuration.
See Also:
  • Field Details

    • input

      protected String input
    • inputExpression

      protected Pattern inputExpression
    • output

      protected String output
  • Constructor Details

    • MappedUDT

      public MappedUDT()
  • Method Details

    • getInput

      public String getInput()
      The input UDT as defined in Named.getName()

      Either <input/> or <inputExpression/> must be provided.

      Specified by:
      getInput in interface MappedSchemaObject
    • setInput

      public void setInput(String value)
      The input UDT as defined in Named.getName()

      Either <input/> or <inputExpression/> must be provided.

    • getInputExpression

      public Pattern getInputExpression()
      A regular expression matching the input UDT name as defined in Named.getName()

      Either <input/> or <inputExpression/> must be provided

      Specified by:
      getInputExpression in interface MappedSchemaObject
    • setInputExpression

      public void setInputExpression(Pattern value)
      A regular expression matching the input UDT name as defined in Named.getName()

      Either <input/> or <inputExpression/> must be provided

    • getOutput

      public String getOutput()
      The output UDT as it will be rendered in SQL.
      • When <input/> is provided, <output/> is a constant value.
      • When <inputExpression/> is provided, <output/> is a replacement expression.
      Specified by:
      getOutput in interface MappedSchemaObject
    • setOutput

      public void setOutput(String value)
      The output UDT as it will be rendered in SQL.
      • When <input/> is provided, <output/> is a constant value.
      • When <inputExpression/> is provided, <output/> is a replacement expression.
    • withInput

      public MappedUDT withInput(String value)
      The input UDT as defined in Named.getName()

      Either <input/> or <inputExpression/> must be provided.

    • withInputExpression

      public MappedUDT withInputExpression(Pattern value)
      A regular expression matching the input UDT name as defined in Named.getName()

      Either <input/> or <inputExpression/> must be provided

    • withOutput

      public MappedUDT withOutput(String value)
      The output UDT as it will be rendered in SQL.
      • When <input/> is provided, <output/> is a constant value.
      • When <inputExpression/> is provided, <output/> is a replacement expression.
    • appendTo

      public final void appendTo(XMLBuilder builder)
      Specified by:
      appendTo in interface XMLAppendable
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • hashCode

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

      public Object clone()
      Overrides:
      clone in class Object