public class SimpleCallableStatementCallback extends Object implements CallableStatementCallback<Map<String,Object>>
ResultSetExtractor 接口实现类,该类会将结果集中的每一行进行处理,并返回一个 List 用以封装处理结果集。| 构造器和说明 |
|---|
SimpleCallableStatementCallback(List<SqlParameter> declaredParameters) |
SimpleCallableStatementCallback(MultipleProcessType processType,
List<SqlParameter> declaredParameters) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Map<String,Object> |
createResultsMap() |
Map<String,Object> |
doInCallableStatement(CallableStatement cs)
执行一个 JDBC 操作。
|
boolean |
isResultsCaseInsensitive() |
protected static Object |
processResultSet(boolean caseInsensitive,
ResultSet rs,
SqlParameter.ReturnSqlParameter param)
Process the given ResultSet from a stored procedure.
|
void |
setResultsCaseInsensitive(boolean resultsCaseInsensitive) |
public SimpleCallableStatementCallback(List<SqlParameter> declaredParameters)
public SimpleCallableStatementCallback(MultipleProcessType processType, List<SqlParameter> declaredParameters)
public boolean isResultsCaseInsensitive()
public void setResultsCaseInsensitive(boolean resultsCaseInsensitive)
public Map<String,Object> doInCallableStatement(CallableStatement cs) throws SQLException
CallableStatementCallbackdoInCallableStatement 在接口中 CallableStatementCallback<Map<String,Object>>cs - 一个可用的 JDBC 数据库连接SQLExceptionprotected static Object processResultSet(boolean caseInsensitive, ResultSet rs, SqlParameter.ReturnSqlParameter param) throws SQLException
rs - the ResultSet to processparam - the corresponding stored procedure parameterSQLExceptionCopyright © 2021. All rights reserved.