- 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 Summary
Fields Modifier and Type Field Description protected Stringinputprotected PatterninputExpressionprotected Stringoutputprotected List<MappedTable>tables
-
Constructor Summary
Constructors Constructor Description MappedSchema()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendTo(XMLBuilder builder)Objectclone()booleanequals(Object that)StringgetInput()The input schema name as defined inNamed.getName()PatterngetInputExpression()A regular expression matching the input schema name as defined inNamed.getName()Either <input/> or <inputExpression/> must be providedStringgetOutput()The output schema as it will be rendered in SQL.List<MappedTable>getTables()inthashCode()voidsetInput(String value)Sets the value of the input property.voidsetInputExpression(Pattern value)Sets the value of the inputExpression property.voidsetOutput(String value)Sets the value of the output property.voidsetTables(List<MappedTable> tables)StringtoString()MappedSchemawithInput(String value)MappedSchemawithInputExpression(Pattern value)MappedSchemawithOutput(String value)MappedSchemawithTables(Collection<MappedTable> values)MappedSchemawithTables(List<MappedTable> tables)MappedSchemawithTables(MappedTable... values)
-
-
-
Field Detail
-
input
protected String input
-
inputExpression
protected Pattern inputExpression
-
output
protected String output
-
tables
protected List<MappedTable> tables
-
-
Method Detail
-
getInput
public String getInput()
The input schema name as defined inNamed.getName()Either <input/> or <inputExpression/> must be provided
- Returns:
- possible object is
String
-
setInput
public void setInput(String value)
Sets the value of the input property.- Parameters:
value- allowed object isString
-
getInputExpression
public Pattern getInputExpression()
A regular expression matching the input schema name as defined inNamed.getName()Either <input/> or <inputExpression/> must be provided- Returns:
- possible object is
String
-
setInputExpression
public void setInputExpression(Pattern value)
Sets the value of the inputExpression property.- Parameters:
value- allowed object isString
-
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
- Returns:
- possible object is
String
-
setOutput
public void setOutput(String value)
Sets the value of the output property.- Parameters:
value- allowed object isString
-
getTables
public List<MappedTable> getTables()
-
setTables
public void setTables(List<MappedTable> tables)
-
withInput
public MappedSchema withInput(String value)
-
withInputExpression
public MappedSchema withInputExpression(Pattern value)
-
withOutput
public MappedSchema withOutput(String value)
-
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:
appendToin interfaceXMLAppendable
-
-