Package org.jooq.conf
Class MappedSchema
- java.lang.Object
-
- org.jooq.conf.MappedSchema
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,XMLAppendable
public class MappedSchema extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, XMLAppendable
A schema mapping configuration.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
input
protected java.util.regex.Pattern
inputExpression
protected java.lang.String
output
protected java.util.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)
java.lang.Object
clone()
boolean
equals(java.lang.Object that)
java.lang.String
getInput()
The input schema name as defined inNamed.getName()
java.util.regex.Pattern
getInputExpression()
A regular expression matching the input schema name as defined inNamed.getName()
Either <input/> or <inputExpression/> must be providedjava.lang.String
getOutput()
The output schema as it will be rendered in SQL.java.util.List<MappedTable>
getTables()
int
hashCode()
void
setInput(java.lang.String value)
Sets the value of the input property.void
setInputExpression(java.util.regex.Pattern value)
Sets the value of the inputExpression property.void
setOutput(java.lang.String value)
Sets the value of the output property.void
setTables(java.util.List<MappedTable> tables)
java.lang.String
toString()
MappedSchema
withInput(java.lang.String value)
MappedSchema
withInputExpression(java.util.regex.Pattern value)
MappedSchema
withOutput(java.lang.String value)
MappedSchema
withTables(java.util.Collection<MappedTable> values)
MappedSchema
withTables(java.util.List<MappedTable> tables)
MappedSchema
withTables(MappedTable... values)
-
-
-
Field Detail
-
input
protected java.lang.String input
-
inputExpression
protected java.util.regex.Pattern inputExpression
-
output
protected java.lang.String output
-
tables
protected java.util.List<MappedTable> tables
-
-
Method Detail
-
getInput
public java.lang.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(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 schema 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 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(java.lang.String value)
Sets the value of the output property.- Parameters:
value
- allowed object isString
-
getTables
public java.util.List<MappedTable> getTables()
-
setTables
public void setTables(java.util.List<MappedTable> tables)
-
withInput
public MappedSchema withInput(java.lang.String value)
-
withInputExpression
public MappedSchema withInputExpression(java.util.regex.Pattern value)
-
withOutput
public MappedSchema withOutput(java.lang.String value)
-
withTables
public MappedSchema withTables(MappedTable... values)
-
withTables
public MappedSchema withTables(java.util.Collection<MappedTable> values)
-
withTables
public MappedSchema withTables(java.util.List<MappedTable> tables)
-
appendTo
public final void appendTo(XMLBuilder builder)
- Specified by:
appendTo
in interfaceXMLAppendable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.lang.Object
-
-