⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uib_tlb.pas

📁 jvcl driver development envionment
💻 PAS
📖 第 1 页 / 共 2 页
字号:
    procedure Next; safecall;
    procedure FetchAll; safecall;
    procedure SQLAddLine(const Str: WideString); safecall;
    function Get_Transaction: ITransaction; safecall;
    procedure Set_Transaction(const Value: ITransaction); safecall;
    function Get_AsVariant(Index: Word): OleVariant; safecall;
    function Get_SQL: WideString; safecall;
    procedure Set_SQL(const Value: WideString); safecall;
    function Get_AsInteger(Index: Word): Integer; safecall;
    function Get_AsSmallint(Index: Word): Smallint; safecall;
    function Get_AsSingle(Index: Word): Single; safecall;
    function Get_AsDouble(Index: Word): Double; safecall;
    function Get_AsInt64(Index: Word): Int64; safecall;
    function Get_AsString(Index: Word): WideString; safecall;
    function Get_ByNameAsSmallint(const Name: WideString): Smallint; safecall;
    function Get_ByNameAsInteger(const Name: WideString): Integer; safecall;
    function Get_ByNameAsSingle(const Name: WideString): Single; safecall;
    function Get_ByNameAsDouble(const Name: WideString): Double; safecall;
    function Get_ByNameAsInt64(const Name: WideString): Int64; safecall;
    function Get_ByNameAsString(const Name: WideString): WideString; safecall;
    function Get_ByNameAsVariant(const Name: WideString): OleVariant; safecall;
    function Get_FieldCount: Integer; safecall;
    function Get_AliasName(Index: Word): WideString; safecall;
    function Get_AsBoolean(Index: Word): WordBool; safecall;
    function Get_ByNameAsBoolean(const Name: WideString): WordBool; safecall;
    function Get_AsDateTime(Index: Word): TDateTime; safecall;
    function Get_ByNameAsDateTime(const Name: WideString): TDateTime; safecall;
    property FetchBlobs: WordBool read Get_FetchBlobs write Set_FetchBlobs;
    property CachedFetch: WordBool read Get_CachedFetch write Set_CachedFetch;
    property QuickScript: WordBool read Get_QuickScript write Set_QuickScript;
    property EOF: WordBool read Get_EOF;
    property Transaction: ITransaction read Get_Transaction write Set_Transaction;
    property AsVariant[Index: Word]: OleVariant read Get_AsVariant;
    property SQL: WideString read Get_SQL write Set_SQL;
    property AsInteger[Index: Word]: Integer read Get_AsInteger;
    property AsSmallint[Index: Word]: Smallint read Get_AsSmallint;
    property AsSingle[Index: Word]: Single read Get_AsSingle;
    property AsDouble[Index: Word]: Double read Get_AsDouble;
    property AsInt64[Index: Word]: Int64 read Get_AsInt64;
    property AsString[Index: Word]: WideString read Get_AsString;
    property ByNameAsSmallint[const Name: WideString]: Smallint read Get_ByNameAsSmallint;
    property ByNameAsInteger[const Name: WideString]: Integer read Get_ByNameAsInteger;
    property ByNameAsSingle[const Name: WideString]: Single read Get_ByNameAsSingle;
    property ByNameAsDouble[const Name: WideString]: Double read Get_ByNameAsDouble;
    property ByNameAsInt64[const Name: WideString]: Int64 read Get_ByNameAsInt64;
    property ByNameAsString[const Name: WideString]: WideString read Get_ByNameAsString;
    property ByNameAsVariant[const Name: WideString]: OleVariant read Get_ByNameAsVariant;
    property FieldCount: Integer read Get_FieldCount;
    property AliasName[Index: Word]: WideString read Get_AliasName;
    property AsBoolean[Index: Word]: WordBool read Get_AsBoolean;
    property ByNameAsBoolean[const Name: WideString]: WordBool read Get_ByNameAsBoolean;
    property AsDateTime[Index: Word]: TDateTime read Get_AsDateTime;
    property ByNameAsDateTime[const Name: WideString]: TDateTime read Get_ByNameAsDateTime;
  end;

