public interface Transaction<T>
Class giving the ability to start, commit and rollback a transaction.
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
commit() Commit the transaction. |
|
public T |
getNativeTransaction()
|
|
public boolean |
isActive() Whether the transaction is active |
|
public void |
rollback() Rollback the transaction. |
|
public void |
setTimeout(int timeout) Sets the transaction timeout period |
Commit the transaction.
Whether the transaction is active
Rollback the transaction.
Sets the transaction timeout period
timeout
- The timeout