Package quadbase.reportdesigner.report
Class Parameter
java.lang.Object
quadbase.reportdesigner.report.Operand
quadbase.reportdesigner.report.Parameter
public class Parameter
extends quadbase.reportdesigner.report.Operand
This class is used for setting parameter default values and values for Queries or Parameterized
reports in the Report Designer.
-
Field Summary
Fields inherited from class quadbase.reportdesigner.report.Operand
BOOLEAN, CALENDARFIELD, DATE, NULL, NUMBER, STRING, TIME, TIMESTAMP -
Constructor Summary
ConstructorsConstructorDescriptionAllocates a Parameter ObjectAllocates a Parameter Object with specified nameAllocates a new Parameter Object with specified name, default value and datatypeParameter(quadbase.common.util.IQueryInParam param) Allocates a new Parameter Object with a IQueryInParam specifying options -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFormula(String formulaName) internal use onlystatic Parameterinternal use onlyvoidinternal use onlyvoidinternal use onlyinternal use onlyintgetDatatype(quadbase.reportdesigner.report.Report report) Gets the default value of the Parameter.quadbase.common.formula.Formulainternal use onlyintinternal use onlygetName()Gets the Name of the Parameterinternal use onlyquadbase.common.util.IQueryFileInfointquadbase.reportdesigner.report.ReportintgetValue()getValue(ReportTable table, int index, int page, int section, int totalpages, int totalsections, quadbase.reportdesigner.report.Report r, ReportCell cell, Object dataobj) Gets the value of the parameter.getValue(ReportTable table, int index, int page, int section, int totalpages, int totalsections, quadbase.reportdesigner.report.Report r, ReportCell cell, Object dataobj, boolean secondRound) internal use onlygetValue(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) internal use onlygetValue(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) internal use onlygetValue(ReportTable table, int index, int page, int section, int totalpages, int totalsections, quadbase.reportdesigner.report.Report r, ReportCell cell, Object dataobj, Vector preAggCol, Vector resultCol) internal use onlygetValueFromText(String text) internal use onlyquadbase.common.formula.Formulavoidbooleanbooleanbooleaninternal use onlybooleaninternal use onlybooleanbooleanbooleanisShared()booleanbooleaninternal use onlyinternal use onlyvoidinternal use onlyvoidreadShareInfo(DataInput in, int version) internal use onlyvoidinternal use onlyvoidreadXMLShareInfo(Node node, int version) voidremoveFormula(String formulaName) internal use onlyvoidsetAllOptionEnabled(boolean isAllOptionEnabled) voidsetAllOptionLabel(String allOptionLabel) voidsetColumnName(String tName) voidvoidsetDefaultValue(Object value) Sets the default value of the Parameter.voidsetDefaultValueVariable(quadbase.common.formula.Formula formula) voidsetFormulaNames(Vector<String> names) internal use onlyvoidsetMapColIdx(int idx) internal use onlyvoidsetMapToColumn(boolean state) internal use onlyvoidsetMultiValueParam(boolean b) voidinternal use onlyvoidsetQueryFileInfo(quadbase.common.util.IQueryFileInfo qf) voidsetQueryParamValuesProvider(boolean b) voidsetReferenceDegree(int i) voidsetReport(quadbase.reportdesigner.report.Report r) voidvoidvoidsetShared(boolean b) voidvoidvoidvoidsetSQLType(int type) voidsetTableName(String tName) voidSets the value of the parameter.voidvoidsetValueVariable(quadbase.common.formula.Formula formula) toString()internal use onlyvoidwrite(DataOutput out) internal use onlyvoidwrite(DataOutput out, boolean saveValue) voidwriteShareInfo(DataOutput out) internal use onlyvoidinternal use onlyvoidwriteXMLShareInfo(Writer out) Methods inherited from class quadbase.reportdesigner.report.Operand
isDate, mapToOperandType, setDatatype, setThisDataType
-
Constructor Details
-
Parameter
public Parameter()Allocates a Parameter Object -
Parameter
Allocates a Parameter Object with specified name -
Parameter
Allocates a new Parameter Object with specified name, default value and datatype- Parameters:
name- the name of the parameter, unique inside the formuladefaultValue- the value this parameter default to, must be consistent with the datatypedatatype- needs to be one of the following 0(Operand.NUMBER) for number 1(Operand.STRING) for string 2(Operand.BOOLEAN) for boolean 3(Operand.DATE) for date 4(Operand.TIME) for time 5(Operand.TIMESTAMP) for timestamp
-
Parameter
public Parameter(quadbase.common.util.IQueryInParam param) Allocates a new Parameter Object with a IQueryInParam specifying options
-
-
Method Details
-
getName
Gets the Name of the Parameter -
isMapToColumn
public boolean isMapToColumn()internal use only -
setMapToColumn
public void setMapToColumn(boolean state) internal use only -
getMapColIdx
public int getMapColIdx()internal use only -
setMapColIdx
public void setMapColIdx(int idx) internal use only -
getPromptText
internal use only -
setPromptText
internal use only -
getDefaultValue
Gets the default value of the Parameter. The default value is the value that shows up initially when the user is prompted to enter a parameter. -
setDefaultValue
Sets the default value of the Parameter. The default value is the value that shows up initially when the user is prompted to enter a parameter.- Parameters:
value- the default value
-
getFormulaNames
internal use only -
setFormulaNames
internal use only -
removeFormula
internal use only -
addFormula
internal use only -
isUsedBy
internal use only -
clone
internal use only -
copy
internal use only -
setValues
-
getValues
-
getValue
-
setValue
Sets the value of the parameter. The value is essentially what the user inputs, and is different from the default value.- Parameters:
value- the value of this parameter
-
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 Gets the value of the parameter. The value is essentially what the user inputs, and is different from the default value.- 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, Vector preAggCol, Vector resultCol) throws Exception internal use only- 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 internal use only- 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 internal use only- 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 internal use only- Specified by:
getValuein classquadbase.reportdesigner.report.Operand- Throws:
Exception
-
toString
internal use only -
write
internal use only- Throws:
IOException
-
write
- Throws:
IOException
-
read
internal use only- Throws:
Exception
-
writeXML
internal use only- Throws:
Exception
-
readXML
internal use only- Throws:
Exception
-
makeDefaultValueFromText
internal use only -
getValueFromText
internal use only -
formatDefaultValue
internal use only -
formatValue
internal use only -
isInitialized
public boolean isInitialized()internal use only -
isMultiValueParam
public boolean isMultiValueParam() -
setMultiValueParam
public void setMultiValueParam(boolean b) -
isQueryParamValuesProvider
public boolean isQueryParamValuesProvider() -
setQueryParamValuesProvider
public void setQueryParamValuesProvider(boolean b) -
getSelectionChoices
-
setSelectionChoices
-
getSqlSelect
-
setSqlSelect
-
getDefaultSql
-
setDefaultSql
-
getTableName
-
setTableName
-
getColumnName
-
setColumnName
-
getReferenceDegree
public int getReferenceDegree() -
setReferenceDegree
public void setReferenceDegree(int i) -
incReferenceDegree
public void incReferenceDegree() -
decReferenceDegree
public void decReferenceDegree() -
isCustomDateFormat
public boolean isCustomDateFormat() -
getDateFormat
-
getQueryFileInfo
public quadbase.common.util.IQueryFileInfo getQueryFileInfo() -
setQueryFileInfo
public void setQueryFileInfo(quadbase.common.util.IQueryFileInfo qf) -
getReport
public quadbase.reportdesigner.report.Report getReport() -
setReport
public void setReport(quadbase.reportdesigner.report.Report r) -
getReportTitle
-
setReportTitle
-
setSQLType
public void setSQLType(int type) -
getSQLType
public int getSQLType()- Overrides:
getSQLTypein classquadbase.reportdesigner.report.Operand
-
getDefaultValueVariable
public quadbase.common.formula.Formula getDefaultValueVariable() -
setDefaultValueVariable
public void setDefaultValueVariable(quadbase.common.formula.Formula formula) -
getValueVariable
public quadbase.common.formula.Formula getValueVariable() -
setValueVariable
public void setValueVariable(quadbase.common.formula.Formula formula) -
isAllOptionEnabled
public boolean isAllOptionEnabled() -
setAllOptionEnabled
public void setAllOptionEnabled(boolean isAllOptionEnabled) -
getAllOptionLabel
-
setAllOptionLabel
-
getDatatype
public int getDatatype(quadbase.reportdesigner.report.Report report) - Overrides:
getDatatypein classquadbase.reportdesigner.report.Operand
-