Share via


CSimpleRow Class

Provides a default implementation for the row handle, which is used in the IRowsetImpl class.

class CSimpleRow

Members

Methods

AddRefRow

Adds a reference count to an existing row handle.

Compare

Compares two rows to see if they refer to the same row instance.

CSimpleRow

The constructor.

ReleaseRow

Releases rows.

Data Members

m_dwRef

Reference count to an existing row handle.

m_iRowset

An index to the rowset representing the cursor.

Remarks

A row handle is logically a unique tag for a result row. IRowsetImpl creates a new CSimpleRow for every row requested in IRowsetImpl::GetNextRows. CSimpleRow can also be replaced with your own implementation of the row handle, as it is a default template argument to IRowsetImpl. The only requirement to replacing this class is to have the replacement class provide a constructor that accepts a single parameter of type LONG.

Requirements

Header: atldb.h

See Also

Reference

IRowsetImpl Class

Concepts

OLE DB Provider Templates (C++)

OLE DB Provider Template Architecture