EspressReport 6.6

quadbase.reportdesigner.report
Class Formula

java.lang.Object
  extended by quadbase.reportdesigner.report.Operand
      extended by quadbase.reportdesigner.report.Formula
All Implemented Interfaces:
java.lang.Comparable<Formula>

public class Formula
extends quadbase.reportdesigner.report.Operand
implements java.lang.Comparable<Formula>


Field Summary
 boolean calculated
           
 
Fields inherited from class quadbase.reportdesigner.report.Operand
BOOLEAN, CALENDARFIELD, DATE, NULL, NUMBER, STRING, TIME, TIMESTAMP
 
Constructor Summary
Formula()
           
Formula(java.lang.String name)
           
Formula(java.lang.String name, java.lang.String text)
           
 
Method Summary
 int compareTo(Formula o)
           
 Formula copy()
          copy instance variables and references
 boolean equals(Formula f)
           
 boolean formulaReferenced(Formula f)
           
 int getDatatype(quadbase.reportdesigner.report.Report report)
           
 quadbase.reportdesigner.report.Operand getFormula()
           
 java.lang.String getName()
           
 int getSubReportIndex()
           
 java.lang.String getText()
           
 java.lang.Object getValue(ReportTable table, int index, int page, int section, int totalpages, int totalsections, quadbase.reportdesigner.report.Report r, ReportCell cell, java.lang.Object dataobj)
           
 java.lang.Object getValue(ReportTable table, int index, int page, int section, int totalpages, int totalsections, quadbase.reportdesigner.report.Report r, ReportCell cell, java.lang.Object dataobj, boolean secondRound)
           
 java.lang.Object getValue(ReportTable table, int index, int page, int section, int totalpages, int totalsections, quadbase.reportdesigner.report.Report r, ReportCell cell, java.lang.Object dataobj, boolean secondRound, java.util.Vector preAggCol, java.util.Vector resultCol)
           
 java.lang.Object getValue(ReportTable table, int index, int page, int section, int totalpages, int totalsections, quadbase.reportdesigner.report.Report r, ReportCell cell, java.lang.Object dataobj, boolean secondRound, java.util.Vector preAggCol, java.util.Vector resultCol, quadbase.reportdesigner.report.ColData[] colData)
           
 java.lang.Object getValue(ReportTable table, int index, int page, int section, int totalpages, int totalsections, quadbase.reportdesigner.report.Report r, ReportCell cell, java.lang.Object dataobj, boolean secondRound, java.util.Vector preAggCol, java.util.Vector resultCol, quadbase.reportdesigner.report.ColData[] colData, boolean errorChecking)
           
 void parseThisFormula()
           
 void read(java.io.DataInput in, int version, java.util.Vector<java.util.Vector<Formula>> formulas, java.util.Vector queryParams, java.util.Vector formulaParams)
           
 void readXML(org.w3c.dom.Node node, int version, java.util.Vector<java.util.Vector<Formula>> formulas, java.util.Vector queryParams, java.util.Vector formulaParams)
           
 void setFormula(quadbase.reportdesigner.report.Operand op)
           
 void setName(java.lang.String name)
           
 void setSubReportIndex(int index)
           
 void setText(java.lang.String text)
           
 java.lang.String toString()
           
 void write(java.io.DataOutput out)
           
 void writeXML(java.io.Writer out)
           
 
Methods inherited from class quadbase.reportdesigner.report.Operand
getSQLType, isDate, mapToOperandType, setDatatype, setThisDataType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

calculated

public boolean calculated
Constructor Detail

Formula

public Formula()

Formula

public Formula(java.lang.String name)

Formula

public Formula(java.lang.String name,
               java.lang.String text)
Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getText

public java.lang.String getText()

setText

public void setText(java.lang.String text)

getFormula

public quadbase.reportdesigner.report.Operand getFormula()

setFormula

public void setFormula(quadbase.reportdesigner.report.Operand op)

getSubReportIndex

public int getSubReportIndex()

