Source Code Cross Referenced for FieldsProvider.java in  » Report » iReport-2.0.5 » it » businesslogic » ireport » 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 » Report » iReport 2.0.5 » it.businesslogic.ireport 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright (C) 2005 - 2008 JasperSoft Corporation.  All rights reserved. 
003:         * http://www.jaspersoft.com.
004:         *
005:         * Unless you have purchased a commercial license agreement from JasperSoft,
006:         * the following license terms apply:
007:         *
008:         * This program is free software; you can redistribute it and/or modify
009:         * it under the terms of the GNU General Public License version 2 as published by
010:         * the Free Software Foundation.
011:         *
012:         * This program is distributed WITHOUT ANY WARRANTY; and without the
013:         * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
014:         * See the GNU General Public License for more details.
015:         *
016:         * You should have received a copy of the GNU General Public License
017:         * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
018:         * or write to:
019:         *
020:         * Free Software Foundation, Inc.,
021:         * 59 Temple Place - Suite 330,
022:         * Boston, MA  USA  02111-1307
023:         *
024:         * FieldsProvider.java
025:         *
026:         * Created on December 5, 2006, 8:55 PM
027:         *
028:         */
029:
030:        package it.businesslogic.ireport;
031:
032:        import it.businesslogic.ireport.gui.ReportQueryDialog;
033:        import java.awt.Component;
034:        import java.util.Map;
035:        import net.sf.jasperreports.engine.JRDataset;
036:        import net.sf.jasperreports.engine.JRException;
037:        import net.sf.jasperreports.engine.JRField;
038:
039:        /**
040:         *
041:         * @author gtoffoli
042:         */
043:        public interface FieldsProvider {
044:
045:            /**
046:             * Returns true if the provider supports the {@link #getFields(IReportConnection,JRDataset,Map) getFields} 
047:             * operation. By returning true in this method the data source provider indicates
048:             * that it is able to introspect the data source and discover the available fields.
049:             * 
050:             * @return true if the getFields() operation is supported.
051:             */
052:            public boolean supportsGetFieldsOperation();
053:
054:            /**
055:             * Returns the fields that are available from a query of a specific language
056:             * The provider can use the passed in report to extract some additional
057:             * configuration information such as report properties. 
058:             * The IReportConnection object can be used to execute the query.
059:             * 
060:             * @param con the IReportConnection active in iReport. 
061:             * @param the JRDataset that will be filled using the data source created by this provider.
062:             * 	The passed in report can be null. That means that no compiled report is available yet.
063:             * @param parameters map containing the interpreted default value of each parameter
064:             * @return a non null fields array. If there are no fields then an empty array must be returned.
065:             * 
066:             * @throws UnsupportedOperationException is the method is not supported
067:             * @throws JRException if an error occurs.
068:             */
069:            public JRField[] getFields(IReportConnection con,
070:                    JRDataset reportDataset, Map parameters)
071:                    throws JRException, UnsupportedOperationException;
072:
073:            /**
074:             * Returns true if the getFields can be run in a backgroiund thread each time the user changes the query.
075:             * This approach can not be valid for fieldsProviders that require much time to return the list of fields.
076:             */
077:            public boolean supportsAutomaticQueryExecution();
078:
079:            /**
080:             * Returns true if the FieldsProvider can run an own query designer
081:             */
082:            public boolean hasQueryDesigner();
083:
084:            /**
085:             * Returns true if the FieldsProvider can run an own editor
086:             */
087:            public boolean hasEditorComponent();
088:
089:            /**
090:             * This method is used to run a query designer for the specific language.
091:             *
092:             * @param con the IReportConnection active in iReport. 
093:             * @param query the query to modify
094:             * @param reportQueryDialog the parent reportQueryDialog. It can be used to get all (sub)dataset informations
095:             * with reportQueryDialog.getSubDataset();
096:             *
097:             */
098:            public String designQuery(IReportConnection con, String query,
099:                    ReportQueryDialog reportQueryDialog) throws JRException,
100:                    UnsupportedOperationException;
101:
102:            /**
103:             * The component that will stay on the right of the query panel. To listen for query changes, the component must implement
104:             * the interface FieldsProviderEditor. The component will be visible only when a queryCahnged is succesfully executed.
105:             * The component can store the reference to the report query dialog in which it will appear.
106:             *
107:             * The editor can 
108:             */
109:            public FieldsProviderEditor getEditorComponent(
110:                    ReportQueryDialog reportQueryDialog);
111:
112:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.