- All Known Implementing Classes:
DefaultDataTypeDefinition
public interface DataTypeDefinition
A definition for a data type object.
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescription@Nullable StringThe binding type that is applied to this data type, ornull, if no such binding type is configured.@Nullable StringThe converter type that is applied to this data type, ornull, if no such converter type is configured.The underlying database.The default value expression.The computed column expression.The computed column generation location.The computed column generation option.@Nullable StringThe generator type that is applied to this data type, ornull, if no such generator type is configured.The custom Java type to represent this data type, if applicable.getJavaType(JavaTypeResolver resolver) The custom Java type to represent this data type, if applicable.intThe type's length.The various type names by which this type can be matched by aForcedType.intThe type's precision.The qualified user type, if applicable.intgetScale()The type's scale.The underlying schema.getType()The dialect-specific column type.The user type, if applicable.The XML type definition, if available.booleanisArray()Whether this data type represents an array producing an.invalid reference
ArrayRecordbooleanWhether this data type is computed.booleanWhether this data type is defaultable.booleanWhether this data type is a NUMBER type without precision and scale.booleanisHidden()Whether this data type is hidden.booleanWhether this data type is an identity.booleanWhether this data type is nullable.booleanWhether this data type is readonly.booleanisTable()Whether this data type represents a table type.booleanWhether this data type represents an array producing anof table types.invalid reference
ArrayRecordbooleanisUDT()Whether this data type represents a udt.booleanWhether this data type represents an array producing anof udt types.invalid reference
ArrayRecord
-
Method Details
-
getType
String getType()The dialect-specific column type. -
getGenerator
The generator type that is applied to this data type, ornull, if no such generator type is configured. -
getConverter
The converter type that is applied to this data type, ornull, if no such converter type is configured. -
getBinding
The binding type that is applied to this data type, ornull, if no such binding type is configured. -
getLength
int getLength()The type's length. -
getPrecision
int getPrecision()The type's precision. -
getScale
int getScale()The type's scale. -
getUserType
String getUserType()The user type, if applicable. -
getQualifiedUserType
Name getQualifiedUserType()The qualified user type, if applicable. -
getJavaType
String getJavaType()The custom Java type to represent this data type, if applicable.This is the same as calling
getJavaType(JavaTypeResolver)with anullresolver. -
getJavaType
The custom Java type to represent this data type, if applicable. -
isNullable
boolean isNullable()Whether this data type is nullable. -
isHidden
boolean isHidden()Whether this data type is hidden. -
isReadonly
boolean isReadonly()Whether this data type is readonly. -
isComputed
boolean isComputed()Whether this data type is computed. -
getGeneratedAlwaysAs
String getGeneratedAlwaysAs()The computed column expression. -
getGenerationOption
QOM.GenerationOption getGenerationOption()The computed column generation option. -
getXMLTypeDefinition
XMLTypeDefinition getXMLTypeDefinition()The XML type definition, if available. -
getGenerationLocation
QOM.GenerationLocation getGenerationLocation()The computed column generation location. -
isIdentity
boolean isIdentity()Whether this data type is an identity. -
isDefaulted
boolean isDefaulted()Whether this data type is defaultable. -
getDefaultValue
String getDefaultValue()The default value expression. -
isUDT
boolean isUDT()Whether this data type represents a udt. -
isTable
boolean isTable()Whether this data type represents a table type. -
isArray
boolean isArray()Whether this data type represents an array producing an.invalid reference
ArrayRecord -
isUDTArray
boolean isUDTArray()Whether this data type represents an array producing anof udt types.invalid reference
ArrayRecord -
isTableArray
boolean isTableArray()Whether this data type represents an array producing anof table types.invalid reference
ArrayRecord -
isGenericNumberType
boolean isGenericNumberType()Whether this data type is a NUMBER type without precision and scale. -
getDatabase
Database getDatabase()The underlying database. -
getSchema
SchemaDefinition getSchema()The underlying schema. -
getMatchNames
The various type names by which this type can be matched by aForcedType.
-