@Override public Ref createSerial(Ref ref) throws SQLException { return new SerialRef(ref); } }
/** * Writes a <code>Ref</code> object in the Java programming language * to this <code>SQLOutputImpl</code> object. The driver converts * it to a serializable <code>SerialRef</code> SQL <code>REF</code> value * before returning it to the database. * * @param x an object representing an SQL <code>REF</code> value * @throws SQLException if the <code>SQLOutputImpl</code> object is in * use by a <code>SQLData</code> object attempting to write the attribute * values of a UDT to the database. */ @SuppressWarnings("unchecked") public void writeRef(Ref x) throws SQLException { if (x == null) { attribs.add(null); } else { attribs.add(new SerialRef(x)); } }
throw new SQLException("Set initParams() before setRef"); params.put(Integer.valueOf(parameterIndex - 1), new SerialRef(ref));
getCurrentRow().setColumnObject(columnIndex, new SerialRef(ref));
attribs[i] = new SerialClob((Clob)attribs[i]); } else if (attribs[i] instanceof Ref) { attribs[i] = new SerialRef((Ref)attribs[i]); } else if (attribs[i] instanceof java.sql.Array) { attribs[i] = new SerialArray((java.sql.Array)attribs[i], map);
case Types.REF: result = access.getValue(options); value = binary(write(new SerialRef((Ref) result))); break; case Types.DATALINK: