Row
The class BaseRow stores
a row's original values as an array of Object
values, which can be retrieved with the method getOrigRow.
This class also provides methods for getting and setting individual
values in the row.
A row's original values are the values it contained before it was last
modified. For example, when the CachedRowSetmethod
acceptChanges is called, it will reset a row's original
values to be the row's current values. Then, when the row is modified,
the values that were previously the current values will become the row's
original values (the values the row had immediately before it was modified).
If a row has not been modified, its original values are its initial values.
Subclasses of this class contain more specific details, such as the conditions under which an exception is thrown or the bounds for index parameters.
| Modifier and Type | Field and Description |
|---|---|
| protected Object[] | origVals
The array containing the original values for this |
| private static final long | serialVersionUID
Specify the serialVersionUID |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Object | Returns: theObject value at the given index into this
row's array of original valuesthe index of the element to return idx)Retrieves the array element at the given index, which is the original value of column number idx in this row. |
| public Object[] | Returns: an array ofObject values containing this row's
original valuesRetrieves the values that this row contained immediately prior to its last modification. |
| public abstract void | setColumnObject(int
the index of the element to be set idx, Object the obj)Object to which the element at index
idx to be setSets the element at the given index into this row's array of original values to the given value. |
| origVals | back to summary |
|---|---|
| protected Object[] origVals The array containing the original values for this
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Specify the serialVersionUID | |
| BaseRow | back to summary |
|---|---|
| public BaseRow() | |
| getColumnObject | back to summary |
|---|---|
| public abstract Object getColumnObject(int idx) throws SQLException Retrieves the array element at the given index, which is the original value of column number idx in this row.
| |
| getOrigRow | back to summary |
|---|---|
| public Object[] getOrigRow() Retrieves the values that this row contained immediately prior to its last modification.
| |
| setColumnObject | back to summary |
|---|---|
| public abstract void setColumnObject(int idx, Object obj) throws SQLException Sets the element at the given index into this row's array of
original values to the given value. Implementations of the classes
| |