Class EntityTransactionManagerImpl
- java.lang.Object
-
- org.apache.tapestry5.internal.jpa.EntityTransactionManagerImpl
-
- All Implemented Interfaces:
EntityTransactionManager
@Scope("perthread") public class EntityTransactionManagerImpl extends Object implements EntityTransactionManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.tapestry5.jpa.EntityTransactionManager
EntityTransactionManager.VoidInvokable
-
-
Constructor Summary
Constructors Constructor Description EntityTransactionManagerImpl(org.slf4j.Logger logger, EntityManagerManager entityManagerManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
EntityTransactionManagerImpl
public EntityTransactionManagerImpl(org.slf4j.Logger logger, EntityManagerManager entityManagerManager)
-
-
Method Detail
-
runInTransaction
public void runInTransaction(String unitName, Runnable runnable)
- Specified by:
runInTransaction
in interfaceEntityTransactionManager
-
invokeInTransaction
public <T> T invokeInTransaction(String unitName, Invokable<T> invokable)
- Specified by:
invokeInTransaction
in interfaceEntityTransactionManager
-
invokeBeforeCommit
public void invokeBeforeCommit(String unitName, Invokable<Boolean> invokable)
- Specified by:
invokeBeforeCommit
in interfaceEntityTransactionManager
-
invokeAfterCommit
public void invokeAfterCommit(String unitName, Invokable<Boolean> invokable)
- Specified by:
invokeAfterCommit
in interfaceEntityTransactionManager
-
-