spring-framework / org.springframework.jdbc.datasource / TransactionAwareDataSourceProxy / getConnection

getConnection

open fun getConnection(): Connection

Delegates to DataSourceUtils for automatically participating in Spring-managed transactions. Throws the original SQLException, if any.

The returned Connection handle implements the ConnectionProxy interface, allowing to retrieve the underlying target Connection.

Return
a transactional Connection if any, a new one else

See Also
DataSourceUtils#doGetConnectionConnectionProxy#getTargetConnection