public final class ExecutorEngine extends Object implements AutoCloseable
| 构造器和说明 |
|---|
ExecutorEngine(int executorSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
List<int[]> |
executeBatch(SQLType sqlType,
Collection<BatchPreparedStatementUnit> batchPreparedStatementUnits,
List<List<Object>> parameterSets,
ExecuteCallback<int[]> executeCallback)
Execute add batch.
|
<T> List<T> |
executePreparedStatement(SQLType sqlType,
Collection<PreparedStatementUnit> preparedStatementUnits,
List<Object> parameters,
ExecuteCallback<T> executeCallback)
Execute prepared statement.
|
<T> List<T> |
executeStatement(SQLType sqlType,
Collection<StatementUnit> statementUnits,
ExecuteCallback<T> executeCallback)
Execute statement.
|
public <T> List<T> executeStatement(SQLType sqlType, Collection<StatementUnit> statementUnits, ExecuteCallback<T> executeCallback)
T - class type of return valuesqlType - SQL typestatementUnits - statement execute unitexecuteCallback - statement execute callbackpublic <T> List<T> executePreparedStatement(SQLType sqlType, Collection<PreparedStatementUnit> preparedStatementUnits, List<Object> parameters, ExecuteCallback<T> executeCallback)
T - class type of return valuesqlType - SQL typepreparedStatementUnits - prepared statement execute unitparameters - parameters for SQL placeholderexecuteCallback - prepared statement execute callbackpublic List<int[]> executeBatch(SQLType sqlType, Collection<BatchPreparedStatementUnit> batchPreparedStatementUnits, List<List<Object>> parameterSets, ExecuteCallback<int[]> executeCallback)
sqlType - SQL typebatchPreparedStatementUnits - prepared statement execute unit for batchparameterSets - parameters for SQL placeholderexecuteCallback - prepared statement execute callbackpublic void close()
close 在接口中 AutoCloseableCopyright © 2017. All rights reserved.