TZPostgreSQLStatementAnalyser Class Reference

Implements an PostgreSQL statements analyser. More...

Inheritance diagram for TZPostgreSQLStatementAnalyser:

TZGenericStatementAnalyser TZAbstractObject IZStatementAnalyser TInterfacedObject IZObject

List of all members.

Public Member Functions

IZInterface Clone ()
 Clones an object instance.
string ComposeSections (TObjectList Sections)
string ComposeTokens (TStrings Tokens)
IZSelectSchema DefineSelectSchemaFromQuery (IZTokenizer Tokenizer, const string SQL)
IZSelectSchema DefineSelectSchemaFromSections (TObjectList Sections)
Boolean Equals (const IZInterface Value)
LongInt Hash ()
 Gets a unique hash for this object.
Boolean InstanceOf (const TGUID IId)
 Checks is this object implements a specified interface.
TObjectList SplitSections (TStrings Tokens)
TStrings TokenizeQuery (IZTokenizer Tokenizer, const string SQL, Boolean Cleanup)
string ToString ()
 Converts this object into the string representation.
 TZPostgreSQLStatementAnalyser ()

Protected Member Functions

TStrings ArrayToStrings (const string *Value)
Boolean CheckForKeyword (TStrings Tokens, Integer TokenIndex, TStrings Keywords, string &Keyword, Integer &WordCount)
 FillFieldRefs (IZSelectSchema SelectSchema, TStrings SelectTokens)
 FillTableRefs (IZSelectSchema SelectSchema, TStrings FromTokens)
TStrings FindSectionTokens (TObjectList Sections, const string Name)
Boolean SkipBracketTokens (TStrings Tokens, Integer &TokenIndex)
Boolean SkipOptionTokens (TStrings Tokens, Integer &TokenIndex, TStrings Options)

Protected Attributes

TStrings FromClauses
TStrings FromJoins
TStrings SectionNames
TStrings SelectOptions


Detailed Description

Implements an PostgreSQL statements analyser.

Definition at line 64 of file ZPostgreSqlAnalyser.pas.


Constructor & Destructor Documentation

TZPostgreSQLStatementAnalyser::TZPostgreSQLStatementAnalyser (  ) 


Member Function Documentation

TStrings TZGenericStatementAnalyser::ArrayToStrings ( const string *  Value  )  [protected, inherited]

Boolean TZGenericStatementAnalyser::CheckForKeyword ( TStrings  Tokens,
Integer  TokenIndex,
TStrings  Keywords,
string &  Keyword,
Integer &  WordCount 
) [protected, inherited]

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.

string TZGenericStatementAnalyser::ComposeSections ( TObjectList  Sections  )  [inherited]

Reimplemented from IZStatementAnalyser.

string TZGenericStatementAnalyser::ComposeTokens ( TStrings  Tokens  )  [inherited]

Reimplemented from IZStatementAnalyser.

IZSelectSchema TZGenericStatementAnalyser::DefineSelectSchemaFromQuery ( IZTokenizer  Tokenizer,
const string  SQL 
) [inherited]

Reimplemented from IZStatementAnalyser.

IZSelectSchema TZGenericStatementAnalyser::DefineSelectSchemaFromSections ( TObjectList  Sections  )  [inherited]

Reimplemented from IZStatementAnalyser.

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

Reimplemented in TZAnyValue.

TZGenericStatementAnalyser::FillFieldRefs ( IZSelectSchema  SelectSchema,
TStrings  SelectTokens 
) [protected, inherited]

TZGenericStatementAnalyser::FillTableRefs ( IZSelectSchema  SelectSchema,
TStrings  FromTokens 
) [protected, inherited]

TStrings TZGenericStatementAnalyser::FindSectionTokens ( TObjectList  Sections,
const string  Name 
) [protected, inherited]

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.

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.

Boolean TZGenericStatementAnalyser::SkipBracketTokens ( TStrings  Tokens,
Integer &  TokenIndex 
) [protected, inherited]

Boolean TZGenericStatementAnalyser::SkipOptionTokens ( TStrings  Tokens,
Integer &  TokenIndex,
TStrings  Options 
) [protected, inherited]

TObjectList TZGenericStatementAnalyser::SplitSections ( TStrings  Tokens  )  [inherited]

Reimplemented from IZStatementAnalyser.

TStrings TZGenericStatementAnalyser::TokenizeQuery ( IZTokenizer  Tokenizer,
const string  SQL,
Boolean  Cleanup 
) [inherited]

Reimplemented from IZStatementAnalyser.

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

TStrings TZGenericStatementAnalyser::FromClauses [protected, inherited]

See also:
FFromClauses For reading

FFromClauses For writing

Definition at line 202 of file ZGenericSqlAnalyser.pas.

TStrings TZGenericStatementAnalyser::FromJoins [protected, inherited]

See also:
FFromJoins For reading

FFromJoins For writing

Definition at line 199 of file ZGenericSqlAnalyser.pas.

TStrings TZGenericStatementAnalyser::SectionNames [protected, inherited]

See also:
FSectionNames For reading

FSectionNames For writing

Definition at line 193 of file ZGenericSqlAnalyser.pas.

TStrings TZGenericStatementAnalyser::SelectOptions [protected, inherited]

See also:
FSelectOptions For reading

FSelectOptions For writing

Definition at line 196 of file ZGenericSqlAnalyser.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