Objects and Interfaces Implemented by the Sample Provider
The sample provider implements three OLE DB objects:
The data source object, which enables consumers to connect and initialize the interaction with the data file.
The session, which enables consumers to create a rowset for the data set in the data file.
The rowset, which exposes a data set to the consumer.
These objects, along with the interfaces implemented in the sample, are described in detail in the following topics, which also contain some of the implementation code for specific interfaces and methods.
The following table lists the interfaces and methods implemented in the sample provider along with the name of the source code file in which each can be found.
Interface name |
Method name |
Source code file |
---|---|---|
IDBInitialize |
Initialize Uninitialize |
DBInit.cpp DBInit.cpp |
IDBCreateSession |
CreateSession |
CrtSess.cpp |
IDBProperties |
GetProperties GetPropertyInfo SetProperties |
UtilProp.cpp UtilProp.cpp UtilProp.cpp |
IPersist |
GetClassID |
Persist.cpp |
IGetDataSource |
GetDataSource |
DBSess.cpp |
IOpenRowset |
OpenRowset |
OpnRowst.cpp |
IColumnsInfo
|
GetColumnInfo MapColumnIDs |
ColInfo.cpp ColInfo.cpp |
IConvertType |
CanConvert |
CvtType.cpp |
IAccessor
|
AddRefAccessor CreateAccessor GetBindings ReleaseAccessor |
Accessor.cpp Accessor.cpp Accessor.cpp Accessor.cpp |
IRowset |
AddRefRows GetData GetNextRows ReleaseRows RestartPosition |
IRowset.cpp IRowset.cpp IRowset.cpp IRowset.cpp IRowset.cpp |
IRowsetInfo |
GetProperties GetReferencedRowset GetSpecification |
RowInfo.cpp RowInfo.cpp RowInfo.cpp |
IRowsetChange |
DeleteRows InsertRow SetData |
RowChng.cpp RowChng.cpp RowChng.cpp |
ISessionProperties |
GetProperties SetProperties |
DBSess.cpp DBSess.cpp |