Represents a transaction that needs to be explicitly managed using commit and roll back operations. Can be used for selecting, inserting, updating, and deleting data.

Methods

Name

Description

void Close()

Rolls back a transaction from a pending state and closes the transaction.

void Commit()

Commits the transaction.

Command CreateCommand(string sql)

Creates a command to be executed in this transaction.

Command CreateCommand()

Creates an empty command to be executed in this transaction.

void Dispose()

Releases the transaction and frees the resources used by this object.

Connection GetConnection()

Gets the database connection associated with this transaction.

IDbTransaction GetDriverTransaction()

Returns the native transaction object used by the stack in which the application is running. It allows to reuse existing code that receives a native transaction object as parameter.

void Rollback()

Rolls back a transaction from a pending state.

Methods

Name

Description

void close()

Rolls back a transaction from a pending state and closes the transaction.

void commit()

Commits the transaction.

Command createCommand(String sql)

Creates a command to be executed in this transaction.

Command createCommand()

Creates an empty command to be executed in this transaction.

void dispose()

Releases the transaction and frees the resources used by this object.

Connection getConnection()

Gets the database connection associated with this transaction.

ADOTransaction getDriverTransaction()

Returns the native transaction object used by the stack in which the application is running. It allows to reuse existing code that receives a native transaction object as parameter.

void rollback()

Rolls back a transaction from a pending state.

See Also

Overview of RuntimePublic.Db API | About APIs