IRowsetImpl Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at IRowsetImpl Class.

Provides an implementation of the IRowset interface.

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

Parameters

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.

Methods

AddRefRowsAdds a reference count to an existing row handle.
CreateRowCalled by GetNextRows to allocate a new HROW. Not called directly by user.
GetDataRetrieves data from the rowset's copy of the row.
GetDBStatusReturns the status for the specified field.
GetNextRowsFetches rows sequentially, remembering the previous position.
IRowsetImplThe constructor. Not called directly by user.
RefRowsCalled by AddRefRows and ReleaseRows. Not called directly by user.
ReleaseRowsReleases rows.
RestartPositionRepositions the next fetch position to its initial position; that is, its position when the rowset was first created.
SetDBStatusSets the status flags for the specified field.

Data Members

m_bCanFetchBackIndicates whether a provider supports backward fetching.
m_bCanScrollBackIndicates whether a provider can have its cursor scroll backwards.
m_bResetIndicates whether a provider has reset its cursor position. This has special meaning when scrolling backwards or fetching backwards in GetNextRows.
m_iRowsetAn index to the rowset, representing the cursor.
m_rgRowHandlesA list of row handles.

IRowset is the base rowset interface.

Header: atldb.h

OLE DB Provider Templates
OLE DB Provider Template Architecture

Show: