@Override public Array createSerial(Array array) throws SQLException { return new SerialArray(array); } }
/** * Writes an <code>Array</code> object in the Java * programming language to this <code>SQLOutputImpl</code> * object. The driver converts this value to a serializable * <code>SerialArray</code> SQL <code>ARRAY</code> * value before returning it to the database. * * @param x an object representing an SQL <code>ARRAY</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 writeArray(Array x) throws SQLException { if (x == null) { attribs.add(null); } else { attribs.add(new SerialArray(x, map)); } }
public void setArray(int parameterIndex, Array x) throws SQLException { if (x instanceof ArrayImpl) { setObject(parameterIndex, x); } else { setObject(parameterIndex, new SerialArray(x)); } }
public void setArray(int parameterIndex, Array x) throws SQLException { if (x instanceof ArrayImpl) { setObject(parameterIndex, x); } else { setObject(parameterIndex, new SerialArray(x)); } }
throw new SQLException("Set initParams() before setArray"); params.put(Integer.valueOf(parameterIndex - 1), new SerialArray(array));
getCurrentRow().setColumnObject(columnIndex, new SerialArray(a));
} else if (obj instanceof java.sql.Array) { if(map != null) obj = new SerialArray((java.sql.Array)obj, map); else obj = new SerialArray((java.sql.Array)obj);
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);
rsval = new SerialClob((Clob)rsval); } else if (rsval instanceof java.sql.Array) { rsval = new SerialArray((java.sql.Array)rsval, map);
obj = new SerialClob((Clob)obj); } else if (obj instanceof java.sql.Array) { obj = new SerialArray((java.sql.Array)obj, map);
elements[i] = new SerialArray((Array)elements[i], map);