Interface TypeInfo

All Known Implementing Classes:
AbstractType, LobType, NoParamType, NotSupportedType, OptionalLengthType, OptionalPrecisionDecimalsType, OptionalPrecisionType, RequiredLengthType, RequiredPrecisionType

public interface TypeInfo
Interface associates JDBC to SQL type and its parameters.
Since:
1.1
Version:
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Le Duc Bao, Ralf Joachim
  • Method Details

    • getJdbcType

      String getJdbcType()
      Get JDBC type.
      Returns:
      The JDBC type.
    • getSqlType

      String getSqlType()
      Get SQL type.
      Returns:
      The SQL type.
    • merge

      void merge(TypeInfo type) throws GeneratorException
      Merge 2 TypeInfo's.
      Parameters:
      type - type infor
      Throws:
      GeneratorException - exception
    • toDDL

      String toDDL(Field field) throws GeneratorException
      Build DDL string with SQL type and parameters.
      Parameters:
      field - The field to get specific parameters from.
      Returns:
      Type string for DDL.
      Throws:
      GeneratorException - If required parameters is not defined.