if (Math.abs(value.longValue()) > Short.MAX_VALUE)
if (value.longValue() > MAX_SHORT_VALUE || value.longValue() < MIN_SHORT_VALUE)
    short getShort() throws SQLException {        if (isNull()) return SHORT_NULL_VALUE;        Long value = (Long)field.sqldata;        // check if value is withing bounds        if (Math.abs(value.longValue()) > Short.MAX_VALUE)                throw (SQLException)createException(                    BYTE_CONVERSION_ERROR).fillInStackTrace();        return ((Long)field.sqldata).shortValue();    }