IColumnsInfoImpl Class

Provides an implementation of the IColumnsInfo interface.

Syntax

template <class T>
class ATL_NO_VTABLE IColumnsInfoImpl :
   public IColumnsInfo,
   public CDBIDOps

Parameters

T
Your class, derived from IColumnsInfoImpl.

Requirements

Header: atldb.h

Members

Methods

Name Description
GetColumnInfo Returns the column metadata needed by most consumers.
MapColumnIDs Returns an array of ordinals of the columns in a rowset that are identified by the specified column IDs.

Remarks

A mandatory interface on rowsets and commands. To modify the behavior of your provider's IColumnsInfo implementation, you need to modify the provider column map.

IColumnsInfoImpl::GetColumnInfo

Returns the column metadata needed by most consumers.

Syntax

STDMETHOD (GetColumnInfo)(DBORDINAL* pcColumns,
   DBCOLUMNINFO** prgInfo,
   OLECHAR** ppStringsBuffer);

Parameters

See IColumnsInfo::GetColumnInfo in the OLE DB Programmer's Reference.

IColumnsInfoImpl::MapColumnIDs

Returns an array of ordinals of the columns in a rowset that are identified by the specified column IDs.

Syntax

STDMETHOD (MapColumnIDs)(DBORDINAL cColumnIDs,
   const DBID rgColumnIDs[],
   DBORDINAL rgColumns[]);

Parameters

See IColumnsInfo::MapColumnIDs in the OLE DB Programmer's Reference.

See also

OLE DB Provider Templates
OLE DB Provider Template Architecture