Class tdscontroller

Unit

Declaration

type tdscontroller = class(tactivatorcontroller, idsfieldcontroller)

Description

No description available, ancestor tactivatorcontroller description follows
No description available, ancestor tlinkedpersistent description follows
No description available, ancestor tnullinterfacedpersistent description follows
No description available, ancestor tvirtualpersistent description follows

Hierarchy

Overview

Fields

Protected foptions: datasetoptionsty;

Methods

Protected procedure setoptions(const avalue: datasetoptionsty); virtual;
Protected procedure setowneractive(const avalue: boolean); override;
Protected procedure fielddestroyed(const sender: ifieldcomponent);
Protected procedure dorefresh(const sender: tobject);
Protected function savepointbegin: integer; virtual;
Protected procedure savepointrollback(const aindex: integer = -1); virtual;
Protected procedure savepointrelease; virtual;
Protected function execoperation(const akind: opkindty; const aafterop: afterdbopeventty): boolean;
Protected procedure defineproperties(filer: tfiler) override;
Public constructor create(const aowner: tdataset; const aintf: idscontroller; const arecnooffset: integer = -1; const acancelresync: boolean = true);
Public destructor destroy; override;
Public function isutf8: boolean;
Public function getfieldar(const afieldkinds: tfieldkinds = allfieldkinds): fieldarty;
Public function filtereditkind: filtereditkindty;
Public procedure beginupdate;
Public procedure endupdate;
Public function locate(const afields: array of tfield; const akeys: array of const; const aisnull: array of boolean; const akeyoptions: array of locatekeyoptionsty; const aoptions: locaterecordoptionsty = []): locateresultty;
Public procedure appendrecord(const values: array of const);
Public procedure appendrecord1(const values: array of const; const aisnull: array of boolean);
Public procedure appendrecord(const values: array of const; const afields: array of tfield);
Public procedure appendrecord1(const values: array of const; const aisnull: array of boolean; const afields: array of tfield);
Public procedure appendrecord(const values: variantarty);
Public procedure appenddata(const adata: variantararty; const afields: array of tfield);
Public procedure getfieldclass(const fieldtype: tfieldtype; out result: tfieldclass);
Public procedure beginfilteredit(const akind: filtereditkindty);
Public procedure clearfilter();
Public procedure endfilteredit;
Public procedure begindisplaydata;
Public procedure enddisplaydata;
Public function getcanmodify: boolean;
Public function updatesortfield(const alink: tfielddatalink; const adescend: boolean): boolean;
Public procedure modified;
Public procedure dataevent(const event: tdataevent; info: ptrint);
Public function findrecno(const arecno: integer; const options: recnosearchoptionsty = []): integer;
Public function findrecnozerobased(const arecno: integer; const options: recnosearchoptionsty = []): integer;
Public function moveby(const distance: integer): integer;
Public function islastrecord: boolean;
Public procedure internalinsert;
Public procedure internaldelete;
Public procedure internalopen;
Public procedure internalclose;
Public procedure closequery(var amodalresult: modalresultty); overload;
Public function closequery: boolean; overload;
Public function post(const aafterpost: afterdbopeventty = nil): boolean;
Public function delete(const aafterdelete: afterdbopeventty = nil): boolean;
Public function posting: boolean;
Public function posting1: boolean;
Public procedure postcancel;
Public procedure cancel;
Public function canceling: boolean;
Public function refreshing(): boolean;
Public function deleting(): boolean;
Public function emptyinsert: boolean;
Public procedure refresh(const restorerecno: boolean = false; const delayus: integer = -1);
Public procedure checkrefresh;
Public procedure copyrecord(const aappend: boolean = false);
Public function copying(): boolean;
Public function assql(const avalue: boolean): msestring; overload;
Public function assql(const avalue: msestring): msestring; overload;
Public function assql(const avalue: integer): msestring; overload;
Public function assql(const avalue: int64): msestring; overload;
Public function assql(const avalue: currency): msestring; overload;
Public function assqlcurrency(const avalue: realty): msestring; overload;
Public function assql(const avalue: realty): msestring; overload;
Public function assql(const avalue: tdatetime): msestring; overload;
Public function assqldate(const avalue: tdatetime): msestring;
Public function assqltime(const avalue: tdatetime): msestring;

