Logo Search packages:      
Sourcecode: mysql-connector-java version File versions

static final boolean com::mysql::jdbc::ResultSetMetaData::isDecimalType ( int  type  )  [inline, static, private]

Checks if the SQL Type is a Decimal/Number Type

Parameters:
type SQL Type
Returns:
...

Definition at line 718 of file ResultSetMetaData.java.

Referenced by getPrecision(), and getScale().

                                                         {
        switch (type) {
        case Types.BIT:
        case Types.TINYINT:
        case Types.SMALLINT:
        case Types.INTEGER:
        case Types.BIGINT:
        case Types.FLOAT:
        case Types.REAL:
        case Types.DOUBLE:
        case Types.NUMERIC:
        case Types.DECIMAL:
            return true;
        }

        return false;
    }


Generated by  Doxygen 1.6.0   Back to index