Example usage for Java org.springframework.jdbc.object BatchSqlUpdate fields, constructors, methods, implement or subclass
The text is from its open source code.
BatchSqlUpdate(DataSource ds, String sql) Construct an update object with a given DataSource and SQL. | |
BatchSqlUpdate() Constructor to allow use as a JavaBean. |
void | compile() Compile this query. |
void | declareParameter(SqlParameter param) Declare a parameter for this operation. |
int[] | flush() Trigger any queued update operations to be added as a final batch. |
int | getQueueCount() 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. |
void | reset() Reset the statement parameter queue, the rows affected cache, and the execution count. |
void | setBatchSize(int batchSize) Set the number of statements that will trigger an automatic intermediate flush. |
void | setJdbcTemplate(JdbcTemplate jdbcTemplate) An alternative to the more commonly used #setDataSource when you want to use the same JdbcTemplate in multiple RdbmsOperations . |
void | setSql(@Nullable String sql) Set the SQL executed by this operation. |
int | update(Object... params) Overridden version of update that adds the given statement parameters to the queue rather than executing them immediately. |