com.github.drinkjava2.jtransactions.tinytx
Class TinyTx
java.lang.Object
com.github.drinkjava2.jtransactions.tinytx.TinyTx
- All Implemented Interfaces:
- Advice, Interceptor, MethodInterceptor
public class TinyTx
- extends Object
- implements MethodInterceptor
A transaction MethodInterceptor
- Since:
- 1.0.0
- Author:
- Yong Zhu
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TinyTx
public TinyTx()
TinyTx
public TinyTx(DataSource ds)
TinyTx
public TinyTx(DataSource ds,
Integer transactionIsolation)
invoke
public Object invoke(MethodInvocation caller)
- Description copied from interface:
MethodInterceptor
- Implement this method to perform extra treatments before and
after the invocation. Polite implementations would certainly
like to invoke
Joinpoint.proceed().
- Specified by:
invoke in interface MethodInterceptor
- Parameters:
caller - the method invocation joinpoint
- Returns:
- the result of the call to
Joinpoint.proceed();
might be intercepted by the interceptor
Copyright © 2018. All rights reserved.