Package org.springframework.dao.support

Examples of org.springframework.dao.support.PersistenceExceptionTranslationInterceptor


   */
  public PersistenceExceptionTranslationRepositoryProxyPostProcessor(ListableBeanFactory beanFactory) {

    Assert.notNull(beanFactory, "BeanFactory must not be null!");

    this.interceptor = new PersistenceExceptionTranslationInterceptor();
    this.interceptor.setBeanFactory(beanFactory);
    this.interceptor.afterPropertiesSet();
  }
View Full Code Here


   */
  public PersistenceExceptionTranslationAdvisor(
      PersistenceExceptionTranslator persistenceExceptionTranslator,
      Class<? extends Annotation> repositoryAnnotationType) {

    this.advice = new PersistenceExceptionTranslationInterceptor(persistenceExceptionTranslator);
    this.pointcut = new AnnotationMatchingPointcut(repositoryAnnotationType, true);
  }
View Full Code Here

   * @param repositoryAnnotationType the annotation type to check for
   */
  PersistenceExceptionTranslationAdvisor(
      ListableBeanFactory beanFactory, Class<? extends Annotation> repositoryAnnotationType) {

    this.advice = new PersistenceExceptionTranslationInterceptor(beanFactory);
    this.pointcut = new AnnotationMatchingPointcut(repositoryAnnotationType, true);
  }
View Full Code Here

   */
  public PersistenceExceptionTranslationAdvisor(
      PersistenceExceptionTranslator persistenceExceptionTranslator,
      Class<? extends Annotation> repositoryAnnotationType) {

    this.advice = new PersistenceExceptionTranslationInterceptor(persistenceExceptionTranslator);
    this.pointcut = new AnnotationMatchingPointcut(repositoryAnnotationType);
  }
View Full Code Here

   * @param repositoryAnnotationType the annotation type to check for
   */
  PersistenceExceptionTranslationAdvisor(
      ListableBeanFactory beanFactory, Class<? extends Annotation> repositoryAnnotationType) {

    this.advice = new PersistenceExceptionTranslationInterceptor(beanFactory);
    this.pointcut = new AnnotationMatchingPointcut(repositoryAnnotationType);
  }
View Full Code Here

TOP

Related Classes of org.springframework.dao.support.PersistenceExceptionTranslationInterceptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.