Represents the transaction that is automatically managed by the platform. The transaction starts at the beginning of the web request, and is committed when the response is sent to the client. Can be used for selecting, inserting, updating, and deleting data.

Methods

Name

Description

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 data object as parameter.

void Release()

Checks if the transaction exists, and frees the resources associated with it. Since this transaction is automatically managed by the platform, no commit or rollback operations are performed when releasing the transaction.

Methods

Name

Description

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 data object as parameter.

void release()

Checks if the transaction exists, and frees the resources associated with it. Since this transaction is automatically managed by the platform, no commit or rollback operations are performed when releasing the transaction.

See Also

Overview of RuntimePublic.Db API | About APIs