public interface TransactionManagerAdapter
Modifier and Type | Method and Description |
---|---|
void |
begin()
Create a new transaction and associate it with
the current thread.
|
void |
commit()
Complete the transaction associated with the
current thread.
|
int |
getStatus()
Obtain the status of the transaction associated
with the current thread.
|
void |
rollback()
Roll back the transaction associated with the
current thread.
|
void |
setRollbackOnly()
Modify the transaction associated with the current
thread such that the only possible outcome of the
transaction is to roll back the transaction.
|
void |
setTransactionTimeout(int arg0)
Modify the value of the timeout value that is
associated with the transactions started by the
current thread with the begin method.
|
void begin()
void commit()
int getStatus()
void rollback()
void setRollbackOnly()
void setTransactionTimeout(int arg0)
arg0
- seconds - The value of the timeout
in seconds. If the value is zero, the transaction
service restores the default value.Copyright © 2017 The Apache Software Foundation. All rights reserved.