- 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()StringgetOutput()The output schema as it will be rendered in SQL.List<MappedTable>getTables()inthashCode()voidsetInput(String value)The input schema name as defined inNamed.getName()voidsetInputExpression(Pattern value)A regular expression matching the input schema name as defined inNamed.getName()voidsetOutput(String value)The output schema as it will be rendered in SQL.voidsetTables(List<MappedTable> tables)StringtoString()MappedSchemawithInput(String value)The input schema name as defined inNamed.getName()MappedSchemawithInputExpression(Pattern value)A regular expression matching the input schema name as defined inNamed.getName()MappedSchemawithOutput(String value)The output schema as it will be rendered in SQL.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
-
setInput
public void setInput(String value)
The input schema name as defined inNamed.getName()Either <input/> or <inputExpression/> must be provided
-
getInputExpression
public Pattern getInputExpression()
A regular expression matching the input schema name as defined inNamed.getName()Either <input/> or <inputExpression/> must be provided
-
setInputExpression
public void setInputExpression(Pattern value)
A regular expression matching the input schema name as defined inNamed.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 inNamed.getName()Either <input/> or <inputExpression/> must be provided
-
withInputExpression
public MappedSchema withInputExpression(Pattern value)
A regular expression matching the input schema name as defined inNamed.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:
appendToin interfaceXMLAppendable
-
-