Package io.debezium.spi.converter
Interface RelationalColumn
- All Superinterfaces:
ConvertedField
A definition of a converted relational column.
- Author:
- Randall Hauch
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringGet the character set associated with the column.Get the default value of the columnbooleanDetermine whether this column's has a default valuebooleanDetermine whether this column is optional.intjdbcType()Get theJDBC typefor this columnlength()Get the maximum length of this column's values.intGet the database native type for this columnscale()Get the scale of the column.Get the database-specific complete expression defining the column's data type, including dimensions, length, precision, character sets, constraints, etc.typeName()Get the database-specific name of the column's data type.Methods inherited from interface io.debezium.spi.converter.ConvertedField
dataCollection, name
-
Method Details
-
jdbcType
int jdbcType()Get theJDBC typefor this column- Returns:
- the type constant
-
nativeType
int nativeType()Get the database native type for this column- Returns:
- a type constant for the specific database
-
typeName
String typeName()Get the database-specific name of the column's data type.- Returns:
- the name of the type
-
typeExpression
String typeExpression()Get the database-specific complete expression defining the column's data type, including dimensions, length, precision, character sets, constraints, etc.- Returns:
- the complete type expression
-
length
OptionalInt length()Get the maximum length of this column's values. For numeric columns, this represents the precision.- Returns:
- the length of the column
-
scale
OptionalInt scale()Get the scale of the column.- Returns:
- the scale if it applies to this type
-
isOptional
boolean isOptional()Determine whether this column is optional.- Returns:
trueif it is optional, orfalseotherwise
-
defaultValue
Object defaultValue()Get the default value of the column- Returns:
- the default value
-
hasDefaultValue
boolean hasDefaultValue()Determine whether this column's has a default value- Returns:
trueif the default value was provided, orfalseotherwise
-
charsetName
Get the character set associated with the column.- Returns:
- the character set name
-