Class tlocaldataset
Unit
Declaration
type tlocaldataset = class(tmsebufdataset, imselocate, idscontroller, igetdscontroller, iactivatorclient)
Description
This item has no description. Showing description inherited from tmsebufdataset.
Keeps three buffers: the record buffer holds all fetched records (fkdata and fkinternalcalc field values — see oninternalcalcfields); the update buffer, managed by this class, holds a copy of a record's original values as soon as it is first modified/inserted/deleted by Post, used by applyupdates to build the update statements and by cancelupdates (all pending records) or cancelupdate (the current record only) to restore the record buffer; the edit buffer, managed by the inherited tdataset, is the display/edit window used by the connected widgets and grids (as many rows as the largest connected grid needs) and is also where fkcalculated field values, computed on the fly by OnCalcFields, live — unlike fkdata/fkinternalcalc fields, they are not part of the record buffer. Only fkdata and fkinternalcalc fields can be used in indexlocal.
Hierarchy
- TDataset
- tmdbdataset
- tmsebufdataset
- tlocaldataset
Overview
Methods
| Protected | procedure setoptions(const avalue: bufdatasetoptionsty) override; |
| Protected | procedure setactive(const value : boolean); reintroduce; |
| Protected | function getactive: boolean; |
| Protected | procedure loaded; override; |
| Protected | function getfieldclass(fieldtype: tfieldtype): tfieldclass; override; |
| Protected | procedure dataevent(event: tdataevent; info: ptrint); override; |
| Protected | procedure internalopen; override; |
| Protected | procedure internalinsert; override; |
| Protected | procedure internaldelete; override; |
| Protected | procedure internalclose; override; |
| Protected | function getcanmodify: boolean; override; |
| Protected | function islocal: boolean; override; |
| Protected | function fetch: boolean; override; |
| Protected | function getblobdatasize: integer; override; |
| Protected | function blobscached: boolean; override; |
| Protected | function loadfield(const afieldno: integer; const afieldtype: tfieldtype; const buffer: pointer; var bufsize: integer): boolean; override; |
| Public | constructor create(aowner: tcomponent); override; |
| Public | destructor destroy; override; |
| Public | function CreateBlobStream(Field: TField; Mode: TBlobStreamMode): TStream; override; |
| Public | procedure appendrecord(const values: array of const); |
| Public | procedure cancel; override; |
| Public | procedure post; override; |
| Public | function moveby(const distance: integer): integer; |
Properties
| Published | property options default defaultlocalbdsoptions; |
| Published | property controller: tdscontroller read fcontroller write setcontroller; |
| Published | property Active: boolean read getactive write setactive default false; |
| Published | property FieldDefs; |
| Published | property BeforeOpen; |
| Published | property AfterOpen; |
| Published | property BeforeClose; |
| Published | property AfterClose; |
| Published | property BeforeInsert; |
| Published | property AfterInsert; |
| Published | property BeforeEdit; |
| Published | property AfterEdit; |
| Published | property BeforePost; |
| Published | property AfterPost; |
| Published | property BeforeCancel; |
| Published | property AfterCancel; |
| Published | property BeforeDelete; |
| Published | property AfterDelete; |
| Published | property BeforeScroll; |
| Published | property AfterScroll; |
| Published | property OnCalcFields; |
| Published | property OnDeleteError; |
| Published | property OnEditError; |
| Published | property OnFilterRecord; |
| Published | property OnNewRecord; |
| Published | property OnPostError; |
| Published | property onmodified; |
| Published | property AutoCalcFields; |
Description
Methods
| Protected | procedure setoptions(const avalue: bufdatasetoptionsty) override; |
|
This item has no description. | |
| Protected | procedure setactive(const value : boolean); reintroduce; |
|
This item has no description. | |
| Protected | function getactive: boolean; |
|
This item has no description. | |
| Protected | procedure loaded; override; |
|
This item has no description. | |
| Protected | function getfieldclass(fieldtype: tfieldtype): tfieldclass; override; |
|
This item has no description. | |
| Protected | procedure dataevent(event: tdataevent; info: ptrint); override; |
|
This item has no description. | |
| Protected | procedure internalopen; override; |
|
This item has no description. | |
| Protected | procedure internalinsert; override; |
|
This item has no description. | |
| Protected | procedure internaldelete; override; |
|
This item has no description. | |
| Protected | procedure internalclose; override; |
|
This item has no description. | |
| Protected | function getcanmodify: boolean; override; |
|
This item has no description. | |
| Protected | function islocal: boolean; override; |
|
This item has no description. | |
| Protected | function fetch: boolean; override; |
|
This item has no description. | |
| Protected | function getblobdatasize: integer; override; |
|
This item has no description. | |
| Protected | function blobscached: boolean; override; |
|
This item has no description. | |
| Protected | function loadfield(const afieldno: integer; const afieldtype: tfieldtype; const buffer: pointer; var bufsize: integer): boolean; override; |
|
This item has no description. | |
| Public | constructor create(aowner: tcomponent); override; |
|
This item has no description. | |
| Public | destructor destroy; override; |
|
This item has no description. | |
| Public | function CreateBlobStream(Field: TField; Mode: TBlobStreamMode): TStream; override; |
|
This item has no description. | |
| Public | procedure appendrecord(const values: array of const); |
|
This item has no description. | |
| Public | procedure cancel; override; |
|
This item has no description. | |
| Public | procedure post; override; |
|
This item has no description. | |
| Public | function moveby(const distance: integer): integer; |
|
This item has no description. | |
Properties
| Published | property options default defaultlocalbdsoptions; |
|
This item has no description. | |
| Published | property controller: tdscontroller read fcontroller write setcontroller; |
|
This item has no description. | |
| Published | property Active: boolean read getactive write setactive default false; |
|
This item has no description. | |
| Published | property FieldDefs; |
|
This item has no description. | |
| Published | property BeforeOpen; |
|
This item has no description. | |
| Published | property AfterOpen; |
|
This item has no description. | |
| Published | property BeforeClose; |
|
This item has no description. | |
| Published | property AfterClose; |
|
This item has no description. | |
| Published | property BeforeInsert; |
|
This item has no description. | |
| Published | property AfterInsert; |
|
This item has no description. | |
| Published | property BeforeEdit; |
|
This item has no description. | |
| Published | property AfterEdit; |
|
This item has no description. | |
| Published | property BeforePost; |
|
This item has no description. | |
| Published | property AfterPost; |
|
This item has no description. | |
| Published | property BeforeCancel; |
|
This item has no description. | |
| Published | property AfterCancel; |
|
This item has no description. | |
| Published | property BeforeDelete; |
|
This item has no description. | |
| Published | property AfterDelete; |
|
This item has no description. | |
| Published | property BeforeScroll; |
|
This item has no description. | |
| Published | property AfterScroll; |
|
This item has no description. | |
| Published | property OnCalcFields; |
|
This item has no description. | |
| Published | property OnDeleteError; |
|
This item has no description. | |
| Published | property OnEditError; |
|
This item has no description. | |
| Published | property OnFilterRecord; |
|
This item has no description. | |
| Published | property OnNewRecord; |
|
This item has no description. | |
| Published | property OnPostError; |
|
This item has no description. | |
| Published | property onmodified; |
|
This item has no description. | |
| Published | property AutoCalcFields; |
|
This item has no description. | |
Generated by PasDoc 1.0.4.