| |
|
| java.lang.Object org.springframework.dao.support.PersistenceExceptionTranslationInterceptor
PersistenceExceptionTranslationInterceptor | public class PersistenceExceptionTranslationInterceptor implements MethodInterceptor,BeanFactoryAware,InitializingBean(Code) | | 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).
author: Rod Johnson author: Juergen Hoeller since: 2.0 See Also: PersistenceExceptionTranslator |
PersistenceExceptionTranslationInterceptor | public PersistenceExceptionTranslationInterceptor(PersistenceExceptionTranslator persistenceExceptionTranslator)(Code) | | Create a new PersistenceExceptionTranslationInterceptor
for the given PersistenceExceptionTranslator.
Parameters: persistenceExceptionTranslator - the PersistenceExceptionTranslator to use |
PersistenceExceptionTranslationInterceptor | public PersistenceExceptionTranslationInterceptor(ListableBeanFactory beanFactory)(Code) | | Create a new PersistenceExceptionTranslationInterceptor, autodetecting
PersistenceExceptionTranslators in the given BeanFactory.
Parameters: beanFactory - the ListableBeanFactory to obtaining allPersistenceExceptionTranslators from |
afterPropertiesSet | public void afterPropertiesSet()(Code) | | |
detectPersistenceExceptionTranslators | protected PersistenceExceptionTranslator detectPersistenceExceptionTranslators(ListableBeanFactory beanFactory)(Code) | | Detect all PersistenceExceptionTranslators in the given BeanFactory.
Parameters: beanFactory - the ListableBeanFactory to obtaining allPersistenceExceptionTranslators from a chained PersistenceExceptionTranslator, combining allPersistenceExceptionTranslators found in the factory See Also: ChainedPersistenceExceptionTranslator |
|
|
|