@Deprecated protected class AsyncQueryRunner.BatchCallableStatement extends Object implements Callable<int[]>
| 构造器和说明 |
|---|
BatchCallableStatement(String sql,
Object[][] params,
Connection conn,
boolean closeConn,
PreparedStatement ps)
已过时。
Creates a new BatchCallableStatement instance.
|
public BatchCallableStatement(String sql, Object[][] params, Connection conn, boolean closeConn, PreparedStatement ps)
sql - The SQL statement to execute.params - An array of query replacement parameters. Each row in
this array is one set of batch replacement values.conn - The connection to use for the batch call.closeConn - True if the connection should be closed, false otherwise.ps - The PreparedStatement to be executed.public int[] call()
throws SQLException
call 在接口中 Callable<int[]>SQLException - if a database access error occurs or one of the commands sent to the database fails.Statement.executeBatch()Copyright © 2020 com.github.braisdom. All rights reserved.