SerializableJtaTransactionInterceptor@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 Form| Constructor | 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
SystemExceptionprotected void beginJta()
throws NotSupportedException,
SystemException
NotSupportedExceptionSystemExceptionprotected 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.