spring-framework / org.springframework.jdbc.core.simple / SimpleJdbcInsert / <init>

<init>

SimpleJdbcInsert(dataSource: DataSource)

Constructor that takes one parameter with the JDBC DataSource to use when creating the JdbcTemplate.

Parameters

dataSource - the DataSource to use

See Also
org.springframework.jdbc.core.JdbcTemplate#setDataSource

SimpleJdbcInsert(jdbcTemplate: JdbcTemplate)

Alternative Constructor that takes one parameter with the JdbcTemplate to be used.

Parameters

jdbcTemplate - the JdbcTemplate to use

See Also
org.springframework.jdbc.core.JdbcTemplate#setDataSource