Properties

Public property recno: integer read getrecno write setrecno;
Public property recnozerobased: integer read getrecnozerobased write setrecnozerobased;
Public property recnooffset: integer read frecnooffset;
Public property noedit: boolean read getnoedit write setnoedit;
Public property noinsert: boolean read getnoinsert write setnoinsert;
Public property noappend: boolean read getnoappend write setnoappend;
Public property noupdate: boolean read getnoupdate write setnoupdate;
Public property nodelete: boolean read getnodelete write setnodelete;
Public property asmsestring[constafieldname:string]: msestring read getasmsestring write setasmsestring;
Published property fields: tpersistentfields read ffields write setfields;
Published property options: datasetoptionsty read foptions write setoptions default defaultdscontrolleroptions;
Published property onstatechanged: datasetstatechangedeventty read fonstatechanged write fonstatechanged;
Published property onupdatemasteredit: masterdataseteventty read fonupdatemasteredit write fonupdatemasteredit;
Published property onupdatemasterinsert: masterdataseteventty read fonupdatemasterinsert write fonupdatemasterinsert;
Published property onbeforepost: tdatasetnotifyevent read fonbeforepost write fonbeforepost;
Published property onafterpost: afterdbopeventty read fonafterpost write fonafterpost;
Published property onbeforedelete: tdatasetnotifyevent read fonbeforedelete write fonbeforedelete;
Published property onafterdelete: afterdbopeventty read fonafterdelete write fonafterdelete;
Published property onbeforecopyrecord: tdatasetnotifyevent read fonbeforecopyrecord write fonbeforecopyrecord;
Published property onaftercopyrecord: tdatasetnotifyevent read fonaftercopyrecord write fonaftercopyrecord;

Description

Fields

Protected foptions: datasetoptionsty;
 

Methods

Protected procedure setoptions(const avalue: datasetoptionsty); virtual;
 
Protected procedure setowneractive(const avalue: boolean); override;
 
Protected procedure fielddestroyed(const sender: ifieldcomponent);
 
Protected procedure dorefresh(const sender: tobject);
 
Protected function savepointbegin: integer; virtual;
 
Protected procedure savepointrollback(const aindex: integer = -1); virtual;
 
Protected procedure savepointrelease; virtual;
 
Protected function execoperation(const akind: opkindty; const aafterop: afterdbopeventty): boolean;
 
Protected procedure defineproperties(filer: tfiler) override;
 
Public constructor create(const aowner: tdataset; const aintf: idscontroller; const arecnooffset: integer = -1; const acancelresync: boolean = true);
 
Public destructor destroy; override;
 
Public function isutf8: boolean;
 
Public function getfieldar(const afieldkinds: tfieldkinds = allfieldkinds): fieldarty;
 
Public function filtereditkind: filtereditkindty;
 
Public procedure beginupdate;
 
Public procedure endupdate;
 
Public function locate(const afields: array of tfield; const akeys: array of const; const aisnull: array of boolean; const akeyoptions: array of locatekeyoptionsty; const aoptions: locaterecordoptionsty = []): locateresultty;
 
Public procedure appendrecord(const values: array of const);
 
Public procedure appendrecord1(const values: array of const; const aisnull: array of boolean);
 
Public procedure appendrecord(const values: array of const; const afields: array of tfield);
 
Public procedure appendrecord1(const values: array of const; const aisnull: array of boolean; const afields: array of tfield);
 
Public procedure appendrecord(const values: variantarty);
 
Public procedure appenddata(const adata: variantararty; const afields: array of tfield);
 
Public procedure getfieldclass(const fieldtype: tfieldtype; out result: tfieldclass);
 
Public procedure beginfilteredit(const akind: filtereditkindty);
 
Public procedure clearfilter();
 
Public procedure endfilteredit;
 
