CRowset Class
Encapsulates an OLE DB rowset object and several related interfaces and provides manipulation methods for rowset data.
template <class TAccessor = CAccessorBase>
class CRowset
Parameters
- TAccessor
An accessor class. The default is CAccessorBase.
Members
Methods
Increments the reference count associated with the current row. |
|
Releases rows and the current IRowset interface. |
|
Compares two bookmarks using IRowsetLocate::Compare. |
|
Creates a new CRowset object and (optionally) associates it with an IRowset interface supplied as a parameter. |
|
Deletes rows from the rowset using IRowsetChange:DeleteRows. |
|
Finds the next matching row after the specified bookmark. |
|
Returns the approximate position of a row corresponding to a bookmark. |
|
Retrieves data from the rowset's copy of the row. |
|
Retrieves data from the specified buffer. |
|
Retrieves the data most recently fetched from or transmitted to the data source, ignoring pending changes. |
|
Returns the status of all rows. |
|
Creates and inserts a new row using IRowsetChange:InsertRow. |
|
Compares the specified row with the current row. |
|
Repositions the next-fetch location to the initial position. |
|
Moves to the last record. |
|
Fetches data from the next sequential row or a specified number of positions beyond the next row. |
|
Moves to the previous record. |
|
Fetches the row marked by a bookmark or the row at a specified offset from that bookmark. |
|
Fetches rows starting from a fractional position in the rowset. |
|
Calls IRowset::ReleaseRows to release the current row handle. |
|
Sets data values in one or more columns of a row using IRowsetChange:SetData. |
|
Undoes any changes made to a row since the last fetch or Update. |
|
Transmits any pending changes made to the current row since the last fetch or update. |
|
Transmits any pending changes made to all rows since the last fetch or update. |
Remarks
In OLE DB, a rowset is the object through which a program sets and retrieves data.
This class is not meant to be instantiated but rather passed as a template parameter to CTable or CCommand (CRowset is the default).
Requirements
Header: atldbcli.h