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
- Unit: uDAServerInterfaces.pas
- Ancestry: IDADriverManager
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
Drivers
Returns the IDADriver reference for the specified driver.
property Drivers[Index: Integer]: IDADriver read
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
Drivers
Returns the IDADriver reference for the specified driver.
property Drivers[Index: Integer]: IDADriver read
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