public class EntityTransactionImpl extends EntityTransactionImpl implements 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
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
begin, getRollbackOnly, isActive, rollback, setRollbackOnly
public EntityTransactionImpl(EntityTransactionWrapper wrapper)
public void commit()
EntityTransactionImpl.isActive()
returns true
.commit
in interface EntityTransaction
commit
in class EntityTransactionImpl
IllegalStateException
- if isActive() is false.PersistenceException
- if the commit fails.Copyright © 2022. All rights reserved.