Package org.hibernate.exception.internal

Examples of org.hibernate.exception.internal.StandardSQLExceptionConverter


        typeInfoSet
    );

    SQLExceptionConverter sqlExceptionConverter = dialect.buildSQLExceptionConverter();
    if ( sqlExceptionConverter == null ) {
      final StandardSQLExceptionConverter converter = new StandardSQLExceptionConverter();
      sqlExceptionConverter = converter;
      converter.addDelegate( dialect.buildSQLExceptionConversionDelegate() );
      converter.addDelegate( new SQLExceptionTypeDelegate( dialect ) );
      // todo : vary this based on extractedMetaDataSupport.getSqlStateType()
      converter.addDelegate( new SQLStateConversionDelegate( dialect ) );
    }
    this.sqlExceptionHelper = new SqlExceptionHelper( sqlExceptionConverter );
  }
View Full Code Here


        typeInfoSet
    );

    SQLExceptionConverter sqlExceptionConverter = dialect.buildSQLExceptionConverter();
    if ( sqlExceptionConverter == null ) {
      final StandardSQLExceptionConverter converter = new StandardSQLExceptionConverter();
      sqlExceptionConverter = converter;
      converter.addDelegate( dialect.buildSQLExceptionConversionDelegate() );
      converter.addDelegate( new SQLExceptionTypeDelegate( dialect ) );
      // todo : vary this based on extractedMetaDataSupport.getSqlStateType()
      converter.addDelegate( new SQLStateConversionDelegate( dialect ) );
    }
    this.sqlExceptionHelper = new SqlExceptionHelper( sqlExceptionConverter );
  }
View Full Code Here

        typeInfoSet
    );

    SQLExceptionConverter sqlExceptionConverter = dialect.buildSQLExceptionConverter();
    if ( sqlExceptionConverter == null ) {
      final StandardSQLExceptionConverter converter = new StandardSQLExceptionConverter();
      sqlExceptionConverter = converter;
      converter.addDelegate( new SQLExceptionTypeDelegate( dialect ) );
      converter.addDelegate( dialect.buildSQLExceptionConversionDelegate() );
      // todo : vary this based on extractedMetaDataSupport.getSqlStateType()
      converter.addDelegate( new SQLStateConversionDelegate( dialect ) );
    }
    this.sqlExceptionHelper = new SqlExceptionHelper( sqlExceptionConverter );
  }
View Full Code Here

        typeInfoSet
    );

    SQLExceptionConverter sqlExceptionConverter = dialect.buildSQLExceptionConverter();
    if ( sqlExceptionConverter == null ) {
      final StandardSQLExceptionConverter converter = new StandardSQLExceptionConverter();
      sqlExceptionConverter = converter;
      converter.addDelegate( dialect.buildSQLExceptionConversionDelegate() );
      converter.addDelegate( new SQLExceptionTypeDelegate( dialect ) );
      // todo : vary this based on extractedMetaDataSupport.getSqlStateType()
      converter.addDelegate( new SQLStateConversionDelegate( dialect ) );
    }
    this.sqlExceptionHelper = new SqlExceptionHelper( sqlExceptionConverter );
  }
View Full Code Here

        typeInfoSet
    );

    SQLExceptionConverter sqlExceptionConverter = dialect.buildSQLExceptionConverter();
    if ( sqlExceptionConverter == null ) {
      final StandardSQLExceptionConverter converter = new StandardSQLExceptionConverter();
      sqlExceptionConverter = converter;
      converter.addDelegate( dialect.buildSQLExceptionConversionDelegate() );
      converter.addDelegate( new SQLExceptionTypeDelegate( dialect ) );
      // todo : vary this based on extractedMetaDataSupport.getSqlStateType()
      converter.addDelegate( new SQLStateConversionDelegate( dialect ) );
    }
    this.sqlExceptionHelper = new SqlExceptionHelper( sqlExceptionConverter );
  }
View Full Code Here

        typeInfoSet
    );

    SQLExceptionConverter sqlExceptionConverter = dialect.buildSQLExceptionConverter();
    if ( sqlExceptionConverter == null ) {
      final StandardSQLExceptionConverter converter = new StandardSQLExceptionConverter();
      sqlExceptionConverter = converter;
      converter.addDelegate( dialect.buildSQLExceptionConversionDelegate() );
      converter.addDelegate( new SQLExceptionTypeDelegate( dialect ) );
      // todo : vary this based on extractedMetaDataSupport.getSqlStateType()
      converter.addDelegate( new SQLStateConversionDelegate( dialect ) );
    }
    this.sqlExceptionHelper = new SqlExceptionHelper( sqlExceptionConverter );
  }
View Full Code Here

    }

    public FixedDatabaseMetadata(Connection connection, Dialect dialect, boolean extras) throws SQLException {
        super(connection, dialect, extras);

        final StandardSQLExceptionConverter ssec = new StandardSQLExceptionConverter();
        ssec.addDelegate(dialect.buildSQLExceptionConversionDelegate());
        sqlExceptionConverter = ssec;
        meta = connection.getMetaData();
        this.extras = extras;
        initSequences(connection, dialect);
    }
View Full Code Here

        @Override
        public ViolatedConstraintNameExtracter getViolatedConstraintNameExtracter() {
          return extracter;
        }
      };
      final StandardSQLExceptionConverter converter = new StandardSQLExceptionConverter();
      sqlExceptionConverter = converter;
      converter.addDelegate( new SQLExceptionTypeDelegate( conversionContext ) );
      // todo : vary this based on extractedMetaDataSupport.getSqlStateType()
      converter.addDelegate( new SQLStateConversionDelegate( conversionContext ) );
      // todo : add Dialect#getSQLExceptionConversionDelegate method and add result here if non-null
    }
    this.sqlExceptionHelper = new SqlExceptionHelper( sqlExceptionConverter );
  }
View Full Code Here

        typeInfoSet
    );

    SQLExceptionConverter sqlExceptionConverter = dialect.buildSQLExceptionConverter();
    if ( sqlExceptionConverter == null ) {
      final StandardSQLExceptionConverter converter = new StandardSQLExceptionConverter();
      sqlExceptionConverter = converter;
      converter.addDelegate( dialect.buildSQLExceptionConversionDelegate() );
      converter.addDelegate( new SQLExceptionTypeDelegate( dialect ) );
      // todo : vary this based on extractedMetaDataSupport.getSqlStateType()
      converter.addDelegate( new SQLStateConversionDelegate( dialect ) );
    }
    this.sqlExceptionHelper = new SqlExceptionHelper( sqlExceptionConverter );
  }
View Full Code Here

        typeInfoSet
    );

    SQLExceptionConverter sqlExceptionConverter = dialect.buildSQLExceptionConverter();
    if ( sqlExceptionConverter == null ) {
      final StandardSQLExceptionConverter converter = new StandardSQLExceptionConverter();
      sqlExceptionConverter = converter;
      converter.addDelegate( new SQLExceptionTypeDelegate( dialect ) );
      converter.addDelegate( dialect.buildSQLExceptionConversionDelegate() );
      // todo : vary this based on extractedMetaDataSupport.getSqlStateType()
      converter.addDelegate( new SQLStateConversionDelegate( dialect ) );
    }
    this.sqlExceptionHelper = new SqlExceptionHelper( sqlExceptionConverter );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.exception.internal.StandardSQLExceptionConverter

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.