| |
|
| java.lang.Object org.springframework.dao.support.DataAccessUtils
DataAccessUtils | abstract public class DataAccessUtils (Code) | | Miscellaneous utility methods for DAO implementations.
Useful with any data access technology.
author: Juergen Hoeller since: 1.0.2 |
translateIfNecessary | public static RuntimeException translateIfNecessary(RuntimeException rawException, PersistenceExceptionTranslator pet)(Code) | | Return a translated exception if this is appropriate,
otherwise return the input exception.
Parameters: rawException - exception we may wish to translate Parameters: pet - PersistenceExceptionTranslator to use to perform the translation a translated exception if translation is possible, orthe raw exception if it is not |
|
|
|