Package org.jooq.conf
Class MappedTable
- java.lang.Object
-
- org.jooq.conf.MappedTable
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,XMLAppendable
public class MappedTable extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, XMLAppendable
A table mapping configuration.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringinputprotected java.util.regex.PatterninputExpressionprotected java.lang.Stringoutput
-
Constructor Summary
Constructors Constructor Description MappedTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendTo(XMLBuilder builder)java.lang.Objectclone()booleanequals(java.lang.Object that)java.lang.StringgetInput()The input table as defined inNamed.getName()Either <input/> or <inputExpression/> must be provided.java.util.regex.PatterngetInputExpression()A regular expression matching the input table name as defined inNamed.getName()Either <input/> or <inputExpression/> must be providedjava.lang.StringgetOutput()The output table as it will be rendered in SQL.inthashCode()voidsetInput(java.lang.String value)Sets the value of the input property.voidsetInputExpression(java.util.regex.Pattern value)Sets the value of the inputExpression property.voidsetOutput(java.lang.String value)Sets the value of the output property.java.lang.StringtoString()MappedTablewithInput(java.lang.String value)MappedTablewithInputExpression(java.util.regex.Pattern value)MappedTablewithOutput(java.lang.String value)
-
-
-
Method Detail
-
getInput
public java.lang.String getInput()
The input table as defined inNamed.getName()Either <input/> or <inputExpression/> must be provided.- Returns:
- possible object is
String
-
setInput
public void setInput(java.lang.String value)
Sets the value of the input property.- Parameters:
value- allowed object isString
-
getInputExpression
public java.util.regex.Pattern getInputExpression()
A regular expression matching the input table name as defined inNamed.getName()Either <input/> or <inputExpression/> must be provided- Returns:
- possible object is
String
-
setInputExpression
public void setInputExpression(java.util.regex.Pattern value)
Sets the value of the inputExpression property.- Parameters:
value- allowed object isString
-
getOutput
public java.lang.String getOutput()
The output table 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.
- Returns:
- possible object is
String
-
setOutput
public void setOutput(java.lang.String value)
Sets the value of the output property.- Parameters:
value- allowed object isString
-
withInput
public MappedTable withInput(java.lang.String value)
-
withInputExpression
public MappedTable withInputExpression(java.util.regex.Pattern value)
-
withOutput
public MappedTable withOutput(java.lang.String value)
-
appendTo
public final void appendTo(XMLBuilder builder)
- Specified by:
appendToin interfaceXMLAppendable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
-