Skip to content

Latest commit

 

History

History
86 lines (71 loc) · 3.68 KB

File metadata and controls

86 lines (71 loc) · 3.68 KB
title IDBSchemaRowsetImpl Class | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
IDBSchemaRowsetImpl
dev_langs
C++
helpviewer_keywords
IDBSchemaRowsetImpl class
ms.assetid bd7bf0d7-a1c6-4afa-88e3-cfdbdf560703
caps.latest.revision 8
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
ru-ru
zh-cn
zh-tw
translation.priority.mt
cs-cz
pl-pl
pt-br
tr-tr

IDBSchemaRowsetImpl Class

Provides implementation for schema rowsets.

Syntax

template <class SessionClass>  
class ATL_NO_VTABLE IDBSchemaRowsetImpl : public IDBSchemaRowset  

Parameters

SessionClass
The class by which IDBSchemaRowsetImpl is inherited. Typically, this class will be the user's session class.

Members

Methods

CheckRestrictions Checks the validity of restrictions against a schema rowset.
CreateSchemaRowset Implements a COM object creator function for the object specified by the template parameter.
SetRestrictions Specifies which restrictions you support on a particular schema rowset.

Interface Methods

GetRowset Returns a schema rowset.
GetSchemas Returns a list of schema rowsets accessible by IDBSchemaRowsetImpl::GetRowset.

Remarks

This class implements the IDBSchemaRowset interface and the templatized creator function CreateSchemaRowset.

OLE DB uses schema rowsets to return data about the data in a provider. Such data is often called "metadata." By default, a provider must always support DBSCHEMA_TABLES, DBSCHEMA_COLUMNS, and DBSCHEMA_PROVIDER_TYPES, as described in IDBSchemaRowset in the OLE DB Programmer's Reference. Schema rowsets are designated in a schema map. For information about the schema map entries, see SCHEMA_ENTRY.

The OLE DB Provider Wizard, in the ATL Object Wizard, automatically generates code for the schema rowsets in your project. (By default, the wizard supports the mandatory schema rowsets previously mentioned.) When you create a consumer using the ATL Object Wizard, the wizard uses schema rowsets to bind the correct data to a provider. If you do not implement your schema rowsets to provide the correct metadata, the wizard will not bind the correct data.

For information on how to support schema rowsets in your provider, see Supporting Schema Rowsets.

For more information about schema rowsets, see Schema Rowsets in the OLE DB Programmer's Reference.

Requirements

Header: atldb.h

See Also

IDBSchemaRowsetImpl Class Members
Schema Rowset Classes and Typedef Classes
Supporting Schema Rowsets