Skip to content

Latest commit

 

History

History
90 lines (80 loc) · 4.29 KB

File metadata and controls

90 lines (80 loc) · 4.29 KB
title CDynamicAccessor 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
ATL.CDynamicAccessor
ATL::CDynamicAccessor
CDynamicAccessor
dev_langs
C++
helpviewer_keywords
CDynamicAccessor class
ms.assetid 374b13b7-1f09-457d-9e6b-df260ff4d178
caps.latest.revision 10
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

CDynamicAccessor Class

Allows you to access a data source when you have no knowledge of the database schema (the database's underlying structure).

Syntax

class CDynamicAccessor : public CAccessorBase  

Members

Methods

AddBindEntry Adds a bind entry to the output columns when overriding the default accessor.
CDynamicAccessor Instantiates and initializes the CDynamicAccessor object.
Close Unbinds all the columns, releases the allocated memory, and releases the IAccessor interface pointer in the class.
GetBookmark Retrieves the bookmark for the current row.
GetBlobHandling Retrieves the BLOB handling value for the current row.
GetBlobSizeLimit Retrieves the maximum BLOB size in bytes.
GetColumnCount Retrieves the number of columns in the rowset.
GetColumnFlags Retrieves the column characteristics.
GetColumnInfo Retrieves the column metadata.
GetColumnName Retrieves the name of a specified column.
GetColumnType Retrieves the data type of a specified column.
GetLength Retrieves the maximum possible length of a column in bytes.
GetOrdinal Retrieves the column index given a column name.
GetStatus Retrieves the status of a specified column.
GetValue Retrieves the data from the buffer.
SetBlobHandling Sets the BLOB handling value for the current row.
SetBlobSizeLimit Sets the maximum BLOB size in bytes.
SetLength Sets the length of the column in bytes.
SetStatus Sets the status of a specified column.
SetValue Stores the data to the buffer.

Remarks

Use CDynamicAccessor methods to obtain column information such as column names, column count, data type, and so on. You then use this column information to create an accessor dynamically at run time.

The column information is stored in a buffer that is created and managed by this class. Obtain data from the buffer using GetValue.

For a discussion and examples of using the dynamic accessor classes, see Using Dynamic Accessors.

Requirements

Header: atldbcli.h

See Also

OLE DB Consumer Templates
OLE DB Consumer Templates Reference
CAccessor Class
CDynamicParameterAccessor Class
CManualAccessor Class