Class LocalTransactionInterceptor

java.lang.Object
org.mybatis.cdi.LocalTransactionInterceptor
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JtaTransactionInterceptor

@Interceptor public class LocalTransactionInterceptor extends Object implements Serializable
Best-effort interceptor for local transactions. It locates all the instances of 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.
Author:
Frank David Martínez
See Also: