Package org.jooq.meta

Interface DataTypeDefinition

All Known Implementing Classes:
DefaultDataTypeDefinition

public interface DataTypeDefinition
A definition for a data type object.
Author:
Lukas Eder
  • Method Details

    • getType

      String getType()
      The dialect-specific column type.
    • getGenerator

      @Nullable @Nullable String getGenerator()
      The generator type that is applied to this data type, or null, if no such generator type is configured.
    • getConverter

      @Nullable @Nullable String getConverter()
      The converter type that is applied to this data type, or null, if no such converter type is configured.
    • getBinding

      @Nullable @Nullable String getBinding()
      The binding type that is applied to this data type, or null, 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 a null resolver.

    • getJavaType

      String getJavaType(JavaTypeResolver resolver)
      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 an
      invalid reference
      ArrayRecord
      of udt types.
    • isTableArray

      boolean isTableArray()
      Whether this data type represents an array producing an
      invalid reference
      ArrayRecord
      of table types.
    • 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

      List<String> getMatchNames()
      The various type names by which this type can be matched by a ForcedType.