setSubReportIndex

public void setSubReportIndex(int index)

getValue

public java.lang.Object getValue(ReportTable table,
                                 int index,
                                 int page,
                                 int section,
                                 int totalpages,
                                 int totalsections,
                                 quadbase.reportdesigner.report.Report r,
                                 ReportCell cell,
                                 java.lang.Object dataobj)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getValue

public java.lang.Object getValue(ReportTable table,
                                 int index,
                                 int page,
                                 int section,
                                 int totalpages,
                                 int totalsections,
                                 quadbase.reportdesigner.report.Report r,
                                 ReportCell cell,
                                 java.lang.Object dataobj,
                                 boolean secondRound)
                          throws java.lang.Exception
Specified by:
getValue in class quadbase.reportdesigner.report.Operand
Throws:
java.lang.Exception

getValue

public java.lang.Object getValue(ReportTable table,
                                 int index,
                                 int page,
                                 int section,
                                 int totalpages,
                                 int totalsections,
                                 quadbase.reportdesigner.report.Report r,
                                 ReportCell cell,
                                 java.lang.Object dataobj,
                                 boolean secondRound,
                                 java.util.Vector preAggCol,
                                 java.util.Vector resultCol)
                          throws java.lang.Exception
Specified by:
getValue in class quadbase.reportdesigner.report.Operand
Throws:
java.lang.Exception

getValue

public java.lang.Object getValue(ReportTable table,
                                 int index,
                                 int page,
                                 int section,
                                 int totalpages,
                                 int totalsections,
                                 quadbase.reportdesigner.report.Report r,
                                 ReportCell cell,
                                 java.lang.Object dataobj,
                                 boolean secondRound,
                                 java.util.Vector preAggCol,
                                 java.util.Vector resultCol,
                                 quadbase.reportdesigner.report.ColData[] colData)
                          throws java.lang.Exception
Specified by:
getValue in class quadbase.reportdesigner.report.Operand
Throws:
java.lang.Exception

getValue

public java.lang.Object getValue(ReportTable table,
                                 int index,
                                 int page,
                                 int section,
                                 int totalpages,
                                 int totalsections,
                                 quadbase.reportdesigner.report.Report r,
                                 ReportCell cell,
                                 java.lang.Object dataobj,
                                 boolean secondRound,
                                 java.util.Vector preAggCol,
                                 java.util.Vector resultCol,
                                 quadbase.reportdesigner.report.ColData[] colData,
                                 boolean errorChecking)
                          throws java.lang.Exception
Throws:
java.lang.Exception

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Throws:
java.io.IOException

read

public void read(java.io.DataInput in,
                 int version,
                 java.util.Vector<java.util.Vector<Formula>> formulas,
                 java.util.Vector queryParams,
                 java.util.Vector formulaParams)
          throws java.lang.Exception
Throws:
java.lang.Exception

parseThisFormula

public void parseThisFormula()
                      throws java.io.UnsupportedEncodingException,
                             quadbase.reportdesigner.report.ParseException
Throws:
java.io.UnsupportedEncodingException
quadbase.reportdesigner.report.ParseException

writeXML

public void writeXML(java.io.Writer out)
              throws java.lang.Exception
Throws:
java.lang.Exception

readXML

public void readXML(org.w3c.dom.Node node,
                    int version,
                    java.util.Vector<java.util.Vector<Formula>> formulas,
                    java.util.Vector queryParams,
                    java.util.Vector formulaParams)
             throws java.lang.Exception
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

formulaReferenced

public boolean formulaReferenced(Formula f)

getDatatype

public int getDatatype(quadbase.reportdesigner.report.Report report)
Overrides:
getDatatype in class quadbase.reportdesigner.report.Operand

copy

public Formula copy()
copy instance variables and references

Returns:

equals

public boolean equals(Formula f)

compareTo

public int compareTo(Formula o)
Specified by:
compareTo in interface java.lang.Comparable<Formula>

EspressReport 6.6