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.
| Modifier and Type | Field and Description |
|---|---|
| private int | cols
The number of columns in this |
| private BitSet | colsInserted
An internal |
| private JdbcRowSetResourceBundle | |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public | InsertRow(int
an numCols)int indicating the number of columns
in this InsertRow objectCreates an |
| Modifier and Type | Method and Description |
|---|---|
| public Object | getColumnObject(int
the column number of the value to be retrieved;
the first column is idx)1Implements abstract com. Retrieves the value of the designated column in this
|
| public void | initInsertRow()
Clears all the bits in the internal |
| public boolean | Returns: true if this InsertRow object is
complete; false otherwisethe RowSetMD)RowSetMetaData object for the
CachedRowSet object that maintains this
InsertRow objectIndicates whether this |
| protected void | markColInserted(int
the number of the column to be marked as inserted;
the first column is col)1Sets the bit in this |
| private void | readObject(ObjectInputStream ois)
This method re populates the resBundle during the deserialization process |
| public void | setColumnObject(int
the number of the column in the insert row to be set;
the first column is idx, Object 1the value to be set val)Implements abstract com. Sets the element in this |
| cols | back to summary |
|---|---|
| private int cols The number of columns in this | |
| colsInserted | back to summary |
|---|---|
| private BitSet colsInserted An internal | |
| resBundle | back to summary |
|---|---|
| private JdbcRowSetResourceBundle resBundle | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| InsertRow | back to summary |
|---|---|
| public InsertRow(int numCols) Creates an
| |
| getColumnObject | back to summary |
|---|---|
| public Object getColumnObject(int idx) throws SQLException Implements abstract com. Retrieves the value of the designated column in this
| |
| initInsertRow | back to summary |
|---|---|
| public void initInsertRow() Clears all the bits in the internal | |
| isCompleteRow | back to summary |
|---|---|
| public boolean isCompleteRow(RowSetMetaData RowSetMD) throws SQLException Indicates whether this
| |
| markColInserted | back to summary |
|---|---|
| protected void markColInserted(int col) Sets the bit in this
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException This method re populates the resBundle during the deserialization process | |
| setColumnObject | back to summary |
|---|---|
| public void setColumnObject(int idx, Object val) Implements abstract com. Sets the element in this
| |