Module org.jooq
Package org.jooq.conf

Class MappedSchema

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

public class MappedSchema extends Object implements Serializable, Cloneable, XMLAppendable
A schema mapping configuration.
See Also:
Serialized Form
  • Field Details

  • Constructor Details

    • MappedSchema

      public MappedSchema()
  • Method Details

    • getInput

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

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

    • setInput

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

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

    • getInputExpression

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

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

    • setInputExpression

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

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

    • getOutput

      public String getOutput()
      The output schema as it will be rendered in SQL.
      • When this is omitted, you can still apply table mapping.
      • When <input/> is provided, <output/> is a constant value.
      • When <inputExpression/> is provided, <output/> is a replacement expression
    • setOutput

      public void setOutput(String value)
      The output schema as it will be rendered in SQL.
      • When this is omitted, you can still apply table mapping.
      • When <input/> is provided, <output/> is a constant value.
      • When <inputExpression/> is provided, <output/> is a replacement expression
    • getTables

      public List<MappedTable> getTables()
    • setTables

      public void setTables(List<MappedTable> tables)
    • withInput

      public MappedSchema withInput(String value)
      The input schema name as defined in Named.getName()

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

    • withInputExpression

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

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

    • withOutput

      public MappedSchema withOutput(String value)
      The output schema as it will be rendered in SQL.
      • When this is omitted, you can still apply table mapping.
      • When <input/> is provided, <output/> is a constant value.
      • When <inputExpression/> is provided, <output/> is a replacement expression
    • withTables

      public MappedSchema withTables(MappedTable... values)
    • withTables

      public MappedSchema withTables(Collection<MappedTable> values)
    • withTables

      public MappedSchema withTables(List<MappedTable> tables)
    • 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