TZDBLibDriver Class Reference

Implements DBLib Database Driver. More...

Inheritance diagram for TZDBLibDriver:

TZAbstractDriver TInterfacedObject IZDriver

List of all members.

Public Member Functions

Boolean AcceptsURL (const string Url)
 Returns true if the driver thinks that it can open a connection to the given URL.
IZConnection Connect (const string Url, TStrings Info)
 Attempts to make a database connection to the given URL.
Integer GetClientVersion (const string Url)
 Returns the version of the plain driver library that will be used to open a connection to the given URL.
Integer GetMajorVersion ()
 Gets the driver's major version number.
Integer GetMinorVersion ()
 Gets the driver's minor version number.
TStrings GetPropertyInfo (const string Url, TStrings Info)
 Gets information about the possible properties for this driver.
IZStatementAnalyser GetStatementAnalyser ()
 Creates a statement analyser object.
Integer GetSubVersion ()
 Gets the driver's sub version (revision) number.
TStringDynArray GetSupportedProtocols ()
 Get a name of the supported subprotocol.
IZTokenizer GetTokenizer ()
 Gets a SQL syntax tokenizer.
 TZDBLibDriver ()
 Constructs this object with default properties.

Protected Attributes

IZStatementAnalyser Analyser
IZTokenizer Tokenizer

Private Attributes

IZDBLibPlainDriver FMSSqlPlainDriver
IZDBLibPlainDriver FSybasePlainDriver


Detailed Description

Implements DBLib Database Driver.

Definition at line 79 of file ZDbcDbLib.pas.


Constructor & Destructor Documentation

TZDBLibDriver::TZDBLibDriver (  ) 

Constructs this object with default properties.

Definition at line 286 of file ZDbcDbLib.pas.


Member Function Documentation

Boolean TZAbstractDriver::AcceptsURL ( const string  Url  )  [inherited]

Returns true if the driver thinks that it can open a connection to the given URL.

Typically drivers will return true if they understand the subprotocol specified in the URL and false if they don't.

Parameters:
url the URL of the database
Returns:
true if this driver can connect to the given URL

Reimplemented from IZDriver.

Definition at line 572 of file ZDbcConnection.pas.

IZConnection TZDBLibDriver::Connect ( const string  Url,
TStrings  Info 
)

Attempts to make a database connection to the given URL.

Reimplemented from TZAbstractDriver.

Definition at line 311 of file ZDbcDbLib.pas.

Integer TZAbstractDriver::GetClientVersion ( const string  Url  )  [inherited]

Returns the version of the plain driver library that will be used to open a connection to the given URL.

Parameters:
url the URL of the database
Returns:
the version number of the plain driver library for the give URL

Reimplemented from IZDriver.

Reimplemented in TZMySQLDriver.

Definition at line 689 of file ZDbcConnection.pas.

Integer TZDBLibDriver::GetMajorVersion (  ) 

Gets the driver's major version number.

Initially this should be 1.

Returns:
this driver's major version number

Reimplemented from TZAbstractDriver.

Definition at line 350 of file ZDbcDbLib.pas.

Integer TZDBLibDriver::GetMinorVersion (  ) 

Gets the driver's minor version number.

Initially this should be 0.

Returns:
this driver's minor version number

Reimplemented from TZAbstractDriver.

Definition at line 362 of file ZDbcDbLib.pas.

TStrings TZAbstractDriver::GetPropertyInfo ( const string  Url,
TStrings  Info 
) [inherited]

Gets information about the possible properties for this driver.

The getPropertyInfo method is intended to allow a generic GUI tool to discover what properties it should prompt a human for in order to get enough information to connect to a database. Note that depending on the values the human has supplied so far, additional values may become necessary, so it may be necessary to iterate though several calls to getPropertyInfo.

Parameters:
url the URL of the database to which to connect
info a proposed list of tag/value pairs that will be sent on connect open
Returns:
an array of DriverPropertyInfo objects describing possible properties. This array may be an empty array if no properties are required.

Reimplemented from IZDriver.

Definition at line 610 of file ZDbcConnection.pas.

IZStatementAnalyser TZDBLibDriver::GetStatementAnalyser (  ) 

Creates a statement analyser object.

Returns:
a statement analyser object.

Reimplemented from TZAbstractDriver.

Definition at line 388 of file ZDbcDbLib.pas.

Integer TZAbstractDriver::GetSubVersion (  )  [inherited]

Gets the driver's sub version (revision) number.

Initially this should be 0.

Returns:
this driver's sub version number

Reimplemented from IZDriver.

Definition at line 648 of file ZDbcConnection.pas.

TStringDynArray TZDBLibDriver::GetSupportedProtocols (  ) 

Get a name of the supported subprotocol.

Reimplemented from TZAbstractDriver.

Definition at line 298 of file ZDbcDbLib.pas.

IZTokenizer TZDBLibDriver::GetTokenizer (  ) 

Gets a SQL syntax tokenizer.

Returns:
a SQL syntax tokenizer object.

Reimplemented from TZAbstractDriver.

Definition at line 374 of file ZDbcDbLib.pas.


Member Data Documentation

See also:
FAnalyser For reading

FAnalyser For writing

Definition at line 95 of file ZDbcConnection.pas.

Definition at line 84 of file ZDbcDbLib.pas.

Definition at line 86 of file ZDbcDbLib.pas.

IZTokenizer TZAbstractDriver::Tokenizer [protected, inherited]

See also:
FTokenizer For reading

FTokenizer For writing

Definition at line 92 of file ZDbcConnection.pas.


The documentation for this class was generated from the following file:

Generated on Wed Dec 30 08:42:50 2009 for zeoslib by  doxygen 1.5.7.1