borland Packages  Class Hierarchy  dx.dataset Package 

RowStatus interface

com.borland.dx.dataset.RowStatus

About the RowStatus interface

Variables  

All rows of a DataSet have status settings that are used by DataSet and other classes. Other status settings track the edit state of row, for example, INSERTED, UPDATED or DELETED. The edit states are used by the DataSet class when resolving new and updated data back to its source.

RowStatus settings are used to track edits to rows in a DataSet, for example, INSERTED, UPDATED, or DELETED rows will be tracked. DataSets can also be filtered by RowStatus settings. For more information, see StorageDataSet.getDeletedRows(...), StorageDataSet.getUpdatedRows(...), and StorageDataSet.getInsertedRows(...).

Resolver components like the QueryResolver component used by QueryDataSet to save changes need RowStatus information to know how to save changes back to a JDBC data source. For more information, see StorageDataSet.startLoading(...), StorageDataSet.endLoading(), StorageDataSet.loadRow(...) to see how rows can be added with a specified row status.


RowStatus variables

Variables defined in this interface


RowStatus variables

DEFAULT

  static final int DEFAULT = RowStatus.UPDATED|RowStatus.INSERTED|RowStatus.LOADED)
This variable is used internally by other com.borland classes. You should never use this variable directly.

DEFAULT_HIDDEN

  static final int DEFAULT_HIDDEN = RowStatus.DELETED|RowStatus.ORIGINAL
This variable is used internally by other com.borland classes. You should never use this variable directly.

DELETED

  public static final int DELETED = 0x01
The row has been deleted.

INSERTED

  public static final int INSERTED = 0x04
The row was added after the DataSet was loaded.

LOADED

  public static final int LOADED = 0x08
The row was loaded (such as from the execution of a QueryDataSet's JDBC query or an import operation).

ORIGINAL

  public static final int ORIGINAL = 0x10
This is the original copy of a changed row.

PENDING_RESOLVED

  public static final int PENDING_RESOLVED = 0x200
Row is pending resolution. Used internally.

UPDATED

  public static final int UPDATED = 0x02
Row has been changed.