it.amattioli.applicate.context.hibernate
Class TransactionalCommandContext

Show UML class diagram
java.lang.Object
  extended by it.amattioli.applicate.context.hibernate.LongRunningContext
      extended by it.amattioli.applicate.context.hibernate.TransactionalCommandContext
All Implemented Interfaces:
net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.MethodInterceptor

public class TransactionalCommandContext
extends LongRunningContext


Constructor Summary
TransactionalCommandContext(Command decorated)
           
 
Method Summary
protected  void afterMethod(Object object, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy methodProxy)
           
protected  void beforeMethod(Object object, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy methodProxy)
           
static
<T extends Command>
T
newTransaction(T command)
           
 Object perform(Object object, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy methodProxy)
           
 
Methods inherited from class it.amattioli.applicate.context.hibernate.LongRunningContext
getDecorated, getSessionManager, intercept, newLongRunningService, newLongRunningService, setDependenciesContextOn, withCurrentSessionManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionalCommandContext

public TransactionalCommandContext(Command decorated)
Method Detail

newTransaction

public static <T extends Command> T newTransaction(T command)

beforeMethod

protected void beforeMethod(Object object,
                            Method method,
                            Object[] args,
                            net.sf.cglib.proxy.MethodProxy methodProxy)
Overrides:
beforeMethod in class LongRunningContext

afterMethod

protected void afterMethod(Object object,
                           Method method,
                           Object[] args,
                           net.sf.cglib.proxy.MethodProxy methodProxy)
Overrides:
afterMethod in class LongRunningContext

perform

public Object perform(Object object,
                      Method method,
                      Object[] args,
                      net.sf.cglib.proxy.MethodProxy methodProxy)
               throws Throwable
Overrides:
perform in class LongRunningContext
Throws:
Throwable


Copyright © 2011. All Rights Reserved.