- java.lang.Object
-
- org.jooq.conf.MappedCatalog
-
- All Implemented Interfaces:
Serializable
,Cloneable
,XMLAppendable
public class MappedCatalog extends Object implements Serializable, Cloneable, XMLAppendable
A catalog 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<MappedSchema>
schemata
-
Constructor Summary
Constructors Constructor Description MappedCatalog()
-
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 catalog name as defined inNamed.getName()
Pattern
getInputExpression()
A regular expression matching the input catalog name as defined inNamed.getName()
String
getOutput()
The output catalog as it will be rendered in SQL.List<MappedSchema>
getSchemata()
int
hashCode()
void
setInput(String value)
The input catalog name as defined inNamed.getName()
void
setInputExpression(Pattern value)
A regular expression matching the input catalog name as defined inNamed.getName()
void
setOutput(String value)
The output catalog as it will be rendered in SQL.void
setSchemata(List<MappedSchema> schemata)
String
toString()
MappedCatalog
withInput(String value)
The input catalog name as defined inNamed.getName()
MappedCatalog
withInputExpression(Pattern value)
A regular expression matching the input catalog name as defined inNamed.getName()
MappedCatalog
withOutput(String value)
The output catalog as it will be rendered in SQL.MappedCatalog
withSchemata(Collection<MappedSchema> values)
MappedCatalog
withSchemata(List<MappedSchema> schemata)
MappedCatalog
withSchemata(MappedSchema... values)
-
-
-
Field Detail
-
input
protected String input
-
inputExpression
protected Pattern inputExpression
-
output
protected String output
-
schemata
protected List<MappedSchema> schemata
-
-
Method Detail
-
getInput
public String getInput()
The input catalog name as defined inNamed.getName()
Either <input/> or <inputExpression/> must be provided
-
setInput
public void setInput(String value)
The input catalog name as defined inNamed.getName()
Either <input/> or <inputExpression/> must be provided
-
getInputExpression
public Pattern getInputExpression()
A regular expression matching the input catalog name as defined inNamed.getName()
Either <input/> or <inputExpression/> must be provided
-
setInputExpression
public void setInputExpression(Pattern value)
A regular expression matching the input catalog name as defined inNamed.getName()
Either <input/> or <inputExpression/> must be provided
-
getOutput
public String getOutput()
The output catalog as it will be rendered in SQL.- When this is omitted, you can still apply schema and 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 catalog as it will be rendered in SQL.- When this is omitted, you can still apply schema and table mapping.
- When <input/> is provided, <output/> is a constant value.
- When <inputExpression/> is provided, <output/> is a replacement expression
-
getSchemata
public List<MappedSchema> getSchemata()
-
setSchemata
public void setSchemata(List<MappedSchema> schemata)
-
withInput
public MappedCatalog withInput(String value)
The input catalog name as defined inNamed.getName()
Either <input/> or <inputExpression/> must be provided
-
withInputExpression
public MappedCatalog withInputExpression(Pattern value)
A regular expression matching the input catalog name as defined inNamed.getName()
Either <input/> or <inputExpression/> must be provided
-
withOutput
public MappedCatalog withOutput(String value)
The output catalog as it will be rendered in SQL.- When this is omitted, you can still apply schema and table mapping.
- When <input/> is provided, <output/> is a constant value.
- When <inputExpression/> is provided, <output/> is a replacement expression
-
withSchemata
public MappedCatalog withSchemata(MappedSchema... values)
-
withSchemata
public MappedCatalog withSchemata(Collection<MappedSchema> values)
-
withSchemata
public MappedCatalog withSchemata(List<MappedSchema> schemata)
-
appendTo
public final void appendTo(XMLBuilder builder)
- Specified by:
appendTo
in interfaceXMLAppendable
-
-