| java.lang.Object | |
| ↳ | org.springframework.dao.support.DataAccessUtils |
Miscellaneous utility methods for DAO implementations. Useful with any data access technology.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return a unique int result from the given Collection.
| |||||||||||
Return a unique long result from the given Collection.
| |||||||||||
Return a unique result object from the given Collection.
| |||||||||||
Return a single result object from the given Collection.
| |||||||||||
Return a unique result object from the given Collection.
| |||||||||||
Return a single result object from the given Collection.
| |||||||||||
Return a translated exception if this is appropriate,
otherwise return the input exception.
| |||||||||||
Return a unique result object from the given Collection.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Return a unique int result from the given Collection. Throws an exception if 0 or more than 1 result objects found, of if the unique result object is not convertable to an int.
| results | the result Collection (can be null) |
|---|
| IncorrectResultSizeDataAccessException | if more than one result object has been found in the given Collection |
|---|---|
| EmptyResultDataAccessException | if no result object at all has been found in the given Collection |
| TypeMismatchDataAccessException | if the unique object in the collection is not convertable to an int |
Return a unique long result from the given Collection. Throws an exception if 0 or more than 1 result objects found, of if the unique result object is not convertable to a long.
| results | the result Collection (can be null) |
|---|
| IncorrectResultSizeDataAccessException | if more than one result object has been found in the given Collection |
|---|---|
| EmptyResultDataAccessException | if no result object at all has been found in the given Collection |
| TypeMismatchDataAccessException | if the unique object in the collection is not convertable to a long |
Return a unique result object from the given Collection. Throws an exception if 0 or more than 1 result objects found, of if the unique result object is not convertable to the specified required type.
| results | the result Collection (can be null) |
|---|
| IncorrectResultSizeDataAccessException | if more than one result object has been found in the given Collection |
|---|---|
| EmptyResultDataAccessException | if no result object at all has been found in the given Collection |
| TypeMismatchDataAccessException | if the unique object does not match the specified required type |
Return a single result object from the given Collection.
Throws an exception if 0 or more than 1 element found.
| results | the result Collection (can be null) |
|---|
| IncorrectResultSizeDataAccessException | if more than one element has been found in the given Collection |
|---|---|
| EmptyResultDataAccessException | if no element at all has been found in the given Collection |
Return a unique result object from the given Collection.
Throws an exception if 0 or more than 1 instance found.
| results | the result Collection (can be null) |
|---|
| IncorrectResultSizeDataAccessException | if more than one result object has been found in the given Collection |
|---|---|
| EmptyResultDataAccessException | if no result object at all has been found in the given Collection |
Return a single result object from the given Collection.
Returns null if 0 result objects found;
throws an exception if more than 1 element found.
| results | the result Collection (can be null) |
|---|
null if none| IncorrectResultSizeDataAccessException | if more than one element has been found in the given Collection |
|---|
Return a translated exception if this is appropriate, otherwise return the input exception.
| rawException | exception we may wish to translate |
|---|---|
| pet | PersistenceExceptionTranslator to use to perform the translation |
Return a unique result object from the given Collection.
Returns null if 0 result objects found;
throws an exception if more than 1 instance found.
| results | the result Collection (can be null) |
|---|
null if none| IncorrectResultSizeDataAccessException | if more than one result object has been found in the given Collection |
|---|