Objekt TKAPPvQuery

Z K.A.P.
Skočit na navigaciSkočit na vyhledávání

Objekt TKAPPvQuery

Tato třída slouží pro práci s SQĹ dotazy nad databázemi a tabulkami dostupnými v databázovém prostředí Pervasive SQL ve skriptovacím programovacím jazyku.

TKAPPvQuery = class(TDataset)
 function ControlsDisabled: Boolean;
 function FieldByName(const FieldName: String): TField;
 function FindField(const FieldName: String): TField;
 function GetBookmark: TBookmark;
 function IsEmpty: Boolean;
 function Locate(const KeyFields: string; const KeyValues: Variant; Options: TLocateOptions): Boolean;
 function Lookup(const KeyFields: string; const KeyValues: Variant; const ResultFields: string): Variant;
 function MoveBy(Distance: Integer): Integer;
 function RecordCount: Integer;
 procedure Append;
 procedure Cancel;
 procedure Close;
 procedure Delete;
 procedure DisableControls;
 procedure Edit;
 procedure EnableControls;
 procedure First;
 procedure FreeBookmark(Bookmark: TBookmark);
 procedure GetFieldList(List: TList; const FieldNames: String);
 procedure GetFieldNames(List: TStrings);
 procedure GotoBookmark(Bookmark: TBookmark);
 procedure Insert;
 procedure Last;
 procedure Next;
 procedure Open;
 procedure Post;
 procedure Prior;
 procedure Refresh;
 procedure SetKey;
 procedure SetRange(const StartValues, EndValues: array of const);
 procedure StartTransaction;
 procedure ExecSQL;
 procedure Prepare;
 procedure UnPrepare;
 function Prepared : Boolean;
 property ErrMessage: string;
 property SQL: TStrings;
 property DatabaseName: string;
 property SessionName: string;
end;


TKAPPvSession  = class(TComponent)
 constructor Create(AOwner: TComponent; const ServerName, SessionName: String);
end;
TKAPPvDatabase  = class(TComponent)
 constructor Create(AOwner: TObject);
 property DatabaseName: string;
end;