Row object
maintains an array of current column values and an array of original
column values, and it provides methods for getting and setting the
value of a column. It also keeps track of which columns have
changed and whether the change was a delete, insert, or update.
Note that column numbers for rowsets start at 1,
whereas the first element of an array or bitset is 0.
The argument for the method getColumnUpdated refers to
the column number in the rowset (the first column is 1);
the argument for setColumnUpdated refers to the index
into the rowset's internal bitset (the first bit is 0).
| Modifier and Type | Field and Description |
|---|---|
| private BitSet | colsChanged
A |
| private Object[] | currentVals
An array containing the current column values for this |
| private boolean | deleted
A |
| private boolean | inserted
A |
| private int | numCols
The number of columns in this |
| pack-priv static final long | |
| private boolean | updated
A |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | clearUpdated()
Sets the |
| public Object | Returns: anObject in the Java programming language that
represents the value stored in the designated columnthe index of the column value to be retrieved;
the index of the first column is columnIndex)1Implements abstract com. Retrieves the column value stored in the designated column of this
|
| public boolean | Returns: true if the designated column value has been changed;
false otherwisethe index into the idx)BitSet object maintained by
this Row object to keep track of which column
values have been modified; the index of the first bit is
0Indicates whether the designated column of this |
| public BaseRow | Returns: theRow object on which the CachedRowSet
implementation objects's cursor is positionedReturns the row on which the cursor is positioned. |
| public boolean | Returns: true if a column value has been deleted; false
otherwiseRetrieves the value of this |
| public boolean | Returns: true if this row has been inserted; false
otherwiseRetrieves the value of this |
| public boolean | Returns: true if this Row object has been
updated; false if it has notRetrieves the value of this |
| public void | initColumnObject(int
the number of the column in this idx, Object Row object
that is to be set; the index of the first column is
1the new value to be set val)This method is called internally by the |
| public void | moveCurrentToOrig()
Sets the column values in this |
| public void | setColumnObject(int
the number of the column in this idx, Object Row object
that is to be set; the index of the first column is
1the new value to be set val)Implements abstract com. This method is called internally by the |
| private void | setColUpdated(int
the index into the idx)BitSet object maintained by
this Row object; the first bit is at index
0Sets the bit at the given index into this |
| public void | |
| public void | |
| public void | setUpdated()
Sets the |
| colsChanged | back to summary |
|---|---|
| private BitSet colsChanged A | |
| currentVals | back to summary |
|---|---|
| private Object[] currentVals An array containing the current column values for this
| |
| deleted | back to summary |
|---|---|
| private boolean deleted A | |
| inserted | back to summary |
|---|---|
| private boolean inserted A | |
| numCols | back to summary |
|---|---|
| private int numCols The number of columns in this | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| updated | back to summary |
|---|---|
| private boolean updated A | |
| Row | back to summary |
|---|---|
| public Row(int numCols) Creates a new | |
| Row | back to summary |
|---|---|
| public Row(int numCols, Object[] vals) Creates a new | |
| clearDeleted | back to summary |
|---|---|
| public void clearDeleted() Sets the | |
| clearInserted | back to summary |
|---|---|
| public void clearInserted() Sets the | |
| clearUpdated | back to summary |
|---|---|
| public void clearUpdated() Sets the | |
| getColumnObject | back to summary |
|---|---|
| public Object getColumnObject(int columnIndex) throws SQLException Implements abstract com. Retrieves the column value stored in the designated column of this
| |
| getColUpdated | back to summary |
|---|---|
| public boolean getColUpdated(int idx) Indicates whether the designated column of this
| |
| getCurrentRow | back to summary |
|---|---|
| public BaseRow getCurrentRow() Returns the row on which the cursor is positioned.
| |
| getDeleted | back to summary |
|---|---|
| public boolean getDeleted() Retrieves the value of this
| |
| getInserted | back to summary |
|---|---|
| public boolean getInserted() Retrieves the value of this
| |
| getUpdated | back to summary |
|---|---|
| public boolean getUpdated() Retrieves the value of this
| |
| initColumnObject | back to summary |
|---|---|
| public void initColumnObject(int idx, Object val) This method is called internally by the
| |
| moveCurrentToOrig | back to summary |
|---|---|
| public void moveCurrentToOrig() Sets the column values in this
This method is called internally by the | |
| setColumnObject | back to summary |
|---|---|
| public void setColumnObject(int idx, Object val) Implements abstract com. This method is called internally by the
| |
| setColUpdated | back to summary |
|---|---|
| private void setColUpdated(int idx) Sets the bit at the given index into this
| |
| setDeleted | back to summary |
|---|---|
| public void setDeleted() Sets this
| |
| setInserted | back to summary |
|---|---|
| public void setInserted() Sets the value of this
| |
| setUpdated | back to summary |
|---|---|
| public void setUpdated() Sets the
| |