pascalSCADA OPM: HMIDBConnection: Class THMIDBConnection

Pascal SCADA OPM

Class THMIDBConnection

Unit

HMIDBConnection

Declaration

type THMIDBConnection = class(TComponent, IHMIDBConnection)

Description

THMIDBConnection

Hierarchy

  • TComponent
  • THMIDBConnection

Overview

Fields

Protected FProtocol: string;
Protected FHostName: string;
Protected FPort: LongInt;
Protected FDatabase: string;
Protected FUser: string;
Protected FPassword: string;
Protected FCatalog: string;
Protected FProperties:TStringList;

Methods

Protected procedure Loaded; override;
Protected function GetConnected:Boolean;
Protected procedure SetConnected(x:Boolean);
Protected procedure SetProtocol(x: String);
Protected procedure SetHostName(x: String);
Protected procedure SetPort(x: LongInt);
Protected procedure SetDatabase(x: String);
Protected procedure SetUser(x: String);
Protected procedure SetPassword(x: String);
Protected procedure SetCatalog(x: String);
Protected procedure StartTransaction;
Protected procedure CommitTransaction;
Protected procedure RollBackTransaction;
Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure ExecSQL(sql:String; ReturnDatasetCallback:TReturnDataSetProc; ReturnSync:Boolean=true);
Public procedure ExecTransaction(statements:THMIDBConnectionStatementList; ReturnTransactionResult:TReturnTransactionStatementsProc; FreeStatemensAfterExecute:Boolean; ReturnSync:Boolean=true);

Properties

Published property Connected: Boolean read GetConnected write SetConnected;
Published property LibraryLocation: String read FLibraryLocation write SetLibraryLocation nodefault;
Published property Protocol: string read FProtocol write SetProtocol;
Published property HostName: string read FHostName write SetHostName;
Published property Port: LongInt read FPort write SetPort default 0;
Published property Properties: TStrings read getProperties write SetProperties;
Published property Database: string read FDatabase write SetDatabase;
Published property User: string read FUser write SetUser;
Published property Password: string read FPassword write SetPassword;
Published property Catalog: string read FCatalog write SetCatalog;
Published property ReadOnly: Boolean read FReadOnly write SetReadOnly;

Description

Fields

Protected FProtocol: string;
 
Protected FHostName: string;
 
Protected FPort: LongInt;
 
Protected FDatabase: string;
 
Protected FUser: string;
 
Protected FPassword: string;
 
Protected FCatalog: string;
 
Protected FProperties:TStringList;
 

Methods

Protected procedure Loaded; override;
 
Protected function GetConnected:Boolean;
 
Protected procedure SetConnected(x:Boolean);
 
Protected procedure SetProtocol(x: String);
 
Protected procedure SetHostName(x: String);
 
Protected procedure SetPort(x: LongInt);
 
Protected procedure SetDatabase(x: String);
 
Protected procedure SetUser(x: String);
 
Protected procedure SetPassword(x: String);
 
Protected procedure SetCatalog(x: String);
 
Protected procedure StartTransaction;
 
Protected procedure CommitTransaction;
 
Protected procedure RollBackTransaction;
 
Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public procedure ExecSQL(sql:String; ReturnDatasetCallback:TReturnDataSetProc; ReturnSync:Boolean=true);
 
Public procedure ExecTransaction(statements:THMIDBConnectionStatementList; ReturnTransactionResult:TReturnTransactionStatementsProc; FreeStatemensAfterExecute:Boolean; ReturnSync:Boolean=true);
 

Properties

Published property Connected: Boolean read GetConnected write SetConnected;

: If true, connects or are connected on database.

Published property LibraryLocation: String read FLibraryLocation write SetLibraryLocation nodefault;

: If true, connects or are connected on database.

Published property Protocol: string read FProtocol write SetProtocol;

: Database protocol driver used to connect on database.

Published property HostName: string read FHostName write SetHostName;

: Address or machine name where is the database.

Published property Port: LongInt read FPort write SetPort default 0;

: Port number to connect on database (TCP/UDP connections)

Published property Properties: TStrings read getProperties write SetProperties;

: Connections properties.

Published property Database: string read FDatabase write SetDatabase;

: Database name.

Published property User: string read FUser write SetUser;

: Username to connect on database.

Published property Password: string read FPassword write SetPassword;

: Password of the user to connect on database.

Published property Catalog: string read FCatalog write SetCatalog;

: See the documentation of TZConnection.Catalog of ZeosLib for more information.

Published property ReadOnly: Boolean read FReadOnly write SetReadOnly;

: See the documentation of TZConnection.ReadOnly of ZeosLib for more information.


Generated by PasDoc 0.14.0.