TZSelectSchema Class Reference

Implements a select assembly. More...

Inheritance diagram for TZSelectSchema:

TZAbstractObject IZSelectSchema TInterfacedObject IZObject

List of all members.

Public Member Functions

 AddField (TZFieldRef FieldRef)
 Adds a new field to this select schema.
 AddTable (TZTableRef TableRef)
 Adds a new table to this select schema.
IZInterface Clone ()
 Clones an object instance.
 DeleteField (TZFieldRef FieldRef)
 Deletes a field from this select schema.
Boolean Equals (const IZInterface Value)
TZFieldRef FindFieldByShortName (const string Field)
 Finds a field reference by field name or field alias.
TZTableRef FindTableByFullName (const string Catalog, const string Schema, const string Table)
 Finds a table reference by catalog and table name.
TZTableRef FindTableByShortName (const string Table)
 Finds a table reference by table name or table alias.
TZFieldRef GetField (Integer Index)
 Gets a field reference by index.
Integer GetFieldCount ()
 Gets a count of field references.
TZTableRef GetTable (Integer Index)
 Gets a table reference by index.
Integer GetTableCount ()
 Gets a count of table references.
LongInt Hash ()
 Gets a unique hash for this object.
 InsertField (Integer Index, TZFieldRef FieldRef)
 Inserts a new field to this select schema.
Boolean InstanceOf (const TGUID IId)
 Checks is this object implements a specified interface.
TZFieldRef LinkFieldByIndexAndShortName (Integer ColumnIndex, const string Field)
 Links a field reference by index and/or field name or field alias.
 LinkReferences (IZIdentifierConvertor Convertor)
 Links references between fields and tables.
string ToString ()
 Converts this object into the string representation.
 TZSelectSchema ()
 Constructs this assembly object and assignes the main properties.
 ~TZSelectSchema ()
 Destroys this object and cleanups the memory.

Public Attributes

Integer FieldCount
TZFieldRef Fields
Integer TableCount
TZTableRef Tables

Private Member Functions

 ConvertIdentifiers (IZIdentifierConvertor Convertor)
 Convert all table and field identifiers.

Private Attributes

TObjectList FFields
TObjectList FTables


Detailed Description

Implements a select assembly.

Definition at line 274 of file ZSelectSchema.pas.


Constructor & Destructor Documentation

TZSelectSchema::TZSelectSchema (  ) 

Constructs this assembly object and assignes the main properties.

Definition at line 451 of file ZSelectSchema.pas.

TZSelectSchema::~TZSelectSchema (  ) 

Destroys this object and cleanups the memory.

Definition at line 463 of file ZSelectSchema.pas.


Member Function Documentation

TZSelectSchema::AddField ( TZFieldRef  FieldRef  ) 

Adds a new field to this select schema.

Parameters:
FieldRef a field reference object.

Reimplemented from IZSelectSchema.

Definition at line 741 of file ZSelectSchema.pas.

TZSelectSchema::AddTable ( TZTableRef  TableRef  ) 

Adds a new table to this select schema.

Parameters:
TableRef a table reference object.

Reimplemented from IZSelectSchema.

Definition at line 782 of file ZSelectSchema.pas.

IZInterface TZAbstractObject::Clone (  )  [inherited]

Clones an object instance.

Returns:
a clonned object instance.

Reimplemented from IZObject.

Reimplemented in TZCollection, TZUnmodifiableCollection, TZHashMap, TZStack, and TZAnyValue.

Definition at line 474 of file ZClasses.pas.

TZSelectSchema::ConvertIdentifiers ( IZIdentifierConvertor  Convertor  )  [private]

Convert all table and field identifiers.

Parameters:
Convertor an identifier convertor.

Definition at line 651 of file ZSelectSchema.pas.

TZSelectSchema::DeleteField ( TZFieldRef  FieldRef  ) 

Deletes a field from this select schema.

Parameters:
FieldRef a field reference object.

Reimplemented from IZSelectSchema.

Definition at line 769 of file ZSelectSchema.pas.

Boolean TZAbstractObject::Equals ( const IZInterface  Value  )  [inherited]

Reimplemented in TZAnyValue.

TZFieldRef TZSelectSchema::FindFieldByShortName ( const string  Field  ) 

Finds a field reference by field name or field alias.

Parameters:
Field a table field name or alias.
Returns:
a found field reference object or null otherwise.

Reimplemented from IZSelectSchema.

