// ColumnName /** * Retrieves the value of the designated column in this * <code>JoinRowSetImpl</code> object as a <code>Ref</code> object * in the Java programming lanugage. * * @param columnName a <code>String</code> object that must match the * SQL name of a column in this rowset, ignoring case * @return a <code>Ref</code> object representing an SQL<code> REF</code> value * @throws SQLException if (1) the given column name is not the name * of a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the column value * is not an SQL <code>REF</code> value */ public Ref getRef(String columnName) throws SQLException { return crsInternal.getRef(columnName); } /** * Retrieves the value of the designated column in this * <code>JoinRowSetImpl</code> object as a <code>Blob</code> object * in the Java programming lanugage. * * @param columnName a <code>String</code> object that must match the * SQL name of a column in this rowset, ignoring case * @return a <code>Blob</code> object representing an SQL * <code>BLOB</code> value * @throws SQLException if (1) the given column name is not the name of * a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the designated * column does not store an SQL <code>BLOB</code> value */ public Blob getBlob(String columnName) throws SQLException { return crsInternal.getBlob(columnName); } /** * Retrieves the value of the designated column in this * <code>JoinRowSetImpl</code> object as a <code>Clob</code> object * in the Java programming lanugage. * * @param columnName a <code>String</code> object that must match the * SQL name of a column in this rowset, ignoring case * @return a <code>Clob</code> object representing an SQL * <code>CLOB</code> value * @throws SQLException if (1) the given column name is not the name of * a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the designated * column does not store an SQL <code>CLOB</code> value */ public Clob getClob(String columnName) throws SQLException { return crsInternal.getClob(columnName); } /** * Retrieves the value of the designated column in this * <code>JoinRowSetImpl</code> object as an <code>Array</code> object * in the Java programming lanugage. * * @param columnName a <code>String</code> object that must match the * SQL name of a column in this rowset, ignoring case * @return an <code>Array</code> object representing an SQL * <code>ARRAY</code> value * @throws SQLException if (1) the given column name is not the name of * a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the designated * column does not store an SQL <code>ARRAY</code> value */ public Array getArray(String columnName) throws SQLException { return crsInternal.getArray(columnName); } /** * Retrieves the value of the designated column in the current row * of this <code>JoinRowSetImpl</code> object as a <code>java.sql.Date</code> * object, using the given <code>Calendar</code> object to construct an * appropriate millisecond value for the date. * * @param columnIndex the first column is <code>1</code>, the second * is <code>2</code>, and so on; must be <code>1</code> or larger * and equal to or less than the number of columns in the rowset * @param cal the <code>java.util.Calendar</code> object to use in * constructing the date * @return the column value; if the value is SQL <code>NULL</code>, * the result is <code>null</code> * @throws SQLException if (1) the given column name is not the name of * a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the designated * column does not store an SQL <code>DATE</code> or * <code>TIMESTAMP</code> value */ public java.sql.Date getDate(int columnIndex, Calendar cal) throws SQLException { return crsInternal.getDate(columnIndex, cal); } /** * Retrieves the value of the designated column in the current row * of this <code>JoinRowSetImpl</code> object as a <code>java.sql.Date</code> * object, using the given <code>Calendar</code> object to construct an * appropriate millisecond value for the date. * * @param columnName a <code>String</code> object that must match the * SQL name of a column in this rowset, ignoring case * @param cal the <code>java.util.Calendar</code> object to use in * constructing the date * @return the column value; if the value is SQL <code>NULL</code>, * the result is <code>null</code> * @throws SQLException if (1) the given column name is not the name of * a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the designated * column does not store an SQL <code>DATE</code> or * <code>TIMESTAMP</code> value */ public java.sql.Date getDate(String columnName, Calendar cal) throws SQLException { return crsInternal.getDate(columnName, cal); } /** * Retrieves the value of the designated column in the current row * of this <code>JoinRowSetImpl</code> object as a <code>java.sql.Time</code> * object, using the given <code>Calendar</code> object to construct an * appropriate millisecond value for the date. * * @param columnIndex the first column is <code>1</code>, the second * is <code>2</code>, and so on; must be <code>1</code> or larger * and equal to or less than the number of columns in the rowset * @param cal the <code>java.util.Calendar</code> object to use in * constructing the date * @return the column value; if the value is SQL <code>NULL</code>, * the result is <code>null</code> * @throws SQLException if (1) the given column name is not the name of * a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the designated * column does not store an SQL <code>TIME</code> or * <code>TIMESTAMP</code> value */ public java.sql.Time getTime(int columnIndex, Calendar cal) throws SQLException { return crsInternal.getTime(columnIndex, cal); } /** * Retrieves the value of the designated column in the current row * of this <code>JoinRowSetImpl</code> object as a <code>java.sql.Time</code> * object, using the given <code>Calendar</code> object to construct an * appropriate millisecond value for the date. * * @param columnName a <code>String</code> object that must match the * SQL name of a column in this rowset, ignoring case * @param cal the <code>java.util.Calendar</code> object to use in * constructing the date * @return the column value; if the value is SQL <code>NULL</code>, * the result is <code>null</code> * @throws SQLException if (1) the given column name is not the name of * a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the designated * column does not store an SQL <code>TIME</code> or * <code>TIMESTAMP</code> value */ public java.sql.Time getTime(String columnName, Calendar cal) throws SQLException { return crsInternal.getTime(columnName, cal); } /** * Retrieves the value of the designated column in the current row * of this <code>JoinRowSetImpl</code> object as a <code>java.sql.Timestamp</code> * object, using the given <code>Calendar</code> object to construct an * appropriate millisecond value for the date. * * @param columnIndex the first column is <code>1</code>, the second * is <code>2</code>, and so on; must be <code>1</code> or larger * and equal to or less than the number of columns in the rowset * @param cal the <code>java.util.Calendar</code> object to use in * constructing the date * @return the column value; if the value is SQL <code>NULL</code>, * the result is <code>null</code> * @throws SQLException if (1) the given column name is not the name of * a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the designated * column does not store an SQL <code>TIME</code> or * <code>TIMESTAMP</code> value */ public java.sql.Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException { return crsInternal.getTimestamp(columnIndex, cal); } /** * Retrieves the value of the designated column in the current row * of this <code>JoinRowSetImpl</code> object as a * <code>java.sql.Timestamp</code> object, using the given * <code>Calendar</code> object to construct an appropriate * millisecond value for the date. * * @param columnName a <code>String</code> object that must match the * SQL name of a column in this rowset, ignoring case * @param cal the <code>java.util.Calendar</code> object to use in * constructing the date * @return the column value; if the value is SQL <code>NULL</code>, * the result is <code>null</code> * @throws SQLException if (1) the given column name is not the name of * a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the designated * column does not store an SQL <code>DATE</code>, * <code>TIME</code>, or <code>TIMESTAMP</code> value */ public java.sql.Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException { return crsInternal.getTimestamp(columnName, cal); } /** * Sets the metadata for this <code>JoinRowSetImpl</code> object * with the given <code>RowSetMetaData</code> object. * * @param md a <code>RowSetMetaData</code> object instance containing * metadata about the columsn in the rowset * @throws SQLException if invalid meta data is supplied to the * rowset */ public void setMetaData(RowSetMetaData md) throws SQLException { crsInternal.setMetaData(md); } public ResultSet getOriginal() throws SQLException { return crsInternal.getOriginal(); } /** * Returns a result set containing the original value of the rowset. * The cursor is positioned before the first row in the result set. * Only rows contained in the result set returned by getOriginal() * are said to have an original value. * * @return the original result set of the rowset * @throws SQLException if an error occurs produce the * <code>ResultSet</code> object */ public ResultSet getOriginalRow() throws SQLException { return crsInternal.getOriginalRow(); } /** * Returns a result set containing the original value of the current * row only. * * @throws SQLException if there is no current row * @see #setOriginalRow */ public void setOriginalRow() throws SQLException { crsInternal.setOriginalRow(); } /** * Returns the columns that make a key to uniquely identify a * row in this <code>JoinRowSetImpl</code> object. * * @return an array of column number that constites a primary * key for this rowset. This array should be empty * if no columns is representitive of a primary key * @throws SQLException if the rowset is empty or no columns * are designated as primary keys * @see #setKeyColumns */ public int[] getKeyColumns() throws SQLException { return crsInternal.getKeyColumns(); } /** * Sets this <code>JoinRowSetImpl</code> object's * <code>keyCols</code> field with the given array of column * numbers, which forms a key for uniquely identifying a row * in this rowset. * * @param cols an array of <code>int</code> indicating the * columns that form a primary key for this * <code>JoinRowSetImpl</code> object; every * element in the array must be greater than * <code>0</code> and less than or equal to the number * of columns in this rowset * @throws SQLException if any of the numbers in the * given array is not valid for this rowset * @see #getKeyColumns */ public void setKeyColumns(int[] cols) throws SQLException { crsInternal.setKeyColumns(cols); } /** * Sets the designated column in either the current row or the insert * row of this <code>JoinRowSetImpl</code> object with the given * <code>Ref</code> value. * <P> * This method updates a column value in the current row or the insert * row of this rowset, but it does not update the database. * If the cursor is on a row in the rowset, the * method {@link #updateRow} must be called to update the database. * If the cursor is on the insert row, the method {@link #insertRow} * must be called, which will insert the new row into both this rowset * and the database. Either of these methods must be called before the * cursor moves to another row. * * @param columnIndex the first column is <code>1</code>, the second * is <code>2</code>, and so on; must be <code>1</code> or larger * and equal to or less than the number of columns in this rowset * @param ref the <code>java.sql.Ref</code> object that will be set as * the new column value * @throws SQLException if (1) the given column index is out of bounds, * (2) the cursor is not on one of this rowset's rows or its * insert row, or (3) this rowset is * <code>ResultSet.CONCUR_READ_ONLY</code> */ public void updateRef(int columnIndex, java.sql.Ref ref) throws SQLException { crsInternal.updateRef(columnIndex, ref); } /** * Sets the designated column in either the current row or the insert * row of this <code>JoinRowSetImpl</code> object with the given * <code>Ref</code> value. * <P> * This method updates a column value in the current row or the insert * row of this rowset, but it does not update the database. * If the cursor is on a row in the rowset, the * method {@link #updateRow} must be called to update the database. * If the cursor is on the insert row, the method {@link #insertRow} * must be called, which will insert the new row into both this rowset * and the database. Either of these methods must be called before the * cursor moves to another row. * * @param columnName a <code>String</code> object giving the name of the column * to be updated; must match one of the column names in this * <code>JoinRowSetImpl</code> object * @param ref the <code>java.sql.Ref</code> object that will be set as * the new column value * @throws SQLException if (1) the given column name is not valid, * (2) the cursor is not on one of this rowset's rows or its * insert row, or (3) this rowset is * <code>ResultSet.CONCUR_READ_ONLY</code> */ public void updateRef(String columnName, java.sql.Ref ref) throws SQLException { crsInternal.updateRef(columnName, ref); } /** * Sets the designated column in either the current row or the insert * row of this <code>JoinRowSetImpl</code> object with the given * <code>Clob</code> object. * <P> * This method updates a column value in the current row or the insert * row of this rowset, but it does not update the database. * If the cursor is on a row in the rowset, the * method {@link #updateRow} must be called to update the database. * If the cursor is on the insert row, the method {@link #insertRow} * must be called, which will insert the new row into both this rowset * and the database. Either of these methods must be called before the * cursor moves to another row. * * @param columnIndex the first column is <code>1</code>, the second * is <code>2</code>, and so on; must be <code>1</code> or larger * and equal to or less than the number of columns in this rowset * @param c the <code>java.sql.Clob</code> object that will be set as * the new column value * @throws SQLException if (1) the given column index is out of bounds, * (2) the cursor is not on one of this rowset's rows or its * insert row, or (3) this rowset is * <code>ResultSet.CONCUR_READ_ONLY</code> */ public void updateClob(int columnIndex, Clob c) throws SQLException { crsInternal.updateClob(columnIndex, c); } /** * Sets the designated column in either the current row or the insert * row of this <code>JoinRowSetImpl</code> object with the given * <code>Clob</code> object. * <P> * This method updates a column value in the current row or the insert * row of this rowset, but it does not update the database. * If the cursor is on a row in the rowset, the * method {@link #updateRow} must be called to update the database. * If the cursor is on the insert row, the method {@link #insertRow} * must be called, which will insert the new row into both this rowset * and the database. Either of these methods must be called before the * cursor moves to another row. * * @param columnName a <code>String</code> object giving the name of the column * to be updated; must match one of the column names in this * <code>JoinRowSetImpl</code> object * @param c the <code>java.sql.Clob</code> object that will be set as * the new column value * @throws SQLException if (1) the given column name is not valid, * (2) the cursor is not on one of this rowset's rows or its * insert row, or (3) this rowset is * <code>ResultSet.CONCUR_READ_ONLY</code> */ public void updateClob(String columnName, Clob c) throws SQLException { crsInternal.updateClob(columnName, c); } /** * Sets the designated column in either the current row or the insert * row of this <code>JoinRowSetImpl</code> object with the given * <code>Blob</code> value. * <P> * This method updates a column value in the current row or the insert * row of this rowset, but it does not update the database. * If the cursor is on a row in the rowset, the * method {@link #updateRow} must be called to update the database. * If the cursor is on the insert row, the method {@link #insertRow} * must be called, which will insert the new row into both this rowset * and the database. Either of these methods must be called before the * cursor moves to another row. * * @param columnIndex the first column is <code>1</code>, the second * is <code>2</code>, and so on; must be <code>1</code> or larger * and equal to or less than the number of columns in this rowset * @param b the <code>java.sql.Blob</code> object that will be set as * the new column value * @throws SQLException if (1) the given column index is out of bounds, * (2) the cursor is not on one of this rowset's rows or its * insert row, or (3) this rowset is * <code>ResultSet.CONCUR_READ_ONLY</code> */ public void updateBlob(int columnIndex, Blob b) throws SQLException { crsInternal.updateBlob(columnIndex, b); } /** * Sets the designated column in either the current row or the insert * row of this <code>JoinRowSetImpl</code> object with the given * <code>Blob</code> object. * <P> * This method updates a column value in the current row or the insert * row of this rowset, but it does not update the database. * If the cursor is on a row in the rowset, the * method {@link #updateRow} must be called to update the database. * If the cursor is on the insert row, the method {@link #insertRow} * must be called, which will insert the new row into both this rowset * and the database. Either of these methods must be called before the * cursor moves to another row. * * @param columnName a <code>String</code> object giving the name of the column * to be updated; must match one of the column names in this * <code>JoinRowSetImpl</code> object * @param b the <code>java.sql.Blob</code> object that will be set as * the new column value * @throws SQLException if (1) the given column name is not valid, * (2) the cursor is not on one of this rowset's rows or its * insert row, or (3) this rowset is * <code>ResultSet.CONCUR_READ_ONLY</code> */ public void updateBlob(String columnName, Blob b) throws SQLException { crsInternal.updateBlob(columnName, b); } /** * Sets the designated column in either the current row or the insert * row of this <code>JoinRowSetImpl</code> object with the given * <code>Array</code> object. * <P> * This method updates a column value in the current row or the insert * row of this rowset, but it does not update the database. * If the cursor is on a row in the rowset, the * method {@link #updateRow} must be called to update the database. * If the cursor is on the insert row, the method {@link #insertRow} * must be called, which will insert the new row into both this rowset * and the database. Either of these methods must be called before the * cursor moves to another row. * * @param columnIndex the first column is <code>1</code>, the second * is <code>2</code>, and so on; must be <code>1</code> or larger * and equal to or less than the number of columns in this rowset * @param a the <code>java.sql.Array</code> object that will be set as * the new column value * @throws SQLException if (1) the given column index is out of bounds, * (2) the cursor is not on one of this rowset's rows or its * insert row, or (3) this rowset is * <code>ResultSet.CONCUR_READ_ONLY</code> */ public void updateArray(int columnIndex, Array a) throws SQLException { crsInternal.updateArray(columnIndex, a); } /** * Sets the designated column in either the current row or the insert * row of this <code>JoinRowSetImpl</code> object with the given * <code>Array</code> object. * <P> * This method updates a column value in the current row or the insert * row of this rowset, but it does not update the database. * If the cursor is on a row in the rowset, the * method {@link #updateRow} must be called to update the database. * If the cursor is on the insert row, the method {@link #insertRow} * must be called, which will insert the new row into both this rowset * and the database. Either of these methods must be called before the * cursor moves to another row. * * @param columnName a <code>String</code> object giving the name of the column * to be updated; must match one of the column names in this * <code>JoinRowSetImpl</code> object * @param a the <code>java.sql.Array</code> object that will be set asLines 3501–4000 of 4353. Previous lines Load more
// ColumnName /** * Retrieves the value of the designated column in this * <code>JoinRowSetImpl</code> object as a <code>Ref</code> object * in the Java programming lanugage. * * @param columnName a <code>String</code> object that must match the * SQL name of a column in this rowset, ignoring case * @return a <code>Ref</code> object representing an SQL<code> REF</code> value * @throws SQLException if (1) the given column name is not the name * of a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the column value * is not an SQL <code>REF</code> value */ public Ref getRef(String columnName) throws SQLException { return crsInternal.getRef(columnName); } /** * Retrieves the value of the designated column in this * <code>JoinRowSetImpl</code> object as a <code>Blob</code> object * in the Java programming lanugage. * * @param columnName a <code>String</code> object that must match the * SQL name of a column in this rowset, ignoring case * @return a <code>Blob</code> object representing an SQL * <code>BLOB</code> value * @throws SQLException if (1) the given column name is not the name of * a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the designated * column does not store an SQL <code>BLOB</code> value */ public Blob getBlob(String columnName) throws SQLException { return crsInternal.getBlob(columnName); } /** * Retrieves the value of the designated column in this * <code>JoinRowSetImpl</code> object as a <code>Clob</code> object * in the Java programming lanugage. * * @param columnName a <code>String</code> object that must match the * SQL name of a column in this rowset, ignoring case * @return a <code>Clob</code> object representing an SQL * <code>CLOB</code> value * @throws SQLException if (1) the given column name is not the name of * a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the designated * column does not store an SQL <code>CLOB</code> value */ public Clob getClob(String columnName) throws SQLException { return crsInternal.getClob(columnName); } /** * Retrieves the value of the designated column in this * <code>JoinRowSetImpl</code> object as an <code>Array</code> object * in the Java programming lanugage. * * @param columnName a <code>String</code> object that must match the * SQL name of a column in this rowset, ignoring case * @return an <code>Array</code> object representing an SQL * <code>ARRAY</code> value * @throws SQLException if (1) the given column name is not the name of * a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the designated * column does not store an SQL <code>ARRAY</code> value */ public Array getArray(String columnName) throws SQLException { return crsInternal.getArray(columnName); } /** * Retrieves the value of the designated column in the current row * of this <code>JoinRowSetImpl</code> object as a <code>java.sql.Date</code> * object, using the given <code>Calendar</code> object to construct an * appropriate millisecond value for the date. * * @param columnIndex the first column is <code>1</code>, the second * is <code>2</code>, and so on; must be <code>1</code> or larger * and equal to or less than the number of columns in the rowset * @param cal the <code>java.util.Calendar</code> object to use in * constructing the date * @return the column value; if the value is SQL <code>NULL</code>, * the result is <code>null</code> * @throws SQLException if (1) the given column name is not the name of * a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the designated * column does not store an SQL <code>DATE</code> or * <code>TIMESTAMP</code> value */ public java.sql.Date getDate(int columnIndex, Calendar cal) throws SQLException { return crsInternal.getDate(columnIndex, cal); } /** * Retrieves the value of the designated column in the current row * of this <code>JoinRowSetImpl</code> object as a <code>java.sql.Date</code> * object, using the given <code>Calendar</code> object to construct an * appropriate millisecond value for the date. * * @param columnName a <code>String</code> object that must match the * SQL name of a column in this rowset, ignoring case * @param cal the <code>java.util.Calendar</code> object to use in * constructing the date * @return the column value; if the value is SQL <code>NULL</code>, * the result is <code>null</code> * @throws SQLException if (1) the given column name is not the name of * a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the designated * column does not store an SQL <code>DATE</code> or * <code>TIMESTAMP</code> value */ public java.sql.Date getDate(String columnName, Calendar cal) throws SQLException { return crsInternal.getDate(columnName, cal); } /** * Retrieves the value of the designated column in the current row * of this <code>JoinRowSetImpl</code> object as a <code>java.sql.Time</code> * object, using the given <code>Calendar</code> object to construct an * appropriate millisecond value for the date. * * @param columnIndex the first column is <code>1</code>, the second * is <code>2</code>, and so on; must be <code>1</code> or larger * and equal to or less than the number of columns in the rowset * @param cal the <code>java.util.Calendar</code> object to use in * constructing the date * @return the column value; if the value is SQL <code>NULL</code>, * the result is <code>null</code> * @throws SQLException if (1) the given column name is not the name of * a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the designated * column does not store an SQL <code>TIME</code> or * <code>TIMESTAMP</code> value */ public java.sql.Time getTime(int columnIndex, Calendar cal) throws SQLException { return crsInternal.getTime(columnIndex, cal); } /** * Retrieves the value of the designated column in the current row * of this <code>JoinRowSetImpl</code> object as a <code>java.sql.Time</code> * object, using the given <code>Calendar</code> object to construct an * appropriate millisecond value for the date. * * @param columnName a <code>String</code> object that must match the * SQL name of a column in this rowset, ignoring case * @param cal the <code>java.util.Calendar</code> object to use in * constructing the date * @return the column value; if the value is SQL <code>NULL</code>, * the result is <code>null</code> * @throws SQLException if (1) the given column name is not the name of * a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the designated * column does not store an SQL <code>TIME</code> or * <code>TIMESTAMP</code> value */ public java.sql.Time getTime(String columnName, Calendar cal) throws SQLException { return crsInternal.getTime(columnName, cal); } /** * Retrieves the value of the designated column in the current row * of this <code>JoinRowSetImpl</code> object as a <code>java.sql.Timestamp</code> * object, using the given <code>Calendar</code> object to construct an * appropriate millisecond value for the date. * * @param columnIndex the first column is <code>1</code>, the second * is <code>2</code>, and so on; must be <code>1</code> or larger * and equal to or less than the number of columns in the rowset * @param cal the <code>java.util.Calendar</code> object to use in * constructing the date * @return the column value; if the value is SQL <code>NULL</code>, * the result is <code>null</code> * @throws SQLException if (1) the given column name is not the name of * a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the designated * column does not store an SQL <code>TIME</code> or * <code>TIMESTAMP</code> value */ public java.sql.Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException { return crsInternal.getTimestamp(columnIndex, cal); } /** * Retrieves the value of the designated column in the current row * of this <code>JoinRowSetImpl</code> object as a * <code>java.sql.Timestamp</code> object, using the given * <code>Calendar</code> object to construct an appropriate * millisecond value for the date. * * @param columnName a <code>String</code> object that must match the * SQL name of a column in this rowset, ignoring case * @param cal the <code>java.util.Calendar</code> object to use in * constructing the date * @return the column value; if the value is SQL <code>NULL</code>, * the result is <code>null</code> * @throws SQLException if (1) the given column name is not the name of * a column in this rowset, (2) the cursor is not on one of * this rowset's rows or its insert row, or (3) the designated * column does not store an SQL <code>DATE</code>, * <code>TIME</code>, or <code>TIMESTAMP</code> value */ public java.sql.Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException { return crsInternal.getTimestamp(columnName, cal); } /** * Sets the metadata for this <code>JoinRowSetImpl</code> object * with the given <code>RowSetMetaData</code> object. * * @param md a <code>RowSetMetaData</code> object instance containing * metadata about the columsn in the rowset * @throws SQLException if invalid meta data is supplied to the * rowset */ public void setMetaData(RowSetMetaData md) throws SQLException { crsInternal.setMetaData(md); } public ResultSet getOriginal() throws SQLException { return crsInternal.getOriginal(); } /** * Returns a result set containing the original value of the rowset. * The cursor is positioned before the first row in the result set. * Only rows contained in the result set returned by getOriginal() * are said to have an original value. * * @return the original result set of the rowset * @throws SQLException if an error occurs produce the * <code>ResultSet</code> object */ public ResultSet getOriginalRow() throws SQLException { return crsInternal.getOriginalRow(); } /** * Returns a result set containing the original value of the current * row only. * * @throws SQLException if there is no current row * @see #setOriginalRow */ public void setOriginalRow() throws SQLException { crsInternal.setOriginalRow(); } /** * Returns the columns that make a key to uniquely identify a * row in this <code>JoinRowSetImpl</code> object. * * @return an array of column number that constites a primary * key for this rowset. This array should be empty * if no columns is representitive of a primary key * @throws SQLException if the rowset is empty or no columns * are designated as primary keys * @see #setKeyColumns */ public int[] getKeyColumns() throws SQLException { return crsInternal.getKeyColumns(); } /** * Sets this <code>JoinRowSetImpl</code> object's * <code>keyCols</code> field with the given array of column * numbers, which forms a key for uniquely identifying a row * in this rowset. * * @param cols an array of <code>int</code> indicating the * columns that form a primary key for this * <code>JoinRowSetImpl</code> object; every * element in the array must be greater than * <code>0</code> and less than or equal to the number * of columns in this rowset * @throws SQLException if any of the numbers in the * given array is not valid for this rowset * @see #getKeyColumns */ public void setKeyColumns(int[] cols) throws SQLException { crsInternal.setKeyColumns(cols); } /** * Sets the designated column in either the current row or the insert * row of this <code>JoinRowSetImpl</code> object with the given * <code>Ref</code> value. * <P> * This method updates a column value in the current row or the insert * row of this rowset, but it does not update the database. * If the cursor is on a row in the rowset, the * method {@link #updateRow} must be called to update the database. * If the cursor is on the insert row, the method {@link #insertRow} * must be called, which will insert the new row into both this rowset * and the database. Either of these methods must be called before the * cursor moves to another row. * * @param columnIndex the first column is <code>1</code>, the second * is <code>2</code>, and so on; must be <code>1</code> or larger * and equal to or less than the number of columns in this rowset * @param ref the <code>java.sql.Ref</code> object that will be set as * the new column value * @throws SQLException if (1) the given column index is out of bounds, * (2) the cursor is not on one of this rowset's rows or its * insert row, or (3) this rowset is * <code>ResultSet.CONCUR_READ_ONLY</code> */ public void updateRef(int columnIndex, java.sql.Ref ref) throws SQLException { crsInternal.updateRef(columnIndex, ref); } /** * Sets the designated column in either the current row or the insert * row of this <code>JoinRowSetImpl</code> object with the given * <code>Ref</code> value. * <P> * This method updates a column value in the current row or the insert * row of this rowset, but it does not update the database. * If the cursor is on a row in the rowset, the * method {@link #updateRow} must be called to update the database. * If the cursor is on the insert row, the method {@link #insertRow} * must be called, which will insert the new row into both this rowset * and the database. Either of these methods must be called before the * cursor moves to another row. * * @param columnName a <code>String</code> object giving the name of the column * to be updated; must match one of the column names in this * <code>JoinRowSetImpl</code> object * @param ref the <code>java.sql.Ref</code> object that will be set as * the new column value * @throws SQLException if (1) the given column name is not valid, * (2) the cursor is not on one of this rowset's rows or its * insert row, or (3) this rowset is * <code>ResultSet.CONCUR_READ_ONLY</code> */ public void updateRef(String columnName, java.sql.Ref ref) throws SQLException { crsInternal.updateRef(columnName, ref); } /** * Sets the designated column in either the current row or the insert * row of this <code>JoinRowSetImpl</code> object with the given * <code>Clob</code> object. * <P> * This method updates a column value in the current row or the insert * row of this rowset, but it does not update the database. * If the cursor is on a row in the rowset, the * method {@link #updateRow} must be called to update the database. * If the cursor is on the insert row, the method {@link #insertRow} * must be called, which will insert the new row into both this rowset * and the database. Either of these methods must be called before the * cursor moves to another row. * * @param columnIndex the first column is <code>1</code>, the second * is <code>2</code>, and so on; must be <code>1</code> or larger * and equal to or less than the number of columns in this rowset * @param c the <code>java.sql.Clob</code> object that will be set as * the new column value * @throws SQLException if (1) the given column index is out of bounds, * (2) the cursor is not on one of this rowset's rows or its * insert row, or (3) this rowset is * <code>ResultSet.CONCUR_READ_ONLY</code> */ public void updateClob(int columnIndex, Clob c) throws SQLException { crsInternal.updateClob(columnIndex, c); } /** * Sets the designated column in either the current row or the insert * row of this <code>JoinRowSetImpl</code> object with the given * <code>Clob</code> object. * <P> * This method updates a column value in the current row or the insert * row of this rowset, but it does not update the database. * If the cursor is on a row in the rowset, the * method {@link #updateRow} must be called to update the database. * If the cursor is on the insert row, the method {@link #insertRow} * must be called, which will insert the new row into both this rowset * and the database. Either of these methods must be called before the * cursor moves to another row. * * @param columnName a <code>String</code> object giving the name of the column * to be updated; must match one of the column names in this * <code>JoinRowSetImpl</code> object * @param c the <code>java.sql.Clob</code> object that will be set as * the new column value * @throws SQLException if (1) the given column name is not valid, * (2) the cursor is not on one of this rowset's rows or its * insert row, or (3) this rowset is * <code>ResultSet.CONCUR_READ_ONLY</code> */ public void updateClob(String columnName, Clob c) throws SQLException { crsInternal.updateClob(columnName, c); } /** * Sets the designated column in either the current row or the insert * row of this <code>JoinRowSetImpl</code> object with the given * <code>Blob</code> value. * <P> * This method updates a column value in the current row or the insert * row of this rowset, but it does not update the database. * If the cursor is on a row in the rowset, the * method {@link #updateRow} must be called to update the database. * If the cursor is on the insert row, the method {@link #insertRow} * must be called, which will insert the new row into both this rowset * and the database. Either of these methods must be called before the * cursor moves to another row. * * @param columnIndex the first column is <code>1</code>, the second * is <code>2</code>, and so on; must be <code>1</code> or larger * and equal to or less than the number of columns in this rowset * @param b the <code>java.sql.Blob</code> object that will be set as * the new column value * @throws SQLException if (1) the given column index is out of bounds, * (2) the cursor is not on one of this rowset's rows or its * insert row, or (3) this rowset is * <code>ResultSet.CONCUR_READ_ONLY</code> */ public void updateBlob(int columnIndex, Blob b) throws SQLException { crsInternal.updateBlob(columnIndex, b); } /** * Sets the designated column in either the current row or the insert * row of this <code>JoinRowSetImpl</code> object with the given * <code>Blob</code> object. * <P> * This method updates a column value in the current row or the insert * row of this rowset, but it does not update the database. * If the cursor is on a row in the rowset, the * method {@link #updateRow} must be called to update the database. * If the cursor is on the insert row, the method {@link #insertRow} * must be called, which will insert the new row into both this rowset * and the database. Either of these methods must be called before the * cursor moves to another row. * * @param columnName a <code>String</code> object giving the name of the column * to be updated; must match one of the column names in this * <code>JoinRowSetImpl</code> object * @param b the <code>java.sql.Blob</code> object that will be set as * the new column value * @throws SQLException if (1) the given column name is not valid, * (2) the cursor is not on one of this rowset's rows or its * insert row, or (3) this rowset is * <code>ResultSet.CONCUR_READ_ONLY</code> */ public void updateBlob(String columnName, Blob b) throws SQLException { crsInternal.updateBlob(columnName, b); } /** * Sets the designated column in either the current row or the insert * row of this <code>JoinRowSetImpl</code> object with the given * <code>Array</code> object. * <P> * This method updates a column value in the current row or the insert * row of this rowset, but it does not update the database. * If the cursor is on a row in the rowset, the * method {@link #updateRow} must be called to update the database. * If the cursor is on the insert row, the method {@link #insertRow} * must be called, which will insert the new row into both this rowset * and the database. Either of these methods must be called before the * cursor moves to another row. * * @param columnIndex the first column is <code>1</code>, the second * is <code>2</code>, and so on; must be <code>1</code> or larger * and equal to or less than the number of columns in this rowset * @param a the <code>java.sql.Array</code> object that will be set as * the new column value * @throws SQLException if (1) the given column index is out of bounds, * (2) the cursor is not on one of this rowset's rows or its * insert row, or (3) this rowset is * <code>ResultSet.CONCUR_READ_ONLY</code> */ public void updateArray(int columnIndex, Array a) throws SQLException { crsInternal.updateArray(columnIndex, a); } /** * Sets the designated column in either the current row or the insert * row of this <code>JoinRowSetImpl</code> object with the given * <code>Array</code> object. * <P> * This method updates a column value in the current row or the insert * row of this rowset, but it does not update the database. * If the cursor is on a row in the rowset, the * method {@link #updateRow} must be called to update the database. * If the cursor is on the insert row, the method {@link #insertRow} * must be called, which will insert the new row into both this rowset * and the database. Either of these methods must be called before the * cursor moves to another row. * * @param columnName a <code>String</code> object giving the name of the column * to be updated; must match one of the column names in this * <code>JoinRowSetImpl</code> object * @param a the <code>java.sql.Array</code> object that will be set as