@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 and Description |
|---|
LocalTransactionInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beginJta() |
protected void |
endJta(boolean isExternaTransaction,
boolean commit) |
protected Transactional |
getTransactionalAnnotation(javax.interceptor.InvocationContext ctx) |
Object |
invoke(javax.interceptor.InvocationContext ctx) |
protected boolean |
isTransactionActive() |
public Object invoke(javax.interceptor.InvocationContext ctx) throws Exception
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–2017 MyBatis.org. All rights reserved.