Public procedure begindisplaydata;
 
Public procedure enddisplaydata;
 
Public function getcanmodify: boolean;
 
Public function updatesortfield(const alink: tfielddatalink; const adescend: boolean): boolean;
 
Public procedure modified;
 
Public procedure dataevent(const event: tdataevent; info: ptrint);
 
Public function findrecno(const arecno: integer; const options: recnosearchoptionsty = []): integer;
 
Public function findrecnozerobased(const arecno: integer; const options: recnosearchoptionsty = []): integer;
 
Public function moveby(const distance: integer): integer;
 
Public function islastrecord: boolean;
 
Public procedure internalinsert;
 
Public procedure internaldelete;
 
Public procedure internalopen;
 
Public procedure internalclose;
 
Public procedure closequery(var amodalresult: modalresultty); overload;
 
Public function closequery: boolean; overload;
 
Public function post(const aafterpost: afterdbopeventty = nil): boolean;
 
Public function delete(const aafterdelete: afterdbopeventty = nil): boolean;
 
Public function posting: boolean;
 
Public function posting1: boolean;
 
Public procedure postcancel;
 
Public procedure cancel;
 
Public function canceling: boolean;
 
Public function refreshing(): boolean;
 
Public function deleting(): boolean;
 
Public function emptyinsert: boolean;
 
Public procedure refresh(const restorerecno: boolean = false; const delayus: integer = -1);
 
Public procedure checkrefresh;
 
Public procedure copyrecord(const aappend: boolean = false);
 
Public function copying(): boolean;
 
Public function assql(const avalue: boolean): msestring; overload;
 
Public function assql(const avalue: msestring): msestring; overload;
 
Public function assql(const avalue: integer): msestring; overload;
 
Public function assql(const avalue: int64): msestring; overload;
 
Public function assql(const avalue: currency): msestring; overload;
 
Public function assqlcurrency(const avalue: realty): msestring; overload;
 
Public function assql(const avalue: realty): msestring; overload;
 
Public function assql(const avalue: tdatetime): msestring; overload;
 
Public function assqldate(const avalue: tdatetime): msestring;
 
Public function assqltime(const avalue: tdatetime): msestring;
 

Properties

Public property recno: integer read getrecno write setrecno;
 
Public property recnozerobased: integer read getrecnozerobased write setrecnozerobased;
 
Public property recnooffset: integer read frecnooffset;
 
Public property noedit: boolean read getnoedit write setnoedit;
 
Public property noinsert: boolean read getnoinsert write setnoinsert;
 
Public property noappend: boolean read getnoappend write setnoappend;
 
Public property noupdate: boolean read getnoupdate write setnoupdate;
 
Public property nodelete: boolean read getnodelete write setnodelete;
 
Public property asmsestring[constafieldname:string]: msestring read getasmsestring write setasmsestring;
 
Published property fields: tpersistentfields read ffields write setfields;
 
Published property options: datasetoptionsty read foptions write setoptions default defaultdscontrolleroptions;
 
Published property onstatechanged: datasetstatechangedeventty read fonstatechanged write fonstatechanged;
 
Published property onupdatemasteredit: masterdataseteventty read fonupdatemasteredit write fonupdatemasteredit;
 
Published property onupdatemasterinsert: masterdataseteventty read fonupdatemasterinsert write fonupdatemasterinsert;
 
Published property onbeforepost: tdatasetnotifyevent read fonbeforepost write fonbeforepost;
 
Published property onafterpost: afterdbopeventty read fonafterpost write fonafterpost;
 
Published property onbeforedelete: tdatasetnotifyevent read fonbeforedelete write fonbeforedelete;
 
Published property onafterdelete: afterdbopeventty read fonafterdelete write fonafterdelete;
 
Published property onbeforecopyrecord: tdatasetnotifyevent read fonbeforecopyrecord write fonbeforecopyrecord;
 
Published property onaftercopyrecord: tdatasetnotifyevent read fonaftercopyrecord write fonaftercopyrecord;
 

Generated by PasDoc 0.16.0.