- java.lang.Object
-
- com.appslandia.common.junit.jpa.TestTxInterceptor
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MandatoryTestTxInterceptor,NeverTestTxInterceptor,NotSupportedTestTxInterceptor,RequiredTestTxInterceptor,RequiresNewTestTxInterceptor,SupportsTestTxInterceptor
public abstract class TestTxInterceptor extends Object implements Serializable
- Author:
- Loc Ha
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected TestEmfControltestEmfControl
-
Constructor Summary
Constructors Constructor Description TestTxInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectdoTran(jakarta.interceptor.InvocationContext context)protected jakarta.persistence.EntityManagergetEm()protected voidsetEm(jakarta.persistence.EntityManager em)protected jakarta.persistence.EntityManagerstoreNewEm()protected booleanwillRollbackOn(Exception ex, Class<?>[] rollbackOn, Class<?>[] dontRollbackOn)
-
-
-
Field Detail
-
testEmfControl
@Inject protected TestEmfControl testEmfControl
-
-
Method Detail
-
doTran
public Object doTran(jakarta.interceptor.InvocationContext context) throws Exception
- Throws:
Exception
-
getEm
protected jakarta.persistence.EntityManager getEm()
-
storeNewEm
protected jakarta.persistence.EntityManager storeNewEm()
-
setEm
protected void setEm(jakarta.persistence.EntityManager em)
-
-