Freeze Slice API Reference
Operations | List of all members
Freeze::Transaction Local Interface Reference

A transaction. More...

defined in <Freeze/Transaction.ice>

local interface Transaction { ... }

Operations

void commit ()
 Commit this transaction. More...
 
Connection getConnection ()
 Get the connection associated with this transaction. More...
 
void rollback ()
 Roll back this transaction. More...
 

Detailed Description

A transaction.

If you want to use a transaction concurrently in multiple threads, you need to serialize access to this transaction.

Operation Documentation

◆ commit()

void commit ( )

Commit this transaction.

Exceptions
DatabaseExceptionRaised if a database failure occurred.

◆ getConnection()

["cpp:const"]
Connection getConnection ( )

Get the connection associated with this transaction.

Returns
The connection.

◆ rollback()

void rollback ( )

Roll back this transaction.

Exceptions
DatabaseExceptionRaised if a database failure occurred.

The documentation for this interface was generated from the following file: