Class tcustomlookupbuffer

Unit

Declaration

type tcustomlookupbuffer = class(tactcomponent)

Description

No description available, ancestor tactcomponent description follows
No description available, ancestor tmsecomponent description follows

Hierarchy

Overview

Fields

Protected fupdating: integer;
Protected fcount: integer;
Protected fstate: lookupbufferstatesty;
Protected ftextdata: stringindexinfoarty;
Protected fintegerdata: integerindexinfoarty;
Protected ffloatdata: floatindexinfoarty;
Protected fint64data: int64indexinfoarty;

Methods

Protected function getfieldcounttext: integer; virtual;
Protected function getfieldcountinteger: integer; virtual;
Protected function getfieldcountfloat: integer; virtual;
Protected function getfieldcountint64: integer; virtual;
Protected procedure setfieldcounttext(const avalue: integer); virtual;
Protected procedure setfieldcountinteger(const avalue: integer); virtual;
Protected procedure setfieldcountfloat(const avalue: integer); virtual;
Protected procedure setfieldcountint64(const avalue: integer); virtual;
Protected procedure invalidatebuffer;
Protected procedure readonlyprop;
Protected procedure changed;
Protected procedure asyncchanged;
Protected procedure doasyncevent(var atag: integer); override;
Protected procedure setcount(const avalue: integer);
Protected procedure loaded; override;
Protected function checkfilter(const filter: lbfiltereventty; const index: integerarty; var aindex: integer): boolean;
Protected procedure checkindexar(var aitem: integerindexinfoty); overload;
Protected procedure checkindexar(var aitem: floatindexinfoty); overload;
Protected procedure checkindexar(var aitem: int64indexinfoty); overload;
Protected procedure checkindexar(var aitem: stringindexinfoty; const caseinsensitive: boolean); overload;
Protected procedure checkarrayindex(const value; const index: integer);
Protected procedure doloadbuffer() virtual;
Public constructor create(aowner: tcomponent); override;
Public destructor destroy; override;
Public procedure beginupdate;
Public procedure endupdate;
Public procedure clearbuffer; virtual;
Public procedure checkbuffer;
Public procedure loadbuffer;
Public function find(const fieldno: integer; const avalue: integer; out aindex: integer; const filter: lbfiltereventty = nil): boolean; overload;
Public function find(const fieldno: integer; const avalue: realty; out aindex: integer; const filter: lbfiltereventty = nil): boolean; overload;
Public function find(const fieldno: integer; const avalue: int64; out aindex: integer; const filter: lbfiltereventty = nil): boolean; overload;
Public function find(const fieldno: integer; const avalue: msestring; out aindex: integer; const caseinsensitive: boolean; const filter: lbfiltereventty = nil): boolean; overload;
Public function findphys(const fieldno: integer; const avalue: integer; out aindex: integer; const filter: lbfiltereventty = nil): boolean; overload;
Public function findphys(const fieldno: integer; const avalue: realty; out aindex: integer; const filter: lbfiltereventty = nil): boolean; overload;
Public function findphys(const fieldno: integer; const avalue: int64; out aindex: integer; const filter: lbfiltereventty = nil): boolean; overload;
Public function findphys(const fieldno: integer; const avalue: msestring; out aindex: integer; const caseinsensitive: boolean; const filter: lbfiltereventty = nil): boolean; overload;
Public function integervaluephys(const fieldno,aindex: integer): integer;
Public function integervaluelog(const fieldno,aindex: integer): integer;
Public function integerindex(const fieldno,aindex: integer): integer;
Public function integerindexar(const fieldno: integer): integerarty;
Public function integerar(const fieldno: integer): integerarty;
Public function floatvaluephys(const fieldno,aindex: integer): realty;
Public function floatvaluelog(const fieldno,aindex: integer): realty;
Public function floatindex(const fieldno,aindex: integer): integer;
Public function floatindexar(const fieldno: integer): integerarty;
Public function floatar(const fieldno: integer): realarty;
Public function int64valuephys(const fieldno,aindex: integer): int64;
Public function int64valuelog(const fieldno,aindex: integer): int64;
Public function int64index(const fieldno,aindex: integer): integer;
Public function int64indexar(const fieldno: integer): integerarty;
Public function int64ar(const fieldno: integer): int64arty;
Public function textvaluephys(const fieldno,aindex: integer): msestring;
Public function textvaluelog(const fieldno,aindex: integer; const caseinsensitive: boolean): msestring;
Public function textindex(const fieldno,aindex: integer; const caseinsensitive: boolean): integer;
Public function textindexar(const fieldno: integer; const caseinsensitive: boolean): integerarty;
Public function textar(const fieldno: integer): msestringarty;
Public function lookupinteger(const integerkeyfieldno,integerfieldno, keyvalue: integer; const adefault: integer = 0): integer; overload;
Public function lookupinteger(const int64keyfieldno,integerfieldno: integer; const keyvalue: int64; const adefault: integer = 0): integer; overload;
Public function lookupinteger(const stringkeyfieldno,integerfieldno: integer; const keyvalue: msestring; const adefault: integer = 0): integer; overload;
Public function lookupint64(const integerkeyfieldno,int64fieldno, keyvalue: integer; const adefault: int64 = 0): int64; overload;
Public function lookupint64(const int64keyfieldno,int64fieldno: integer; const keyvalue: int64; const adefault: int64 = 0): int64; overload;
Public function lookupint64(const stringkeyfieldno,int64fieldno: integer; const keyvalue: msestring; const adefault: int64 = 0): int64; overload;
Public function lookuptext(const integerkeyfieldno,textfieldno, keyvalue: integer; const adefault: msestring = ''): msestring; overload;
Public function lookuptext(const int64keyfieldno,textfieldno: integer; const keyvalue: int64; const adefault: msestring = ''): msestring; overload;
Public function lookuptext(const stringkeyfieldno,textfieldno: integer; const keyvalue: msestring; const adefault: msestring = ''): msestring; overload;
Public function lookupfloat(const integerkeyfieldno,floatfieldno,keyvalue: integer; const adefault: realty = emptyreal): realty; overload;
Public function lookupfloat(const int64keyfieldno,floatfieldno: integer; const keyvalue: int64; const adefault: realty = emptyreal): realty; overload;
Public function lookupfloat(const stringkeyfieldno,floatfieldno: integer; const keyvalue: msestring; const adefault: realty = emptyreal): realty; overload;
Public function count: integer; virtual;
Public procedure addrow(const integervalues: array of integer; const textvalues: array of msestring; const floatvalues: array of realty; const int64values: array of int64);
Public procedure addrows(const integervalues: array of integerarty; const textvalues: array of msestringarty; const floatvalues: array of realarty; const int64values: array of int64arty);
Public function fieldnamestext: stringarty; virtual;
Public function fieldnamesfloat: stringarty; virtual;
Public function fieldnamesinteger: stringarty; virtual;
Public function fieldnamesint64: stringarty; virtual;

