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 Detail

      • getType

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

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

        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.
      • 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.
      • isArray

        boolean isArray()
        Whether this data type represents an array producing an ArrayRecord.
      • isUDTArray

        boolean isUDTArray()
        Whether this data type represens an array producing an ArrayRecord of udt types.
      • isGenericNumberType

        boolean isGenericNumberType()
        Whether this data type is a NUMBER type without precision and scale.
      • getDatabase

        Database getDatabase()
        The underlying database.
      • getMatchNames

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