Java Doc for JRDesignDataset.java in  » Report » jasperreports-2.0.1 » net » sf » jasperreports » engine » design » 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 » jasperreports 2.0.1 » net.sf.jasperreports.engine.design 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sf.jasperreports.engine.base.JRBaseDataset
      net.sf.jasperreports.engine.design.JRDesignDataset

JRDesignDataset
public class JRDesignDataset extends JRBaseDataset (Code)
Implementation of net.sf.jasperreports.engine.JRDataset JRDataset to be used for report desing.
author:
   Lucian Chirita (lucianc@users.sourceforge.net)
version:
   $Id: JRDesignDataset.java 1759 2007-06-20 16:47:34Z lucianc $


Field Summary
protected  ListfieldsList
    
protected  MapfieldsMap
     Fields mapped by name.
protected  ListgroupsList
    
protected  MapgroupsMap
     Groups mapped by name.
protected  ListparametersList
    
protected  MapparametersMap
     Parameters mapped by name.
protected  ListsortFieldsList
    
protected  MapsortFieldsMap
     Sort fields mapped by name.
protected  ListvariablesList
    
protected  MapvariablesMap
     Variables mapped by name.

Constructor Summary
public  JRDesignDataset(boolean isMain)
     Create a dataset.

Method Summary
public  voidaddField(JRField field)
     Adds a field to the dataset.
public  voidaddGroup(JRDesignGroup group)
     Adds a group to the dataset.
public  voidaddParameter(JRParameter parameter)
     Adds a parameter to the dataset.
public  voidaddSortField(JRSortField sortField)
     Adds a sort field to the dataset.
public  voidaddVariable(JRDesignVariable variable)
     Adds a variable to the dataset.
protected  voidaddVariable(JRDesignVariable variable, boolean system)
     Adds a variable to the dataset.
public  JRField[]getFields()
    
public  ListgetFieldsList()
     Returns the list of fields.
public  MapgetFieldsMap()
     Returns the map of fields indexed by name.
public  JRGroup[]getGroups()
    
public  ListgetGroupsList()
     Returns the list of groups.
public  MapgetGroupsMap()
     Returns the map of groups indexed by name.
public  JRParameter[]getParameters()
    
public  ListgetParametersList()
     Returns the list of parameters, including build-in ones.
public  MapgetParametersMap()
     Returns the map of parameters, including build-in ones, indexed by name.
public  JRSortField[]getSortFields()
    
public  ListgetSortFieldsList()
     Returns the list of sort fields.
public  JRVariable[]getVariables()
    
public  ListgetVariablesList()
     Returns the list of variables, including build-in ones.
public  MapgetVariablesMap()
     Returns the map of variable, including build-in ones, indexed by name.
protected  voidqueryLanguageChanged(String oldLanguage, String newLanguage)
    
public  JRFieldremoveField(String fieldName)
     Removes a field from the dataset.
public  JRFieldremoveField(JRField field)
     Removes a field from the dataset.
public  JRGroupremoveGroup(String groupName)
     Removes a group from the dataset.
public  JRGroupremoveGroup(JRGroup group)
     Removes a group from the dataset.
public  JRParameterremoveParameter(String parameterName)
     Removes a parameter from the dataset.
public  JRParameterremoveParameter(JRParameter parameter)
     Removes a parameter from the dataset.
public  JRSortFieldremoveSortField(String fieldName)
     Removes a sort field from the dataset.
public  JRSortFieldremoveSortField(JRSortField sortField)
     Removes a sort field from the dataset.
public  JRVariableremoveVariable(String variableName)
     Removes a variable from the dataset.
public  JRVariableremoveVariable(JRVariable variable)
     Removes a variable from the dataset.
public  voidsetFilterExpression(JRExpression expression)
     Sets the dataset filter expression.
public  voidsetName(String name)
     Sets the name of the dataset.
public  voidsetProperty(String propName, String value)
     Adds/sets a property value.
public  voidsetQuery(JRDesignQuery query)
     Sets the dataset query.
public  voidsetResourceBundle(String resourceBundle)
     Sets the base name of resource bundle to be used by the dataset.
public  voidsetScriptletClass(String scriptletClass)
     Sets the scriptlet class name.

Field Detail
fieldsList
protected List fieldsList(Code)



fieldsMap
protected Map fieldsMap(Code)
Fields mapped by name.



