Class tfb3connection

Unit

Declaration

type tfb3connection = class(tcustomsqlconnection, iblobconnection, idbevent, idbeventcontroller)

Description

Hierarchy

Overview

Fields

Protected fapi: fbapity;
Protected fattachment: iattachment;
Protected feventcallback: tfbeventcallback;
Protected feventcontroller: tdbeventcontroller;
Protected feventitems: array of fbeventinfoty;
Protected fevents: ievents;
Protected flistencount: int32;
Protected feventcount: int32;
Protected feventlength: int32;
Protected feventbuffer: pbyte;
Protected feventcountbuffer: array of ULONG;

Methods

Protected function getpb(const akind: paramblockkindty): ixpbbuilder;
Protected function buildpb(const akind: paramblockkindty; const ainfo: pparaminfoty; const acount: int32; const aparams: tstringlist; const force: boolean): ixpbbuilder;
Protected procedure clearstatus(); inline;
Protected function statusok(): boolean; inline;
Protected procedure checkstatus(const aerrormessage: msestring);
Protected procedure dointernalconnectoverride;
Protected procedure dointernaldisconnectoverride;
Protected function allocatetransactionhandle: tsqlhandle override;
Protected function gettransactionhandle(trans : tsqlhandle): pointer override;
Protected function startdbtransaction(const trans : tsqlhandle; const aparams : tstringlist) : boolean override;
Protected function commit(trans : tsqlhandle) : boolean override;
Protected function rollback(trans : tsqlhandle) : boolean override;
Protected procedure internalcommitretaining(trans : tsqlhandle) override;
Protected procedure internalrollbackretaining(trans : tsqlhandle) override;
Protected procedure cursorclose(const cursor: tfbcursor);
Protected procedure updateresultmetadata(const acursor: tfbcursor; const outmetadata: pimessagemetadata);
Protected procedure internalexecute(const cursor: tsqlcursor; const atransaction: tsqltransaction; const aparams : tmseparams; const autf8: boolean) override;
Protected procedure updateindexdefs(var indexdefs : tindexdefs; const atablename : string; const acursor: tsqlcursor) override;
Protected function getschemainfosql(schematype : tschematype; schemaobjectname, schemapattern : msestring) : msestring override;
Protected function createblobstream(const field: tfield; const mode: tblobstreammode; const acursor: tsqlcursor): tstream; override;
Protected function getblobdatasize: integer; override;
Protected procedure updateevents(const aerrormessage: msestring);
Protected procedure clearevents();
Protected procedure loaded() override;
Protected function readsequence(const sequencename: string): msestring override;
Protected function sequencecurrvalue(const sequencename: string): msestring override;
Protected function writesequence(const sequencename: string; const avalue: largeint): msestring override;
Protected procedure writeblobdata(const atransaction: tsqltransaction; const tablename: string; const acursor: tsqlcursor; const adata: pointer; const alength: integer; const afield: tfield; const aparam: tparam; out newid: string); overload;
Protected procedure setupblobdata(const afield: tfield; const acursor: tsqlcursor; const aparam: tparam);
Protected procedure listen(const sender: tdbevent);
Protected procedure unlisten(const sender: tdbevent);
Protected procedure fire(const sender: tdbevent);
Protected function getdbevent(var aname: string; var aid: int64): boolean;
Protected procedure dolisten(const sender: tdbevent);
Protected procedure dounlisten(const sender: tdbevent);
Public constructor create(aowner: tcomponent); override;
Public destructor destroy(); override;
Public procedure createdatabase(const asql: ansistring);
Public function allocatecursorhandle(const aowner: icursorclient; const aname: ansistring): tsqlcursor override;
Public procedure deallocatecursorhandle(var cursor : tsqlcursor) override;
Public procedure freefldbuffers(cursor : tsqlcursor); override;
Public procedure preparestatement(const cursor: tsqlcursor; const atransaction : tsqltransaction; const asql: msestring; const aparams : tmseparams) override;
Public procedure unpreparestatement(cursor : tsqlcursor) override;
Public procedure addfielddefs(const cursor: tsqlcursor; const fielddefs : tfielddefs) override;
Public function fetch(cursor : tsqlcursor) : boolean; override;
Public function loadfield(const cursor: tsqlcursor; const datatype: tfieldtype; const fieldnum: integer; const buffer: pointer; var bufsize: integer; const aisutf8: boolean): boolean; override;
Public function fetchblob(const cursor: tsqlcursor; const fieldnum: integer): ansistring; override;
Public function version: msestring;

Properties

Public property lasterrormessage: msestring read flasterrormessage;
Public property lastsqlcode: int32 read flastsqlcode;
Published property dialect: integer read fdialect write fdialect default sql_dialect_v6;
Published property options: fbconnectionoptionsty read foptions write foptions default [];
Published property Transaction;
Published property transactionwrite;
Published property CharSet;
Published property HostName;
Published property controller;
Published property DatabaseName: filenamety read getdatabasename write setdatabasename;
Published property Connected: boolean read getconnected write setconnected default false;
Published property Password;
Published property UserName;
Published property Role;
Published property ongetcredentials;
Published property afterconnect;
Published property beforedisconnect;

Description

Fields

Protected fapi: fbapity;
 
Protected fattachment: iattachment;
 
