public final class SQLExecuteTemplate extends Object
| 构造器和说明 |
|---|
SQLExecuteTemplate() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> List<T> |
executeGroup(Collection<ShardingExecuteGroup<? extends StatementExecuteUnit>> sqlExecuteGroups,
SQLExecuteCallback<T> callback)
Execute group.
|
<T> List<T> |
executeGroup(Collection<ShardingExecuteGroup<? extends StatementExecuteUnit>> sqlExecuteGroups,
SQLExecuteCallback<T> firstCallback,
SQLExecuteCallback<T> callback)
Execute group.
|
public <T> List<T> executeGroup(Collection<ShardingExecuteGroup<? extends StatementExecuteUnit>> sqlExecuteGroups, SQLExecuteCallback<T> callback) throws SQLException
T - class type of return valuesqlExecuteGroups - SQL execute groupscallback - SQL execute callbackSQLException - SQL exceptionpublic <T> List<T> executeGroup(Collection<ShardingExecuteGroup<? extends StatementExecuteUnit>> sqlExecuteGroups, SQLExecuteCallback<T> firstCallback, SQLExecuteCallback<T> callback) throws SQLException
T - class type of return valuesqlExecuteGroups - SQL execute groupsfirstCallback - first SQL execute callbackcallback - SQL execute callbackSQLException - SQL exceptionCopyright © 2019. All rights reserved.