Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
8c0e3040
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
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,体验更适合开发者的 AI 搜索 >>
提交
8c0e3040
编写于
2月 07, 2014
作者:
J
Juergen Hoeller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Polishing
上级
749b65b0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
15 addition
and
27 deletion
+15
-27
spring-context/src/main/java/org/springframework/context/support/SimpleThreadScope.java
...rg/springframework/context/support/SimpleThreadScope.java
+4
-5
spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcOperations.java
...in/java/org/springframework/jdbc/core/JdbcOperations.java
+11
-22
未找到文件。
spring-context/src/main/java/org/springframework/context/support/SimpleThreadScope.java
浏览文件 @
8c0e3040
...
...
@@ -26,13 +26,12 @@ import org.springframework.beans.factory.ObjectFactory;
import
org.springframework.beans.factory.config.Scope
;
import
org.springframework.core.NamedThreadLocal
;
/**
*
T
hread-backed {@link Scope} implementation.
*
A simple t
hread-backed {@link Scope} implementation.
*
* <p><strong>Note
</strong> that the {@code SimpleThreadScope} <em>does not clean
*
up any objects</em> associated with it. As such, it'
s typically preferable to
* use
the
{@link org.springframework.web.context.request.RequestScope RequestScope}
* <p><strong>Note
:</strong> {@code SimpleThreadScope} <em>does not clean up
*
any objects</em> associated with it. As such, it i
s typically preferable to
* use {@link org.springframework.web.context.request.RequestScope RequestScope}
* in web environments.
*
* <p>For an implementation of a thread-based {@code Scope} with support for
...
...
spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcOperations.java
浏览文件 @
8c0e3040
...
...
@@ -311,8 +311,7 @@ public interface JdbcOperations {
* @return a result object returned by the action, or {@code null}
* @throws DataAccessException if there is any problem
*/
<
T
>
T
execute
(
PreparedStatementCreator
psc
,
PreparedStatementCallback
<
T
>
action
)
throws
DataAccessException
;
<
T
>
T
execute
(
PreparedStatementCreator
psc
,
PreparedStatementCallback
<
T
>
action
)
throws
DataAccessException
;
/**
* Execute a JDBC data access operation, implemented as callback action
...
...
@@ -354,8 +353,7 @@ public interface JdbcOperations {
* @return an arbitrary result object, as returned by the ResultSetExtractor
* @throws DataAccessException if there is any problem
*/
<
T
>
T
query
(
String
sql
,
PreparedStatementSetter
pss
,
ResultSetExtractor
<
T
>
rse
)
throws
DataAccessException
;
<
T
>
T
query
(
String
sql
,
PreparedStatementSetter
pss
,
ResultSetExtractor
<
T
>
rse
)
throws
DataAccessException
;
/**
* Query given SQL to create a prepared statement from SQL and a list
...
...
@@ -370,8 +368,7 @@ public interface JdbcOperations {
* @throws DataAccessException if the query fails
* @see java.sql.Types
*/
<
T
>
T
query
(
String
sql
,
Object
[]
args
,
int
[]
argTypes
,
ResultSetExtractor
<
T
>
rse
)
throws
DataAccessException
;
<
T
>
T
query
(
String
sql
,
Object
[]
args
,
int
[]
argTypes
,
ResultSetExtractor
<
T
>
rse
)
throws
DataAccessException
;
/**
* Query given SQL to create a prepared statement from SQL and a list
...
...
@@ -428,8 +425,7 @@ public interface JdbcOperations {
* @param rch object that will extract results, one row at a time
* @throws DataAccessException if the query fails
*/
void
query
(
String
sql
,
PreparedStatementSetter
pss
,
RowCallbackHandler
rch
)
throws
DataAccessException
;
void
query
(
String
sql
,
PreparedStatementSetter
pss
,
RowCallbackHandler
rch
)
throws
DataAccessException
;
/**
* Query given SQL to create a prepared statement from SQL and a list of
...
...
@@ -443,8 +439,7 @@ public interface JdbcOperations {
* @throws DataAccessException if the query fails
* @see java.sql.Types
*/
void
query
(
String
sql
,
Object
[]
args
,
int
[]
argTypes
,
RowCallbackHandler
rch
)
throws
DataAccessException
;
void
query
(
String
sql
,
Object
[]
args
,
int
[]
argTypes
,
RowCallbackHandler
rch
)
throws
DataAccessException
;
/**
* Query given SQL to create a prepared statement from SQL and a list of
...
...
@@ -500,8 +495,7 @@ public interface JdbcOperations {
* @return the result List, containing mapped objects
* @throws DataAccessException if the query fails
*/
<
T
>
List
<
T
>
query
(
String
sql
,
PreparedStatementSetter
pss
,
RowMapper
<
T
>
rowMapper
)
throws
DataAccessException
;
<
T
>
List
<
T
>
query
(
String
sql
,
PreparedStatementSetter
pss
,
RowMapper
<
T
>
rowMapper
)
throws
DataAccessException
;
/**
* Query given SQL to create a prepared statement from SQL and a list
...
...
@@ -516,8 +510,7 @@ public interface JdbcOperations {
* @throws DataAccessException if the query fails
* @see java.sql.Types
*/
<
T
>
List
<
T
>
query
(
String
sql
,
Object
[]
args
,
int
[]
argTypes
,
RowMapper
<
T
>
rowMapper
)
throws
DataAccessException
;
<
T
>
List
<
T
>
query
(
String
sql
,
Object
[]
args
,
int
[]
argTypes
,
RowMapper
<
T
>
rowMapper
)
throws
DataAccessException
;
/**
* Query given SQL to create a prepared statement from SQL and a list
...
...
@@ -582,8 +575,7 @@ public interface JdbcOperations {
* return exactly one row
* @throws DataAccessException if the query fails
*/
<
T
>
T
queryForObject
(
String
sql
,
Object
[]
args
,
RowMapper
<
T
>
rowMapper
)
throws
DataAccessException
;
<
T
>
T
queryForObject
(
String
sql
,
Object
[]
args
,
RowMapper
<
T
>
rowMapper
)
throws
DataAccessException
;
/**
* Query given SQL to create a prepared statement from SQL and a list
...
...
@@ -600,8 +592,7 @@ public interface JdbcOperations {
* return exactly one row
* @throws DataAccessException if the query fails
*/
<
T
>
T
queryForObject
(
String
sql
,
RowMapper
<
T
>
rowMapper
,
Object
...
args
)
throws
DataAccessException
;
<
T
>
T
queryForObject
(
String
sql
,
RowMapper
<
T
>
rowMapper
,
Object
...
args
)
throws
DataAccessException
;
/**
* Query given SQL to create a prepared statement from SQL and a
...
...
@@ -1019,8 +1010,7 @@ public interface JdbcOperations {
* (constants from {@code java.sql.Types})
* @return an array containing the numbers of rows affected by each update in the batch
*/
public
int
[]
batchUpdate
(
String
sql
,
List
<
Object
[]>
batchArgs
,
int
[]
argTypes
)
throws
DataAccessException
;
public
int
[]
batchUpdate
(
String
sql
,
List
<
Object
[]>
batchArgs
,
int
[]
argTypes
)
throws
DataAccessException
;
/**
* Execute multiple batches using the supplied SQL statement with the collect of supplied arguments.
...
...
@@ -1054,8 +1044,7 @@ public interface JdbcOperations {
* @return a result object returned by the action, or {@code null}
* @throws DataAccessException if there is any problem
*/
<
T
>
T
execute
(
CallableStatementCreator
csc
,
CallableStatementCallback
<
T
>
action
)
throws
DataAccessException
;
<
T
>
T
execute
(
CallableStatementCreator
csc
,
CallableStatementCallback
<
T
>
action
)
throws
DataAccessException
;
/**
* Execute a JDBC data access operation, implemented as callback action
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录