TZTable Class Reference

Implements an universal SQL query for single table access. More...

Inheritance diagram for TZTable:

TZAbstractTable TZAbstractDataset TZAbstractRODataset

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

 Active
TNotifyEvent AfterApplyUpdates
 AfterCancel
 AfterDelete
 AfterEdit
 AfterInsert
 AfterPost
TNotifyEvent BeforeApplyUpdates
 BeforeCancel
 BeforeDelete
 BeforeEdit
 BeforeInsert
 BeforePost
Boolean CachedUpdates
 Exists
 False
 FetchRow
 IndexFieldNames
 LinkedFields
 MasterFields
 MasterSource
TDataSetErrorEvent OnApplyUpdateError
 OnDeleteError
 OnEditError
 OnNewRecord
 OnPostError
TUpdateRecordEvent OnUpdateRecord
 Options
 Properties
 Sequence
 SequenceField
 ShowRecordTypes
 TableName
 UpdateMode
TZUpdateSQL UpdateObject
Boolean UpdatesPending
 WhereMode

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


Detailed Description

Implements an universal SQL query for single table access.

Definition at line 150 of file ZDataset.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.

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.


Member Data Documentation

Definition at line 158 of file ZDataset.pas.

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.

See also:
GetExists For reading

Reimplemented from TZAbstractTable.

Definition at line 155 of file ZDataset.pas.

Definition at line 160 of file ZDataset.pas.

Definition at line 168 of file ZDataset.pas.

Definition at line 176 of file ZDataset.pas.

Definition at line 174 of file ZDataset.pas.

Definition at line 170 of file ZDataset.pas.

Definition at line 172 of file ZDataset.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.

Definition at line 182 of file ZDataset.pas.

Definition at line 166 of file ZDataset.pas.

See also:
FSequence For reading

FSequence For writing

Reimplemented from TZAbstractDataset.

Definition at line 184 of file ZDataset.pas.

See also:
FSequenceField For reading

FSequenceField For writing

Reimplemented from TZAbstractDataset.

Definition at line 186 of file ZDataset.pas.

Definition at line 164 of file ZDataset.pas.

See also:
FTableName For reading

SetTableName For writing

Reimplemented from TZAbstractTable.

Definition at line 162 of file ZDataset.pas.

See also:
FUpdateMode For reading

SetUpdateMode For writing

Reimplemented from TZAbstractDataset.

Definition at line 178 of file ZDataset.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.

See also:
FWhereMode For reading

SetWhereMode For writing

Reimplemented from TZAbstractDataset.

Definition at line 180 of file ZDataset.pas.


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

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