public interface

Transaction

org.apache.ibatis.transaction.Transaction
Known Indirect Subclasses

Class Overview

Wraps a database connection. Handles the connection lifecycle that comprises: its creation, preparation, commit/rollback and close.

Summary

Public Methods
abstract void close()
Close inner database connection.
abstract void commit()
Commit inner database connection.
abstract Connection getConnection()
Retrieve inner database connection
abstract Integer getTimeout()
Get transaction timeout if set
abstract void rollback()
Rollback inner database connection.

Public Methods

public abstract void close ()

Close inner database connection.

Throws
SQLException

public abstract void commit ()

Commit inner database connection.

Throws
SQLException

public abstract Connection getConnection ()

Retrieve inner database connection

Returns
  • DataBase connection
Throws
SQLException

public abstract Integer getTimeout ()

Get transaction timeout if set

Throws
SQLException

public abstract void rollback ()

Rollback inner database connection.

Throws
SQLException