public class EntityTransactionImpl extends EntityTransactionImpl implements javax.persistence.EntityTransaction
EntityTransactionImpl
active, rollbackOnly, wrapper
Constructor and Description |
---|
EntityTransactionImpl(EntityTransactionWrapper wrapper) |
Modifier and Type | Method and Description |
---|---|
void |
commit()
Commit the current transaction, writing any un-flushed changes to the database.
|
begin, finalize, getRollbackOnly, isActive, rollback, setRollbackOnly
public EntityTransactionImpl(EntityTransactionWrapper wrapper)
public void commit()
EntityTransactionImpl.isActive()
returns true
.commit
in interface javax.persistence.EntityTransaction
commit
in class EntityTransactionImpl
java.lang.IllegalStateException
- if isActive() is false.PersistenceException
- if the commit fails.