Navigation:  Advantage TDataSet Descendant > Developing and Distributing Applications >

Transaction Processing with the Advantage TDataSet Descendant

Advantage TDataSet Descendant

Previous pageReturn to chapter overviewNext page

Advantage Transaction Processing is aligned with the existing Delphi scheme as much as possible.

 

The Advantage TAdsConnection component has encapsulated Advantage Transaction Processing in the Advantage TDataSet Descendant solution. Use the TAdsConnection component to perform transaction processing with the Advantage TDataSet Descendant solution. The TAdsConnection methods and property applicable to transaction processing are:

 

TAdsConnection.BeginTransaction

Begins a transaction for all tables associated with the instance of TAdsConnection.

 

TAdsConnection.Rollback

Aborts a transaction. Any updates, deletes, and inserts issued since the transaction began will be aborted.

 

TAdsConnection.Commit

Commits the changes since the transaction began.

 

TAdsConnection.TransactionActive

Boolean property to indicate if a transaction is active.

 

TAdsConnection.TransactionCount

Returns the current transaction nesting level.