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


java.lang.Object
   net.sf.jasperreports.engine.fill.JRFillDataset

JRFillDataset
public class JRFillDataset implements JRDataset(Code)

author:
   Lucian Chirita (lucianc@users.sourceforge.net)
version:
   $Id: JRFillDataset.java 1828 2007-08-24 13:58:43Z teodord $

Inner Class :protected static class VariableCalculationReq

Field Summary
protected  JRCalculatorcalculator
     The calculator used by the dataset.
protected  JRDataSourcedataSource
     The data source.
protected  JRFillElementDataset[]elementDatasets
     The element datasets.
protected  JRFillField[]fields
     The dataset fields.
protected  MapfieldsMap
     The dataset fields indexed by name.
protected  JRFillGroup[]groups
     The dataset groups.
protected  Localelocale
     The Locale Locale to be used by the dataset.
protected  JRFillElementDataset[]origElementDatasets
     Used to save the original element datasets when JRFillDataset.filterElementDatasets(JRFillElementDataset) filterElementDatasets is called.
protected  JRFillParameter[]parameters
     The dataset parameter.
protected  MapparametersMap
     The dataset parameters indexed by name.
protected  JRQueryquery
     The dataset query.
protected  intreportCount
     The cursor used when iterating the data source.
protected  IntegerreportMaxCount
     The value of the JRParameter.REPORT_MAX_COUNT max count parameter.
protected  ResourceBundleresourceBundle
     The loaded resource bundle.
protected  StringresourceBundleBaseName
     The resource bundle base name.
protected  JRAbstractScriptletscriptlet
     The scriptlet used by the dataset.
protected  StringscriptletClassName
     The scriptlet class name.
protected  TimeZonetimeZone
     The TimeZone TimeZone to be used by the dataset.
protected  SetvariableCalculationReqs
     Set of VariableCalculationReq VariableCalculationReq objects.
protected  JRFillVariable[]variables
     The dataset variables.
protected  MapvariablesMap
     The dataset variables indexed by name.
protected  bytewhenResourceMissingType
     The resource missing handle type.

Constructor Summary
protected  JRFillDataset(JRBaseFiller filler, JRDataset dataset, JRFillObjectFactory factory)
     Creates a fill dataset object.

Method Summary
protected  voidaddVariableCalculationReq(String variableName, byte calculation)
     Adds a variable calculation requirement.
protected  booleanadvanceDataSource()
    
protected  voidcheckVariableCalculationReqs(JRFillObjectFactory factory)
     Checks if there are variable calculation requirements and creates the required variables.
protected  voidcloseDatasource()
    
protected  voidcreateCalculator(JasperReport jasperReport)
    
protected static  JRCalculatorcreateCalculator(JasperReport jasperReport, JRDataset dataset)
    
protected  JRAbstractScriptletcreateScriptlet()
     Creates the scriptlet.
protected  voidfilterElementDatasets(JRFillElementDataset elementDataset)
     Filters the element datasets, leaving only one.
public  ObjectgetFieldValue(String fieldName)
     Returns the value of a field.
public  JRField[]getFields()
    
public  JRExpressiongetFilterExpression()
    
public  JRGroup[]getGroups()
    
public  StringgetName()
    
public  ObjectgetParameterValue(String parameterName)
     Returns the value of a parameter.
public  ObjectgetParameterValue(String parameterName, boolean ignoreMissing)
     Returns the value of a parameter.
public  JRParameter[]getParameters()
    
public  MapgetParametersMap()
    
public  JRPropertiesMapgetPropertiesMap()
    
public  JRQuerygetQuery()
    
public  StringgetResourceBundle()
    
public  StringgetScriptletClass()
    
public  JRSortField[]getSortFields()
    
public  ObjectgetVariableValue(String variableName)
     Returns the value of a variable.
public  JRVariable[]getVariables()
    
public  bytegetWhenResourceMissingType()
    
protected  voidinheritFromMain()
     Inherits properties from the report.
protected  voidinitCalculator()
     Initializes the calculator.
protected  voidinitDatasource()
    
protected  voidinitElementDatasets(JRFillObjectFactory factory)
     Initializes the element datasets.
public  booleanisMainDataset()
    
protected  ResourceBundleloadResourceBundle()
     Loads the resource bundle corresponding to the resource bundle base name and locale.
