Java Doc for Subreport.java in  » Report » datavision-1.1.0 » jimm » datavision » 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 » datavision 1.1.0 » jimm.datavision 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   jimm.datavision.Report
      jimm.datavision.Subreport

Subreport
public class Subreport extends Report implements Identity(Code)
A subreport is a report whose query is run every time the field containing it is output.

When first created, the subreport adds the joins given to it to its SQL where clause, turning the columns from the current report into parameters.
author:
   Jim Menard, jimm@io.com



Field Summary
protected  StringcachedValue
    
protected  Longid
    
protected  ReportparentReport
    

Constructor Summary
public  Subreport(Report parent, Long id)
    

Method Summary
public  voidaddAllJoins(Collection coll)
    
public  voidaddJoin(Join join)
    
public  voidclearCache()
    
public  ObjectgetId()
    
public  ReportgetParentReport()
    
public  ObjectgetValue()
     Runs the query and returns a string containing a line of text for each row returned by the subreport query.
protected  CollectionmakeRowStrings()
     Returns an array of strings, each containing the values returned by the subreport query separated by spaces.
public  IteratorparentColumns()
     Returns an iterator over all of the columns that need to be included in the parent report's query so that the values are available to this subreport when it builds its query.
public  voidwriteXML(XMLWriter out)
    

Field Detail
cachedValue
protected String cachedValue(Code)



id
protected Long id(Code)



parentReport
protected Report parentReport(Code)




Constructor Detail
Subreport
public Subreport(Report parent, Long id)(Code)




Method Detail
addAllJoins
public void addAllJoins(Collection coll)(Code)



addJoin
public void addJoin(Join join)(Code)



clearCache
public void clearCache()(Code)



getId
public Object getId()(Code)



getParentReport
public Report getParentReport()(Code)



getValue
public Object getValue()(Code)
Runs the query and returns a string containing a line of text for each row returned by the subreport query. a string with newlines separating each row of data
See Also:   Subreport.makeRowStrings



makeRowStrings
protected Collection makeRowStrings()(Code)
Returns an array of strings, each containing the values returned by the subreport query separated by spaces.



parentColumns
public Iterator parentColumns()(Code)
Returns an iterator over all of the columns that need to be included in the parent report's query so that the values are available to this subreport when it builds its query. an iterator over selectables



writeXML
public void writeXML(XMLWriter out)(Code)



Fields inherited from jimm.datavision.Report
final protected static double OUTPUT_DTD_VERSION(Code)(Java Doc)
final public static String XML_ENCODING_ATTRIBUTE(Code)(Java Doc)
final public static String XML_JAVA_ENCODING(Code)(Java Doc)
protected Collection aggregateFields(Code)(Java Doc)
protected boolean askedForParameters(Code)(Java Doc)
protected String author(Code)(Java Doc)
protected boolean caseSensitiveDatabaseNames(Code)(Java Doc)
protected DataSource dataSource(Code)(Java Doc)
protected String databasePassword(Code)(Java Doc)
protected Field defaultField(Code)(Java Doc)
protected String description(Code)(Java Doc)
protected SectionArea details(Code)(Java Doc)
protected HashMap formulas(Code)(Java Doc)
protected ArrayList groups(Code)(Java Doc)
protected LayoutEngine layoutEngine(Code)(Java Doc)
protected String name(Code)(Java Doc)
protected SectionArea pageFooters(Code)(Java Doc)
protected SectionArea pageHeaders(Code)(Java Doc)
protected PaperFormat paperFormat(Code)(Java Doc)
protected ParameterReader paramReader(Code)(Java Doc)
protected TreeMap parameters(Code)(Java Doc)
protected boolean parametersHaveValues(Code)(Java Doc)
protected boolean paramsSetManually(Code)(Java Doc)
protected SectionArea reportFooters(Code)(Java Doc)
protected SectionArea reportHeaders(Code)(Java Doc)
protected DataCursor rset(Code)(Java Doc)
protected Scripting scripting(Code)(Java Doc)
protected Formula startFormula(Code)(Java Doc)
protected HashMap subreports(Code)(Java Doc)
protected String title(Code)(Java Doc)
protected HashMap usercols(Code)(Java Doc)

