public class PersistenceExceptionTranslationAdvisor extends AbstractPointcutAdvisor
DataAccessException
,
PersistenceExceptionTranslator
,
Serialized FormHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
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()
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, java.lang.Class<? extends java.lang.annotation.Annotation> repositoryAnnotationType)
persistenceExceptionTranslator
- the PersistenceExceptionTranslator to userepositoryAnnotationType
- the annotation type to check forpublic Advice getAdvice()
Advisor
MethodInterceptor
,
BeforeAdvice
,
ThrowsAdvice
,
AfterReturningAdvice
public Pointcut getPointcut()
PointcutAdvisor