- 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 String
input
protected Pattern
inputExpression
protected String
output
protected List<MappedTable>
tables
-
Constructor Summary
Constructors Constructor Description MappedSchema()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendTo(XMLBuilder builder)
Object
clone()
boolean
equals(Object that)
String
getInput()
The input schema name as defined inNamed.getName()
Pattern
getInputExpression()
A regular expression matching the input schema name as defined inNamed.getName()
String
getOutput()
The output schema as it will be rendered in SQL.List<MappedTable>
getTables()
int
hashCode()
void
setInput(String value)
The input schema name as defined inNamed.getName()
void
setInputExpression(Pattern value)
A regular expression matching the input schema name as defined inNamed.getName()
void
setOutput(String value)
The output schema as it will be rendered in SQL.void
setTables(List<MappedTable> tables)
String
toString()
MappedSchema
withInput(String value)
The input schema name as defined inNamed.getName()
MappedSchema
withInputExpression(Pattern value)
A regular expression matching the input schema name as defined inNamed.getName()
MappedSchema
withOutput(String value)
The output schema as it will be rendered in SQL.MappedSchema
withTables(Collection<MappedTable> values)
MappedSchema
withTables(List<MappedTable> tables)
MappedSchema
withTables(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:
appendTo
in interfaceXMLAppendable
-
-