Class tcustomdblookupbuffer

Unit

Declaration

type tcustomdblookupbuffer = class(tdatalookupbuffer)

Description

This item has no description. Showing description inherited from tcustomlookupbuffer.

Holds several parallel, integer-indexed arrays (of integer, int64, realty — also used for datetimes — and msestring) and lets you search a value in one array and read the corresponding value in another (see the lookup* functions), or search and then walk an array's values (find* and *value* functions). Each array can be addressed by its physical index (its raw storage row number, the *phys functions) or by a logical index (the *log functions and find): the logical index is built automatically, lazily, by sorting the array's values, and is what makes find (as opposed to findphys) fast on a large array. Fill the arrays manually with addrow/addrows; doloadbuffer (called by checkbuffer) is a no-op here, but is overridden by descendants such as tdblookupbuffer to (re)load the arrays automatically from a data source.

Hierarchy

Overview

Methods

Protected function getfieldcounttext: integer; override;
Protected function getfieldcountinteger: integer; override;
Protected function getfieldcountfloat: integer; override;
Protected function getfieldcountint64: integer; override;
Public constructor create(aowner: tcomponent); override;
Public destructor destroy; override;
Public procedure clearbuffer; override;
Public function fieldnamestext: stringarty; override;
Public function fieldnamesfloat: stringarty; override;
Public function fieldnamesinteger: stringarty; override;
Public function fieldnamesint64: stringarty; override;

Properties

Public property datasource: tdatasource read getdatasource write setdatasource;
Public property textfields: tdbfieldnamearrayprop read ftextfields write settextfields;
Public property integerfields: tdbfieldnamearrayprop read fintegerfields write setintegerfields;
Public property floatfields: tdbfieldnamearrayprop read ffloatfields write setfloatfields;
Public property int64fields: tdbfieldnamearrayprop read fint64fields write setint64fields;
Public property optionsdb: lbdboptionsty read foptionsdb write foptionsdb default [];

Description

Methods

Protected function getfieldcounttext: integer; override;

This item has no description.

Protected function getfieldcountinteger: integer; override;

This item has no description.

Protected function getfieldcountfloat: integer; override;

This item has no description.

Protected function getfieldcountint64: integer; 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 procedure clearbuffer; override;

This item has no description.

Public function fieldnamestext: stringarty; override;

This item has no description.

Public function fieldnamesfloat: stringarty; override;

This item has no description.

Public function fieldnamesinteger: stringarty; override;

This item has no description.

Public function fieldnamesint64: stringarty; override;

This item has no description.

Properties

Public property datasource: tdatasource read getdatasource write setdatasource;

This item has no description.

Public property textfields: tdbfieldnamearrayprop read ftextfields write settextfields;

This item has no description.

Public property integerfields: tdbfieldnamearrayprop read fintegerfields write setintegerfields;

This item has no description.

Public property floatfields: tdbfieldnamearrayprop read ffloatfields write setfloatfields;

This item has no description.

Public property int64fields: tdbfieldnamearrayprop read fint64fields write setint64fields;

This item has no description.

Public property optionsdb: lbdboptionsty read foptionsdb write foptionsdb default [];

This item has no description.


Generated by PasDoc 1.0.4.