Table of Contents

TCloningMode Enumeration

Specifies how the adapted connection component is cloned when TAureliusConnection.CreateConnection creates a new IDBConnection interface in adapter mode.

Remarks

When CreateConnection is called, Aurelius needs an independent copy of the underlying data-access component so that each IDBConnection has its own connection state. TCloningMode controls which strategy is used to produce that copy.

Syntax

Unit: Aurelius.Comp.Connection

Members

Name Value Description
Rtti 0 Clones the adapted connection by copying all published properties and events using RTTI. This is the default mode.
Owner 1 Clones the owner component of the adapted connection. The cloned connection is then located by name inside the cloned owner. Useful when the connection component has dependencies on other components in the same owner (e.g., a data module).
Streaming 2 Clones the adapted connection by serialising it to a memory stream and deserialising it back using Delphi's component streaming mechanism.