Properties

Public property fieldcounttext: integer read getfieldcounttext write setfieldcounttext default 0;
Public property fieldcountfloat: integer read getfieldcountfloat write setfieldcountfloat default 0;
Public property fieldcountinteger: integer read getfieldcountinteger write setfieldcountinteger default 0;
Public property fieldcountint64: integer read getfieldcountint64 write setfieldcountint64 default 0;
Public property integervalue[constfieldno,aindex:integer]: integer read integervaluephys;
Public property floatvalue[constfieldno,aindex:integer]: realty read floatvaluephys;
Public property int64value[constfieldno,aindex:integer]: int64 read int64valuephys;
Public property textvalue[constfieldno,aindex:integer]: msestring read textvaluephys;
Public property beforeload: lookupbuffereventty read fbeforeload write fbeforeload;
Public property afterload: lookupbuffereventty read fafterload write fafterload;
Public property onchange: notifyeventty read fonchange write fonchange;

Description

Fields

Protected fupdating: integer;
 
Protected fcount: integer;
 
Protected fstate: lookupbufferstatesty;
 
Protected ftextdata: stringindexinfoarty;
 
Protected fintegerdata: integerindexinfoarty;
 
Protected ffloatdata: floatindexinfoarty;
 
Protected fint64data: int64indexinfoarty;
 

