Unicorn XML Toolkit
Version 1.00.00

Namespace Sql
Class CSqlInterface

class CSqlInterface: public CInterface {
public:
    CSqlInterface();
    virtual ~CSqlInterface();
public:
    virtual CString GetType() = 0;
    virtual XSqlEnvironment CreateEnvironment() = 0;
    };

The abstract interface to a particular database platform.

For each database platform the separate subclass implementing this interface should be defined. In particular, this toolkit provides the subclass of CSqlInterface implementing interface to ODBC 3.5 data sources. This subclass is supplied by the implementation part of SqlOdbc namespace.

Each SQL interface is assigned the certain type. Type is an implementation-dependent string, which uniquely identifies the platform supported by this interace. The string "odbc" (lower-case) is reserved for all versions of ODBC.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
CSqlEnvironment
Constructor/Destructor Summary
CSqlInterface ();
����������Constructs the SQL interface.
~CSqlInterface ();
����������Destroys the SQL interface.

Function Summary
CString GetType ();
����������Returns the type of this interface.
XSqlEnvironment CreateEnvironment ();
����������Creates the run-time environment for this interface.

Constructor/Destructor Detail

CSqlInterface

CSqlInterface();

Constructs the SQL interface.

~CSqlInterface

virtual ~CSqlInterface();

Destroys the SQL interface.

Function Detail

GetType

virtual CString GetType() = 0;

Returns the type of this interface.

Returns:
the type of this interface

CreateEnvironment

virtual XSqlEnvironment CreateEnvironment() = 0;

Creates the run-time environment for this interface.

Returns:
the newly created run-time environment

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.