/** * Returns the value as a java.sql.Array. * * @param columnIndex (1,2,...) * @return the value */ @Override public Array getArray(int columnIndex) throws SQLException { Object[] o = (Object[]) get(columnIndex); return o == null ? null : new SimpleArray(o); }
private ResultSet readResultSet(String[] colNames) throws IOException { this.columnNames = colNames; initRead(); SimpleResultSet result = new SimpleResultSet(this); makeColumnNamesUnique(); for (String columnName : columnNames) { result.addColumn(columnName, Types.VARCHAR, Integer.MAX_VALUE, 0); } return result; }
/** * Returns the value as a byte. * * @param columnLabel the column label * @return the value */ @Override public byte getByte(String columnLabel) throws SQLException { return getByte(findColumn(columnLabel)); }
/** * INTERNAL */ @Override public InputStream getAsciiStream(int columnIndex) throws SQLException { throw getUnsupportedException(); }
/** * INTERNAL */ @Override public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException { update(columnIndex, x); }
/** * Returns the value as a java.sql.Blob. * This is only supported if the * result set was created using a Blob object. * * @param columnIndex (1,2,...) * @return the value */ @Override public Blob getBlob(int columnIndex) throws SQLException { return (Blob) get(columnIndex); }
/** * INTERNAL */ @Override public InputStream getAsciiStream(String columnLabel) throws SQLException { throw getUnsupportedException(); }
/** * INTERNAL */ @Override public void updateBoolean(int columnIndex, boolean x) throws SQLException { update(columnIndex, x); }
/** * Returns the value as an java.sql.Timestamp. * * @param columnIndex (1,2,...) * @return the value */ @Override public Timestamp getTimestamp(int columnIndex) throws SQLException { return (Timestamp) get(columnIndex); }
/** * INTERNAL */ @Override public NClob getNClob(String columnLabel) throws SQLException { throw getUnsupportedException(); }
/** * INTERNAL */ @Override public void updateCharacterStream(String columnLabel, Reader x, long length) throws SQLException { update(columnLabel, x); }
/** * INTERNAL */ @Override public SQLXML getSQLXML(int columnIndex) throws SQLException { throw getUnsupportedException(); }
/** * INTERNAL */ @Override public void updateClob(int columnIndex, Clob x) throws SQLException { update(columnIndex, x); }
/** * INTERNAL */ @Override public Time getTime(int columnIndex, Calendar cal) throws SQLException { throw getUnsupportedException(); }
/** * INTERNAL */ @Override public void updateClob(String columnLabel, Reader x, long length) throws SQLException { update(columnLabel, x); }
/** * INTERNAL */ @Override public void setFetchDirection(int direction) throws SQLException { throw getUnsupportedException(); }
/** * INTERNAL */ @Override public void updateNClob(String columnLabel, Reader x) throws SQLException { update(columnLabel, x); }
/** * INTERNAL */ @Override public Object getArray(long index, int count, Map<String, Class<?>> map) throws SQLException { throw getUnsupportedException(); }
/** * INTERNAL */ @Override public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException { update(columnIndex, x); }