public class PersistenceExceptionTranslationAdvisor extends AbstractPointcutAdvisor
DataAccessException
,
PersistenceExceptionTranslator
,
Serialized FormEMPTY_ADVICE
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
PersistenceExceptionTranslationAdvisor(PersistenceExceptionTranslator persistenceExceptionTranslator,
Class<? extends Annotation> repositoryAnnotationType)
Create a new PersistenceExceptionTranslationAdvisor.
|
Modifier and Type | Method and Description |
---|---|
Advice |
getAdvice()
Return the advice part of this aspect.
|
Pointcut |
getPointcut()
Get the Pointcut that drives this advisor.
|
equals, getOrder, hashCode, isPerInstance, setOrder
public PersistenceExceptionTranslationAdvisor(PersistenceExceptionTranslator persistenceExceptionTranslator, Class<? extends Annotation> repositoryAnnotationType)
persistenceExceptionTranslator
- the PersistenceExceptionTranslator to userepositoryAnnotationType
- the annotation type to check forpublic Advice getAdvice()
Advisor
MethodInterceptor
,
BeforeAdvice
,
ThrowsAdvice
,
AfterReturningAdvice
public Pointcut getPointcut()
PointcutAdvisor