- java.lang.Object
-
- org.jooq.meta.jaxb.ForcedType
-
- All Implemented Interfaces:
Serializable,XMLAppendable
public class ForcedType extends Object implements Serializable, XMLAppendable
A forced type declaration- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringbindingprotected Stringconverterprotected BooleanenumConverterprotected StringexcludeExpressionprotected StringexcludeTypesprotected Stringexpressionprotected Stringexpressionsprotected StringincludeExpressionprotected StringincludeTypesprotected LambdaConverterlambdaConverterprotected Stringnameprotected Nullabilitynullabilityprotected ForcedTypeObjectTypeobjectTypeprotected Integerpriorityprotected Stringsqlprotected Stringtypesprotected StringuserType
-
Constructor Summary
Constructors Constructor Description ForcedType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendTo(XMLBuilder builder)booleanequals(Object that)StringgetBinding()ABindingimplementation for the custom type.StringgetConverter()A converter implementation for thegetUserType().StringgetExcludeExpression()A Java regular expression matching columns, parameters, attributes, etc. which must not have this type.StringgetExcludeTypes()A Java regular expression matching data types which must not have this type.StringgetExpression()The same asgetIncludeExpression().StringgetExpressions()The same asgetIncludeExpression().StringgetIncludeExpression()A Java regular expression matching columns, parameters, attributes, etc. to be forced to have this type.StringgetIncludeTypes()A Java regular expression matching data types to be forced to have this type.LambdaConvertergetLambdaConverter()A lambda converter implementation for thegetUserType().StringgetName()The name (inSQLDataType) to force any matches toNullabilitygetNullability()Whether this forced type should apply to nullable / non-nullable / all columnsForcedTypeObjectTypegetObjectType()Whether this forced type should apply to all object types, or only to specific onesIntegergetPriority()The priority among forced types in which to apply this one.StringgetSql()A SQL statement that produces a table with one column containing the matched qualified or unqualified column names.StringgetTypes()The same asgetIncludeTypes().StringgetUserType()The type of the user type - e.g. java.time.LocalDateTime.inthashCode()BooleanisEnumConverter()Whether the converter is anEnumConverter.voidsetBinding(String value)ABindingimplementation for the custom type.voidsetConverter(String value)A converter implementation for thegetUserType().voidsetEnumConverter(Boolean value)Sets the value of the enumConverter property.voidsetExcludeExpression(String value)A Java regular expression matching columns, parameters, attributes, etc. which must not have this type.voidsetExcludeTypes(String value)A Java regular expression matching data types which must not have this type.voidsetExpression(String value)The same asgetIncludeExpression().voidsetExpressions(String value)The same asgetIncludeExpression().voidsetIncludeExpression(String value)A Java regular expression matching columns, parameters, attributes, etc. to be forced to have this type.voidsetIncludeTypes(String value)A Java regular expression matching data types to be forced to have this type.voidsetLambdaConverter(LambdaConverter value)A lambda converter implementation for thegetUserType().voidsetName(String value)The name (inSQLDataType) to force any matches tovoidsetNullability(Nullability value)Whether this forced type should apply to nullable / non-nullable / all columnsvoidsetObjectType(ForcedTypeObjectType value)Whether this forced type should apply to all object types, or only to specific onesvoidsetPriority(Integer value)The priority among forced types in which to apply this one.voidsetSql(String value)A SQL statement that produces a table with one column containing the matched qualified or unqualified column names.voidsetTypes(String value)The same asgetIncludeTypes().voidsetUserType(String value)The type of the user type - e.g. java.time.LocalDateTime.StringtoString()ForcedTypewithBinding(String value)ABindingimplementation for the custom type.ForcedTypewithConverter(String value)A converter implementation for thegetUserType().ForcedTypewithEnumConverter(Boolean value)ForcedTypewithExcludeExpression(String value)A Java regular expression matching columns, parameters, attributes, etc. which must not have this type.ForcedTypewithExcludeTypes(String value)A Java regular expression matching data types which must not have this type.ForcedTypewithExpression(String value)The same asgetIncludeExpression().ForcedTypewithExpressions(String value)The same asgetIncludeExpression().ForcedTypewithIncludeExpression(String value)A Java regular expression matching columns, parameters, attributes, etc. to be forced to have this type.ForcedTypewithIncludeTypes(String value)A Java regular expression matching data types to be forced to have this type.ForcedTypewithLambdaConverter(LambdaConverter value)A lambda converter implementation for thegetUserType().ForcedTypewithName(String value)The name (inSQLDataType) to force any matches toForcedTypewithNullability(Nullability value)Whether this forced type should apply to nullable / non-nullable / all columnsForcedTypewithObjectType(ForcedTypeObjectType value)Whether this forced type should apply to all object types, or only to specific onesForcedTypewithPriority(Integer value)The priority among forced types in which to apply this one.ForcedTypewithSql(String value)A SQL statement that produces a table with one column containing the matched qualified or unqualified column names.ForcedTypewithTypes(String value)The same asgetIncludeTypes().ForcedTypewithUserType(String value)The type of the user type - e.g. java.time.LocalDateTime.
-
-
-
Field Detail
-
priority
protected Integer priority
-
name
protected String name
-
userType
protected String userType
-
converter
protected String converter
-
enumConverter
protected Boolean enumConverter
-
lambdaConverter
protected LambdaConverter lambdaConverter
-
binding
protected String binding
-
excludeExpression
protected String excludeExpression
-
includeExpression
protected String includeExpression
-
expression
protected String expression
-
expressions
protected String expressions
-
sql
protected String sql
-
excludeTypes
protected String excludeTypes
-
includeTypes
protected String includeTypes
-
types
protected String types
-
nullability
protected Nullability nullability
-
objectType
protected ForcedTypeObjectType objectType
-
-
Method Detail
-
getPriority
public Integer getPriority()
The priority among forced types in which to apply this one. Forced types of equal priority will be applied in the order in which they're added to the forced types list (e.g. the Maven lexical XML order)
-
setPriority
public void setPriority(Integer value)
The priority among forced types in which to apply this one. Forced types of equal priority will be applied in the order in which they're added to the forced types list (e.g. the Maven lexical XML order)
-
getName
public String getName()
The name (inSQLDataType) to force any matches to
-
setName
public void setName(String value)
The name (inSQLDataType) to force any matches to
-
getUserType
public String getUserType()
The type of the user type - e.g. java.time.LocalDateTime.If provided,
getName()will be ignored, and eithergetConverter()orgetBinding()is required
-
setUserType
public void setUserType(String value)
The type of the user type - e.g. java.time.LocalDateTime.If provided,
getName()will be ignored, and eithergetConverter()orgetBinding()is required
-
getConverter
public String getConverter()
A converter implementation for thegetUserType().
-
setConverter
public void setConverter(String value)
A converter implementation for thegetUserType().
-
isEnumConverter
public Boolean isEnumConverter()
Whether the converter is anEnumConverter.- Returns:
- possible object is
Boolean
-
setEnumConverter
public void setEnumConverter(Boolean value)
Sets the value of the enumConverter property.- Parameters:
value- allowed object isBoolean
-
getLambdaConverter
public LambdaConverter getLambdaConverter()
A lambda converter implementation for thegetUserType().
-
setLambdaConverter
public void setLambdaConverter(LambdaConverter value)
A lambda converter implementation for thegetUserType().
-
getExcludeExpression
public String getExcludeExpression()
A Java regular expression matching columns, parameters, attributes, etc. which must not have this type. Excludes match before includes, i.e. excludes have a higher priority.
-
setExcludeExpression
public void setExcludeExpression(String value)
A Java regular expression matching columns, parameters, attributes, etc. which must not have this type. Excludes match before includes, i.e. excludes have a higher priority.
-
getIncludeExpression
public String getIncludeExpression()
A Java regular expression matching columns, parameters, attributes, etc. to be forced to have this type. If provided, both "includeExpression" and "includeTypes" must match.
-
setIncludeExpression
public void setIncludeExpression(String value)
A Java regular expression matching columns, parameters, attributes, etc. to be forced to have this type. If provided, both "includeExpression" and "includeTypes" must match.
-
getExpression
public String getExpression()
The same asgetIncludeExpression(). This is kept for backwards compatibility reasons.
-
setExpression
public void setExpression(String value)
The same asgetIncludeExpression(). This is kept for backwards compatibility reasons.
-
getExpressions
public String getExpressions()
The same asgetIncludeExpression(). This is kept for backwards compatibility reasons.
-
setExpressions
public void setExpressions(String value)
The same asgetIncludeExpression(). This is kept for backwards compatibility reasons.
-
getSql
public String getSql()
A SQL statement that produces a table with one column containing the matched qualified or unqualified column names.
-
setSql
public void setSql(String value)
A SQL statement that produces a table with one column containing the matched qualified or unqualified column names.
-
getExcludeTypes
public String getExcludeTypes()
A Java regular expression matching data types which must not have this type. Excludes match before includes, i.e. excludes have a higher priority.
-
setExcludeTypes
public void setExcludeTypes(String value)
A Java regular expression matching data types which must not have this type. Excludes match before includes, i.e. excludes have a higher priority.
-
getIncludeTypes
public String getIncludeTypes()
A Java regular expression matching data types to be forced to have this type. If provided, both "includeExpression" and "includeTypes" must match.
-
setIncludeTypes
public void setIncludeTypes(String value)
A Java regular expression matching data types to be forced to have this type. If provided, both "includeExpression" and "includeTypes" must match.
-
getTypes
public String getTypes()
The same asgetIncludeTypes(). This is kept for backwards compatibility reasons.
-
setTypes
public void setTypes(String value)
The same asgetIncludeTypes(). This is kept for backwards compatibility reasons.
-
getNullability
public Nullability getNullability()
Whether this forced type should apply to nullable / non-nullable / all columns
-
setNullability
public void setNullability(Nullability value)
Whether this forced type should apply to nullable / non-nullable / all columns
-
getObjectType
public ForcedTypeObjectType getObjectType()
Whether this forced type should apply to all object types, or only to specific ones
-
setObjectType
public void setObjectType(ForcedTypeObjectType value)
Whether this forced type should apply to all object types, or only to specific ones
-
withPriority
public ForcedType withPriority(Integer value)
The priority among forced types in which to apply this one. Forced types of equal priority will be applied in the order in which they're added to the forced types list (e.g. the Maven lexical XML order)
-
withName
public ForcedType withName(String value)
The name (inSQLDataType) to force any matches to
-
withUserType
public ForcedType withUserType(String value)
The type of the user type - e.g. java.time.LocalDateTime.If provided,
getName()will be ignored, and eithergetConverter()orgetBinding()is required
-
withConverter
public ForcedType withConverter(String value)
A converter implementation for thegetUserType().
-
withEnumConverter
public ForcedType withEnumConverter(Boolean value)
-
withLambdaConverter
public ForcedType withLambdaConverter(LambdaConverter value)
A lambda converter implementation for thegetUserType().
-
withBinding
public ForcedType withBinding(String value)
ABindingimplementation for the custom type.
-
withExcludeExpression
public ForcedType withExcludeExpression(String value)
A Java regular expression matching columns, parameters, attributes, etc. which must not have this type. Excludes match before includes, i.e. excludes have a higher priority.
-
withIncludeExpression
public ForcedType withIncludeExpression(String value)
A Java regular expression matching columns, parameters, attributes, etc. to be forced to have this type. If provided, both "includeExpression" and "includeTypes" must match.
-
withExpression
public ForcedType withExpression(String value)
The same asgetIncludeExpression(). This is kept for backwards compatibility reasons.
-
withExpressions
public ForcedType withExpressions(String value)
The same asgetIncludeExpression(). This is kept for backwards compatibility reasons.
-
withSql
public ForcedType withSql(String value)
A SQL statement that produces a table with one column containing the matched qualified or unqualified column names.
-
withExcludeTypes
public ForcedType withExcludeTypes(String value)
A Java regular expression matching data types which must not have this type. Excludes match before includes, i.e. excludes have a higher priority.
-
withIncludeTypes
public ForcedType withIncludeTypes(String value)
A Java regular expression matching data types to be forced to have this type. If provided, both "includeExpression" and "includeTypes" must match.
-
withTypes
public ForcedType withTypes(String value)
The same asgetIncludeTypes(). This is kept for backwards compatibility reasons.
-
withNullability
public ForcedType withNullability(Nullability value)
Whether this forced type should apply to nullable / non-nullable / all columns
-
withObjectType
public ForcedType withObjectType(ForcedTypeObjectType value)
Whether this forced type should apply to all object types, or only to specific ones
-
appendTo
public final void appendTo(XMLBuilder builder)
- Specified by:
appendToin interfaceXMLAppendable
-
-