Code example for CallableStatement

Methods: getString

0
        String arrayString = resultSet.getString(columnName);
        return arrayString != null ? new MyArray().setup(arrayString) : null;
    } 
 
    public Object getValue(CallableStatement cs, int index) throws SQLException {
        String arrayString = cs.getString(index);
        return arrayString != null ? new MyArray().setup(arrayString) : null;
    } 
 
    public Object getValue(CallableStatement cs, String parameterName) throws SQLException {
        String arrayString = cs.getString(parameterName);
        return arrayString != null ? new MyArray().setup(arrayString) : null;
    } 
 
    public void bindValue(Connection conn, PreparedStatement ps, int index, Object value) throws SQLException {
        if (value == null) {
            setNull(ps, index);
        } else { 
            ps.setObject(index, value, Types.OTHER);
        } 
    }