@Scope(value="perthread") public class EntityTransactionManagerImpl extends Object implements EntityTransactionManager
EntityTransactionManager.VoidInvokable
Constructor and Description |
---|
EntityTransactionManagerImpl(org.slf4j.Logger logger,
EntityManagerManager entityManagerManager) |
Modifier and Type | Method and Description |
---|---|
void |
invokeAfterCommit(String unitName,
Invokable<Boolean> invokable) |
void |
invokeBeforeCommit(String unitName,
Invokable<Boolean> invokable) |
<T> T |
invokeInTransaction(String unitName,
Invokable<T> invokable) |
void |
runInTransaction(String unitName,
Runnable runnable) |
public EntityTransactionManagerImpl(org.slf4j.Logger logger, EntityManagerManager entityManagerManager)
public void runInTransaction(String unitName, Runnable runnable)
runInTransaction
in interface EntityTransactionManager
public <T> T invokeInTransaction(String unitName, Invokable<T> invokable)
invokeInTransaction
in interface EntityTransactionManager
public void invokeBeforeCommit(String unitName, Invokable<Boolean> invokable)
invokeBeforeCommit
in interface EntityTransactionManager
public void invokeAfterCommit(String unitName, Invokable<Boolean> invokable)
invokeAfterCommit
in interface EntityTransactionManager
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.