Methods

Protected function getfieldcounttext: integer; virtual;
 
Protected function getfieldcountinteger: integer; virtual;
 
Protected function getfieldcountfloat: integer; virtual;
 
Protected function getfieldcountint64: integer; virtual;
 
Protected procedure setfieldcounttext(const avalue: integer); virtual;
 
Protected procedure setfieldcountinteger(const avalue: integer); virtual;
 
Protected procedure setfieldcountfloat(const avalue: integer); virtual;
 
Protected procedure setfieldcountint64(const avalue: integer); virtual;
 
Protected procedure invalidatebuffer;
 
Protected procedure readonlyprop;
 
Protected procedure changed;
 
Protected procedure asyncchanged;
 
Protected procedure doasyncevent(var atag: integer); override;
 
Protected procedure setcount(const avalue: integer);
 
Protected procedure loaded; override;
 
Protected function checkfilter(const filter: lbfiltereventty; const index: integerarty; var aindex: integer): boolean;
 
Protected procedure checkindexar(var aitem: integerindexinfoty); overload;
 
Protected procedure checkindexar(var aitem: floatindexinfoty); overload;
 
Protected procedure checkindexar(var aitem: int64indexinfoty); overload;
 
Protected procedure checkindexar(var aitem: stringindexinfoty; const caseinsensitive: boolean); overload;
 
Protected procedure checkarrayindex(const value; const index: integer);
 
Protected procedure doloadbuffer() virtual;
 
Public constructor create(aowner: tcomponent); override;
 
Public destructor destroy; override;
 
Public procedure beginupdate;
 
Public procedure endupdate;
 
Public procedure clearbuffer; virtual;
 
Public procedure checkbuffer;
 
Public procedure loadbuffer;
 
Public function find(const fieldno: integer; const avalue: integer; out aindex: integer; const filter: lbfiltereventty = nil): boolean; overload;
 
Public function find(const fieldno: integer; const avalue: realty; out aindex: integer; const filter: lbfiltereventty = nil): boolean; overload;
 
Public function find(const fieldno: integer; const avalue: int64; out aindex: integer; const filter: lbfiltereventty = nil): boolean; overload;
 
Public function find(const fieldno: integer; const avalue: msestring; out aindex: integer; const caseinsensitive: boolean; const filter: lbfiltereventty = nil): boolean; overload;
 
Public function findphys(const fieldno: integer; const avalue: integer; out aindex: integer; const filter: lbfiltereventty = nil): boolean; overload;
 
Public function findphys(const fieldno: integer; const avalue: realty; out aindex: integer; const filter: lbfiltereventty = nil): boolean; overload;
 
Public function findphys(const fieldno: integer; const avalue: int64; out aindex: integer; const filter: lbfiltereventty = nil): boolean; overload;
 
Public function findphys(const fieldno: integer; const avalue: msestring; out aindex: integer; const caseinsensitive: boolean; const filter: lbfiltereventty = nil): boolean; overload;
 
Public function integervaluephys(const fieldno,aindex: integer): integer;
 
Public function integervaluelog(const fieldno,aindex: integer): integer;
 
Public function integerindex(const fieldno,aindex: integer): integer;
 
Public function integerindexar(const fieldno: integer): integerarty;
 
Public function integerar(const fieldno: integer): integerarty;
 
Public function floatvaluephys(const fieldno,aindex: integer): realty;
 
Public function floatvaluelog(const fieldno,aindex: integer): realty;
 
Public function floatindex(const fieldno,aindex: integer): integer;
 
Public function floatindexar(const fieldno: integer): integerarty;
 
Public function floatar(const fieldno: integer): realarty;
 
Public function int64valuephys(const fieldno,aindex: integer): int64;
 
Public function int64valuelog(const fieldno,aindex: integer): int64;
 
Public function int64index(const fieldno,aindex: integer): integer;
 
