public class Parameter
extends quadbase.reportdesigner.report.Operand
Constructor and Description |
---|
Parameter()
Allocates a Parameter Object
|
Parameter(quadbase.common.util.IQueryInParam param)
Allocates a new Parameter Object with a IQueryInParam specifying options
|
Parameter(java.lang.String name)
Allocates a Parameter Object with specified name
|
Parameter(java.lang.String name,
java.lang.Object defaultValue,
int datatype)
Allocates a new Parameter Object with specified name, default value and datatype
|
Modifier and Type | Method and Description |
---|---|
void |
addFormula(java.lang.String formulaName)
internal use only
|
static Parameter |
clone(Parameter _param)
internal use only
|
void |
copy(Parameter _param)
internal use only
|
void |
decReferenceDegree() |
java.lang.String |
formatDefaultValue()
internal use only
|
java.lang.String |
formatValue()
internal use only
|
java.lang.String |
getAllOptionLabel() |
java.lang.String |
getColumnName() |
int |
getDatatype(quadbase.reportdesigner.report.Report report) |
java.lang.String |
getDateFormat() |
java.lang.String |
getDefaultSql() |
java.lang.Object |
getDefaultValue()
Gets the default value of the Parameter.
|
quadbase.common.formula.Formula |
getDefaultValueVariable() |
java.util.Vector<java.lang.String> |
getFormulaNames()
internal use only
|
int |
getMapColIdx()
internal use only
|
java.lang.String |
getName()
Gets the Name of the Parameter
|
java.lang.String |
getPromptText()
internal use only
|
quadbase.common.util.IQueryFileInfo |
getQueryFileInfo() |
int |
getReferenceDegree() |
quadbase.reportdesigner.report.Report |
getReport() |
java.lang.String |
getReportTitle() |
java.util.Vector |
getSelectionChoices() |
java.lang.String |
getSharedParamName() |
java.lang.String |
getSharedReportName() |
java.lang.String |
getSqlSelect() |
int |
getSQLType() |
java.lang.String |
getTableName() |
java.lang.Object |
getValue() |
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)
Gets the value of the parameter.
|
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)
internal use only
|
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)
internal use only
|
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)
internal use only
|
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.util.Vector preAggCol,
java.util.Vector resultCol)
internal use only
|
java.lang.Object |
getValueFromText(java.lang.String text)
internal use only
|
java.util.Vector |
getValues() |
quadbase.common.formula.Formula |
getValueVariable() |
void |
incReferenceDegree() |
boolean |
isAllOptionEnabled() |
boolean |
isCustomDateFormat() |
boolean |
isInitialized()
internal use only
|
boolean |
isMapToColumn()
internal use only
|
boolean |
isMultiValueParam() |
boolean |
isQueryParamValuesProvider() |
boolean |
isShared() |
boolean |
isShareReferenced() |
boolean |
isUsedBy(java.lang.String formulaName)
internal use only
|
java.lang.Object |
makeDefaultValueFromText(java.lang.String text)
internal use only
|
void |
read(java.io.DataInput in,
int version)
internal use only
|
void |
readShareInfo(java.io.DataInput in,
int version)
internal use only
|
void |
readXML(org.w3c.dom.Node node,
int version)
internal use only
|
void |
readXMLShareInfo(org.w3c.dom.Node node,
int version) |
void |
removeFormula(java.lang.String formulaName)
internal use only
|
void |
setAllOptionEnabled(boolean isAllOptionEnabled) |
void |
setAllOptionLabel(java.lang.String allOptionLabel) |
void |
setColumnName(java.lang.String tName) |
void |
setDefaultSql(java.lang.String s) |
void |
setDefaultValue(java.lang.Object value)
Sets the default value of the Parameter.
|
void |
setDefaultValueVariable(quadbase.common.formula.Formula formula) |
void |
setFormulaNames(java.util.Vector<java.lang.String> names)
internal use only
|
void |
setMapColIdx(int idx)
internal use only
|
void |
setMapToColumn(boolean state)
internal use only
|
void |
setMultiValueParam(boolean b) |
void |
setPromptText(java.lang.String s)
internal use only
|
void |
setQueryFileInfo(quadbase.common.util.IQueryFileInfo qf) |
void |
setQueryParamValuesProvider(boolean b) |
void |
setReferenceDegree(int i) |
void |
setReport(quadbase.reportdesigner.report.Report r) |
void |
setReportTitle(java.lang.String s) |
void |
setSelectionChoices(java.util.Vector vec) |
void |
setShared(boolean b) |
void |
setSharedParamName(java.lang.String s) |
void |
setSharedReportName(java.lang.String s) |
void |
setSqlSelect(java.lang.String s) |
void |
setSQLType(int type) |
void |
setTableName(java.lang.String tName) |
void |
setValue(java.lang.Object value)
Sets the value of the parameter.
|
void |
setValues(java.util.Vector values) |
void |
setValueVariable(quadbase.common.formula.Formula formula) |
java.lang.String |
toString()
internal use only
|
void |
write(java.io.DataOutput out)
internal use only
|
void |
write(java.io.DataOutput out,
boolean saveValue) |
void |
writeShareInfo(java.io.DataOutput out)
internal use only
|
void |
writeXML(java.io.Writer out)
internal use only
|
void |
writeXMLShareInfo(java.io.Writer out) |
public Parameter()
public Parameter(java.lang.String name)
public Parameter(java.lang.String name, java.lang.Object defaultValue, int datatype)
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 timestamppublic Parameter(quadbase.common.util.IQueryInParam param)
public java.lang.String getName()
public boolean isMapToColumn()
public void setMapToColumn(boolean state)
public int getMapColIdx()
public void setMapColIdx(int idx)
public java.lang.String getPromptText()
public void setPromptText(java.lang.String s)
public java.lang.Object getDefaultValue()
public void setDefaultValue(java.lang.Object value)
value
- the default valuepublic java.util.Vector<java.lang.String> getFormulaNames()
public void setFormulaNames(java.util.Vector<java.lang.String> names)
public void removeFormula(java.lang.String formulaName)
public void addFormula(java.lang.String formulaName)
public boolean isUsedBy(java.lang.String formulaName)
public void copy(Parameter _param)
public void setValues(java.util.Vector values)
public java.util.Vector getValues()
public java.lang.Object getValue()
public void setValue(java.lang.Object value)
value
- the value of this parameterpublic 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
java.lang.Exception
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, java.util.Vector preAggCol, java.util.Vector resultCol) throws java.lang.Exception
java.lang.Exception
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
getValue
in class quadbase.reportdesigner.report.Operand
java.lang.Exception
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
getValue
in class quadbase.reportdesigner.report.Operand
java.lang.Exception
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
getValue
in class quadbase.reportdesigner.report.Operand
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
public void write(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
public void write(java.io.DataOutput out, boolean saveValue) throws java.io.IOException
java.io.IOException
public void read(java.io.DataInput in, int version) throws java.lang.Exception
java.lang.Exception
public void writeShareInfo(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
public void readShareInfo(java.io.DataInput in, int version) throws java.lang.Exception
java.lang.Exception
public void writeXMLShareInfo(java.io.Writer out) throws java.lang.Exception
java.lang.Exception
public void readXMLShareInfo(org.w3c.dom.Node node, int version) throws java.lang.Exception
java.lang.Exception
public void writeXML(java.io.Writer out) throws java.lang.Exception
java.lang.Exception
public void readXML(org.w3c.dom.Node node, int version) throws java.lang.Exception
java.lang.Exception
public java.lang.Object makeDefaultValueFromText(java.lang.String text)
public java.lang.Object getValueFromText(java.lang.String text)
public java.lang.String formatDefaultValue()
public java.lang.String formatValue()
public boolean isInitialized()
public boolean isMultiValueParam()
public void setMultiValueParam(boolean b)
public boolean isQueryParamValuesProvider()
public void setQueryParamValuesProvider(boolean b)
public java.util.Vector getSelectionChoices()
public void setSelectionChoices(java.util.Vector vec)
public java.lang.String getSqlSelect()
public void setSqlSelect(java.lang.String s)
public java.lang.String getDefaultSql()
public void setDefaultSql(java.lang.String s)
public java.lang.String getTableName()
public void setTableName(java.lang.String tName)
public java.lang.String getColumnName()
public void setColumnName(java.lang.String tName)
public boolean isShared()
public void setShared(boolean b)
public java.lang.String getSharedReportName()
public void setSharedReportName(java.lang.String s)
public java.lang.String getSharedParamName()
public void setSharedParamName(java.lang.String s)
public int getReferenceDegree()
public void setReferenceDegree(int i)
public void incReferenceDegree()
public void decReferenceDegree()
public boolean isShareReferenced()
public boolean isCustomDateFormat()
public java.lang.String getDateFormat()
public quadbase.common.util.IQueryFileInfo getQueryFileInfo()
public void setQueryFileInfo(quadbase.common.util.IQueryFileInfo qf)
public quadbase.reportdesigner.report.Report getReport()
public void setReport(quadbase.reportdesigner.report.Report r)
public java.lang.String getReportTitle()
public void setReportTitle(java.lang.String s)
public void setSQLType(int type)
public int getSQLType()
getSQLType
in class quadbase.reportdesigner.report.Operand
public quadbase.common.formula.Formula getDefaultValueVariable()
public void setDefaultValueVariable(quadbase.common.formula.Formula formula)
public quadbase.common.formula.Formula getValueVariable()
public void setValueVariable(quadbase.common.formula.Formula formula)
public boolean isAllOptionEnabled()
public void setAllOptionEnabled(boolean isAllOptionEnabled)
public java.lang.String getAllOptionLabel()
public void setAllOptionLabel(java.lang.String allOptionLabel)
public int getDatatype(quadbase.reportdesigner.report.Report report)
getDatatype
in class quadbase.reportdesigner.report.Operand