public interface Transaction extends AutoCloseable
Transactionable.transaction()
.Modifier and Type | Method and Description |
---|---|
boolean |
active() |
Transaction |
begin()
Begins the transaction.
|
Transaction |
begin(TransactionIsolation isolation)
Begins the transaction.
|
void |
close()
Closes the transaction.
|
void |
commit()
Commit the current transaction.
|
void |
rollback()
Rollback the transaction.
|
Transaction begin()
IllegalStateException
will be thrown.Transaction begin(TransactionIsolation isolation)
IllegalStateException
will be thrown.isolation
- desired isolation level for the transaction (null for the default).void commit()
void rollback()
boolean active()
void close()
close
in interface AutoCloseable