Public function int64indexar(const fieldno: integer): integerarty;
 
Public function int64ar(const fieldno: integer): int64arty;
 
Public function textvaluephys(const fieldno,aindex: integer): msestring;
 
Public function textvaluelog(const fieldno,aindex: integer; const caseinsensitive: boolean): msestring;
 
Public function textindex(const fieldno,aindex: integer; const caseinsensitive: boolean): integer;
 
Public function textindexar(const fieldno: integer; const caseinsensitive: boolean): integerarty;
 
Public function textar(const fieldno: integer): msestringarty;
 
Public function lookupinteger(const integerkeyfieldno,integerfieldno, keyvalue: integer; const adefault: integer = 0): integer; overload;
 
Public function lookupinteger(const int64keyfieldno,integerfieldno: integer; const keyvalue: int64; const adefault: integer = 0): integer; overload;
 
Public function lookupinteger(const stringkeyfieldno,integerfieldno: integer; const keyvalue: msestring; const adefault: integer = 0): integer; overload;
 
Public function lookupint64(const integerkeyfieldno,int64fieldno, keyvalue: integer; const adefault: int64 = 0): int64; overload;
 
Public function lookupint64(const int64keyfieldno,int64fieldno: integer; const keyvalue: int64; const adefault: int64 = 0): int64; overload;
 
Public function lookupint64(const stringkeyfieldno,int64fieldno: integer; const keyvalue: msestring; const adefault: int64 = 0): int64; overload;
 
Public function lookuptext(const integerkeyfieldno,textfieldno, keyvalue: integer; const adefault: msestring = ''): msestring; overload;
 
Public function lookuptext(const int64keyfieldno,textfieldno: integer; const keyvalue: int64; const adefault: msestring = ''): msestring; overload;
 
Public function lookuptext(const stringkeyfieldno,textfieldno: integer; const keyvalue: msestring; const adefault: msestring = ''): msestring; overload;
 
Public function lookupfloat(const integerkeyfieldno,floatfieldno,keyvalue: integer; const adefault: realty = emptyreal): realty; overload;
 
Public function lookupfloat(const int64keyfieldno,floatfieldno: integer; const keyvalue: int64; const adefault: realty = emptyreal): realty; overload;
 
Public function lookupfloat(const stringkeyfieldno,floatfieldno: integer; const keyvalue: msestring; const adefault: realty = emptyreal): realty; overload;
 
Public function count: integer; virtual;
 
Public procedure addrow(const integervalues: array of integer; const textvalues: array of msestring; const floatvalues: array of realty; const int64values: array of int64);
 
Public procedure addrows(const integervalues: array of integerarty; const textvalues: array of msestringarty; const floatvalues: array of realarty; const int64values: array of int64arty);
 
Public function fieldnamestext: stringarty; virtual;
 
Public function fieldnamesfloat: stringarty; virtual;
 
Public function fieldnamesinteger: stringarty; virtual;
 
Public function fieldnamesint64: stringarty; virtual;
 

Properties

Public property fieldcounttext: integer read getfieldcounttext write setfieldcounttext default 0;
 
Public property fieldcountfloat: integer read getfieldcountfloat write setfieldcountfloat default 0;
 
Public property fieldcountinteger: integer read getfieldcountinteger write setfieldcountinteger default 0;
 
Public property fieldcountint64: integer read getfieldcountint64 write setfieldcountint64 default 0;
 
Public property integervalue[constfieldno,aindex:integer]: integer read integervaluephys;
 
Public property floatvalue[constfieldno,aindex:integer]: realty read floatvaluephys;
 
Public property int64value[constfieldno,aindex:integer]: int64 read int64valuephys;
 
Public property textvalue[constfieldno,aindex:integer]: msestring read textvaluephys;
 
Public property beforeload: lookupbuffereventty read fbeforeload write fbeforeload;
 
Public property afterload: lookupbuffereventty read fafterload write fafterload;
 
Public property onchange: notifyeventty read fonchange write fonchange;
 

Generated by PasDoc 0.16.0.