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()
EntityTransaction
begin
in interface EntityTransaction
public void commit()
EntityTransaction
commit
in interface EntityTransaction
public void rollback()
EntityTransaction
rollback
in interface EntityTransaction
public void setRollbackOnly()
EntityTransaction
setRollbackOnly
in interface EntityTransaction
public boolean getRollbackOnly()
EntityTransaction
getRollbackOnly
in interface EntityTransaction
public boolean isActive()
EntityTransaction
isActive
in interface EntityTransaction
Copyright © 2017 JBoss by Red Hat. All rights reserved.