Code example for ResultSet

Methods: getString, wasNull

0
			return s;
		} 
	} 
 
	public Object getResult(ResultSet rs, int columnIndex) throws SQLException {
		Object s = rs.getString(columnIndex);
		if (rs.wasNull()) {
			return null; 
		} else { 
			return s;
		} 
	} 
 
	public Object getResult(CallableStatement cs, int columnIndex) throws SQLException {
		Object s = cs.getString(columnIndex);
		if (cs.wasNull()) {
			return null; 
		} else { 
			return s;
		} 
	}