public final class SQLExecuteTemplate extends Object
| Constructor and Description |
|---|
SQLExecuteTemplate() |
| Modifier and Type | Method and Description |
|---|---|
<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 The Apache Software Foundation. All rights reserved.