- 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()
Either <input/> or <inputExpression/> must be providedString
getOutput()
The output schema as it will be rendered in SQL.List<MappedTable>
getTables()
int
hashCode()
void
setInput(String value)
Sets the value of the input property.void
setInputExpression(Pattern value)
Sets the value of the inputExpression property.void
setOutput(String value)
Sets the value of the output property.void
setTables(List<MappedTable> tables)
String
toString()
MappedSchema
withInput(String value)
MappedSchema
withInputExpression(Pattern value)
MappedSchema
withOutput(String value)
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
- 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:
appendTo
in interfaceXMLAppendable
-
-