Class Overview
Spring AOP exception translation aspect for use at Repository or DAO layer level.
Translates native persistence exceptions into Spring's DataAccessException hierarchy,
based on a given PersistenceExceptionTranslator.
Public Constructors
public
PersistenceExceptionTranslationAdvisor
(PersistenceExceptionTranslator persistenceExceptionTranslator, Class<? extends Annotation> repositoryAnnotationType)
Create a new PersistenceExceptionTranslationAdvisor.
Parameters
persistenceExceptionTranslator
| the PersistenceExceptionTranslator to use |
repositoryAnnotationType
| the annotation type to check for
|
Public Methods
public
Advice
getAdvice
()