public class ForcedType extends Object implements Serializable, XMLAppendable
| Modifier and Type | Field and Description |
|---|---|
protected String |
binding |
protected String |
converter |
protected Boolean |
enumConverter |
protected String |
excludeExpression |
protected String |
excludeTypes |
protected String |
expression |
protected String |
expressions |
protected String |
includeExpression |
protected String |
includeTypes |
protected LambdaConverter |
lambdaConverter |
protected String |
name |
protected Nullability |
nullability |
protected ForcedTypeObjectType |
objectType |
protected String |
sql |
protected String |
types |
protected String |
userType |
| Constructor and Description |
|---|
ForcedType() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(XMLBuilder builder) |
boolean |
equals(Object that) |
String |
getBinding()
A
Binding implementation for the custom type. |
String |
getConverter()
A converter implementation for the
getUserType(). |
String |
getExcludeExpression()
A Java regular expression matching columns, parameters, attributes,
etc. which must not have this type.
|
String |
getExcludeTypes()
A Java regular expression matching data types
which must not have this type.
|
String |
getExpression()
The same as
getIncludeExpression(). |
String |
getExpressions()
The same as
getIncludeExpression(). |
String |
getIncludeExpression()
A Java regular expression matching columns, parameters, attributes,
etc. to be forced to have this type.
|
String |
getIncludeTypes()
A Java regular expression matching data types to be forced to have this
type.
|
LambdaConverter |
getLambdaConverter()
A lambda converter implementation for the
getUserType(). |
String |
getName()
The name (in
SQLDataType) to force any matches to |
Nullability |
getNullability()
Whether this forced type should apply to nullable / non-nullable / all columns
|
ForcedTypeObjectType |
getObjectType()
Whether this forced type should apply to all object types, or only to specific ones
|
String |
getSql()
A SQL statement that produces a table with one column containing the matched qualified or unqualified column names.
|
String |
getTypes()
The same as
getIncludeTypes(). |
String |
getUserType()
The type of the user type - e.g. java.time.LocalDateTime.
|
int |
hashCode() |
Boolean |
isEnumConverter()
Whether the converter is an
EnumConverter. |
void |
setBinding(String value)
A
Binding implementation for the custom type. |
void |
setConverter(String value)
A converter implementation for the
getUserType(). |
void |
setEnumConverter(Boolean value)
Sets the value of the enumConverter property.
|
void |
setExcludeExpression(String value)
A Java regular expression matching columns, parameters, attributes,
etc. which must not have this type.
|
void |
setExcludeTypes(String value)
A Java regular expression matching data types
which must not have this type.
|
void |
setExpression(String value)
The same as
getIncludeExpression(). |
void |
setExpressions(String value)
The same as
getIncludeExpression(). |
void |
setIncludeExpression(String value)
A Java regular expression matching columns, parameters, attributes,
etc. to be forced to have this type.
|
void |
setIncludeTypes(String value)
A Java regular expression matching data types to be forced to have this
type.
|
void |
setLambdaConverter(LambdaConverter value)
A lambda converter implementation for the
getUserType(). |
void |
setName(String value)
The name (in
SQLDataType) to force any matches to |
void |
setNullability(Nullability value)
Whether this forced type should apply to nullable / non-nullable / all columns
|
void |
setObjectType(ForcedTypeObjectType value)
Whether this forced type should apply to all object types, or only to specific ones
|
void |
setSql(String value)
A SQL statement that produces a table with one column containing the matched qualified or unqualified column names.
|
void |
setTypes(String value)
The same as
getIncludeTypes(). |
void |
setUserType(String value)
The type of the user type - e.g. java.time.LocalDateTime.
|
String |
toString() |
ForcedType |
withBinding(String value)
A
Binding implementation for the custom type. |
ForcedType |
withConverter(String value)
A converter implementation for the
getUserType(). |
ForcedType |
withEnumConverter(Boolean value) |
ForcedType |
withExcludeExpression(String value)
A Java regular expression matching columns, parameters, attributes,
etc. which must not have this type.
|
ForcedType |
withExcludeTypes(String value)
A Java regular expression matching data types
which must not have this type.
|
ForcedType |
withExpression(String value)
The same as
getIncludeExpression(). |
ForcedType |
withExpressions(String value)
The same as
getIncludeExpression(). |
ForcedType |
withIncludeExpression(String value)
A Java regular expression matching columns, parameters, attributes,
etc. to be forced to have this type.
|
ForcedType |
withIncludeTypes(String value)
A Java regular expression matching data types to be forced to have this
type.
|
ForcedType |
withLambdaConverter(LambdaConverter value)
A lambda converter implementation for the
getUserType(). |
ForcedType |
withName(String value)
The name (in
SQLDataType) to force any matches to |
ForcedType |
withNullability(Nullability value)
Whether this forced type should apply to nullable / non-nullable / all columns
|
ForcedType |
withObjectType(ForcedTypeObjectType value)
Whether this forced type should apply to all object types, or only to specific ones
|
ForcedType |
withSql(String value)
A SQL statement that produces a table with one column containing the matched qualified or unqualified column names.
|
ForcedType |
withTypes(String value)
The same as
getIncludeTypes(). |
ForcedType |
withUserType(String value)
The type of the user type - e.g. java.time.LocalDateTime.
|
protected String name
protected String userType
protected String converter
protected Boolean enumConverter
protected LambdaConverter lambdaConverter
protected String binding
protected String excludeExpression
protected String includeExpression
protected String expression
protected String expressions
protected String sql
protected String excludeTypes
protected String includeTypes
protected String types
protected Nullability nullability
protected ForcedTypeObjectType objectType
public String getName()
SQLDataType) to force any matches topublic void setName(String value)
SQLDataType) to force any matches topublic String getUserType()
If provided, getName() will be ignored, and either getConverter()
or getBinding() is required
public void setUserType(String value)
If provided, getName() will be ignored, and either getConverter()
or getBinding() is required
public String getConverter()
getUserType().public void setConverter(String value)
getUserType().public Boolean isEnumConverter()
EnumConverter.Booleanpublic void setEnumConverter(Boolean value)
value - allowed object is
Booleanpublic LambdaConverter getLambdaConverter()
getUserType().public void setLambdaConverter(LambdaConverter value)
getUserType().public String getExcludeExpression()
public void setExcludeExpression(String value)
public String getIncludeExpression()
public void setIncludeExpression(String value)
public String getExpression()
getIncludeExpression(). This is kept for backwards compatibility reasons.public void setExpression(String value)
getIncludeExpression(). This is kept for backwards compatibility reasons.public String getExpressions()
getIncludeExpression(). This is kept for backwards compatibility reasons.public void setExpressions(String value)
getIncludeExpression(). This is kept for backwards compatibility reasons.public String getSql()
public void setSql(String value)
public String getExcludeTypes()
public void setExcludeTypes(String value)
public String getIncludeTypes()
public void setIncludeTypes(String value)
public String getTypes()
getIncludeTypes(). This is kept for backwards compatibility reasons.public void setTypes(String value)
getIncludeTypes(). This is kept for backwards compatibility reasons.public Nullability getNullability()
public void setNullability(Nullability value)
public ForcedTypeObjectType getObjectType()
public void setObjectType(ForcedTypeObjectType value)
public ForcedType withName(String value)
SQLDataType) to force any matches topublic ForcedType withUserType(String value)
If provided, getName() will be ignored, and either getConverter()
or getBinding() is required
public ForcedType withConverter(String value)
getUserType().public ForcedType withEnumConverter(Boolean value)
public ForcedType withLambdaConverter(LambdaConverter value)
getUserType().public ForcedType withBinding(String value)
Binding implementation for the custom type.public ForcedType withExcludeExpression(String value)
public ForcedType withIncludeExpression(String value)
public ForcedType withExpression(String value)
getIncludeExpression(). This is kept for backwards compatibility reasons.public ForcedType withExpressions(String value)
getIncludeExpression(). This is kept for backwards compatibility reasons.public ForcedType withSql(String value)
public ForcedType withExcludeTypes(String value)
public ForcedType withIncludeTypes(String value)
public ForcedType withTypes(String value)
getIncludeTypes(). This is kept for backwards compatibility reasons.public ForcedType withNullability(Nullability value)
public ForcedType withObjectType(ForcedTypeObjectType value)
public final void appendTo(XMLBuilder builder)
appendTo in interface XMLAppendableCopyright © 2021. All rights reserved.