Class Formula

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

public class Formula extends quadbase.reportdesigner.report.Operand implements Comparable<Formula>
  • Field Details

    • calculated

      public boolean calculated
  • Constructor Details

    • Formula

      public Formula()
    • Formula

      public Formula(String name)
    • Formula

      public Formula(String name, String text)
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getText

      public String getText()
    • setText

      public void setText(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 Object getValue(ReportTable table, int index, int page, int section, int totalpages, int totalsections, quadbase.reportdesigner.report.Report r, ReportCell cell, Object dataobj) throws Exception
      Throws:
      Exception
    • getValue

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

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

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

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

      public void write(DataOutput out) throws IOException
      Throws:
      IOException
    • read

      public void read(DataInput in, int version, Vector<Vector<Formula>> formulas, Vector queryParams, Vector formulaParams) throws Exception
      Throws:
      Exception
    • parseThisFormula

      public void parseThisFormula() throws UnsupportedEncodingException, quadbase.reportdesigner.report.ParseException
      Throws:
      UnsupportedEncodingException
      quadbase.reportdesigner.report.ParseException
    • writeXML

      public void writeXML(Writer out) throws Exception
      Throws:
      Exception
    • readXML

      public void readXML(Node node, int version, Vector<Vector<Formula>> formulas, Vector queryParams, Vector formulaParams) throws Exception
      Throws:
      Exception
    • toString

      public String toString()
      Overrides:
      toString in class 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 Comparable<Formula>