currentOrNew

fun currentOrNew(isolation: Int): Transaction

Returns the current Transaction, or creates a new transaction with the provided isolation level.