IDADriverManager

Overview

IDADriverManager provides access to all the functionality needed to load, unload and verify drivers.

Though this interface isn't used in Data Abstract directly, it can be usable in Hydra plugins for drivers managing.

It can be obtained using a TDADriverManager component:

var
 idm:IDADriverManager;
begin
  idm :=  DriverManager as IDADriverManager;   

Location

Implemented in

 

DriverByDriverID

Returns the IDADriver reference for specified driver.

function DriverByDriverID(const aDriverID: string): IDADriver

Parameters:

  • aDriverID: given DriverID

DriverCount

Returns the number of drivers currently available, including both statically linked and dynamically loaded drivers.

property DriverCount: integer read write

Drivers

Returns the IDADriver reference for the specified driver.

property Drivers[Index: integer]: IDADriver read write

FindDriver

Returns the IDADriver reference for the specified driver.

function FindDriver(const aDriverID: string; out Driver: IDADriver): boolean

Parameters:

  • aDriverID: given DriverID
  • Driver: found driver

GetDriverCount

Returns the number of drivers currently available, including both statically linked and dynamically loaded drivers.

function GetDriverCount: integer

ListDrivers

Returns list of loaded drivers.

function ListDrivers(const aDirectory: string; out FileNames: IROStrings): integer

Parameters:

  • aDirectory: specified directory
  • FileNames: list of found drivers

LoadDriver

Dynamically loads the driver from the specified .dad file.

procedure LoadDriver(const aFileName: string)

Parameters:

  • aFileName: specified filename

LoadDrivers  overload

Dynamically loads all the drivers from the specified list of .dad files.

procedure LoadDrivers

LoadDrivers (IROStrings, boolean, boolean)  overload

Dynamically loads all the drivers from the specified list of .dad files.

procedure LoadDrivers(const aDriverList: IROStrings; aIgnoreDuplicates: boolean; aIgnoreErrors: boolean)

Parameters:

  • aDriverList: the specified list of .dad files
  • aIgnoreDuplicates: ignore duplicates
  • aIgnoreErrors: ignore errors

UnloadAllDrivers

Unloads all dynamically loaded drivers. Before calling this method, make sure that there are no active or pooled connections using the driver(s) about to be unloaded. You can ensure all pooled connections are closed by calling the TDAConnectionManager method.

procedure UnloadAllDrivers

UnloadDriver

Unloads the specified driver, if it was dynamically loaded. Before calling this method, make sure there are no active or pooled connections using the driver(s) about to be unloaded. You can ensure all pooled connections are closed by calling the TDAConnectionManager method.

procedure UnloadDriver(anIndex: integer)

Parameters:

  • anIndex: specified index

 

DriverCount

Returns the number of drivers currently available, including both statically linked and dynamically loaded drivers.

property DriverCount: integer read write

Drivers

Returns the IDADriver reference for the specified driver.

property Drivers[Index: integer]: IDADriver read write

 

DriverByDriverID

Returns the IDADriver reference for specified driver.

function DriverByDriverID(const aDriverID: string): IDADriver

Parameters:

  • aDriverID: given DriverID

FindDriver

Returns the IDADriver reference for the specified driver.

function FindDriver(const aDriverID: string; out Driver: IDADriver): boolean

Parameters:

  • aDriverID: given DriverID
  • Driver: found driver

GetDriverCount

Returns the number of drivers currently available, including both statically linked and dynamically loaded drivers.

function GetDriverCount: integer

ListDrivers

Returns list of loaded drivers.

function ListDrivers(const aDirectory: string; out FileNames: IROStrings): integer

Parameters:

  • aDirectory: specified directory
  • FileNames: list of found drivers

LoadDriver

Dynamically loads the driver from the specified .dad file.

procedure LoadDriver(const aFileName: string)

Parameters:

  • aFileName: specified filename

LoadDrivers  overload

Dynamically loads all the drivers from the specified list of .dad files.

procedure LoadDrivers

LoadDrivers (IROStrings, boolean, boolean)  overload

Dynamically loads all the drivers from the specified list of .dad files.

procedure LoadDrivers(const aDriverList: IROStrings; aIgnoreDuplicates: boolean; aIgnoreErrors: boolean)

Parameters:

  • aDriverList: the specified list of .dad files
  • aIgnoreDuplicates: ignore duplicates
  • aIgnoreErrors: ignore errors

UnloadAllDrivers

Unloads all dynamically loaded drivers. Before calling this method, make sure that there are no active or pooled connections using the driver(s) about to be unloaded. You can ensure all pooled connections are closed by calling the TDAConnectionManager method.

procedure UnloadAllDrivers

UnloadDriver

Unloads the specified driver, if it was dynamically loaded. Before calling this method, make sure there are no active or pooled connections using the driver(s) about to be unloaded. You can ensure all pooled connections are closed by calling the TDAConnectionManager method.

procedure UnloadDriver(anIndex: integer)

Parameters:

  • anIndex: specified index

See Also