다음을 통해 공유


IRowsetImpl 클래스

IRowset 인터페이스의 구현을 제공합니다.

template <
   class T, 
   class RowsetInterface,
   class RowClass = CSimpleRow,
   class MapClass = CAtlMap <
      RowClass::KeyType,
      RowClass* 
   >
>
class ATL_NO_VTABLE IRowsetImpl : public RowsetInterface

매개 변수

  • T
    Your class, derived from IRowsetImpl.

  • RowsetInterface
    A class derived from IRowsetImpl.

  • RowClass
    Storage unit for the HROW.

  • MapClass
    Storage unit for all row handles held by the provider.

멤버

메서드

AddRefRows

기존 행 핸들에 참조 횟수를 추가합니다.

CreateRow

Called by GetNextRows to allocate a new HROW. Not called directly by user.

GetData

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

GetDBStatus

Returns the status for the specified field.

GetNextRows

이전 위치를 기억하여 행을 순서대로 페치합니다.

IRowsetImpl

생성자입니다. Not called directly by user.

RefRows

Called by AddRefRows and ReleaseRows. Not called directly by user.

ReleaseRows

행을 해제합니다.

RestartPosition

Repositions the next fetch position to its initial position; that is, its position when the rowset was first created.

SetDBStatus

Sets the status flags for the specified field.

데이터 멤버

m_bCanFetchBack

Indicates whether a provider supports backward fetching.

m_bCanScrollBack

Indicates whether a provider can have its cursor scroll backwards.

m_bReset

Indicates whether a provider has reset its cursor position. This has special meaning when scrolling backwards or fetching backwards in GetNextRows.

m_iRowset

An index to the rowset, representing the cursor.

m_rgRowHandles

A list of row handles.

설명

IRowset is the base rowset interface.

요구 사항

Header: atldb.h

참고 항목

개념

OLE DB 공급자 템플릿(C++)

OLE DB 공급자 템플릿 구조