public class TransactionInfo extends Object
| Constructor and Description |
|---|
TransactionInfo() |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getRollbackException()
Returns Exception responsible for rollback if one is thrown while transaction is active
|
javax.persistence.EntityTransaction |
getTransaction()
Returns enclosing entity transaction
|
boolean |
isUserTransaction()
Returns true if user transaction
|
void |
setEntityTransaction(javax.persistence.EntityTransaction entityTransaction)
Set enclosing entity transaction
|
void |
setRollbackException(Throwable rollbackException)
Set Exception responsible for rollback if one is thrown while transaction is active
|
void |
setUserTransaction(boolean isUserTransaction)
Set user transaction flag
|
public void setEntityTransaction(javax.persistence.EntityTransaction entityTransaction)
entityTransaction - EntityTransactionpublic javax.persistence.EntityTransaction getTransaction()
public void setRollbackException(Throwable rollbackException)
rollbackException - Throwablepublic Throwable getRollbackException()
public boolean isUserTransaction()
public void setUserTransaction(boolean isUserTransaction)
isUserTransaction - booleanThis documentation is licensed by Andrew Bowley under the GPLv3 License.