TDAConnection

Overview

The TDAConnection class holds information about connections: the name, the description, the type, the connection string and other information.

The TDAConnectionManager manages connections and creates an IDAConnection interface based on the TDAConnection class.

Location

  • Unit: uDAConnections.pas
  • Ancestry: TCollectionItem | TDAConnection


 

Assign  override

Copies the contents of another, similar object.

procedure Assign(aSource: TPersistent)

Parameters:

  • aSource: Instance whose properties will be copied

ConnectionString

The Connection string specifies information about a data source and the means of connecting to it.

property ConnectionString: string read write

ConnectionType

This property is user-editable and arbitrary values can be used to logically group connections that use similar statements.

property ConnectionType: string read write

Default

Specifies whether this connection will be used by default.

property Default: Boolean read write

Description

Description

property Description: string read write

GetConnectionString  protected virtual

Returns the Connection string.

function GetConnectionString: string

GetDisplayName  protected override

Returns the name of the connection as it appears in the collection editor.

function GetDisplayName: string

Name

Connection name

property Name: string read write

SetConnectionString  protected virtual

Sets the Connection string.

procedure SetConnectionString(const aValue: string)

Parameters:

  • aValue: given connection string.

SetDisplayName  protected override

Sets the name of the connection as it appears in the collection editor.

procedure SetDisplayName(const Value: string)

Parameters:

  • Value: value for the Name property

Tag

Tag

property Tag: Integer read write

 

ConnectionString

The Connection string specifies information about a data source and the means of connecting to it.

property ConnectionString: string read write

ConnectionType

This property is user-editable and arbitrary values can be used to logically group connections that use similar statements.

property ConnectionType: string read write

Default

Specifies whether this connection will be used by default.

property Default: Boolean read write

Description

Description

property Description: string read write

Name

Connection name

property Name: string read write

Tag

Tag

property Tag: Integer read write

 

Assign  override

Copies the contents of another, similar object.

procedure Assign(aSource: TPersistent)

Parameters:

  • aSource: Instance whose properties will be copied

GetConnectionString  protected virtual

Returns the Connection string.

function GetConnectionString: string

GetDisplayName  protected override

Returns the name of the connection as it appears in the collection editor.

function GetDisplayName: string

SetConnectionString  protected virtual

Sets the Connection string.

procedure SetConnectionString(const aValue: string)

Parameters:

  • aValue: given connection string.

SetDisplayName  protected override

Sets the name of the connection as it appears in the collection editor.

procedure SetDisplayName(const Value: string)

Parameters:

  • Value: value for the Name property