Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
856fefea
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,发现更多精彩内容 >>
提交
856fefea
编写于
11月 19, 2009
作者:
J
Juergen Hoeller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed javadoc to reflect current implementation (SPR-6390)
上级
b41e3956
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
14 deletion
+12
-14
org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/view/jasperreports/AbstractJasperReportsView.java
...servlet/view/jasperreports/AbstractJasperReportsView.java
+12
-14
未找到文件。
org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/view/jasperreports/AbstractJasperReportsView.java
浏览文件 @
856fefea
...
...
@@ -518,11 +518,10 @@ public abstract class AbstractJasperReportsView extends AbstractUrlBasedView {
/**
* Finds the report data to use for rendering the report and then invokes the
*
<code>renderReport</code>
method that should be implemented by the subclass.
*
{@link #renderReport}
method that should be implemented by the subclass.
* @param model the model map, as passed in for view rendering. Must contain
* a report data value that can be converted to a <code>JRDataSource</code>,
* acccording to the <code>getReportData</code> method.
* @see #getReportData
* acccording to the rules of the {@link #fillReport} method.
*/
@Override
protected
void
renderMergedOutputModel
(
...
...
@@ -579,9 +578,11 @@ public abstract class AbstractJasperReportsView extends AbstractUrlBasedView {
/**
* Create a populated <code>JasperPrint</code> instance from the configured
* <code>JasperReport</code> instance.
* <p>By default, thois method will use any <code>JRDataSource</code> instance
* (or wrappable <code>Object</code>) that can be located using {@link #getReportData}.
* If no <code>JRDataSource</code> can be found, this method will use a JDBC
* <p>By default, this method will use any <code>JRDataSource</code> instance
* (or wrappable <code>Object</code>) that can be located using {@link #setReportDataKey},
* a lookup for type <code>JRDataSource</code> in the model Map, or a special value
* retrieved via {@link #getReportData}.
* <p>If no <code>JRDataSource</code> can be found, this method will use a JDBC
* <code>Connection</code> obtained from the configured <code>javax.sql.DataSource</code>
* (or a DataSource attribute in the model). If no JDBC DataSource can be found
* either, the JasperReports engine will be invoked with plain model Map,
...
...
@@ -709,17 +710,14 @@ public abstract class AbstractJasperReportsView extends AbstractUrlBasedView {
}
/**
* Find an instance of <code>JRDataSource</code> in the given model map or create an
* appropriate JRDataSource for passed-in report data.
* <p>The default implementation checks for a model object under the
* specified "reportDataKey" first, then falls back to looking for a value
* of type <code>JRDataSource</code>, <code>java.util.Collection</code>,
* object array (in that order).
* Create an appropriate <code>JRDataSource</code> for passed-in report data.
* Called by {@link #fillReport} when its own lookup steps were not successful.
* <p>The default implementation looks for a value of type <code>java.util.Collection</code>
* or object array (in that order). Can be overridden in subclasses.
* @param model the model map, as passed in for view rendering
* @return the <code>JRDataSource</code> or <code>null</code> if the data source is not found
* @see #setReportDataKey
* @see #convertReportData
* @see #getReportDataTypes
* @see #convertReportData
*/
protected
JRDataSource
getReportData
(
Map
<
String
,
Object
>
model
)
{
// Try to find matching attribute, of given prioritized types.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录