Class DataSourceUtils

java.lang.Object
org.springframework.jdbc.datasource.DataSourceUtils

public abstract class DataSourceUtils extends Object
Helper class that provides static methods for obtaining JDBC Connections from a DataSource. Includes special support for Spring-managed transactional Connections, e.g. managed by DataSourceTransactionManager or JtaTransactionManager.

Used internally by Spring's JdbcTemplate, Spring's JDBC operation objects and the JDBC DataSourceTransactionManager. Can also be used directly in application code.

Author:
Rod Johnson, Juergen Hoeller
See Also: