TZSQLStrings Class Reference

Imlements a string list with SQL statements. More...

Inherits TStringList.

List of all members.

Public Member Functions

 TZSQLStrings ()
 Creates a SQL strings object and assigns the main properties.
 ~TZSQLStrings ()
 Destroys this object and cleanups the memory.

Public Attributes

TObject Dataset
Boolean MultiStatements
Boolean ParamCheck
Integer ParamCount
string ParamNames
Integer StatementCount
TZSQLStatement Statements

Protected Member Functions

 Changed ()
Integer FindParam (const string ParamName)
 Finds a parameter by it's name.
 RebuildAll ()
 Rebuilds all SQL statements.

Private Member Functions

Integer GetParamCount ()
 Gets a parameter count.
string GetParamName (Integer Index)
 Gets parameter name by it's index.
TZSQLStatement GetStatement (Integer Index)
 Gets a SQL statement by it's index.
Integer GetStatementCount ()
 Gets a SQL statements count.
 SetDataset (TObject Value)
 Sets a new correspondent dataset object.
 SetMultiStatements (Boolean Value)
 Sets a new MultiStatements value.
 SetParamCheck (Boolean Value)
 Sets a new ParamCheck value.

Private Attributes

TObject FDataset
Boolean FMultiStatements
Boolean FParamCheck
TStringList FParams
TObjectList FStatements


Detailed Description

Imlements a string list with SQL statements.

Definition at line 118 of file ZSqlStrings.pas.


Constructor & Destructor Documentation

TZSQLStrings::TZSQLStrings (  ) 

Creates a SQL strings object and assigns the main properties.

Definition at line 285 of file ZSqlStrings.pas.

TZSQLStrings::~TZSQLStrings (  ) 

Destroys this object and cleanups the memory.

Definition at line 299 of file ZSqlStrings.pas.


Member Function Documentation

TZSQLStrings::Changed (  )  [protected]

Integer TZSQLStrings::FindParam ( const string  ParamName  )  [protected]

Finds a parameter by it's name.

Parameters:
ParamName a parameter name.
Returns:
an index of found parameters or -1 if nothing was found.

Definition at line 411 of file ZSqlStrings.pas.

Integer TZSQLStrings::GetParamCount (  )  [private]

Gets a parameter count.

Returns:
a count of SQL parameters.

Definition at line 313 of file ZSqlStrings.pas.

string TZSQLStrings::GetParamName ( Integer  Index  )  [private]

Gets parameter name by it's index.

Parameters:
Index a parameter index.
Returns:
a parameter name.

Definition at line 326 of file ZSqlStrings.pas.

TZSQLStatement TZSQLStrings::GetStatement ( Integer  Index  )  [private]

Gets a SQL statement by it's index.

Parameters:
Index a SQL statement index.
Returns:
a SQL statement object.

Definition at line 352 of file ZSqlStrings.pas.

Integer TZSQLStrings::GetStatementCount (  )  [private]

Gets a SQL statements count.

Returns:
a SQL statements count.

Definition at line 339 of file ZSqlStrings.pas.

TZSQLStrings::RebuildAll (  )  [protected]

Rebuilds all SQL statements.

TZSQLStrings::SetDataset ( TObject  Value  )  [private]

Sets a new correspondent dataset object.

Parameters:
Value a new dataset object.

Definition at line 395 of file ZSqlStrings.pas.

TZSQLStrings::SetMultiStatements ( Boolean  Value  )  [private]

Sets a new MultiStatements value.

Parameters:
Value a new MultiStatements value.

Definition at line 380 of file ZSqlStrings.pas.

TZSQLStrings::SetParamCheck ( Boolean  Value  )  [private]

Sets a new ParamCheck value.

Parameters:
Value a new ParamCheck value.

Definition at line 365 of file ZSqlStrings.pas.


Member Data Documentation

See also:
FDataset For reading

SetDataset For writing

Definition at line 177 of file ZSqlStrings.pas.

TObject TZSQLStrings::FDataset [private]

Definition at line 123 of file ZSqlStrings.pas.

Boolean TZSQLStrings::FMultiStatements [private]

Definition at line 131 of file ZSqlStrings.pas.

Boolean TZSQLStrings::FParamCheck [private]

Definition at line 125 of file ZSqlStrings.pas.

TStringList TZSQLStrings::FParams [private]

Definition at line 129 of file ZSqlStrings.pas.

TObjectList TZSQLStrings::FStatements [private]

Definition at line 127 of file ZSqlStrings.pas.

See also:
FMultiStatements For reading

SetMultiStatements For writing

Definition at line 199 of file ZSqlStrings.pas.

See also:
FParamCheck For reading

SetParamCheck For writing

Definition at line 183 of file ZSqlStrings.pas.

See also:
GetParamCount For reading

Definition at line 186 of file ZSqlStrings.pas.

See also:
GetParamName For reading

Definition at line 189 of file ZSqlStrings.pas.

See also:
GetStatementCount For reading

Definition at line 192 of file ZSqlStrings.pas.

See also:
GetStatement For reading

Definition at line 195 of file ZSqlStrings.pas.


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

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