spring-framework / org.springframework.jdbc.object / BatchSqlUpdate / <init>

<init>

BatchSqlUpdate()

Constructor to allow use as a JavaBean. DataSource and SQL must be supplied before compilation and use.

See Also
#setDataSource#setSql

BatchSqlUpdate(ds: DataSource, sql: String)

Construct an update object with a given DataSource and SQL.

Parameters

ds - DataSource to use to obtain connections

sql - SQL statement to execute

BatchSqlUpdate(ds: DataSource, sql: String, types: IntArray)

Construct an update object with a given DataSource, SQL and anonymous parameters.

Parameters

ds - DataSource to use to obtain connections

sql - SQL statement to execute

types - SQL types of the parameters, as defined in the java.sql.Types class

See Also
java.sql.Types

BatchSqlUpdate(ds: DataSource, sql: String, types: IntArray, batchSize: Int)

Construct an update object with a given DataSource, SQL, anonymous parameters and specifying the maximum number of rows that may be affected.

Parameters

ds - DataSource to use to obtain connections

sql - SQL statement to execute

types - SQL types of the parameters, as defined in the java.sql.Types class

batchSize - the number of statements that will trigger an automatic intermediate flush

See Also
java.sql.Types