dbc/ZDbcAdoUtils.pas File Reference

Go to the source code of this file.

Functions

TZSQLType ConvertAdoToSqlType (SmallInt FieldType)
 Converts a Ado native types into ZDBC SQL types.
string ConvertAdoToTypeName (SmallInt FieldType)
 Converts an ADO native types into string related.
Integer ConvertOleDBToAdoSchema (TGUID OleDBSchema)
 Converts a OLEDB schema guid into ADO schema ID usable with OpenSchema.
Integer ConvertResultSetConcurrencyToAdo (TZResultSetConcurrency ResultSetConcurrency)
 Converts a TZResultSetConcurrency type into ADO lock type.
Integer ConvertResultSetTypeToAdo (TZResultSetType ResultSetType)
 Converts a TZResultSetType type into ADO cursor type.
Integer ConvertSqlTypeToAdo (TZSQLType FieldType)
 Converts a Zeos type into ADO types.
Integer ConvertVariantToAdo (TVarType VT)
 Converts a Variant type into ADO types.
WideString PromptDataSource (THandle Handle, WideString InitialString)
 Brings up the ADO connection string builder dialog.

Variables

const IMalloc ZAdoMalloc
 Required to free memory allocated by oledb.


Function Documentation

TZSQLType ConvertAdoToSqlType ( SmallInt  FieldType  ) 

Converts a Ado native types into ZDBC SQL types.

Parameters:
FieldType dblibc native field type.
Returns:
a SQL undepended type.

Definition at line 226 of file ZDbcAdoUtils.pas.

string ConvertAdoToTypeName ( SmallInt  FieldType  ) 

Converts an ADO native types into string related.

Parameters:
FieldType dblibc native field type.
Returns:
a string data type name.

Definition at line 168 of file ZDbcAdoUtils.pas.

Integer ConvertOleDBToAdoSchema ( TGUID  OleDBSchema  ) 

Converts a OLEDB schema guid into ADO schema ID usable with OpenSchema.

Parameters:
OleDBSchema schema guid.
Returns:
a ADO schema id.

Integer ConvertResultSetConcurrencyToAdo ( TZResultSetConcurrency  ResultSetConcurrency  ) 

Converts a TZResultSetConcurrency type into ADO lock type.

Parameters:
ResultSetConcurrency. 
Returns:
a ADO lock type.

Integer ConvertResultSetTypeToAdo ( TZResultSetType  ResultSetType  ) 

Converts a TZResultSetType type into ADO cursor type.

Parameters:
ResultSetType. 
Returns:
a ADO cursor type.

Converts a TZResultSetConcurrency type into ADO lock type.

Parameters:
ResultSetConcurrency. 
Returns:
a ADO lock type.
Converts a OLEDB schema guid into ADO schema ID usable with OpenSchema.
Parameters:
OleDBSchema schema guid.
Returns:
a ADO schema id.
Brings up the ADO connection string builder dialog.

Definition at line 363 of file ZDbcAdoUtils.pas.

Integer ConvertSqlTypeToAdo ( TZSQLType  FieldType  ) 

Converts a Zeos type into ADO types.

Parameters:
FieldType zeos field type.
Returns:
a ADO datatype.

Definition at line 269 of file ZDbcAdoUtils.pas.

Integer ConvertVariantToAdo ( TVarType  VT  ) 

Converts a Variant type into ADO types.

Parameters:
VT Variant datatype.
Returns:
a ADO datatype.

Definition at line 312 of file ZDbcAdoUtils.pas.

WideString PromptDataSource ( THandle  Handle,
WideString  InitialString 
)

Brings up the ADO connection string builder dialog.


Variable Documentation

const IMalloc ZAdoMalloc

Required to free memory allocated by oledb.

Definition at line 154 of file ZDbcAdoUtils.pas.


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