|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjimm.datavision.Report
jimm.datavision.Subreport
public class Subreport
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.
| Field Summary | |
|---|---|
protected java.lang.String |
cachedValue
|
protected java.lang.Long |
id
|
protected Report |
parentReport
|
| Fields inherited from class jimm.datavision.Report |
|---|
aggregateFields, askedForParameters, author, caseSensitiveDatabaseNames, databasePassword, dataSource, defaultField, description, details, formulas, groups, layoutEngine, name, OUTPUT_DTD_VERSION, pageFooters, pageHeaders, paperFormat, parameters, parametersHaveValues, paramReader, paramsSetManually, reportFooters, reportHeaders, rset, scripting, startFormula, subreports, title, usercols, XML_ENCODING_ATTRIBUTE, XML_JAVA_ENCODING |
| Constructor Summary | |
|---|---|
Subreport(Report parent,
java.lang.Long id)
|
|
| Method Summary | |
|---|---|
void |
addAllJoins(java.util.Collection coll)
|
void |
addJoin(Join join)
|
void |
clearCache()
|
java.lang.Object |
getId()
Returns the identity. |
Report |
getParentReport()
|
java.lang.Object |
getValue()
Runs the query and returns a string containing a line of text for each row returned by the subreport query. |
protected java.util.Collection |
makeRowStrings()
Returns an array of strings, each containing the values returned by the subreport query separated by spaces. |
java.util.Iterator |
parentColumns()
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. |
void |
writeXML(XMLWriter out)
Writes the contents of this report as an XML file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Report parentReport
protected java.lang.Long id
protected java.lang.String cachedValue
| Constructor Detail |
|---|
public Subreport(Report parent,
java.lang.Long id)
| Method Detail |
|---|
public java.lang.Object getId()
Identity
getId in interface Identitypublic Report getParentReport()
public void addJoin(Join join)
public void addAllJoins(java.util.Collection coll)
public java.util.Iterator parentColumns()
public void clearCache()
public java.lang.Object getValue()
makeRowStrings()protected java.util.Collection makeRowStrings()
public void writeXML(XMLWriter out)
Report
writeXML in interface WriteablewriteXML in class Reportout - an indent writer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||