TZAbstractTable Class Reference

Abstract dataset component which works with one specified table. More...

Inheritance diagram for TZAbstractTable:

TZAbstractDataset TZAbstractRODataset TZTable

List of all members.

Public Member Functions

 ApplyUpdates ()
 Applies all cached updates stored in the resultset.
 CancelUpdates ()
 Cancels all cached updates and clears the buffer.
 CommitUpdates ()
 Clears cached updates buffer.
 EmptyDataSet ()
 RevertRecord ()
 Reverts the previous status for the current row.

Public Attributes

TNotifyEvent AfterApplyUpdates
 AfterCancel
 AfterDelete
 AfterEdit
 AfterInsert
 AfterPost
TNotifyEvent BeforeApplyUpdates
 BeforeCancel
 BeforeDelete
 BeforeEdit
 BeforeInsert
 BeforePost
Boolean CachedUpdates
TDataSetErrorEvent OnApplyUpdateError
 OnDeleteError
 OnEditError
 OnNewRecord
 OnPostError
TUpdateRecordEvent OnUpdateRecord
TZSequence Sequence
string SequenceField
TZUpdateSQL UpdateObject
Boolean UpdatesPending

Protected Member Functions

IZResultSet CreateResultSet (const string SQL, Integer MaxRows)
 Creates a DBC resultset for the query.
IZPreparedStatement CreateStatement (const string SQL, TStrings Properties)
 Creates a DBC statement for the query.
 DOAfterApplyUpdates ()
 DOBeforeApplyUpdates ()
 InternalAddRecord (Pointer Buffer, Boolean Append)
 Performs an internal adding a new record.
 InternalCancel ()
 Performs an internal cancel updates.
 InternalClose ()
 Performs internal query closing.
 InternalDelete ()
 Performs an internal record removing.
 InternalEdit ()
 Performs an internal action before switch into edit mode.
 InternalPost ()
 Performs an internal post updates.
 InternalUpdate ()
 Performs an internal record updates.
 Notification (TComponent AComponent, TOperation Operation)
 Processes component notifications.

Protected Attributes

IZCachedResolver CachedResolver
IZCachedResultSet CachedResultSet
Boolean Exists
string TableName
TZUpdateMode UpdateMode
TZWhereMode WhereMode

Private Member Functions

Boolean GetExists ()
 Checks if a table with the corresponding name exists in the database.
 SetTableName (const string Value)
 Sets a new table name and generates a related SQL statement.

Private Attributes

string FTableName


Detailed Description

Abstract dataset component which works with one specified table.

Definition at line 67 of file ZAbstractTable.pas.


Member Function Documentation

TZAbstractDataset::ApplyUpdates (  )  [inherited]

Applies all cached updates stored in the resultset.

Definition at line 764 of file ZAbstractDataset.pas.

TZAbstractDataset::CancelUpdates (  )  [inherited]

Cancels all cached updates and clears the buffer.

Definition at line 807 of file ZAbstractDataset.pas.

TZAbstractDataset::CommitUpdates (  )  [inherited]

Clears cached updates buffer.

Definition at line 793 of file ZAbstractDataset.pas.

IZResultSet TZAbstractDataset::CreateResultSet ( const string  SQL,
Integer  MaxRows 
) [protected, inherited]

Creates a DBC resultset for the query.

Parameters:
SQL an SQL query.
MaxRows a maximum rows number (-1 for all).
Returns:
a created DBC resultset.

Definition at line 497 of file ZAbstractDataset.pas.

IZPreparedStatement TZAbstractDataset::CreateStatement ( const string  SQL,
TStrings  Properties 
) [protected, inherited]

Creates a DBC statement for the query.

Parameters:
SQL an SQL query.
Properties a statement specific properties.
Returns:
a created DBC statement.

Reimplemented in TZStoredProc.

Definition at line 453 of file ZAbstractDataset.pas.

TZAbstractDataset::DOAfterApplyUpdates (  )  [protected, inherited]

Definition at line 1052 of file ZAbstractDataset.pas.

TZAbstractDataset::DOBeforeApplyUpdates (  )  [protected, inherited]

Definition at line 1043 of file ZAbstractDataset.pas.

TZAbstractDataset::EmptyDataSet (  )  [inherited]

Definition at line 1061 of file ZAbstractDataset.pas.

Boolean TZAbstractTable::GetExists (  )  [private]

Checks if a table with the corresponding name exists in the database.

Returns:
True if the the table exists.

Definition at line 129 of file ZAbstractTable.pas.

TZAbstractDataset::InternalAddRecord ( Pointer  Buffer,
Boolean  Append 
) [protected, inherited]

Performs an internal adding a new record.

Parameters:
Buffer a buffer of the new adding record.
Append True if record should be added to the end of the result set.

Definition at line 582 of file ZAbstractDataset.pas.

TZAbstractDataset::InternalCancel (  )  [protected, inherited]

Performs an internal cancel updates.

Definition at line 718 of file ZAbstractDataset.pas.

TZAbstractDataset::InternalClose (  )  [protected, inherited]