// *********************************************************************//
// DispIntf:  IQueryDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {82EFAD8B-4406-4455-84F1-A911D2C6C0D1}
// *********************************************************************//
  IQueryDisp = dispinterface
    ['{82EFAD8B-4406-4455-84F1-A911D2C6C0D1}']
    property FetchBlobs: WordBool dispid 202;
    property CachedFetch: WordBool dispid 203;
    property QuickScript: WordBool dispid 204;
    property EOF: WordBool readonly dispid 206;
    procedure Open; dispid 207;
    procedure ExecSQL; dispid 208;
    procedure Close(Mode: Integer); dispid 209;
    procedure Next; dispid 210;
    procedure FetchAll; dispid 211;
    procedure SQLAddLine(const Str: WideString); dispid 212;
    property Transaction: ITransaction dispid 213;
    property AsVariant[Index: {??Word}OleVariant]: OleVariant readonly dispid 201;
    property SQL: WideString dispid 205;
    property AsInteger[Index: {??Word}OleVariant]: Integer readonly dispid 214;
    property AsSmallint[Index: {??Word}OleVariant]: Smallint readonly dispid 215;
    property AsSingle[Index: {??Word}OleVariant]: Single readonly dispid 216;
    property AsDouble[Index: {??Word}OleVariant]: Double readonly dispid 217;
    property AsInt64[Index: {??Word}OleVariant]: {??Int64}OleVariant readonly dispid 218;
    property AsString[Index: {??Word}OleVariant]: WideString readonly dispid 219;
    property ByNameAsSmallint[const Name: WideString]: Smallint readonly dispid 220;
    property ByNameAsInteger[const Name: WideString]: Integer readonly dispid 221;
    property ByNameAsSingle[const Name: WideString]: Single readonly dispid 222;
    property ByNameAsDouble[const Name: WideString]: Double readonly dispid 223;
    property ByNameAsInt64[const Name: WideString]: {??Int64}OleVariant readonly dispid 224;
    property ByNameAsString[const Name: WideString]: WideString readonly dispid 225;
    property ByNameAsVariant[const Name: WideString]: OleVariant readonly dispid 226;
    property FieldCount: Integer readonly dispid 227;
    property AliasName[Index: {??Word}OleVariant]: WideString readonly dispid 228;
    property AsBoolean[Index: {??Word}OleVariant]: WordBool readonly dispid 229;
    property ByNameAsBoolean[const Name: WideString]: WordBool readonly dispid 230;
    property AsDateTime[Index: {??Word}OleVariant]: TDateTime readonly dispid 231;
    property ByNameAsDateTime[const Name: WideString]: TDateTime readonly dispid 232;
  end;

// *********************************************************************//
// The Class CoDatabase provides a Create and CreateRemote method to          
// create instances of the default interface IDatabase exposed by              
// the CoClass Database. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  CoDatabase = class
    class function Create: IDatabase;
    class function CreateRemote(const MachineName: string): IDatabase;
  end;

// *********************************************************************//
// The Class CoTransaction provides a Create and CreateRemote method to          
// create instances of the default interface ITransaction exposed by              
// the CoClass Transaction. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  CoTransaction = class
    class function Create: ITransaction;
    class function CreateRemote(const MachineName: string): ITransaction;
  end;

// *********************************************************************//
// The Class CoQuery provides a Create and CreateRemote method to          
// create instances of the default interface IQuery exposed by              
// the CoClass Query. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  CoQuery = class
    class function Create: IQuery;
    class function CreateRemote(const MachineName: string): IQuery;
  end;

implementation

uses ComObj;

class function CoDatabase.Create: IDatabase;
begin
  Result := CreateComObject(CLASS_Database) as IDatabase;
end;

class function CoDatabase.CreateRemote(const MachineName: string): IDatabase;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_Database) as IDatabase;
end;

class function CoTransaction.Create: ITransaction;
begin
  Result := CreateComObject(CLASS_Transaction) as ITransaction;
end;

class function CoTransaction.CreateRemote(const MachineName: string): ITransaction;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_Transaction) as ITransaction;
end;

class function CoQuery.Create: IQuery;
begin
  Result := CreateComObject(CLASS_Query) as IQuery;
end;

class function CoQuery.CreateRemote(const MachineName: string): IQuery;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_Query) as IQuery;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -