Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Provides implementation for the IOpenRowset
interface.
Syntax
template <class SessionClass>
class IOpenRowsetImpl : public IOpenRowset
Parameters
SessionClass
Your class, derived from IOpenRowsetImpl
.
Requirements
Header: atldb.h
Members
Methods
Name | Description |
---|---|
CreateRowset | Creates a rowset object. Not called directly by user. |
OpenRowset | Opens and returns a rowset that includes all rows from a single base table or index. (Not in ATLDB.H) |
Remarks
The IOpenRowset interface is mandatory for a session object. It opens and returns a rowset that includes all rows from a single base table or index.
IOpenRowsetImpl::CreateRowset
Creates a rowset object. Not called directly by user. See IOpenRowset::OpenRowset in the OLE DB Programmer's Reference.
Syntax
template template <class RowsetClass>
HRESULT CreateRowset(IUnknown* pUnkOuter,
DBID* pTableID,
DBID* pIndexID,
REFIID riid,
ULONG cPropertySets,
DBPROPSET rgPropertySets[],
IUnknown** ppRowset,
RowsetClass*& pRowsetObj);
Parameters
RowsetClass
A template class member representing the user's rowset class. Usually generated by the wizard.
pRowsetObj
[out] A pointer to a rowset object. Typically this parameter is not used, but it can be used if you must perform more work on the rowset before passing it to a COM object. The lifetime of pRowsetObj is bound by ppRowset.
For other parameters, see IOpenRowset::OpenRowset in the OLE DB Programmer's Reference.
IOpenRowsetImpl::OpenRowset
Opens and returns a rowset that includes all rows from a single base table or index.
Syntax
HRESULT OpenRowset(IUnknown* pUnkOuter,
DBID* pTableID,
DBID* pIndexID,
REFIID riid,
ULONG cPropertySets,
DBPROPSET rgPropertySets[],
IUnknown** ppRowset);
Parameters
See IOpenRowset::OpenRowset in the OLE DB Programmer's Reference.
Remarks
This method is not found in ATLDB.H. It is created by the ATL Object Wizard when you create a provider.
See also
OLE DB Provider Templates
OLE DB Provider Template Architecture