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