org.springframework.dao.support
public class: PersistenceExceptionTranslationInterceptor [javadoc |
source]
java.lang.Object
org.springframework.dao.support.PersistenceExceptionTranslationInterceptor
All Implemented Interfaces:
BeanFactoryAware, org.aopalliance.intercept.MethodInterceptor, InitializingBean
AOP Alliance MethodInterceptor that provides persistence exception translation
based on a given PersistenceExceptionTranslator.
Delegates to the given PersistenceExceptionTranslator to translate
a RuntimeException thrown into Spring's DataAccessException hierarchy
(if appropriate). If the RuntimeException in question is declared on the
target method, it is always propagated as-is (with no translation applied).