groupsList
protected List groupsList(Code)



groupsMap
protected Map groupsMap(Code)
Groups mapped by name.



parametersList
protected List parametersList(Code)



parametersMap
protected Map parametersMap(Code)
Parameters mapped by name.



sortFieldsList
protected List sortFieldsList(Code)



sortFieldsMap
protected Map sortFieldsMap(Code)
Sort fields mapped by name.



variablesList
protected List variablesList(Code)



variablesMap
protected Map variablesMap(Code)
Variables mapped by name.




Constructor Detail
JRDesignDataset
public JRDesignDataset(boolean isMain)(Code)
Create a dataset.
Parameters:
  isMain - whether this is the main dataset of the report or a sub dataset
See Also:   net.sf.jasperreports.engine.JRDataset.isMainDataset




Method Detail
addField
public void addField(JRField field) throws JRException(Code)
Adds a field to the dataset.
Parameters:
  field - the field to add
throws:
  JRException -
See Also:   net.sf.jasperreports.engine.JRDataset.getFields



addGroup
public void addGroup(JRDesignGroup group) throws JRException(Code)
Adds a group to the dataset.
Parameters:
  group - the group to add
throws:
  JRException -
See Also:   net.sf.jasperreports.engine.JRDataset.getGroups



addParameter
public void addParameter(JRParameter parameter) throws JRException(Code)
Adds a parameter to the dataset.
Parameters:
  parameter - the parameter to add
throws:
  JRException -
See Also:   net.sf.jasperreports.engine.JRDataset.getParameters



addSortField
public void addSortField(JRSortField sortField) throws JRException(Code)
Adds a sort field to the dataset.
Parameters:
  sortField - the sort field to add
throws:
  JRException -
See Also:   net.sf.jasperreports.engine.JRDataset.getSortFields



addVariable
public void addVariable(JRDesignVariable variable) throws JRException(Code)
Adds a variable to the dataset.
Parameters:
  variable - the variable to add
throws:
  JRException -
See Also:   net.sf.jasperreports.engine.JRDataset.getVariables



addVariable
protected void addVariable(JRDesignVariable variable, boolean system) throws JRException(Code)
Adds a variable to the dataset.
Parameters:
  variable - the variable to add
Parameters:
  system - whether the variable should be added before user defined variablesor at the end of the variables list
throws:
  JRException -



getFields
public JRField[] getFields()(Code)



getFieldsList
public List getFieldsList()(Code)
Returns the list of fields. list of JRField JRField objects



getFieldsMap
public Map getFieldsMap()(Code)
Returns the map of fields indexed by name. JRField JRField objects indexed by name



getGroups
public JRGroup[] getGroups()(Code)



getGroupsList
public List getGroupsList()(Code)
Returns the list of groups. list of JRGroup JRGroup objects



getGroupsMap
public Map getGroupsMap()(Code)
Returns the map of groups indexed by name. JRGroup JRGroup objects indexed by name



getParameters
public JRParameter[] getParameters()(Code)



getParametersList
public List getParametersList()(Code)
Returns the list of parameters, including build-in ones. list of JRParameter JRParameter objects



getParametersMap
public Map getParametersMap()(Code)
Returns the map of parameters, including build-in ones, indexed by name. JRParameter JRParameter objects indexed by name



getSortFields
public JRSortField[] getSortFields()(Code)



getSortFieldsList
public List getSortFieldsList()(Code)
Returns the list of sort fields. list of JRSortField JRSortField objects



getVariables
public JRVariable[] getVariables()(Code)



getVariablesList
public List getVariablesList()(Code)
Returns the list of variables, including build-in ones. list of JRVariable JRVariable objects



getVariablesMap
public Map getVariablesMap()(Code)
Returns the map of variable, including build-in ones, indexed by name. JRVariable JRVariable objects indexed by name



queryLanguageChanged
protected void queryLanguageChanged(String oldLanguage, String newLanguage)(Code)



removeField
public JRField removeField(String fieldName)(Code)
Removes a field from the dataset.
Parameters:
  fieldName - the field name the removed field, or null if the field was not found



removeField
public JRField removeField(JRField field)(Code)
Removes a field from the dataset.
Parameters:
  field - the field to be removed the field to be removed



removeGroup
public JRGroup removeGroup(String groupName)(Code)
Removes a group from the dataset.
Parameters:
  groupName - the group name the removed group, or null if the group was not found



