Tx

class Tx(val conn: Connection, isolationLevel: IsolationLevel)

DB Transaction abstraction.

Value Params
conn

connection

class Object
trait Matchable
class Any

Value members

Concrete methods

def begin(): Unit

Begins this transaction.

Begins this transaction.

def commit(): Unit

Commits this transaction.

Commits this transaction.

def isActive(): Boolean

Returns is this transaction active. Since connections from JTA managed DataSource should not be used as-is, we don't care autoCommit/readOnly props.

Returns is this transaction active. Since connections from JTA managed DataSource should not be used as-is, we don't care autoCommit/readOnly props.

Returns

active

def rollback(): Unit

Rolls this transaction back.

Rolls this transaction back.

def rollbackIfActive(): Unit

Rolls this transaction back if this transaction is still active.

Rolls this transaction back if this transaction is still active.

Concrete fields

val conn: Connection