org.kuali.rice.core.framework.persistence.jpa
Class NoResultExceptionInterceptor

java.lang.Object
  extended by org.kuali.rice.core.framework.persistence.jpa.NoResultExceptionInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class NoResultExceptionInterceptor
extends Object
implements org.aopalliance.intercept.MethodInterceptor

This is a Spring interceptor that can catch NoSuchResult exceptions from JPA and instead of having to catch every exception from a query, it just returns null as we are used to in OJB.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
NoResultExceptionInterceptor()
           
 
Method Summary
 Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoResultExceptionInterceptor

public NoResultExceptionInterceptor()
Method Detail

invoke

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


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.