protected  booleannext()
     Moves to the next record in the data source.
protected  voidreset()
    
protected  voidrestoreElementDatasets()
     Restores the original element datasets.
protected  voidrevertToOldValues()
    
protected  voidsetCalculator(JRCalculator calculator)
    
protected  voidsetConnectionParameterValue(Map parameterValues, Connection conn)
     Sets the JDBC connection to be used.
protected  voidsetDatasourceParameterValue(Map parameterValues, JRDataSource ds)
     Sets the data source to be used.
protected  voidsetOldValues()
    
protected  voidsetParameter(String parameterName, Object value)
     Sets the value of a parameter.
protected  voidsetParameter(JRFillParameter parameter, Object value)
     Sets the value of the parameter.
protected  voidsetParameterValues(Map parameterValues)
     Reads built-in parameter values from the value map.
public  voidsetWhenResourceMissingType(byte whenResourceMissingType)
    
protected  voidstart()
     Starts the iteration on the data source.

Field Detail
calculator
protected JRCalculator calculator(Code)
The calculator used by the dataset.



dataSource
protected JRDataSource dataSource(Code)
The data source.



elementDatasets
protected JRFillElementDataset[] elementDatasets(Code)
The element datasets.



fields
protected JRFillField[] fields(Code)
The dataset fields.



fieldsMap
protected Map fieldsMap(Code)
The dataset fields indexed by name.



groups
protected JRFillGroup[] groups(Code)
The dataset groups.



locale
protected Locale locale(Code)
The Locale Locale to be used by the dataset.



origElementDatasets
protected JRFillElementDataset[] origElementDatasets(Code)
Used to save the original element datasets when JRFillDataset.filterElementDatasets(JRFillElementDataset) filterElementDatasets is called.



parameters
protected JRFillParameter[] parameters(Code)
The dataset parameter.



parametersMap
protected Map parametersMap(Code)
The dataset parameters indexed by name.



query
protected JRQuery query(Code)
The dataset query.



reportCount
protected int reportCount(Code)
The cursor used when iterating the data source.



reportMaxCount
protected Integer reportMaxCount(Code)
The value of the JRParameter.REPORT_MAX_COUNT max count parameter.



resourceBundle
protected ResourceBundle resourceBundle(Code)
The loaded resource bundle.



resourceBundleBaseName
protected String resourceBundleBaseName(Code)
The resource bundle base name.



scriptlet
protected JRAbstractScriptlet scriptlet(Code)
The scriptlet used by the dataset.



scriptletClassName
protected String scriptletClassName(Code)
The scriptlet class name.



timeZone
protected TimeZone timeZone(Code)
The TimeZone TimeZone to be used by the dataset.



variableCalculationReqs
protected Set variableCalculationReqs(Code)
Set of VariableCalculationReq VariableCalculationReq objects.



variables
protected JRFillVariable[] variables(Code)
The dataset variables.



variablesMap
protected Map variablesMap(Code)
The dataset variables indexed by name.



whenResourceMissingType
protected byte whenResourceMissingType(Code)
The resource missing handle type.




Constructor Detail
JRFillDataset
protected JRFillDataset(JRBaseFiller filler, JRDataset dataset, JRFillObjectFactory factory)(Code)
Creates a fill dataset object.
Parameters:
  filler - the filelr
Parameters:
  dataset - the template dataset
Parameters:
  factory - the fill object factory




Method Detail
addVariableCalculationReq
protected void addVariableCalculationReq(String variableName, byte calculation)(Code)
Adds a variable calculation requirement.
Parameters:
  variableName - the variable name
Parameters:
  calculation - the required calculation



advanceDataSource
protected boolean advanceDataSource() throws JRException(Code)



checkVariableCalculationReqs
protected void checkVariableCalculationReqs(JRFillObjectFactory factory)(Code)
Checks if there are variable calculation requirements and creates the required variables.
Parameters:
  factory - the fill object factory



closeDatasource
protected void closeDatasource()(Code)



createCalculator
protected void createCalculator(JasperReport jasperReport) throws JRException(Code)
Creates the calculator
Parameters:
  jasperReport - the report
throws:
  JRException -



createCalculator
protected static JRCalculator createCalculator(JasperReport jasperReport, JRDataset dataset) throws JRException(Code)



createScriptlet
protected JRAbstractScriptlet createScriptlet() throws JRException(Code)
Creates the scriptlet. the scriptlet
throws:
  JRException -



