Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dk131072
spring-framework
提交
c79c4c6e
S
spring-framework
项目概览
dk131072
/
spring-framework
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c79c4c6e
编写于
10月 28, 2012
作者:
S
Sam Brannen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix typos and suppress warnings in JdbcTemplate
上级
e4158f91
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
10 deletion
+12
-10
spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java
...main/java/org/springframework/jdbc/core/JdbcTemplate.java
+12
-10
未找到文件。
spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java
浏览文件 @
c79c4c6e
/*
* Copyright 2002-201
0
the original author or authors.
* Copyright 2002-201
2
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -134,8 +134,8 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
/**
* If this variable is set to true then all results from a stored procedure call
* that don't have a corresponding SqlOutParameter declaration will be bypassed.
* All other results process
ng will be take place unless the variable
* <code>skipResultsProcessing</code> is set to <code>true</code>
* All other results process
ing will be take place unless the variable
* <code>skipResultsProcessing</code> is set to <code>true</code>
.
*/
private
boolean
skipUndeclaredResults
=
false
;
...
...
@@ -274,9 +274,9 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
}
/**
* Set whether results processing should be skipped.
Can be used to optimize callable
* Set whether results processing should be skipped. Can be used to optimize callable
* statement processing when we know that no results are being passed back - the processing
* of out parameter will still take place.
This can be used to avoid a bug in some older
* of out parameter will still take place. This can be used to avoid a bug in some older
* Oracle JDBC drivers like 10.1.0.2.
*/
public
void
setSkipResultsProcessing
(
boolean
skipResultsProcessing
)
{
...
...
@@ -291,7 +291,7 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
}
/**
* Set whether undelared results should be skipped.
* Set whether unde
c
lared results should be skipped.
*/
public
void
setSkipUndeclaredResults
(
boolean
skipUndeclaredResults
)
{
this
.
skipUndeclaredResults
=
skipUndeclaredResults
;
...
...
@@ -1083,9 +1083,10 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
* Extract returned ResultSets from the completed stored procedure.
* @param cs JDBC wrapper for the stored procedure
* @param updateCountParameters Parameter list of declared update count parameters for the stored procedure
* @param resultSetParameters Parameter list of declared res
turn res
ultSet parameters for the stored procedure
* @param resultSetParameters Parameter list of declared resultSet parameters for the stored procedure
* @return Map that contains returned results
*/
@SuppressWarnings
(
"rawtypes"
)
protected
Map
<
String
,
Object
>
extractReturnedResults
(
CallableStatement
cs
,
List
updateCountParameters
,
List
resultSetParameters
,
int
updateCount
)
throws
SQLException
{
...
...
@@ -1189,7 +1190,7 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
* @param param the corresponding stored procedure parameter
* @return Map that contains returned results
*/
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
{
"unchecked"
,
"rawtypes"
}
)
protected
Map
<
String
,
Object
>
processResultSet
(
ResultSet
rs
,
ResultSetSupportingSqlParameter
param
)
throws
SQLException
{
if
(
rs
==
null
)
{
return
Collections
.
emptyMap
();
...
...
@@ -1286,7 +1287,7 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
/**
* Create a new ArgPreparedStatementSetter using the args passed in. This method allows the
* creation to be overridden by sub-classes.
* @param args object array w
o
th arguments
* @param args object array w
i
th arguments
* @return the new PreparedStatementSetter
*/
protected
PreparedStatementSetter
newArgPreparedStatementSetter
(
Object
[]
args
)
{
...
...
@@ -1296,7 +1297,7 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
/**
* Create a new ArgTypePreparedStatementSetter using the args and argTypes passed in.
* This method allows the creation to be overridden by sub-classes.
* @param args object array w
o
th arguments
* @param args object array w
i
th arguments
* @param argTypes int array of SQLTypes for arguments
* @return the new PreparedStatementSetter
*/
...
...
@@ -1368,6 +1369,7 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
this
.
target
=
target
;
}
@SuppressWarnings
(
"rawtypes"
)
public
Object
invoke
(
Object
proxy
,
Method
method
,
Object
[]
args
)
throws
Throwable
{
// Invocation on ConnectionProxy interface coming in...
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录