Performs internal query closing.

Reimplemented in TZStoredProc.

Definition at line 520 of file ZAbstractDataset.pas.

TZAbstractDataset::InternalDelete (  )  [protected, inherited]

Performs an internal record removing.

Definition at line 681 of file ZAbstractDataset.pas.

TZAbstractDataset::InternalEdit (  )  [protected, inherited]

Performs an internal action before switch into edit mode.

Definition at line 536 of file ZAbstractDataset.pas.

TZAbstractDataset::InternalPost (  )  [protected, inherited]

Performs an internal post updates.

Definition at line 626 of file ZAbstractDataset.pas.

TZAbstractDataset::InternalUpdate (  )  [protected, inherited]

Performs an internal record updates.

Definition at line 546 of file ZAbstractDataset.pas.

TZAbstractDataset::Notification ( TComponent  AComponent,
TOperation  Operation 
) [protected, inherited]

Processes component notifications.

Parameters:
AComponent a changed component object.
Operation a component operation code.

Definition at line 744 of file ZAbstractDataset.pas.

TZAbstractDataset::RevertRecord (  )  [inherited]

Reverts the previous status for the current row.

Definition at line 824 of file ZAbstractDataset.pas.

TZAbstractTable::SetTableName ( const string  Value  )  [private]

Sets a new table name and generates a related SQL statement.

Parameters:
Value a new name of table.

Definition at line 158 of file ZAbstractTable.pas.


Member Data Documentation

TNotifyEvent TZAbstractDataset::AfterApplyUpdates [inherited]

See also:
FAfterApplyUpdates For reading

FAfterApplyUpdates For writing

Definition at line 304 of file ZAbstractDataset.pas.

Definition at line 324 of file ZAbstractDataset.pas.

Definition at line 328 of file ZAbstractDataset.pas.

Definition at line 316 of file ZAbstractDataset.pas.

Definition at line 312 of file ZAbstractDataset.pas.

Definition at line 320 of file ZAbstractDataset.pas.

TNotifyEvent TZAbstractDataset::BeforeApplyUpdates [inherited]

See also:
FBeforeApplyUpdates For reading

FBeforeApplyUpdates For writing

Definition at line 300 of file ZAbstractDataset.pas.

Definition at line 322 of file ZAbstractDataset.pas.

Definition at line 326 of file ZAbstractDataset.pas.

Definition at line 314 of file ZAbstractDataset.pas.

Definition at line 310 of file ZAbstractDataset.pas.

Definition at line 318 of file ZAbstractDataset.pas.

See also:
FCachedResolver For reading

FCachedResolver For writing

Definition at line 171 of file ZAbstractDataset.pas.

See also:
FCachedResultSet For reading

FCachedResultSet For writing

Definition at line 167 of file ZAbstractDataset.pas.

Boolean TZAbstractDataset::CachedUpdates [inherited]

See also:
FCachedUpdates For reading

SetCachedUpdates For writing

Definition at line 286 of file ZAbstractDataset.pas.

Boolean TZAbstractTable::Exists [protected]

See also:
GetExists For reading

Reimplemented in TZTable.

Definition at line 111 of file ZAbstractTable.pas.

string TZAbstractTable::FTableName [private]

Definition at line 72 of file ZAbstractTable.pas.

TDataSetErrorEvent TZAbstractDataset::OnApplyUpdateError [inherited]

See also:
FOnApplyUpdateError For reading

FOnApplyUpdateError For writing

Definition at line 291 of file ZAbstractDataset.pas.

Definition at line 330 of file ZAbstractDataset.pas.

Definition at line 332 of file ZAbstractDataset.pas.

Definition at line 336 of file ZAbstractDataset.pas.

Definition at line 334 of file ZAbstractDataset.pas.

See also:
FOnUpdateRecord For reading

FOnUpdateRecord For writing

Definition at line 295 of file ZAbstractDataset.pas.

See also:
FSequence For reading

FSequence For writing

Reimplemented in TZTable.

Definition at line 274 of file ZAbstractDataset.pas.

See also:
FSequenceField For reading

FSequenceField For writing

Reimplemented in TZTable.

Definition at line 277 of file ZAbstractDataset.pas.

string TZAbstractTable::TableName [protected]

See also:
FTableName For reading

SetTableName For writing

Reimplemented in TZTable.

Definition at line 114 of file ZAbstractTable.pas.

See also:
FUpdateMode For reading

SetUpdateMode For writing

Reimplemented in TZTable.

Definition at line 175 of file ZAbstractDataset.pas.

See also:
FUpdateObject For reading

SetUpdateObject For writing

Definition at line 282 of file ZAbstractDataset.pas.

Boolean TZAbstractDataset::UpdatesPending [inherited]

See also:
GetUpdatesPending For reading

Definition at line 271 of file ZAbstractDataset.pas.

TZWhereMode TZAbstractDataset::WhereMode [protected, inherited]

See also:
FWhereMode For reading

SetWhereMode For writing

Reimplemented in TZTable.

Definition at line 179 of file ZAbstractDataset.pas.


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

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