removeGroup
public JRGroup removeGroup(JRGroup group)(Code)
Removes a group from the dataset.
Parameters:
  group - the group to be removed the group to be removed



removeParameter
public JRParameter removeParameter(String parameterName)(Code)
Removes a parameter from the dataset.
Parameters:
  parameterName - the parameter name the removed parameter, or null if the parameter was not found



removeParameter
public JRParameter removeParameter(JRParameter parameter)(Code)
Removes a parameter from the dataset.
Parameters:
  parameter - the parameter to be removed the parameter to be removed



removeSortField
public JRSortField removeSortField(String fieldName)(Code)
Removes a sort field from the dataset.
Parameters:
  fieldName - the field name the removed sort field, or null if the sort field was not found



removeSortField
public JRSortField removeSortField(JRSortField sortField)(Code)
Removes a sort field from the dataset.
Parameters:
  sortField - the sort field to be removed the sort field to be removed



removeVariable
public JRVariable removeVariable(String variableName)(Code)
Removes a variable from the dataset.
Parameters:
  variableName - the variable name the removed variable, or null if the variable was not found



removeVariable
public JRVariable removeVariable(JRVariable variable)(Code)
Removes a variable from the dataset.
Parameters:
  variable - the variable to be removed the variable to be removed



setFilterExpression
public void setFilterExpression(JRExpression expression)(Code)
Sets the dataset filter expression.

The expression value class should be java.lang.Boolean.


Parameters:
  expression - the boolean expression to use as filter expression
See Also:   JRDataset.getFilterExpression



setName
public void setName(String name)(Code)
Sets the name of the dataset.
Parameters:
  name - the name of the dataset
See Also:   net.sf.jasperreports.engine.JRDataset.getName



setProperty
public void setProperty(String propName, String value)(Code)
Adds/sets a property value.
Parameters:
  propName - the name of the property
Parameters:
  value - the value of the property



setQuery
public void setQuery(JRDesignQuery query)(Code)
Sets the dataset query.
Parameters:
  query - the query
See Also:   net.sf.jasperreports.engine.JRDataset.getQuery



setResourceBundle
public void setResourceBundle(String resourceBundle)(Code)
Sets the base name of resource bundle to be used by the dataset.
Parameters:
  resourceBundle - the resource bundle base name



setScriptletClass
public void setScriptletClass(String scriptletClass)(Code)
Sets the scriptlet class name.

If no scriptlet class name is specified, a default scriptlet is used.
Parameters:
  scriptletClass - the class name of the scriptlet
See Also:   net.sf.jasperreports.engine.JRDataset.getScriptletClass




Fields inherited from net.sf.jasperreports.engine.base.JRBaseDataset
protected JRField[] fields(Code)(Java Doc)
protected JRExpression filterExpression(Code)(Java Doc)
protected JRGroup[] groups(Code)(Java Doc)
final protected boolean isMain(Code)(Java Doc)
protected String name(Code)(Java Doc)
protected JRParameter[] parameters(Code)(Java Doc)
protected JRPropertiesMap propertiesMap(Code)(Java Doc)
protected JRQuery query(Code)(Java Doc)
protected String resourceBundle(Code)(Java Doc)
protected String scriptletClass(Code)(Java Doc)
protected JRSortField[] sortFields(Code)(Java Doc)
protected JRVariable[] variables(Code)(Java Doc)
protected byte whenResourceMissingType(Code)(Java Doc)

Methods inherited from net.sf.jasperreports.engine.base.JRBaseDataset
public JRField[] getFields()(Code)(Java Doc)
public JRExpression getFilterExpression()(Code)(Java Doc)
public JRGroup[] getGroups()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public JRParameter[] getParameters()(Code)(Java Doc)
public JRPropertiesMap getPropertiesMap()(Code)(Java Doc)
public JRQuery getQuery()(Code)(Java Doc)
public String getResourceBundle()(Code)(Java Doc)
public String getScriptletClass()(Code)(Java Doc)
public JRSortField[] getSortFields()(Code)(Java Doc)
public JRVariable[] getVariables()(Code)(Java Doc)
public byte getWhenResourceMissingType()(Code)(Java Doc)
public boolean isMainDataset()(Code)(Java Doc)
public void setWhenResourceMissingType(byte whenResourceMissingType)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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