FDO API Reference Feature Data Objects
Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

FdoConnectionManager Class Reference

#include <ConnectionManager.h>

Inherits IConnectionManager.

Inheritance diagram for FdoConnectionManager:

[legend]
List of all members.

Detailed Description

The IConnectionManager interface supports dynamic creation of connection objects given a provider name. Derives from IConnectionManager interface.
Remarks:
In order for dynamic creation to work, each dynamic link library, shared library, or assembly that implements a provider must supply a well-defined entry point function that takes as input a provider name and returns an FdoIConnection instance. The definition of the entry point function is language- and platform-dependent. For this release of FDO, the windows libraries supporting FDO providers will be expected to support the following well-known entry point function, which will create and return an unitialized connection object: IConnection * CreateConnection();

Definition at line 50 of file ConnectionManager.h.


Public Member Functions

virtual FDO_API FdoIConnectionCreateConnection (const wchar_t *providerName)
 Creates an unitialized connection object given the provider name
virtual FDO_API void FreeLibrary (const wchar_t *providerName)
 Frees a connection library reference given the provider name.

Protected Member Functions

virtual void Dispose ()
 Dispose this object.
 FdoConnectionManager ()
 Constructs a default instance of a FdoProviderRegistry object.
virtual ~FdoConnectionManager ()
 Default destructor for FdoProviderRegistry object.

Friends

class FdoFeatureAccessManager
 Instances of interface FdoFeatureAccessManager are responsible for the lifespan of FdoConnectionManager.

Constructor & Destructor Documentation

FdoConnectionManager::FdoConnectionManager  )  [protected]
 

Constructs a default instance of a FdoProviderRegistry object.

virtual FdoConnectionManager::~FdoConnectionManager  )  [protected, virtual]
 

Default destructor for FdoProviderRegistry object.


Member Function Documentation

virtual FDO_API FdoIConnection* FdoConnectionManager::CreateConnection const wchar_t *  providerName  )  [virtual]
 

Creates an unitialized connection object given the provider name

Parameters:
providerName The unique name of the feature provider. This name should be of the form [Company].[Provider].[Version].
Returns:
Returns an instance of an FdoIConnection object. Throws an instance of FdoClientServicesException * if an error occurs.

Implements IConnectionManager.

virtual void FdoConnectionManager::Dispose  )  [protected, virtual]
 

Dispose this object.

Returns:
Returns nothing

Implements FdoIDisposable.

virtual FDO_API void FdoConnectionManager::FreeLibrary const wchar_t *  providerName  )  [virtual]
 

Frees a connection library reference given the provider name.

Parameters:
providerName The unique name of the feature provider. This name should be of the form [Company].[Provider].[Version].
Returns:
Returns nothing. Throws an instance of FdoClientServicesException * if an error occurs.

Implements IConnectionManager.


Friends And Related Function Documentation

friend class FdoFeatureAccessManager [friend]
 

Instances of interface FdoFeatureAccessManager are responsible for the lifespan of FdoConnectionManager.

Definition at line 56 of file ConnectionManager.h.


The documentation for this class was generated from the following file:
Comments or suggestions? Send us feedback.