接口 JdbcBatchStatementExecutor<T>
-
- 所有已知实现类:
BufferedBatchStatementExecutor,BufferReducedBatchStatementExecutor,CopyManagerBatchStatementExecutor,InsertOrUpdateBatchStatementExecutor,SimpleBatchStatementExecutor
public interface JdbcBatchStatementExecutor<T>Executes the given JDBC statement in batch for the accumulated records.
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidaddToBatch(T record)voidcloseStatements()Close JDBC related statements.voidexecuteBatch()Submits a batch of commands to the database for execution.voidprepareStatements(Connection connection)Create statements from connection.
-
-
-
方法详细资料
-
prepareStatements
void prepareStatements(Connection connection) throws SQLException
Create statements from connection.- 抛出:
SQLException
-
addToBatch
void addToBatch(T record) throws SQLException
- 抛出:
SQLException
-
executeBatch
void executeBatch() throws SQLExceptionSubmits a batch of commands to the database for execution.- 抛出:
SQLException
-
closeStatements
void closeStatements() throws SQLExceptionClose JDBC related statements.- 抛出:
SQLException
-
-