CDynamicAccessor Class
Allows you to access a data source when you have no knowledge of the database schema (the database's underlying structure).
class CDynamicAccessor : public CAccessorBase
Members
Methods
Adds a bind entry to the output columns when overriding the default accessor. |
|
Instantiates and initializes the CDynamicAccessor object. |
|
Unbinds all the columns, releases the allocated memory, and releases the IAccessor interface pointer in the class. |
|
Retrieves the bookmark for the current row. |
|
Retrieves the BLOB handling value for the current row. |
|
Retrieves the maximum BLOB size in bytes. |
|
Retrieves the number of columns in the rowset. |
|
Retrieves the column characteristics. |
|
Retrieves the column metadata. |
|
Retrieves the name of a specified column. |
|
Retrieves the data type of a specified column. |
|
Retrieves the maximum possible length of a column in bytes. |
|
Retrieves the column index given a column name. |
|
Retrieves the status of a specified column. |
|
Retrieves the data from the buffer. |
|
Sets the BLOB handling value for the current row. |
|
Sets the maximum BLOB size in bytes. |
|
Sets the length of the column in bytes. |
|
Sets the status of a specified column. |
|
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
Reference
CDynamicParameterAccessor Class