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.
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Method from org.springframework.dao.IncorrectResultSizeDataAccessException Detail: |
public int getActualSize() {
return actualSize;
}
Return the actual result size (or -1 if unknown). |
public int getExpectedSize() {
return expectedSize;
}
Return the expected result size. |