Protected feventcallback: tfbeventcallback;
 
Protected feventcontroller: tdbeventcontroller;
 
Protected feventitems: array of fbeventinfoty;
 
Protected fevents: ievents;
 
Protected flistencount: int32;
 
Protected feventcount: int32;
 
Protected feventlength: int32;
 
Protected feventbuffer: pbyte;
 
Protected feventcountbuffer: array of ULONG;
 

Methods

Protected function getpb(const akind: paramblockkindty): ixpbbuilder;
 
Protected function buildpb(const akind: paramblockkindty; const ainfo: pparaminfoty; const acount: int32; const aparams: tstringlist; const force: boolean): ixpbbuilder;
 
Protected procedure clearstatus(); inline;
 
Protected function statusok(): boolean; inline;
 
Protected procedure checkstatus(const aerrormessage: msestring);
 
Protected procedure dointernalconnectoverride;
 
Protected procedure dointernaldisconnectoverride;
 
Protected function allocatetransactionhandle: tsqlhandle override;
 
Protected function gettransactionhandle(trans : tsqlhandle): pointer override;
 
Protected function startdbtransaction(const trans : tsqlhandle; const aparams : tstringlist) : boolean override;
 
Protected function commit(trans : tsqlhandle) : boolean override;
 
Protected function rollback(trans : tsqlhandle) : boolean override;
 
Protected procedure internalcommitretaining(trans : tsqlhandle) override;
 
Protected procedure internalrollbackretaining(trans : tsqlhandle) override;
 
Protected procedure cursorclose(const cursor: tfbcursor);
 
Protected procedure updateresultmetadata(const acursor: tfbcursor; const outmetadata: pimessagemetadata);
 
Protected procedure internalexecute(const cursor: tsqlcursor; const atransaction: tsqltransaction; const aparams : tmseparams; const autf8: boolean) override;
 
Protected procedure updateindexdefs(var indexdefs : tindexdefs; const atablename : string; const acursor: tsqlcursor) override;
 
Protected function getschemainfosql(schematype : tschematype; schemaobjectname, schemapattern : msestring) : msestring override;
 
Protected function createblobstream(const field: tfield; const mode: tblobstreammode; const acursor: tsqlcursor): tstream; override;
 
Protected function getblobdatasize: integer; override;
 
Protected procedure updateevents(const aerrormessage: msestring);
 
Protected procedure clearevents();
 
Protected procedure loaded() override;
 
Protected function readsequence(const sequencename: string): msestring override;
 
Protected function sequencecurrvalue(const sequencename: string): msestring override;
 
Protected function writesequence(const sequencename: string; const avalue: largeint): msestring override;
 
Protected procedure writeblobdata(const atransaction: tsqltransaction; const tablename: string; const acursor: tsqlcursor; const adata: pointer; const alength: integer; const afield: tfield; const aparam: tparam; out newid: string); overload;
 
Protected procedure setupblobdata(const afield: tfield; const acursor: tsqlcursor; const aparam: tparam);
 
Protected procedure listen(const sender: tdbevent);
 
Protected procedure unlisten(const sender: tdbevent);
 
Protected procedure fire(const sender: tdbevent);
 
Protected function getdbevent(var aname: string; var aid: int64): boolean;
 
Protected procedure dolisten(const sender: tdbevent);
 
Protected procedure dounlisten(const sender: tdbevent);
 
Public constructor create(aowner: tcomponent); override;
 
Public destructor destroy(); override;
 
Public procedure createdatabase(const asql: ansistring);
 
Public function allocatecursorhandle(const aowner: icursorclient; const aname: ansistring): tsqlcursor override;
 
Public procedure deallocatecursorhandle(var cursor : tsqlcursor) override;
 
Public procedure freefldbuffers(cursor : tsqlcursor); override;
 
Public procedure preparestatement(const cursor: tsqlcursor; const atransaction : tsqltransaction; const asql: msestring; const aparams : tmseparams) override;
 
Public procedure unpreparestatement(cursor : tsqlcursor) override;
 
Public procedure addfielddefs(const cursor: tsqlcursor; const fielddefs : tfielddefs) override;
 
Public function fetch(cursor : tsqlcursor) : boolean; override;
 
Public function loadfield(const cursor: tsqlcursor; const datatype: tfieldtype; const fieldnum: integer; const buffer: pointer; var bufsize: integer; const aisutf8: boolean): boolean; override;
 
Public function fetchblob(const cursor: tsqlcursor; const fieldnum: integer): ansistring; override;
 
Public function version: msestring;
 

Properties

Public property lasterrormessage: msestring read flasterrormessage;
 
Public property lastsqlcode: int32 read flastsqlcode;
 
Published property dialect: integer read fdialect write fdialect default sql_dialect_v6;
 
Published property options: fbconnectionoptionsty read foptions write foptions default [];
 
Published property Transaction;
 
Published property transactionwrite;
 
Published property CharSet;
 
Published property HostName;
 
Published property controller;
 
Published property DatabaseName: filenamety read getdatabasename write setdatabasename;
 
Published property Connected: boolean read getconnected write setconnected default false;
 
Published property Password;
 
Published property UserName;
 
Published property Role;
 
Published property ongetcredentials;
 
Published property afterconnect;
 
Published property beforedisconnect;
 

Generated by PasDoc 0.16.0.