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 generic statement analyser object. | |
Integer | GetSubVersion () |
Gets the driver's sub version (revision) number. | |
TStringDynArray | GetSupportedProtocols () |
IZTokenizer | GetTokenizer () |
Creates a generic tokenizer object. | |
TZAbstractDriver () | |
Constructs this object with default properties. | |
~TZAbstractDriver () | |
Destroys this object and cleanups the memory. | |
Protected Attributes | |
IZStatementAnalyser | Analyser |
IZTokenizer | Tokenizer |
Private Attributes | |
IZStatementAnalyser | FAnalyser |
IZTokenizer | FTokenizer |
Definition at line 80 of file ZDbcConnection.pas.
TZAbstractDriver::TZAbstractDriver | ( | ) |
TZAbstractDriver::~TZAbstractDriver | ( | ) |
Boolean TZAbstractDriver::AcceptsURL | ( | const string | Url | ) |
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.
url | the URL of the database |
Reimplemented from IZDriver.
Definition at line 572 of file ZDbcConnection.pas.
IZConnection TZAbstractDriver::Connect | ( | const string | Url, | |
TStrings | Info | |||
) |
Attempts to make a database connection to the given URL.
The driver should return "null" if it realizes it is the wrong kind of driver to connect to the given URL. This will be common, as when the JDBC driver manager is asked to connect to a given URL it passes the URL to each loaded driver in turn.
The driver should raise a SQLException if it is the right driver to connect to the given URL, but has trouble connecting to the database.
The java.util.Properties argument can be used to passed arbitrary string tag/value pairs as connection arguments. Normally at least "user" and "password" properties should be included in the Properties.
url | the URL of the database to which to connect | |
info | a list of arbitrary string tag/value pairs as connection arguments. Normally at least a "user" and "password" property should be included. |
Connection
object that represents a connection to the URL Reimplemented from IZDriver.
Reimplemented in TZAdoDriver, TZASADriver, TZDBLibDriver, TZInterbase6Driver, TZMySQLDriver, TZOracleDriver, TZPostgreSQLDriver, and TZSQLiteDriver.
Definition at line 554 of file ZDbcConnection.pas.
Integer TZAbstractDriver::GetClientVersion | ( | const string | Url | ) |
Returns the version of the plain driver library that will be used to open a connection to the given URL.
url | the URL of the database |
Reimplemented from IZDriver.
Reimplemented in TZMySQLDriver.
Definition at line 689 of file ZDbcConnection.pas.
Integer TZAbstractDriver::GetMajorVersion | ( | ) |
Gets the driver's major version number.
Initially this should be 1.
Reimplemented from IZDriver.
Reimplemented in TZAdoDriver, TZASADriver, TZDBLibDriver, TZInterbase6Driver, TZMySQLDriver, TZOracleDriver, TZPostgreSQLDriver, and TZSQLiteDriver.
Definition at line 624 of file ZDbcConnection.pas.
Integer TZAbstractDriver::GetMinorVersion | ( | ) |
Gets the driver's minor version number.
Initially this should be 0.
Reimplemented from IZDriver.
Reimplemented in TZAdoDriver, TZASADriver, TZDBLibDriver, TZInterbase6Driver, TZMySQLDriver, TZOracleDriver, TZPostgreSQLDriver, and TZSQLiteDriver.
Definition at line 636 of file ZDbcConnection.pas.
TStrings TZAbstractDriver::GetPropertyInfo | ( | const string | Url, | |
TStrings | Info | |||
) |
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.
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 |
Reimplemented from IZDriver.
Definition at line 610 of file ZDbcConnection.pas.
IZStatementAnalyser TZAbstractDriver::GetStatementAnalyser | ( | ) |
Creates a generic statement analyser object.
Reimplemented from IZDriver.
Reimplemented in TZASADriver, TZDBLibDriver, TZInterbase6Driver, TZMySQLDriver, TZOracleDriver, TZPostgreSQLDriver, and TZSQLiteDriver.
Definition at line 659 of file ZDbcConnection.pas.
Integer TZAbstractDriver::GetSubVersion | ( | ) |
Gets the driver's sub version (revision) number.
Initially this should be 0.
Reimplemented from IZDriver.
Definition at line 648 of file ZDbcConnection.pas.
TStringDynArray TZAbstractDriver::GetSupportedProtocols | ( | ) |
Reimplemented from IZDriver.
Reimplemented in TZAdoDriver, TZASADriver, TZDBLibDriver, TZInterbase6Driver, TZMySQLDriver, TZOracleDriver, TZPostgreSQLDriver, and TZSQLiteDriver.
IZTokenizer TZAbstractDriver::GetTokenizer | ( | ) |
Creates a generic tokenizer object.
Reimplemented from IZDriver.
Reimplemented in TZASADriver, TZDBLibDriver, TZInterbase6Driver, TZMySQLDriver, TZOracleDriver, TZPostgreSQLDriver, and TZSQLiteDriver.
Definition at line 673 of file ZDbcConnection.pas.
IZStatementAnalyser TZAbstractDriver::Analyser [protected] |
Definition at line 95 of file ZDbcConnection.pas.
Definition at line 87 of file ZDbcConnection.pas.
IZTokenizer TZAbstractDriver::FTokenizer [private] |
Definition at line 85 of file ZDbcConnection.pas.
IZTokenizer TZAbstractDriver::Tokenizer [protected] |
FTokenizer For writing
Definition at line 92 of file ZDbcConnection.pas.