다음을 통해 공유


CRowset 클래스

Encapsulates an OLE DB rowset object and several related interfaces and provides manipulation methods for rowset data.

template <class TAccessor = CAccessorBase>
class CRowset

매개 변수

  • TAccessor
    An accessor class. 기본값은 CAccessorBase입니다.

멤버

메서드

AddRefRows

Increments the reference count associated with the current row.

닫기

Releases rows and the current IRowset interface.

비교

Compares two bookmarks using IRowsetLocate::Compare.

CRowset

Creates a new CRowset object and (optionally) associates it with an IRowset interface supplied as a parameter.

Delete

Deletes rows from the rowset using IRowsetChange:DeleteRows.

FindNextRow

Finds the next matching row after the specified bookmark.

GetApproximatePosition

Returns the approximate position of a row corresponding to a bookmark.

GetData

행 집합의 행 복사본에서 데이터를 검색합니다.

GetDataHere

Retrieves data from the specified buffer.

GetOriginalData

Retrieves the data most recently fetched from or transmitted to the data source, ignoring pending changes.

GetRowStatus

Returns the status of all rows.

Insert

Creates and inserts a new row using IRowsetChange:InsertRow.

IsSameRow

Compares the specified row with the current row.

MoveFirst

Repositions the next-fetch location to the initial position.

MoveLast

Moves to the last record.

MoveNext

Fetches data from the next sequential row or a specified number of positions beyond the next row.

MovePrev

Moves to the previous record.

MoveToBookmark

Fetches the row marked by a bookmark or the row at a specified offset from that bookmark.

MoveToRatio

Fetches rows starting from a fractional position in the rowset.

ReleaseRows

Calls IRowset::ReleaseRows to release the current row handle.

SetData

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.

Update

Transmits any pending changes made to the current row since the last fetch or update.

UpdateAll

Transmits any pending changes made to all rows since the last fetch or update.

설명

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).

요구 사항

헤더: atldbcli.h

참고 항목

개념

DBViewer Sample

MultiRead Sample

MultiRead Attributes Sample

OLE DB 소비자 템플릿(C++)

OLE DB 소비자 템플릿 참조