IRepositoryODBC2 Interface

Meta Data Services Programming

Meta Data Services Programming

IRepositoryODBC2 Interface

This interface exposes methods that enable you to set or get options for retrieving object collections asynchronously, plus other methods inherited from the IRepositoryODBC interface.

When to Use

Use the IRepositoryODBC2 interface to obtain or release an ODBC connection handle, or to retrieve the ODBC connection string used by the repository engine. It is also used to set or get options when loading object collections asynchronously.

To obtain a pointer to this interface, use the IRepository::QueryInterface method.

Methods
IUnknown Method Description
QueryInterface Returns pointers to supported interfaces
AddRef Increments the reference count
Release Decrements the reference count
IDispatch Method Description
GetIDsOfNames Maps a single member and a set of argument names to a corresponding set of dispatch identifiers
GetTypeInfo Retrieves a type information object, which can be used to get the type information for an interface
GetTypeInfoCount Retrieves the number of type information interfaces that an object provides (either 0 or 1)
Invoke Provides access to properties and methods exposed by an Automation object

IRepositoryODBC Method Description
ExecuteQuery Executes the specified SQL query against the repository database
FreeConnection Releases an ODBC connection handle
get_ConnectionString Retrieves the ODBC connection string that the repository engine uses to obtain an ODBC connection
GetNewConnection Obtains a new ODBC connection handle using the same connection settings that the repository engine is using to access the repository database
get_ReposConnection Retrieves the ODBC connection handle that the repository engine is using to access the repository database

IRepositoryODBC2 Method Description
GetOption Obtains the value of the load option
SetOption Sets the option for loading the collection

See Also

IRepositoryODBC Interface

Repository Class