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. | |
TZGenericCachedResolver (IZStatement Statement, IZResultSetMetadata Metadata) | |
Creates a cached resolver and assignes the main properties. | |
UpdateAutoIncrementFields (IZCachedResultSet Sender, TZRowUpdateType UpdateType, TZRowAccessor OldRowAccessor, TZRowAccessor NewRowAccessor, IZCachedResolver Resolver) | |
~TZGenericCachedResolver () | |
Destroys this object and cleanups the memory. | |
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 |
Private Attributes | |
Boolean | FCalcDefaults |
IZConnection | FConnection |
IZDatabaseMetadata | FDatabaseMetadata |
IZIdentifierConvertor | FIdentifierConvertor |
TObjectList | FInsertColumns |
IZResultSetMetadata | FMetadata |
Boolean | FUpdateAll |
TObjectList | FUpdateColumns |
Boolean | FWhereAll |
TObjectList | FWhereColumns |
Definition at line 118 of file ZDbcGenericResolver.pas.
TZGenericCachedResolver::TZGenericCachedResolver | ( | IZStatement | Statement, | |
IZResultSetMetadata | Metadata | |||
) |
Creates a cached resolver and assignes the main properties.
ResultSet | a related ResultSet object. |
Definition at line 332 of file ZDbcGenericResolver.pas.
TZGenericCachedResolver::~TZGenericCachedResolver | ( | ) |
Destroys this object and cleanups the memory.
Definition at line 360 of file ZDbcGenericResolver.pas.
TZGenericCachedResolver::CalculateDefaults | ( | IZCachedResultSet | Sender, | |
TZRowAccessor | RowAccessor | |||
) |
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] |
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] |
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] |
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] |
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] |
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] |
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] |
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] |
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] |
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] |
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 TZGenericCachedResolver::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 in TZASACachedResolver, TZInterbase6CachedResolver, TZMySQLCachedResolver, TZOracleCachedResolver, and TZSQLiteCachedResolver.
Definition at line 906 of file ZDbcGenericResolver.pas.
string TZGenericCachedResolver::FormDeleteStatement | ( | TObjectList | Columns, | |
TZRowAccessor | OldRowAccessor | |||
) |
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 | |||
) |
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 | |||
) |
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 | |||
) |
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 | |||
) |
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 | |||
) |
Reimplemented from IZCachedResolver.
Reimplemented in TZMySQLCachedResolver.
Definition at line 1089 of file ZDbcGenericResolver.pas.
Boolean TZGenericCachedResolver::CalcDefaults [protected] |
FCalcDefaults For writing
Definition at line 224 of file ZDbcGenericResolver.pas.
IZConnection TZGenericCachedResolver::Connection [protected] |
FConnection For writing
Definition at line 199 of file ZDbcGenericResolver.pas.
FDatabaseMetadata For writing
Definition at line 206 of file ZDbcGenericResolver.pas.
Boolean TZGenericCachedResolver::FCalcDefaults [private] |
Definition at line 139 of file ZDbcGenericResolver.pas.
Definition at line 123 of file ZDbcGenericResolver.pas.
Definition at line 127 of file ZDbcGenericResolver.pas.
Definition at line 129 of file ZDbcGenericResolver.pas.
TObjectList TZGenericCachedResolver::FInsertColumns [private] |
Definition at line 132 of file ZDbcGenericResolver.pas.
Definition at line 125 of file ZDbcGenericResolver.pas.
Boolean TZGenericCachedResolver::FUpdateAll [private] |
Definition at line 143 of file ZDbcGenericResolver.pas.
TObjectList TZGenericCachedResolver::FUpdateColumns [private] |
Definition at line 134 of file ZDbcGenericResolver.pas.
Boolean TZGenericCachedResolver::FWhereAll [private] |
Definition at line 141 of file ZDbcGenericResolver.pas.
TObjectList TZGenericCachedResolver::FWhereColumns [private] |
Definition at line 136 of file ZDbcGenericResolver.pas.
FIdentifierConvertor For writing
Definition at line 210 of file ZDbcGenericResolver.pas.
TObjectList TZGenericCachedResolver::InsertColumns [protected] |
IZResultSetMetadata TZGenericCachedResolver::Metadata [protected] |
Definition at line 202 of file ZDbcGenericResolver.pas.
Boolean TZGenericCachedResolver::UpdateAll [protected] |
FUpdateAll For writing
Definition at line 230 of file ZDbcGenericResolver.pas.
TObjectList TZGenericCachedResolver::UpdateColumns [protected] |
Boolean TZGenericCachedResolver::WhereAll [protected] |
Definition at line 227 of file ZDbcGenericResolver.pas.
TObjectList TZGenericCachedResolver::WhereColumns [protected] |