# Uses of Class
org.springframework.dao.IncorrectResultSizeDataAccessException

Packages that use IncorrectResultSizeDataAccessException
Package
Description
org.springframework.dao
Exception hierarchy enabling sophisticated error handling independent of the data access approach in use.
org.springframework.dao.support
Support classes for DAO implementations, providing miscellaneous utility methods.

## Uses of IncorrectResultSizeDataAccessException in org.springframework.dao

Subclasses of IncorrectResultSizeDataAccessException in org.springframework.dao
Modifier and Type
Class
Description
`class`
`EmptyResultDataAccessException`
Data access exception thrown when a result was expected to have at least one row (or element) but zero rows (or elements) were actually returned.

## Uses of IncorrectResultSizeDataAccessException in org.springframework.dao.support

Methods in org.springframework.dao.support that throw IncorrectResultSizeDataAccessException
Modifier and Type
Method
Description
`static int`
DataAccessUtils.`intResult(Collection<?> results)`
Return a unique int result from the given Collection.
`static long`
DataAccessUtils.`longResult(Collection<?> results)`
Return a unique long result from the given Collection.
`static <T> T`
DataAccessUtils.`nullableSingleResult(Collection<T> results)`
Return a single result object from the given Collection.
`static <T> T`
DataAccessUtils.`objectResult(Collection<?> results, Class<T> requiredType)`
Return a unique result object from the given Collection.
`static <T> Optional<T>`
DataAccessUtils.`optionalResult(Collection<T> results)`
Return a single result object from the given Collection.
`static <T> Optional<T>`
DataAccessUtils.`optionalResult(Iterator<T> results)`
Return a single result object from the given Iterator.
`static <T> Optional<T>`
DataAccessUtils.`optionalResult(Stream<T> results)`
Return a single result object from the given Stream.
`static <T> T`
DataAccessUtils.`requiredSingleResult(Collection<T> results)`
Return a single result object from the given Collection.
`static <T> T`
DataAccessUtils.`requiredUniqueResult(Collection<T> results)`
Return a unique result object from the given Collection.
`static <T> T`
DataAccessUtils.`singleResult(Collection<T> results)`
Return a single result object from the given Collection.
`static <T> T`
DataAccessUtils.`singleResult(Iterator<T> results)`
Return a single result object from the given Iterator.
`static <T> T`
DataAccessUtils.`singleResult(Stream<T> results)`
Return a single result object from the given Stream.
`static <T> T`
DataAccessUtils.`uniqueResult(Collection<T> results)`
Return a unique result object from the given Collection.