Methods inherited from jimm.datavision.Report
public void add(Object obj)(Code)(Java Doc)
public void addFormula(Formula f)(Code)(Java Doc)
public void addGroup(Group g)(Code)(Java Doc)
public void addParameter(Parameter p)(Code)(Java Doc)
public void addSubreport(Subreport sub)(Code)(Java Doc)
public void addUserColumn(UserColumn uc)(Code)(Java Doc)
protected void askForDataSourceFile() throws UserCancellationException, FileNotFoundException(Code)(Java Doc)
protected void askForParameters() throws UserCancellationException(Code)(Java Doc)
public void askForPassword(Database db)(Code)(Java Doc)
public boolean caseSensitiveDatabaseNames()(Code)(Java Doc)
protected void collectAggregateFields()(Code)(Java Doc)
protected List collectUsedParameters()(Code)(Java Doc)
public Object columnValue(Selectable selectable)(Code)(Java Doc)
public boolean contains(Section s)(Code)(Java Doc)
public boolean contains(Field f)(Code)(Java Doc)
public boolean containsReferenceTo(Field f)(Code)(Java Doc)
public boolean containsReferenceTo(Formula f)(Code)(Java Doc)
public boolean containsReferenceTo(UserColumn uc)(Code)(Java Doc)
public boolean containsReferenceTo(Parameter p)(Code)(Java Doc)
public int countGroups()(Code)(Java Doc)
public SectionArea details()(Code)(Java Doc)
public Object eval(String language, String evalString, String displayName) throws BSFException(Code)(Java Doc)
public void evaluateFormulasIn(Section s)(Code)(Java Doc)
public Column findColumn(String id)(Code)(Java Doc)
public Field findField(Object id)(Code)(Java Doc)
public Formula findFormula(Object id)(Code)(Java Doc)
public Formula findFormulaByName(String name)(Code)(Java Doc)
public Group findGroup(Selectable selectable)(Code)(Java Doc)
public Group findGroup(Section section)(Code)(Java Doc)
public Parameter findParameter(Object id)(Code)(Java Doc)
public Parameter findParameterByName(String name)(Code)(Java Doc)
public Selectable findSelectable(Object id, String type)(Code)(Java Doc)
public Subreport findSubreport(Object id)(Code)(Java Doc)
public UserColumn findUserColumn(Object id)(Code)(Java Doc)
public UserColumn findUserColumnByName(String name)(Code)(Java Doc)
public SectionArea footers()(Code)(Java Doc)
public Iterator formulas()(Code)(Java Doc)
public Long generateNewFormulaId()(Code)(Java Doc)
protected Long generateNewId(Iterator iter)(Code)(Java Doc)
public Long generateNewParameterId()(Code)(Java Doc)
public Long generateNewSubreportId()(Code)(Java Doc)
public Long generateNewUserColumnId()(Code)(Java Doc)
public AbstractList getAggregateFieldsFor(Field field)(Code)(Java Doc)
public String getAuthor()(Code)(Java Doc)
public DataCursor getCurrentRow()(Code)(Java Doc)
public DataSource getDataSource()(Code)(Java Doc)
public Field getDefaultField()(Code)(Java Doc)
public String getDescription()(Code)(Java Doc)
protected Frame getDesignFrame()(Code)(Java Doc)
public Section getFirstSectionByArea(int area)(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public PaperFormat getPaperFormat()(Code)(Java Doc)
public Object getParameterValue(Object paramId)(Code)(Java Doc)
public Scripting getScripting()(Code)(Java Doc)
public SectionArea getSectionArea(int area)(Code)(Java Doc)
public ReportSectionLoc getSectionLocation(Section s)(Code)(Java Doc)
public Formula getStartFormula()(Code)(Java Doc)
public String getTitle()(Code)(Java Doc)
public Iterator groups()(Code)(Java Doc)
public Iterator groupsReversed()(Code)(Java Doc)
public boolean hasDataSource()(Code)(Java Doc)
public boolean hasFields()(Code)(Java Doc)
public boolean hasGroups()(Code)(Java Doc)
public boolean hasParameterFields()(Code)(Java Doc)
public SectionArea headers()(Code)(Java Doc)
public void initializeSections()(Code)(Java Doc)
public Group innermostGroup()(Code)(Java Doc)
public Section insertSectionBelow(Section goBelowThis)(Code)(Java Doc)
public Section insertSectionBelow(Section section, Section goBelowThis)(Code)(Java Doc)
public boolean isInsideGroup(Section section)(Code)(Java Doc)
public boolean isOneOfAKind(Section s)(Code)(Java Doc)
public boolean isUsedBySomeGroup(Selectable g)(Code)(Java Doc)
public SectionArea pageFooters()(Code)(Java Doc)
public SectionArea pageHeaders()(Code)(Java Doc)
public int pageNumber()(Code)(Java Doc)
public Iterator parameters()(Code)(Java Doc)
public void parametersSetManually(boolean val)(Code)(Java Doc)
protected void processResultRow() throws java.sql.SQLException(Code)(Java Doc)
public void read(File f) throws Exception(Code)(Java Doc)
public void read(org.xml.sax.InputSource in) throws Exception(Code)(Java Doc)
public void reinsertSection(ReportSectionLoc loc)(Code)(Java Doc)
public void reloadColumns()(Code)(Java Doc)
public void remove(Object obj)(Code)(Java Doc)
public void removeAllGroups()(Code)(Java Doc)
public void removeField(Field f)(Code)(Java Doc)
public void removeFormula(Formula f)(Code)(Java Doc)
public void removeGroup(Group g)(Code)(Java Doc)
public void removeParameter(Parameter p)(Code)(Java Doc)
public void removeSection(Section s)(Code)(Java Doc)
public void removeSubreport(Subreport sub)(Code)(Java Doc)
public void removeUserColumn(UserColumn uc)(Code)(Java Doc)
protected void resetCachedValues()(Code)(Java Doc)
public int rowNumber()(Code)(Java Doc)
public void run()(Code)(Java Doc)
public void runReport()(Code)(Java Doc)
public Section sectionContaining(Field f)(Code)(Java Doc)
public void setAuthor(String newAuthor)(Code)(Java Doc)
public void setCaseSensitiveDatabaseNames(boolean val)(Code)(Java Doc)
public void setDataSource(DataSource newDataSource)(Code)(Java Doc)
public void setDatabaseConnection(Connection conn) throws SQLException(Code)(Java Doc)
public void setDatabasePassword(String pwd)(Code)(Java Doc)
public void setDescription(String newDescription)(Code)(Java Doc)
public void setLayoutEngine(LayoutEngine layoutEngine)(Code)(Java Doc)
public void setName(String newName)(Code)(Java Doc)
public void setPaperFormat(PaperFormat newPaperFormat)(Code)(Java Doc)
public void setParameterXMLInput(File f)(Code)(Java Doc)
public void setParameterXMLInput(InputSource in)(Code)(Java Doc)
public void setStartFormula(Formula newStartFormula)(Code)(Java Doc)
public void setTitle(String newTitle)(Code)(Java Doc)
public Iterator subreports()(Code)(Java Doc)
protected void updateAggregates()(Code)(Java Doc)
protected void updateGroupCounters()(Code)(Java Doc)
protected void updateGroups()(Code)(Java Doc)
public Iterator userColumns()(Code)(Java Doc)
public Object value(String labelOrId)(Code)(Java Doc)
public void withFieldsDo(FieldWalker f)(Code)(Java Doc)
public void withSectionsDo(SectionWalker s)(Code)(Java Doc)
protected void writeComment(XMLWriter out)(Code)(Java Doc)
protected void writeDescription(XMLWriter out)(Code)(Java Doc)
public void writeFile(String fileName)(Code)(Java Doc)
protected void writePage(XMLWriter out)(Code)(Java Doc)
protected void writeReport(XMLWriter out)(Code)(Java Doc)
protected void writeStartFormula(XMLWriter out)(Code)(Java Doc)
public void writeXML(XMLWriter out)(Code)(Java Doc)
protected void writeXMLDecl(XMLWriter out)(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.