Serializable
JtaTransactionInterceptor
@Interceptor public class LocalTransactionInterceptor extends Object implements Serializable
SqlSssionManager
and starts
transactions on all them. It cannot guarantee atomiticy if there is more than one SqlSssionManager
. Use XA
drivers, a JTA container and the JtaTransactionInterceptor
in that case.JtaTransactionInterceptor
,
Serialized FormConstructor | Description |
---|---|
LocalTransactionInterceptor() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
beginJta() |
|
protected void |
endJta(boolean isExternaTransaction,
boolean commit) |
|
protected Transactional |
getTransactionalAnnotation(javax.interceptor.InvocationContext ctx) |
|
Object |
invoke(javax.interceptor.InvocationContext ctx) |
Invoke.
|
protected boolean |
isTransactionActive() |
public Object invoke(javax.interceptor.InvocationContext ctx) throws Exception
ctx
- the ctxException
- the exceptionprotected boolean isTransactionActive() throws SystemException
SystemException
protected void beginJta() throws NotSupportedException, SystemException
NotSupportedException
SystemException
protected void endJta(boolean isExternaTransaction, boolean commit) throws SystemException, RollbackException, HeuristicMixedException, HeuristicRollbackException
protected Transactional getTransactionalAnnotation(javax.interceptor.InvocationContext ctx)
Copyright © 2013–2018 MyBatis.org. All rights reserved.