Package org.springframework.jdbc

Examples of org.springframework.jdbc.InvalidResultSetAccessException


          logTranslation(task, sql, sqlExToUse, false);
          return new BadSqlGrammarException(task, sql, sqlExToUse);
        }
        else if (Arrays.binarySearch(this.sqlErrorCodes.getInvalidResultSetAccessCodes(), errorCode) >= 0) {
          logTranslation(task, sql, sqlExToUse, false);
          return new InvalidResultSetAccessException(task, sql, sqlExToUse);
        }
        else if (Arrays.binarySearch(this.sqlErrorCodes.getDataAccessResourceFailureCodes(), errorCode) >= 0) {
          logTranslation(task, sql, sqlExToUse, false);
          return new DataAccessResourceFailureException(buildMessage(task, sql, sqlExToUse), sqlExToUse);
        }
View Full Code Here


          logTranslation(task, sql, sqlExToUse, false);
          return new BadSqlGrammarException(task, sql, sqlExToUse);
        }
        else if (Arrays.binarySearch(this.sqlErrorCodes.getInvalidResultSetAccessCodes(), errorCode) >= 0) {
          logTranslation(task, sql, sqlExToUse, false);
          return new InvalidResultSetAccessException(task, sql, sqlExToUse);
        }
        else if (Arrays.binarySearch(this.sqlErrorCodes.getDataAccessResourceFailureCodes(), errorCode) >= 0) {
          logTranslation(task, sql, sqlExToUse, false);
          return new DataAccessResourceFailureException(buildMessage(task, sql, sqlExToUse), sqlExToUse);
        }
View Full Code Here

    this.resultSet = resultSet;
    try {
      this.rowSetMetaData = new ResultSetWrappingSqlRowSetMetaData(resultSet.getMetaData());
    }
    catch (SQLException se) {
      throw new InvalidResultSetAccessException(se);
    }
    try {
      ResultSetMetaData rsmd = resultSet.getMetaData();
      if (rsmd != null) {
        int columnCount = rsmd.getColumnCount();
        this.columnLabelMap = new HashMap<String, Integer>(columnCount);
        for (int i = 1; i <= columnCount; i++) {
          this.columnLabelMap.put(rsmd.getColumnLabel(i), i);
        }
      }
      else {
        this.columnLabelMap = Collections.emptyMap();
      }
    }
    catch (SQLException se) {
      throw new InvalidResultSetAccessException(se);
    }
   
  }
View Full Code Here

    else {
      try {
        return this.resultSet.findColumn(columnLabel);
      }
      catch (SQLException se) {
        throw new InvalidResultSetAccessException(se);
      }
    }
  }
View Full Code Here

  public BigDecimal getBigDecimal(int columnIndex) throws InvalidResultSetAccessException {
    try {
      return this.resultSet.getBigDecimal(columnIndex);
    }
    catch (SQLException se) {
      throw new InvalidResultSetAccessException(se);
    }
  }
View Full Code Here

  public boolean getBoolean(int columnIndex) throws InvalidResultSetAccessException {
    try {
      return this.resultSet.getBoolean(columnIndex);
    }
    catch (SQLException se) {
      throw new InvalidResultSetAccessException(se);
    }
  }
View Full Code Here

  public byte getByte(int columnIndex) throws InvalidResultSetAccessException {
    try {
      return this.resultSet.getByte(columnIndex);
    }
    catch (SQLException se) {
      throw new InvalidResultSetAccessException(se);
    }
  }
View Full Code Here

  public Date getDate(int columnIndex, Calendar cal) throws InvalidResultSetAccessException {
    try {
      return this.resultSet.getDate(columnIndex, cal);
    }
    catch (SQLException se) {
      throw new InvalidResultSetAccessException(se);
    }
  }
View Full Code Here

  public Date getDate(int columnIndex) throws InvalidResultSetAccessException {
    try {
      return this.resultSet.getDate(columnIndex);
    }
    catch (SQLException se) {
      throw new InvalidResultSetAccessException(se);
    }
  }
View Full Code Here

  public double getDouble(int columnIndex) throws InvalidResultSetAccessException {
    try {
      return this.resultSet.getDouble(columnIndex);
    }
    catch (SQLException se) {
      throw new InvalidResultSetAccessException(se);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.jdbc.InvalidResultSetAccessException

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.