Java Doc for ExpressoReport.java in  » J2EE » Expresso » com » jcorporate » expresso » ext » report » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » Expresso » com.jcorporate.expresso.ext.report 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.jcorporate.expresso.ext.report.ExpressoReport

All known Subclasses:   com.jcorporate.expresso.services.html.ReportPage,
ExpressoReport
public interface ExpressoReport (Code)
ExpressoReport is a generic interface for allowing reports to be "printed" An example usage of an ExpressoReport is the ReportPage object as defined in com.jcorporate.expresso.services.html.ReportPage. Although the interfaces provide independence, and thus you can integrate whatever report engine you wish, eContent has built in integration with

For those that are interested in making their own reports and a report driver the general idea is this:

  • Instantiate the report class via Class.newInstance() [The report must have a default constructor]
  • Set the report parameters
  • Set the report's data context
  • Prepare an output stream for the report to dump it's data. [Can be the servlet output stream for all the report cares]
  • Call printReport()


author:
   Michael Rimov




Method Summary
public  StringgetDefaultValue(String parameterName)
     Retrieve the default parameter value for the given parameter name
Parameters:
  parameterName - the name of the parameter.
public  ListgetParameterNames()
     Retrieve a list of parameters that this report supports.
public  StringgetReportFileExtension()
     Retrieve the recommended file extension for the report.
public  StringgetReportMimeType()
     The report engine driver is most likely going to need to know what kind of MimeType to expect the report.
public  StringgetTitle()
    
public  voidprintReport(OutputStream os)
     All report objects need to implement the printReport method so that the framework can manage the report output.
public  voidsetDataContext(String newDataContext)
     Sets the data context that the report is to work with.
public  voidsetReportCode(String newReportcode)
     This is the unique identifier for the report.
public  voidsetReportParameters(Map parameters)
     Sets the report parameters.



Method Detail
getDefaultValue
public String getDefaultValue(String parameterName)(Code)
Retrieve the default parameter value for the given parameter name
Parameters:
  parameterName - the name of the parameter. Must be listedin the list of parameter names java.lang.String. The default parameter value. May be null.
throws:
  IllegalArgumentException - if the parameter name does not existin the report's parameter list.



getParameterNames
public List getParameterNames()(Code)
Retrieve a list of parameters that this report supports. This function may be blank, in which case, there still could be parameters for the report but the automatic ui functions such as ReportServer won't present them as options. java.util.List of Strings. or null if there are no parameters



getReportFileExtension
public String getReportFileExtension()(Code)
Retrieve the recommended file extension for the report. Return the value without the '.'. So an example file extension for an Excel report would be "xls", and XML formatted report would be "xml" [although if you're using special XML languages, of course you have the freedom to specify the extension] java.lang.String in the format specified above.



getReportMimeType
public String getReportMimeType()(Code)
The report engine driver is most likely going to need to know what kind of MimeType to expect the report. java.lang.String Most likely the report should look up the filetype on the MimeTypes table.
See Also:   com.jcorporate.expresso.services.dbobj.MimeTypes



getTitle
public String getTitle()(Code)
Retrieve the title of the report java.lang.String



printReport
public void printReport(OutputStream os) throws ReportException, java.io.IOException(Code)
All report objects need to implement the printReport method so that the framework can manage the report output.
Parameters:
  os - The OutputStream for the report to print to.
throws:
  ReportException - on error
throws:
  IOException - upon IO Error



setDataContext
public void setDataContext(String newDataContext)(Code)
Sets the data context that the report is to work with.
Parameters:
  newDataContext - the new data context



setReportCode
public void setReportCode(String newReportcode)(Code)
This is the unique identifier for the report. Not necessarily the
Parameters:
  newReportcode - the report definition code



setReportParameters
public void setReportParameters(Map parameters)(Code)
Sets the report parameters. Parameters are keyed by String parameter names and the values are of type java.lang.String
Parameters:
  parameters - a java.util.Map object with the contents as specifiedin the function description.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.