Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » dao » [javadoc | source]
org.springframework.dao
public class: IncorrectResultSizeDataAccessException [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.DataRetrievalFailureException
                        org.springframework.dao.IncorrectResultSizeDataAccessException

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    EmptyResultDataAccessException

Data access exception thrown when a result was not of the expected size, for example when expecting a single row but getting 0 or more than 1 rows.
Constructor:
 public IncorrectResultSizeDataAccessException(int expectedSize) 
 public IncorrectResultSizeDataAccessException(int expectedSize,
    int actualSize) 
 public IncorrectResultSizeDataAccessException(String msg,
    int expectedSize) 
    Constructor for IncorrectResultSizeDataAccessException.
    Parameters:
    msg - the detail message
    expectedSize - the expected result size
 public IncorrectResultSizeDataAccessException(String msg,
    int expectedSize,
    int actualSize) 
    Constructor for IncorrectResultSizeDataAccessException.
    Parameters:
    msg - the detail message
    expectedSize - the expected result size
    actualSize - the actual result size (or -1 if unknown)
Method from org.springframework.dao.IncorrectResultSizeDataAccessException Summary:
getActualSize,   getExpectedSize
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.dao.IncorrectResultSizeDataAccessException Detail:
 public int getActualSize() 
    Return the actual result size (or -1 if unknown).
 public int getExpectedSize() 
    Return the expected result size.