Class OptionalPrecisionType

  • All Implemented Interfaces:
    TypeInfo

    public final class OptionalPrecisionType
    extends AbstractType
    Final TypeInfo for types having an optional precision parameter.
    Since:
    1.1
    Version:
    $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
    Author:
    Le Duc Bao, Ralf Joachim
    • Constructor Detail

      • OptionalPrecisionType

        public OptionalPrecisionType​(java.lang.String jdbcType,
                                     java.lang.String sqlType,
                                     DDLGenConfiguration conf)
        Construct a new TypeInfo instance with given JDBC type, SQL type and Configuration.
        Parameters:
        jdbcType - The JDBC type.
        sqlType - The SQL type.
        conf - The configuration to get default parameter values from.
    • Method Detail

      • toDDL

        public java.lang.String toDDL​(Field field)
        Build DDL string with SQL type and parameters.
        Parameters:
        field - The field to get specific parameters from.
        Returns:
        Type string for DDL.