| java.lang.Object com.sun.rowset.internal.BaseRow com.sun.rowset.internal.InsertRow
InsertRow | public class InsertRow extends BaseRow implements Serializable,Cloneable(Code) | | A class used internally to manage a CachedRowSet object's
insert row. This class keeps track of the number of columns in the
insert row and which columns have had a value inserted. It provides
methods for retrieving a column value, setting a column value, and finding
out whether the insert row is complete.
|
Constructor Summary | |
public | InsertRow(int numCols) Creates an InsertRow object initialized with the
given number of columns, an array for keeping track of the
original values in this insert row, and a
BitSet object with the same number of bits as
there are columns. |
Method Summary | |
public Object | getColumnObject(int idx) Retrieves the value of the designated column in this
InsertRow object. | public void | initInsertRow() Clears all the bits in the internal BitSet object
maintained by this InsertRow object. | public boolean | isCompleteRow(RowSetMetaData RowSetMD) Indicates whether this InsertRow object has a value
for every column that cannot be null. | protected void | markColInserted(int col) Sets the bit in this InsertRow object's internal
BitSet object that corresponds to the specified column
in this InsertRow object. | public void | setColumnObject(int idx, Object val) Sets the element in this InsertRow object's
internal array of original values that corresponds to the
designated column with the given value. |
InsertRow | public InsertRow(int numCols)(Code) | | Creates an InsertRow object initialized with the
given number of columns, an array for keeping track of the
original values in this insert row, and a
BitSet object with the same number of bits as
there are columns.
Parameters: numCols - an int indicating the number of columnsin this InsertRow object |
getColumnObject | public Object getColumnObject(int idx) throws SQLException(Code) | | Retrieves the value of the designated column in this
InsertRow object. If no value has been inserted
into the designated column, this method throws an
SQLException .
Parameters: idx - the column number of the value to be retrieved;the first column is 1 throws: SQLException - if no value has been inserted intothe designated column |
initInsertRow | public void initInsertRow()(Code) | | Clears all the bits in the internal BitSet object
maintained by this InsertRow object. Clearing all the bits
indicates that none of the columns have had a value inserted.
|
isCompleteRow | public boolean isCompleteRow(RowSetMetaData RowSetMD) throws SQLException(Code) | | Indicates whether this InsertRow object has a value
for every column that cannot be null.
Parameters: RowSetMD - the RowSetMetaData object for theCachedRowSet object that maintains thisInsertRow object true if this InsertRow object iscomplete; false otherwise throws: SQLException - if there is an error accessing data |
markColInserted | protected void markColInserted(int col)(Code) | | Sets the bit in this InsertRow object's internal
BitSet object that corresponds to the specified column
in this InsertRow object. Setting a bit indicates
that a value has been set.
Parameters: col - the number of the column to be marked as inserted;the first column is 1 |
setColumnObject | public void setColumnObject(int idx, Object val)(Code) | | Sets the element in this InsertRow object's
internal array of original values that corresponds to the
designated column with the given value. If the third
argument is true ,
which means that the cursor is on the insert row, this
InsertRow object's internal BitSet object
is set so that the bit corresponding to the column being set is
turned on.
Parameters: idx - the number of the column in the insert row to be set;the first column is 1 Parameters: val - the value to be set |
|
|