Declaration

TnxDatabaseMapper = class(TnxStateComponent)

 
Description

Component that wraps a collection of database connections. The collection is used to create a unique namespace from database aliases that are not necessarily unique, for instance if you have the same aliasname in both a local and remote server, and want to use a report engine that needs database name uniqueness (e.g. ReportBuilder).

There are two ways of creating the collection; either set the DefaultSession property, which reads in the list of databases connected to the session, or create entries in the Mappings collection.

 
See Also

 
DefaultSession

 
Methods

Create

The text for this method has been generated automatically. This means that it is not documented.

Destroy

The text for this method has been generated automatically. This means that it is not documented.

GetDatabaseForName

From a Mapping Name, returns the corresponding TnxDatabase component.

GetDatabaseNames

Gets the list of Mapping Names (not the real database aliases).

 
Properties

DefaultSession

Set this if you have one session only in your application. The Mappings list is populated from the connected databases.

Mappings

The collection of mappings between unique Mapping Names and databases.

Options

The text for this property has been generated automatically. This means that it is not documented.

 
File

 
nxdbDatabaseMapper

Home | Site Contents | Documentation | NexusDB Manual V4 | Class Reference | Symbol Reference | Classes