Definition at line 553 of file ZSelectSchema.pas.

TZTableRef TZSelectSchema::FindTableByFullName ( const string  Catalog,
const string  Schema,
const string  Table 
)

Finds a table reference by catalog and table name.

Parameters:
Catalog a database catalog name.
Schema a database schema name.
Table a database table name.
Returns:
a found table reference object or null otherwise.

Reimplemented from IZSelectSchema.

Definition at line 479 of file ZSelectSchema.pas.

TZTableRef TZSelectSchema::FindTableByShortName ( const string  Table  ) 

Finds a table reference by table name or table alias.

Parameters:
Table a database table name or alias.
Returns:
a found table reference object or null otherwise.

Reimplemented from IZSelectSchema.

Definition at line 517 of file ZSelectSchema.pas.

TZFieldRef TZSelectSchema::GetField ( Integer  Index  ) 

Gets a field reference by index.

Parameters:
Index an index of the reference.
Returns:
a pointer to the field reference.

Reimplemented from IZSelectSchema.

Definition at line 796 of file ZSelectSchema.pas.

Integer TZSelectSchema::GetFieldCount (  ) 

Gets a count of field references.

Returns:
a count of field references.

Reimplemented from IZSelectSchema.

Definition at line 809 of file ZSelectSchema.pas.

TZTableRef TZSelectSchema::GetTable ( Integer  Index  ) 

Gets a table reference by index.

Parameters:
Index an index of the reference.
Returns:
a pointer to the table reference.

Reimplemented from IZSelectSchema.

Definition at line 822 of file ZSelectSchema.pas.

Integer TZSelectSchema::GetTableCount (  ) 

Gets a count of table references.

Returns:
a count of table references.

Reimplemented from IZSelectSchema.

Definition at line 835 of file ZSelectSchema.pas.

LongInt TZAbstractObject::Hash (  )  [inherited]

Gets a unique hash for this object.

Returns:
a unique hash for this object.

Reimplemented from IZObject.

Definition at line 462 of file ZClasses.pas.

TZSelectSchema::InsertField ( Integer  Index,
TZFieldRef  FieldRef 
)

Inserts a new field to this select schema.

Parameters:
Index an index where to insert a new field reference.
FieldRef a field reference object.

Reimplemented from IZSelectSchema.

Definition at line 755 of file ZSelectSchema.pas.

Boolean TZAbstractObject::InstanceOf ( const TGUID  IId  )  [inherited]

Checks is this object implements a specified interface.

Parameters:
IId an interface id.
Returns:
True if this object support the interface.

Reimplemented from IZObject.

Definition at line 488 of file ZClasses.pas.

TZFieldRef TZSelectSchema::LinkFieldByIndexAndShortName ( Integer  ColumnIndex,
const string  Field 
)

Links a field reference by index and/or field name or field alias.

Parameters:
ColumnIndex an index of the column.
Field a table field name or alias.
Returns:
a found field reference object or null otherwise.

Reimplemented from IZSelectSchema.

Definition at line 592 of file ZSelectSchema.pas.

TZSelectSchema::LinkReferences ( IZIdentifierConvertor  Convertor  ) 

Links references between fields and tables.

Parameters:
Convertor an identifier convertor.

Reimplemented from IZSelectSchema.

Definition at line 686 of file ZSelectSchema.pas.

string TZAbstractObject::ToString (  )  [inherited]

Converts this object into the string representation.

Returns:
a string representation for this object.

Reimplemented from IZObject.

Reimplemented in TZCollection, TZUnmodifiableCollection, TZStack, and TZAnyValue.

Definition at line 501 of file ZClasses.pas.


Member Data Documentation

TObjectList TZSelectSchema::FFields [private]

Definition at line 279 of file ZSelectSchema.pas.

See also:
GetFieldCount For reading

Reimplemented from IZSelectSchema.

Definition at line 357 of file ZSelectSchema.pas.

See also:
GetField For reading

Reimplemented from IZSelectSchema.

Definition at line 360 of file ZSelectSchema.pas.

TObjectList TZSelectSchema::FTables [private]

Definition at line 281 of file ZSelectSchema.pas.

See also:
GetTableCount For reading

Reimplemented from IZSelectSchema.

Definition at line 363 of file ZSelectSchema.pas.

See also:
GetTable For reading

Reimplemented from IZSelectSchema.

Definition at line 366 of file ZSelectSchema.pas.


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

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