public class TransactionImpl extends Object implements EntityTransaction
| Constructor and Description |
|---|
TransactionImpl(AbstractEntityManagerImpl entityManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Start a resource transaction.
|
void |
commit()
Commit the current resource transaction, writing any
unflushed changes to the database.
|
boolean |
getRollbackOnly()
Determine whether the current resource transaction has been
marked for rollback.
|
boolean |
isActive()
Indicate whether a resource transaction is in progress.
|
void |
rollback()
Roll back the current resource transaction.
|
void |
setRollbackOnly()
Mark the current resource transaction so that the only
possible outcome of the transaction is for the transaction
to be rolled back.
|
public TransactionImpl(AbstractEntityManagerImpl entityManager)
public void begin()
EntityTransactionbegin in interface EntityTransactionpublic void commit()
EntityTransactioncommit in interface EntityTransactionpublic void rollback()
EntityTransactionrollback in interface EntityTransactionpublic void setRollbackOnly()
EntityTransactionsetRollbackOnly in interface EntityTransactionpublic boolean getRollbackOnly()
EntityTransactiongetRollbackOnly in interface EntityTransactionpublic boolean isActive()
EntityTransactionisActive in interface EntityTransactionCopyright © 2017 JBoss by Red Hat. All rights reserved.