spring-framework / org.springframework.jdbc.support / JdbcUtils / supportsBatchUpdates

supportsBatchUpdates

open static fun supportsBatchUpdates(con: Connection): Boolean

Return whether the given JDBC driver supports JDBC 2.0 batch updates.

Typically invoked right before execution of a given set of statements: to decide whether the set of SQL statements should be executed through the JDBC 2.0 batch mechanism or simply in a traditional one-by-one fashion.

Logs a warning if the "supportsBatchUpdates" methods throws an exception and simply returns false in that case.

Parameters

con - the Connection to check

Return
whether JDBC 2.0 batch updates are supported

See Also
java.sql.DatabaseMetaData#supportsBatchUpdates()