Package quadbase.reportdesigner.report
Class Formula
java.lang.Object
quadbase.reportdesigner.report.Operand
quadbase.reportdesigner.report.Formula
- All Implemented Interfaces:
Comparable<Formula>
-
Field Summary
FieldsFields inherited from class quadbase.reportdesigner.report.Operand
BOOLEAN, CALENDARFIELD, DATE, NULL, NUMBER, STRING, TIME, TIMESTAMP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcopy()copy instance variables and referencesbooleanbooleanintgetDatatype(quadbase.reportdesigner.report.Report report) quadbase.reportdesigner.report.OperandgetName()intgetText()getValue(ReportTable table, int index, int page, int section, int totalpages, int totalsections, quadbase.reportdesigner.report.Report r, ReportCell cell, Object dataobj) getValue(ReportTable table, int index, int page, int section, int totalpages, int totalsections, quadbase.reportdesigner.report.Report r, ReportCell cell, Object dataobj, boolean secondRound) 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) 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) 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) voidvoidread(DataInput in, int version, Vector<Vector<Formula>> formulas, Vector queryParams, Vector formulaParams) voidreadXML(Node node, int version, Vector<Vector<Formula>> formulas, Vector queryParams, Vector formulaParams) voidsetFormula(quadbase.reportdesigner.report.Operand op) voidvoidsetSubReportIndex(int index) voidtoString()voidwrite(DataOutput out) voidMethods inherited from class quadbase.reportdesigner.report.Operand
getSQLType, isDate, mapToOperandType, setDatatype, setThisDataType
-
Field Details
-
calculated
public boolean calculated
-
-
Constructor Details
-
Formula
public Formula() -
Formula
-
Formula
-
-
Method Details
-
getName
-
setName
-
getText
-
setText
-
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:
getValuein classquadbase.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:
getValuein classquadbase.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:
getValuein classquadbase.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
- 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:
UnsupportedEncodingExceptionquadbase.reportdesigner.report.ParseException
-
writeXML
- Throws:
Exception
-
readXML
public void readXML(Node node, int version, Vector<Vector<Formula>> formulas, Vector queryParams, Vector formulaParams) throws Exception - Throws:
Exception
-
toString
-
formulaReferenced
-
getDatatype
public int getDatatype(quadbase.reportdesigner.report.Report report) - Overrides:
getDatatypein classquadbase.reportdesigner.report.Operand
-
copy
copy instance variables and references- Returns:
-
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<Formula>
-