public class PersistenceExceptionTranslationAdvisor
extends org.springframework.aop.support.AbstractPointcutAdvisor
DataAccessException,
PersistenceExceptionTranslator,
Serialized Form| Constructor and Description |
|---|
PersistenceExceptionTranslationAdvisor(PersistenceExceptionTranslator persistenceExceptionTranslator,
java.lang.Class<? extends java.lang.annotation.Annotation> repositoryAnnotationType)
Create a new PersistenceExceptionTranslationAdvisor.
|
| Modifier and Type | Method and Description |
|---|---|
Advice |
getAdvice() |
org.springframework.aop.Pointcut |
getPointcut() |
public PersistenceExceptionTranslationAdvisor(PersistenceExceptionTranslator persistenceExceptionTranslator, java.lang.Class<? extends java.lang.annotation.Annotation> repositoryAnnotationType)
persistenceExceptionTranslator - the PersistenceExceptionTranslator to userepositoryAnnotationType - the annotation type to check forpublic Advice getAdvice()
public org.springframework.aop.Pointcut getPointcut()