filterElementDatasets
protected void filterElementDatasets(JRFillElementDataset elementDataset)(Code)
Filters the element datasets, leaving only one.

This method is used when a dataset is instantiated by a chart or crosstab.
Parameters:
  elementDataset - the element dataset that should remain




getFieldValue
public Object getFieldValue(String fieldName)(Code)
Returns the value of a field.
Parameters:
  fieldName - the field name the field value



getFields
public JRField[] getFields()(Code)



getFilterExpression
public JRExpression getFilterExpression()(Code)



getGroups
public JRGroup[] getGroups()(Code)



getName
public String getName()(Code)



getParameterValue
public Object getParameterValue(String parameterName)(Code)
Returns the value of a parameter.
Parameters:
  parameterName - the parameter name the parameter value



getParameterValue
public Object getParameterValue(String parameterName, boolean ignoreMissing)(Code)
Returns the value of a parameter.
Parameters:
  parameterName - the parameter name
Parameters:
  ignoreMissing - if set, null will be returned for inexisting parameters the parameter value



getParameters
public JRParameter[] getParameters()(Code)



getParametersMap
public Map getParametersMap()(Code)



getPropertiesMap
public JRPropertiesMap getPropertiesMap()(Code)



getQuery
public JRQuery getQuery()(Code)



getResourceBundle
public String getResourceBundle()(Code)



getScriptletClass
public String getScriptletClass()(Code)



getSortFields
public JRSortField[] getSortFields()(Code)



getVariableValue
public Object getVariableValue(String variableName)(Code)
Returns the value of a variable.
Parameters:
  variableName - the variable name the variable value



getVariables
public JRVariable[] getVariables()(Code)



getWhenResourceMissingType
public byte getWhenResourceMissingType()(Code)



inheritFromMain
protected void inheritFromMain()(Code)
Inherits properties from the report.



initCalculator
protected void initCalculator() throws JRException(Code)
Initializes the calculator.
throws:
  JRException -



initDatasource
protected void initDatasource() throws JRException(Code)



initElementDatasets
protected void initElementDatasets(JRFillObjectFactory factory)(Code)
Initializes the element datasets.
Parameters:
  factory - the fill object factory used by the filler



isMainDataset
public boolean isMainDataset()(Code)



loadResourceBundle
protected ResourceBundle loadResourceBundle()(Code)
Loads the resource bundle corresponding to the resource bundle base name and locale.



next
protected boolean next() throws JRException(Code)
Moves to the next record in the data source. true if the data source was not exhausted
throws:
  JRException -



reset
protected void reset()(Code)



restoreElementDatasets
protected void restoreElementDatasets()(Code)
Restores the original element datasets.

This method should be called after JRFillDataset.filterElementDatasets(JRFillElementDataset) filterElementDatasets .




revertToOldValues
protected void revertToOldValues()(Code)



setCalculator
protected void setCalculator(JRCalculator calculator)(Code)



setConnectionParameterValue
protected void setConnectionParameterValue(Map parameterValues, Connection conn)(Code)
Sets the JDBC connection to be used.
Parameters:
  parameterValues - the parameter values
Parameters:
  conn - the connection



setDatasourceParameterValue
protected void setDatasourceParameterValue(Map parameterValues, JRDataSource ds)(Code)
Sets the data source to be used.
Parameters:
  parameterValues - the parameter values
Parameters:
  ds - the data source



setOldValues
protected void setOldValues() throws JRException(Code)



setParameter
protected void setParameter(String parameterName, Object value) throws JRException(Code)
Sets the value of a parameter.
Parameters:
  parameterName - the parameter name
Parameters:
  value - the value
throws:
  JRException -



setParameter
protected void setParameter(JRFillParameter parameter, Object value) throws JRException(Code)
Sets the value of the parameter.
Parameters:
  parameter - the parameter
Parameters:
  value - the value
throws:
  JRException -



setParameterValues
protected void setParameterValues(Map parameterValues) throws JRException(Code)
Reads built-in parameter values from the value map.
Parameters:
  parameterValues - the parameter values
throws:
  JRException -



setWhenResourceMissingType
public void setWhenResourceMissingType(byte whenResourceMissingType)(Code)



start
protected void start()(Code)
Starts the iteration on the data source.



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.