AOP MethodInterceptor that provides persistence exception translation based on a given PersistenceExceptionTranslator.
Delegates to the given IPersistenceExceptionTranslator to translate an Exception thrown into Spring's DataAccessException hierarchy (if appropriate).
Inheritance: IMethodInterceptor, IObjectFactoryAware, IInitializingObject
 /// <summary>
 /// Initializes a new instance of the <see cref="PersistenceExceptionTranslationAdvisor"/> class.
 /// </summary>
 /// <param name="objectFactory">The object factory to obtain all IPersistenceExceptionTranslators from.</param>
 /// <param name="repositoryAttributeType">Type of the repository attribute to check for.</param>
 public PersistenceExceptionTranslationAdvisor(IListableObjectFactory objectFactory, Type repositoryAttributeType)
 {
     this.advice = new PersistenceExceptionTranslationInterceptor(objectFactory);
     this.pointcut = new AttributeMatchingPointcut(repositoryAttributeType, true);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PersistenceExceptionTranslationAdvisor"/> class.
 /// </summary>
 /// <param name="persistenceExceptionTranslator">The persistence exception translator to use.</param>
 /// <param name="repositoryAttributeType">Type of the repository attribute to check for.</param>
 public PersistenceExceptionTranslationAdvisor(IPersistenceExceptionTranslator persistenceExceptionTranslator,
     Type repositoryAttributeType)
 {
     this.advice = new PersistenceExceptionTranslationInterceptor(persistenceExceptionTranslator);
     this.pointcut = new AttributeMatchingPointcut(repositoryAttributeType, true);
 }