Java org.springframework.jdbc.object BatchSqlUpdate fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.jdbc.object BatchSqlUpdate fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.jdbc.object BatchSqlUpdate.

The text is from its open source code.

Subclass

org.springframework.jdbc.object.BatchSqlUpdate has subclasses.
Click this link to see all its subclasses.

Constructor

BatchSqlUpdate(DataSource ds, String sql)
Construct an update object with a given DataSource and SQL.
BatchSqlUpdate()
Constructor to allow use as a JavaBean.

Method

voidcompile()
Compile this query.
voiddeclareParameter(SqlParameter param)
Declare a parameter for this operation.
int[]flush()
Trigger any queued update operations to be added as a final batch.
intgetQueueCount()
Return the current number of statements or statement parameters in the queue.
int[]getRowsAffected()
Return the number of affected rows for all already executed statements.
voidreset()
Reset the statement parameter queue, the rows affected cache, and the execution count.
voidsetBatchSize(int batchSize)
Set the number of statements that will trigger an automatic intermediate flush.
voidsetJdbcTemplate(JdbcTemplate jdbcTemplate)
An alternative to the more commonly used #setDataSource when you want to use the same JdbcTemplate in multiple RdbmsOperations .
voidsetSql(@Nullable String sql)
Set the SQL executed by this operation.
intupdate(Object... params)
Overridden version of update that adds the given statement parameters to the queue rather than executing them immediately.