public class TransactionalMethodInterceptor extends Object implements org.aopalliance.intercept.MethodInterceptor
User: andy Date: 8/13/12 Time: 2:19 PM
| Constructor and Description |
|---|
TransactionalMethodInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation)
Starts a jdbc transaction if a transaction doesnt already exist.
|
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorinvocation - the method invocation joinpointJoinpoint.proceed(), might be intercepted by the
interceptor.Throwable - if the interceptors or the
target-object throws an exception.
IllegalStateException if there already exists a connection which is not transactionalCopyright © 2021 NorStella. All rights reserved.