public class EntityTransactionImpl extends EntityTransactionImpl implements javax.persistence.EntityTransaction
EntityTransactionImplactive, 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, setRollbackOnlypublic EntityTransactionImpl(EntityTransactionWrapper wrapper)
public void commit()
EntityTransactionImpl.isActive() returns true.commit in interface javax.persistence.EntityTransactioncommit in class EntityTransactionImpljava.lang.IllegalStateException - if isActive() is false.PersistenceException - if the commit fails.