Package org.hibernate.exception.spi

Examples of org.hibernate.exception.spi.SQLExceptionConversionDelegate


  };

  @Override
  public SQLExceptionConversionDelegate buildSQLExceptionConversionDelegate() {
    return new SQLExceptionConversionDelegate() {
      @Override
      public JDBCException convert(SQLException sqlException, String message, String sql) {
        // interpreting Oracle exceptions is much much more precise based on their specific vendor codes.

        final int errorCode = JdbcExceptionHelper.extractErrorCode( sqlException );
View Full Code Here


    return sqlCode == Types.BOOLEAN ? SmallIntTypeDescriptor.INSTANCE : super.getSqlTypeDescriptorOverride( sqlCode );
  }

  @Override
  public SQLExceptionConversionDelegate buildSQLExceptionConversionDelegate() {
    return new SQLExceptionConversionDelegate() {
      @Override
      public JDBCException convert(SQLException sqlException, String message, String sql) {
        final String sqlState = JdbcExceptionHelper.extractSqlState( sqlException );
        final int errorCode = JdbcExceptionHelper.extractErrorCode( sqlException );
View Full Code Here

  };

  @Override
  public SQLExceptionConversionDelegate buildSQLExceptionConversionDelegate() {
    return new SQLExceptionConversionDelegate() {
      @Override
      public JDBCException convert(SQLException sqlException, String message, String sql) {
        // interpreting Oracle exceptions is much much more precise based on their specific vendor codes.

        final int errorCode = JdbcExceptionHelper.extractErrorCode( sqlException );
View Full Code Here

TOP

Related Classes of org.hibernate.exception.spi.SQLExceptionConversionDelegate

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.