com.pmease.quickbuild.persistence
Class SessionInterceptor

java.lang.Object
  extended by com.pmease.quickbuild.persistence.SessionInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class SessionInterceptor
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor

We've removed transactional demarcation for read only methods since the non-transactional access is much more faster than transactional access.


Constructor Summary
SessionInterceptor()
           
 
Method Summary
static org.hibernate.Session getSession()
           
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation mi)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionInterceptor

public SessionInterceptor()
Method Detail

invoke

public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation mi)
                        throws java.lang.Throwable
Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
java.lang.Throwable

getSession

public static org.hibernate.Session getSession()


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.