Public Member Functions | |
CalculateDefaults (IZCachedResultSet Sender, TZRowAccessor RowAccessor) | |
Calculate default values for the fields. | |
string | FormCalculateStatement (TObjectList Columns) |
Forms a where clause for SELECT statements to calculate default values. | |
string | FormDeleteStatement (TObjectList Columns, TZRowAccessor OldRowAccessor) |
Forms a where clause for DELETE statements. | |
string | FormInsertStatement (TObjectList Columns, TZRowAccessor NewRowAccessor) |
Forms a where clause for INSERT statements. | |
string | FormUpdateStatement (TObjectList Columns, TZRowAccessor OldRowAccessor, TZRowAccessor NewRowAccessor) |
Forms a where clause for UPDATE statements. | |
string | FormWhereClause (TObjectList Columns, TZRowAccessor OldRowAccessor) |
Forms a where clause for UPDATE or DELETE DML statements. | |
PostUpdates (IZCachedResultSet Sender, TZRowUpdateType UpdateType, TZRowAccessor OldRowAccessor, TZRowAccessor NewRowAccessor) | |
Posts updates to database. | |
UpdateAutoIncrementFields (IZCachedResultSet Sender, TZRowUpdateType UpdateType, TZRowAccessor OldRowAccessor, TZRowAccessor NewRowAccessor, IZCachedResolver Resolver) | |
Protected Member Functions | |
Boolean | CheckKeyColumn (Integer ColumnIndex) |
Checks is the specified column can be used in where clause. | |
string | ComposeFullTableName (string Catalog, string Schema, string Table) |
Composes a fully quilified table name. | |
CopyResolveParameters (TObjectList FromList, TObjectList ToList) | |
Copies resolver parameters from source list to destination list. | |
DefineCalcColumns (TObjectList Columns, TZRowAccessor RowAccessor) | |
Gets a collection of data columns to initialize before INSERT statements. | |
DefineInsertColumns (TObjectList Columns) | |
Gets a collection of data columns for INSERT statements. | |
string | DefineTableName () |
Defines a table name from the select statement. | |
DefineUpdateColumns (TObjectList Columns, TZRowAccessor OldRowAccessor, TZRowAccessor NewRowAccessor) | |
Gets a collection of data columns for UPDATE statements. | |
DefineWhereAllColumns (TObjectList Columns) | |
Gets a collection of where all columns for DELETE or UPDATE DML statements. | |
DefineWhereKeyColumns (TObjectList Columns) | |
Gets a collection of where key columns for DELETE or UPDATE DML statements. | |
FillStatement (IZPreparedStatement Statement, TObjectList Params, TZRowAccessor OldRowAccessor, TZRowAccessor NewRowAccessor) | |
Fills the specified statement with stored or given parameters. | |
Protected Attributes | |
Boolean | CalcDefaults |
IZConnection | Connection |
IZDatabaseMetadata | DatabaseMetadata |
IZIdentifierConvertor | IdentifierConvertor |
TObjectList | InsertColumns |
IZResultSetMetadata | Metadata |
Boolean | UpdateAll |
TObjectList | UpdateColumns |
Boolean | WhereAll |
TObjectList | WhereColumns |
Definition at line 211 of file ZDbcASA.pas.
TZGenericCachedResolver::CalculateDefaults | ( | IZCachedResultSet | Sender, | |
TZRowAccessor | RowAccessor | |||
) | [inherited] |
Calculate default values for the fields.
Sender | a cached result set object. | |
RowAccessor | an accessor object to column values. |
Reimplemented from IZCachedResolver.
Definition at line 999 of file ZDbcGenericResolver.pas.
Boolean TZGenericCachedResolver::CheckKeyColumn | ( | Integer | ColumnIndex | ) | [protected, inherited] |
Checks is the specified column can be used in where clause.
ColumnIndex | an index of the column. |
true
if column can be included into where clause. Reimplemented in TZPostgreSQLCachedResolver.
Definition at line 626 of file ZDbcGenericResolver.pas.
string TZGenericCachedResolver::ComposeFullTableName | ( | string | Catalog, | |
string | Schema, | |||
string | Table | |||
) | [protected, inherited] |
Composes a fully quilified table name.
Catalog | a table catalog name. | |
Schema | a table schema name. | |
Table | a table name. |
Definition at line 409 of file ZDbcGenericResolver.pas.
TZGenericCachedResolver::CopyResolveParameters | ( | TObjectList | FromList, | |
TObjectList | ToList | |||
) | [protected, inherited] |
Copies resolver parameters from source list to destination list.
FromList | the source object list. | |
ToList | the destination object list. |
Definition at line 380 of file ZDbcGenericResolver.pas.
TZGenericCachedResolver::DefineCalcColumns | ( | TObjectList | Columns, | |
TZRowAccessor | RowAccessor | |||
) | [protected, inherited] |
Gets a collection of data columns to initialize before INSERT statements.
Columns | a collection of columns. | |
RowAccessor | an accessor object to column values. |
Definition at line 644 of file ZDbcGenericResolver.pas.
TZGenericCachedResolver::DefineInsertColumns | ( | TObjectList | Columns | ) | [protected, inherited] |
Gets a collection of data columns for INSERT statements.
Columns | a collection of columns. |
Definition at line 458 of file ZDbcGenericResolver.pas.
string TZGenericCachedResolver::DefineTableName | ( | ) | [protected, inherited] |
Defines a table name from the select statement.
Definition at line 429 of file ZDbcGenericResolver.pas.
TZGenericCachedResolver::DefineUpdateColumns | ( | TObjectList | Columns, | |
TZRowAccessor | OldRowAccessor, | |||
TZRowAccessor | NewRowAccessor | |||
) | [protected, inherited] |
Gets a collection of data columns for UPDATE statements.
Columns | a collection of columns. | |
OldRowAccessor | an accessor object to old column values. | |
NewRowAccessor | an accessor object to new column values. |
Definition at line 488 of file ZDbcGenericResolver.pas.
TZGenericCachedResolver::DefineWhereAllColumns | ( | TObjectList | Columns | ) | [protected, inherited] |
Gets a collection of where all columns for DELETE or UPDATE DML statements.
Columns | a collection of key columns. |
Definition at line 593 of file ZDbcGenericResolver.pas.
TZGenericCachedResolver::DefineWhereKeyColumns | ( | TObjectList | Columns | ) | [protected, inherited] |
Gets a collection of where key columns for DELETE or UPDATE DML statements.
Columns | a collection of key columns. |
Definition at line 536 of file ZDbcGenericResolver.pas.
TZGenericCachedResolver::FillStatement | ( | IZPreparedStatement | Statement, | |
TObjectList | Params, | |||
TZRowAccessor | OldRowAccessor, | |||
TZRowAccessor | NewRowAccessor | |||
) | [protected, inherited] |
Fills the specified statement with stored or given parameters.
ResultSet | a source result set object. | |
Statement | a DBC statement object. | |
Config | an UpdateStatement configuration. | |
OldRowAccessor | an accessor object to old column values. | |
NewRowAccessor | an accessor object to new column values. |
Definition at line 674 of file ZDbcGenericResolver.pas.
string TZASACachedResolver::FormCalculateStatement | ( | TObjectList | Columns | ) |
Forms a where clause for SELECT statements to calculate default values.
Columns | a collection of key columns. | |
OldRowAccessor | an accessor object to old column values. |
Reimplemented from TZGenericCachedResolver.
Definition at line 799 of file ZDbcASA.pas.
string TZGenericCachedResolver::FormDeleteStatement | ( | TObjectList | Columns, | |
TZRowAccessor | OldRowAccessor | |||
) | [inherited] |
Forms a where clause for DELETE statements.
Columns | a collection of key columns. | |
OldRowAccessor | an accessor object to old column values. |
Definition at line 881 of file ZDbcGenericResolver.pas.
string TZGenericCachedResolver::FormInsertStatement | ( | TObjectList | Columns, | |
TZRowAccessor | NewRowAccessor | |||
) | [inherited] |
Forms a where clause for INSERT statements.
Columns | a collection of key columns. | |
NewRowAccessor | an accessor object to new column values. |
Definition at line 797 of file ZDbcGenericResolver.pas.
string TZGenericCachedResolver::FormUpdateStatement | ( | TObjectList | Columns, | |
TZRowAccessor | OldRowAccessor, | |||
TZRowAccessor | NewRowAccessor | |||
) | [inherited] |
Forms a where clause for UPDATE statements.
Columns | a collection of key columns. | |
OldRowAccessor | an accessor object to old column values. | |
NewRowAccessor | an accessor object to new column values. |
Definition at line 840 of file ZDbcGenericResolver.pas.
string TZGenericCachedResolver::FormWhereClause | ( | TObjectList | Columns, | |
TZRowAccessor | OldRowAccessor | |||
) | [inherited] |
Forms a where clause for UPDATE or DELETE DML statements.
Columns | a collection of key columns. | |
OldRowAccessor | an accessor object to old column values. |
Definition at line 758 of file ZDbcGenericResolver.pas.
TZGenericCachedResolver::PostUpdates | ( | IZCachedResultSet | Sender, | |
TZRowUpdateType | UpdateType, | |||
TZRowAccessor | OldRowAccessor, | |||
TZRowAccessor | NewRowAccessor | |||
) | [inherited] |
Posts updates to database.
Sender | a cached result set object. | |
UpdateType | a type of updates. | |
OldRowAccessor | an accessor object to old column values. | |
NewRowAccessor | an accessor object to new column values. |
Reimplemented from IZCachedResolver.
Reimplemented in TZAdoCachedResolver, TZDBLibCachedResolver, TZMySQLCachedResolver, and TZSQLiteCachedResolver.
Definition at line 941 of file ZDbcGenericResolver.pas.
TZGenericCachedResolver::UpdateAutoIncrementFields | ( | IZCachedResultSet | Sender, | |
TZRowUpdateType | UpdateType, | |||
TZRowAccessor | OldRowAccessor, | |||
TZRowAccessor | NewRowAccessor, | |||
IZCachedResolver | Resolver | |||
) | [inherited] |
Reimplemented from IZCachedResolver.
Reimplemented in TZMySQLCachedResolver.
Definition at line 1089 of file ZDbcGenericResolver.pas.
Boolean TZGenericCachedResolver::CalcDefaults [protected, inherited] |
FCalcDefaults For writing
Definition at line 224 of file ZDbcGenericResolver.pas.
IZConnection TZGenericCachedResolver::Connection [protected, inherited] |
FConnection For writing
Definition at line 199 of file ZDbcGenericResolver.pas.
IZDatabaseMetadata TZGenericCachedResolver::DatabaseMetadata [protected, inherited] |
FDatabaseMetadata For writing
Definition at line 206 of file ZDbcGenericResolver.pas.
IZIdentifierConvertor TZGenericCachedResolver::IdentifierConvertor [protected, inherited] |
FIdentifierConvertor For writing
Definition at line 210 of file ZDbcGenericResolver.pas.
TObjectList TZGenericCachedResolver::InsertColumns [protected, inherited] |
IZResultSetMetadata TZGenericCachedResolver::Metadata [protected, inherited] |
Definition at line 202 of file ZDbcGenericResolver.pas.
Boolean TZGenericCachedResolver::UpdateAll [protected, inherited] |
FUpdateAll For writing
Definition at line 230 of file ZDbcGenericResolver.pas.
TObjectList TZGenericCachedResolver::UpdateColumns [protected, inherited] |
Boolean TZGenericCachedResolver::WhereAll [protected, inherited] |
Definition at line 227 of file ZDbcGenericResolver.pas.
TObjectList TZGenericCachedResolver::WhereColumns [protected, inherited] |