spring-framework / org.springframework.jdbc.datasource / LazyConnectionDataSourceProxy / setDefaultAutoCommit

setDefaultAutoCommit

open fun setDefaultAutoCommit(defaultAutoCommit: Boolean): Unit

Set the default auto-commit mode to expose when no target Connection has been fetched yet (-> actual JDBC Connection default not known yet).

If not specified, the default gets determined by checking a target Connection on startup. If that check fails, the default will be determined lazily on first access of a Connection.

See Also
java.sql.Connection#setAutoCommit