public class ForcedType extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
binding |
protected String |
converter |
protected Boolean |
enumConverter |
protected String |
expression |
protected String |
expressions |
protected String |
name |
protected Nullability |
nullability |
protected String |
types |
protected String |
userType |
| Constructor and Description |
|---|
ForcedType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object that) |
String |
getBinding()
A
Binding implementation for the custom type. |
String |
getConverter()
A converter implementation for the
getUserType(). |
String |
getExpression()
A Java regular expression matching columns, parameters, attributes,
etc to be forced to have this type.
|
String |
getExpressions()
The same as expression.
|
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
|
String |
getTypes()
A Java regular expression matching data types to be forced to have this
type.
|
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)
Sets the value of the binding property.
|
void |
setConverter(String value)
Sets the value of the converter property.
|
void |
setEnumConverter(Boolean value)
Sets the value of the enumConverter property.
|
void |
setExpression(String value)
Sets the value of the expression property.
|
void |
setExpressions(String value)
Sets the value of the expressions property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setNullability(Nullability value)
Sets the value of the nullability property.
|
void |
setTypes(String value)
Sets the value of the types property.
|
void |
setUserType(String value)
Sets the value of the userType property.
|
String |
toString() |
ForcedType |
withBinding(String value) |
ForcedType |
withConverter(String value) |
ForcedType |
withEnumConverter(Boolean value) |
ForcedType |
withExpression(String value) |
ForcedType |
withExpressions(String value) |
ForcedType |
withName(String value) |
ForcedType |
withNullability(Nullability value) |
ForcedType |
withTypes(String value) |
ForcedType |
withUserType(String value) |
protected String name
protected String userType
protected String converter
protected Boolean enumConverter
protected String binding
protected String expression
protected String expressions
protected String types
protected Nullability nullability
public String getName()
SQLDataType) to force any matches toStringpublic void setName(String value)
value - allowed object is
Stringpublic String getUserType()
If provided, getName() will be ignored, and either getConverter()
or getBinding() is required
Stringpublic void setUserType(String value)
value - allowed object is
Stringpublic String getConverter()
getUserType().Stringpublic void setConverter(String value)
value - allowed object is
Stringpublic Boolean isEnumConverter()
EnumConverter.Booleanpublic void setEnumConverter(Boolean value)
value - allowed object is
Booleanpublic String getBinding()
Binding implementation for the custom type.Stringpublic void setBinding(String value)
value - allowed object is
Stringpublic String getExpression()
Stringpublic void setExpression(String value)
value - allowed object is
Stringpublic String getExpressions()
Stringpublic void setExpressions(String value)
value - allowed object is
Stringpublic String getTypes()
Stringpublic void setTypes(String value)
value - allowed object is
Stringpublic Nullability getNullability()
Nullabilitypublic void setNullability(Nullability value)
value - allowed object is
Nullabilitypublic ForcedType withName(String value)
public ForcedType withUserType(String value)
public ForcedType withConverter(String value)
public ForcedType withEnumConverter(Boolean value)
public ForcedType withBinding(String value)
public ForcedType withExpression(String value)
public ForcedType withExpressions(String value)
public ForcedType withTypes(String value)
public ForcedType withNullability(Nullability value)
Copyright © 2019. All rights reserved.