Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dk131072
spring-framework
提交
74794190
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,发现更多精彩内容 >>
提交
74794190
编写于
10月 14, 2013
作者:
J
Juergen Hoeller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Implement java.io.Flushable wherever applicable
上级
8b1927f3
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
22 addition
and
11 deletion
+22
-11
spring-tx/src/main/java/org/springframework/transaction/TransactionStatus.java
...va/org/springframework/transaction/TransactionStatus.java
+5
-2
spring-tx/src/main/java/org/springframework/transaction/support/SmartTransactionObject.java
...framework/transaction/support/SmartTransactionObject.java
+5
-2
spring-tx/src/main/java/org/springframework/transaction/support/TransactionSynchronization.java
...ework/transaction/support/TransactionSynchronization.java
+5
-2
spring-web/src/main/java/org/springframework/http/server/ServerHttpResponse.java
...a/org/springframework/http/server/ServerHttpResponse.java
+7
-5
未找到文件。
spring-tx/src/main/java/org/springframework/transaction/TransactionStatus.java
浏览文件 @
74794190
/*
* Copyright 2002-20
09
the original author or authors.
* Copyright 2002-20
13
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.
...
...
@@ -16,6 +16,8 @@
package
org.springframework.transaction
;
import
java.io.Flushable
;
/**
* Representation of the status of a transaction.
*
...
...
@@ -34,7 +36,7 @@ package org.springframework.transaction;
* @see org.springframework.transaction.support.TransactionCallback#doInTransaction
* @see org.springframework.transaction.interceptor.TransactionInterceptor#currentTransactionStatus()
*/
public
interface
TransactionStatus
extends
SavepointManager
{
public
interface
TransactionStatus
extends
SavepointManager
,
Flushable
{
/**
* Return whether the present transaction is new (else participating
...
...
@@ -79,6 +81,7 @@ public interface TransactionStatus extends SavepointManager {
* Flush the underlying session to the datastore, if applicable:
* for example, all affected Hibernate/JPA sessions.
*/
@Override
void
flush
();
/**
...
...
spring-tx/src/main/java/org/springframework/transaction/support/SmartTransactionObject.java
浏览文件 @
74794190
/*
* Copyright 2002-20
09
the original author or authors.
* Copyright 2002-20
13
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.
...
...
@@ -16,6 +16,8 @@
package
org.springframework.transaction.support
;
import
java.io.Flushable
;
/**
* Interface to be implemented by transaction objects that are able to
* return an internal rollback-only marker, typically from a another
...
...
@@ -29,7 +31,7 @@ package org.springframework.transaction.support;
* @since 1.1
* @see DefaultTransactionStatus#isRollbackOnly
*/
public
interface
SmartTransactionObject
{
public
interface
SmartTransactionObject
extends
Flushable
{
/**
* Return whether the transaction is internally marked as rollback-only.
...
...
@@ -43,6 +45,7 @@ public interface SmartTransactionObject {
* Flush the underlying sessions to the datastore, if applicable:
* for example, all affected Hibernate/JPA sessions.
*/
@Override
void
flush
();
}
spring-tx/src/main/java/org/springframework/transaction/support/TransactionSynchronization.java
浏览文件 @
74794190
/*
* Copyright 2002-201
2
the original author or authors.
* Copyright 2002-201
3
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.
...
...
@@ -16,6 +16,8 @@
package
org.springframework.transaction.support
;
import
java.io.Flushable
;
/**
* Interface for transaction synchronization callbacks.
* Supported by AbstractPlatformTransactionManager.
...
...
@@ -34,7 +36,7 @@ package org.springframework.transaction.support;
* @see org.springframework.jdbc.datasource.DataSourceUtils#CONNECTION_SYNCHRONIZATION_ORDER
* @see org.springframework.orm.hibernate3.SessionFactoryUtils#SESSION_SYNCHRONIZATION_ORDER
*/
public
interface
TransactionSynchronization
{
public
interface
TransactionSynchronization
extends
Flushable
{
/** Completion status in case of proper commit */
int
STATUS_COMMITTED
=
0
;
...
...
@@ -65,6 +67,7 @@ public interface TransactionSynchronization {
* for example, a Hibernate/JPA session.
* @see org.springframework.transaction.TransactionStatus#flush()
*/
@Override
void
flush
();
/**
...
...
spring-web/src/main/java/org/springframework/http/server/ServerHttpResponse.java
浏览文件 @
74794190
/*
* Copyright 2002-201
2
the original author or authors.
* Copyright 2002-201
3
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.
...
...
@@ -17,6 +17,7 @@
package
org.springframework.http.server
;
import
java.io.Closeable
;
import
java.io.Flushable
;
import
java.io.IOException
;
import
org.springframework.http.HttpOutputMessage
;
...
...
@@ -28,7 +29,7 @@ import org.springframework.http.HttpStatus;
* @author Arjen Poutsma
* @since 3.0
*/
public
interface
ServerHttpResponse
extends
HttpOutputMessage
,
Closeable
{
public
interface
ServerHttpResponse
extends
HttpOutputMessage
,
Flushable
,
Closeable
{
/**
* Set the HTTP status code of the response.
...
...
@@ -37,10 +38,11 @@ public interface ServerHttpResponse extends HttpOutputMessage, Closeable {
void
setStatusCode
(
HttpStatus
status
);
/**
* Ensure th
e headers and the content of the response are written out. After the first
*
flush, headers can no longer be changed, only further content writing and flushing
* is possible.
* Ensure th
at the headers and the content of the response are written out.
*
<p>After the first flush, headers can no longer be changed.
*
Only further content writing and content flushing
is possible.
*/
@Override
void
flush
()
throws
IOException
;
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录