company logo

DataSource :: beginTransaction - Start transaction for the data source

Data sources provide simple transaction control. Data source transactions cannot be nested, i.e. when a transaction has been started, no other data source transaction can be started for the same data source.

Using nested transactions is possible with the ObjectSpace handle.

Implementation details

DataSource  :: beginTransaction ( bool bExternalTA )

Calling the function starts a transaction for the data source. For running very long transactions, the external transaction option should be passed as true. External transactions use external storage for storing the transaction.

  • bExternalTA - External transaction

    In order to start the transaction as external transaction, true must be passed. For an external transaction all modification are stored to an external transaction base. When passing false the transaction is started as internal transaction, i.e. the modifications are stored in memory.