public String getString(int columnIndex) throws  SQLException { Object obj = getObject(columnIndex); if (obj == null) { return null; } else { if (trimStrings) { return obj.toString().trim(); } else { return obj.toString(); } }
public String getString(int columnIndex) throws SQLException { if (trimStrings) { String result = getField(columnIndex).getString(); return result != null ? result.trim() : null; } else return getField(columnIndex).getString();
    public String getString(int columnIndex) throws  SQLException {        Object obj = getObject(columnIndex);        if (obj == null) {            return null;        } else {            if (trimStrings) {                return obj.toString().trim();            }            else {                return obj.toString();            }        }    }