Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » jdbc » [javadoc | source]
org.springframework.jdbc
public class: InvalidResultSetAccessException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.lang.RuntimeException
            org.springframework.core.NestedRuntimeException
               org.springframework.dao.DataAccessException
                  org.springframework.dao.NonTransientDataAccessException
                     org.springframework.dao.InvalidDataAccessResourceUsageException
                        org.springframework.jdbc.InvalidResultSetAccessException

All Implemented Interfaces:
    Serializable

Exception thrown when a ResultSet has been accessed in an invalid fashion. Such exceptions always have a java.sql.SQLException root cause.

This typically happens when an invalid ResultSet column index or name has been specified. Also thrown by disconnected SqlRowSets.

Constructor:
 public InvalidResultSetAccessException(SQLException ex) 
    Constructor for InvalidResultSetAccessException.
    Parameters:
    ex - the root cause
 public InvalidResultSetAccessException(String task,
    String sql,
    SQLException ex) 
    Constructor for InvalidResultSetAccessException.
    Parameters:
    task - name of current task
    sql - the offending SQL statement
    ex - the root cause
Method from org.springframework.jdbc.InvalidResultSetAccessException Summary:
getSQLException,   getSql
Methods from org.springframework.core.NestedRuntimeException:
contains,   getMessage,   getMostSpecificCause,   getRootCause
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.jdbc.InvalidResultSetAccessException Detail:
 public SQLException getSQLException() 
    Return the wrapped SQLException.
 public String getSql() 
    Return the SQL that caused the problem.