Unit 'msesqldb' Package
[Overview][Constants][Types][Classes][Index] [#msegui]

tmsesqlquery

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Stores all fetched data in memory, with the ability to save/reload a memory image to disk and maintain an offline change journal

Declaration

Source position: msesqldb.pas line 114

type tmsesqlquery = class(tsqlquery,imselocate,idscontroller,igetdscontroller,isqlpropertyeditor,iactivatorclient)

  <TPasMethodResolution>

  

Stores all fetched data in memory, with the ability to save/reload a memory image to disk and maintain an offline change journal

  <TPasMethodResolution>

  

Stores all fetched data in memory, with the ability to save/reload a memory image to disk and maintain an offline change journal

public

  constructor create(); override;

  destructor destroy; override;

  function isutf8; override;

  procedure appendrecord();

  function moveby();

  procedure cancel; override;

  function post1;

  procedure post; override;

  function delete1;

  procedure delete; override;

  procedure applyupdates();

  procedure applyupdate; override; overload;

published

  property FieldDefs;

  property delayedapplycount: Integer;

  property options: bufdatasetoptionsty;

  property controller: tdscontroller; [rw]

  property Active: Boolean; [rw]

  property onapplyrecupdate: applyrecupdateeventty; [rw]

  

Called for each modified, inserted or deleted record on applyupdates, to replace the automatically generated update statement, e.g. for a query on a join

  property onapplyrecupdate2: afterapplyrecupdateeventty; [rw]

  property afterapplyrecupdate: afterapplyrecupdateeventty; [rw]

  property UpdateMode: TUpdateMode;

  property UsePrimaryKeyAsKey: Boolean;

  property IndexDefs: TIndexDefs; [rw]

end;

Inheritance

tmsesqlquery

  

Stores all fetched data in memory, with the ability to save/reload a memory image to disk and maintain an offline change journal

|

tsqlquery,imselocate,idscontroller,igetdscontroller,isqlpropertyeditor,iactivatorclient

  

Holds a buffer of all records fetched by SQL; the db*edit widgets work from and to this buffer, not directly against the database

|

tmsebufdataset,isqlclient,icursorclient

  

Keeps three buffers: the record buffer holds all fetched records (fkdata and fkinternalcalc field values — see oninternalcalcfields)

|

tmdbdataset,iblobchache,idatasetsum,imasterlink,idbdata,iobjectlink

|

TObject,idatabaseclient,itransactionclient

Description

Stores all fetched data in memory, with the ability to save/reload a memory image to disk and maintain an offline change journal — so the whole result set must fit in memory. For a very large result set, or when the data does not need to be displayed or edited in widgets, use tsqlresult instead (which only buffers the current record) together with a tsqllookupbuffer, for less overhead. For moderate record counts, connect a tdblookupbuffer for fast lookups; with tmsesqlquery the find functions of tlocalindex are also available.


Documentation generated on: 2026-10-03