public class SimpleQueryInParam extends java.lang.Object implements IQueryInParam
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
value |
Constructor and Description |
---|
SimpleQueryInParam(java.lang.String paramName,
java.lang.String promptName,
boolean mapToColumn,
boolean mapToFunction,
java.lang.String tableName,
java.lang.String fullFunction,
int sqlType,
java.lang.Object defaultValue,
java.lang.Object value) |
SimpleQueryInParam(java.lang.String paramName,
java.lang.String promptName,
boolean mapToColumn,
boolean mapToFunction,
java.lang.String tableName,
java.lang.String fullFunction,
java.lang.String sqlSelect,
int sqlType,
java.lang.Object defaultValue,
java.lang.String defaultSql,
boolean allOptionEnabled,
java.lang.String allOptionLabel,
java.lang.Object value) |
SimpleQueryInParam(java.lang.String paramName,
java.lang.String promptName,
boolean mapToColumn,
java.lang.String tableName,
java.lang.String columnName,
int sqlType,
java.lang.Object defaultValue,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAllOptionLabel() |
java.lang.String |
getColumnName()
Returns the column name
|
java.lang.String |
getDefaultSql() |
java.lang.Object |
getDefaultValue()
Returns the default value
|
quadbase.common.formula.Formula |
getDefaultValueVariable()
Returns default value of a date parameter as a date expression (ex.
|
java.lang.String |
getParamName()
Returns the parameter name which is used in the SQL statement.
|
java.lang.String |
getPromptName()
Returns the description of the parameter displayed on the pop up dialog.
|
java.lang.String |
getSqlSelect() |
int |
getSqlType()
Returns java.sql.Types
|
java.lang.String |
getTableName()
Returns the table name
|
java.lang.Object |
getValue()
Programmers sometimes may not want to show the initial parameter dialog when the chart is
loaded at the first time.
|
quadbase.common.formula.Formula |
getValueVariable()
Returns value of a date parameter as a date expression (ex.
|
boolean |
isAllOptionEnabled() |
boolean |
isMapToColumn()
If isMapToColumn() returns true, getTableName() and getColumnName() will be called to find
out all distinct values from database.
|
boolean |
isMapToColumnOnly() |
boolean |
isMapToFunctionOnly() |
void |
setAllOptionEnabled(boolean isAllOptionEnabled) |
void |
setAllOptionLabel(java.lang.String allOptionLabel) |
void |
setColumnName(java.lang.String columnName)
Set the column name
|
void |
setDefaultSql(java.lang.String defaultSql) |
void |
setDefaultValue(java.lang.Object defaultValue)
Set default value
|
void |
setDefaultValueVariable(quadbase.common.formula.Formula f)
Set default value of a date parameter to a date expression (ex.
|
void |
setMapToColumn(boolean mapToColumn)
Enables or disables mapToColumn.
|
void |
setMapToFunction(boolean mapToFunction) |
void |
setPromptName(java.lang.String promptName)
Set the description of the parameter displayed on the pop up dialog.
|
void |
setSqlSelect(java.lang.String sqlSelect) |
void |
setSqlType(int sqlType)
Set java.sql.Types
|
void |
setTableName(java.lang.String tableName)
Set the table name
|
void |
setValue(java.lang.Object value)
Set the defined value.
|
void |
setValueVariable(quadbase.common.formula.Formula f)
Set value of a date parameter to a date expression (ex.
|
java.lang.String |
toString() |
static SimpleQueryInParam |
valueOf(quadbase.common.util.IQueryInParam p) |
public SimpleQueryInParam(java.lang.String paramName, java.lang.String promptName, boolean mapToColumn, java.lang.String tableName, java.lang.String columnName, int sqlType, java.lang.Object defaultValue, java.lang.Object value)
public SimpleQueryInParam(java.lang.String paramName, java.lang.String promptName, boolean mapToColumn, boolean mapToFunction, java.lang.String tableName, java.lang.String fullFunction, int sqlType, java.lang.Object defaultValue, java.lang.Object value)
public SimpleQueryInParam(java.lang.String paramName, java.lang.String promptName, boolean mapToColumn, boolean mapToFunction, java.lang.String tableName, java.lang.String fullFunction, java.lang.String sqlSelect, int sqlType, java.lang.Object defaultValue, java.lang.String defaultSql, boolean allOptionEnabled, java.lang.String allOptionLabel, java.lang.Object value)
public java.lang.String getParamName()
IQueryInParam
getParamName
in interface quadbase.common.util.IQueryInParam
IQueryFileInfo
public java.lang.String getPromptName()
IQueryInParam
getPromptName
in interface quadbase.common.util.IQueryInParam
public void setPromptName(java.lang.String promptName)
IQueryInParam
setPromptName
in interface quadbase.common.util.IQueryInParam
public boolean isMapToColumn()
IQueryInParam
isMapToColumn
in interface quadbase.common.util.IQueryInParam
public boolean isMapToColumnOnly()
public void setMapToColumn(boolean mapToColumn)
IQueryInParam
setMapToColumn
in interface quadbase.common.util.IQueryInParam
public boolean isMapToFunctionOnly()
public void setMapToFunction(boolean mapToFunction)
public java.lang.String getTableName()
IQueryInParam
getTableName
in interface quadbase.common.util.IQueryInParam
IQueryInParam.isMapToColumn()
public void setTableName(java.lang.String tableName)
IQueryInParam
setTableName
in interface quadbase.common.util.IQueryInParam
public java.lang.String getColumnName()
IQueryInParam
getColumnName
in interface quadbase.common.util.IQueryInParam
IQueryInParam.isMapToColumn()
public void setColumnName(java.lang.String columnName)
IQueryInParam
setColumnName
in interface quadbase.common.util.IQueryInParam
public int getSqlType()
IQueryInParam
getSqlType
in interface quadbase.common.util.IQueryInParam
IQueryInParam.isMapToColumn()
public void setSqlType(int sqlType)
IQueryInParam
setSqlType
in interface quadbase.common.util.IQueryInParam
public java.lang.Object getDefaultValue()
IQueryInParam
getDefaultValue
in interface quadbase.common.util.IQueryInParam
public void setDefaultValue(java.lang.Object defaultValue)
IQueryInParam
setDefaultValue
in interface quadbase.common.util.IQueryInParam
public java.lang.Object getValue()
IQueryInParam
getValue
in interface quadbase.common.util.IQueryInParam
public void setValue(java.lang.Object value)
IQueryInParam
setValue
in interface quadbase.common.util.IQueryInParam
public quadbase.common.formula.Formula getDefaultValueVariable()
public void setDefaultValueVariable(quadbase.common.formula.Formula f)
Formula
- date expressionpublic quadbase.common.formula.Formula getValueVariable()
public void setValueVariable(quadbase.common.formula.Formula f)
Formula
- date expressionpublic void setSqlSelect(java.lang.String sqlSelect)
public java.lang.String getSqlSelect()
public boolean isAllOptionEnabled()
public void setAllOptionEnabled(boolean isAllOptionEnabled)
public java.lang.String getAllOptionLabel()
public void setAllOptionLabel(java.lang.String allOptionLabel)
public static SimpleQueryInParam valueOf(quadbase.common.util.IQueryInParam p)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDefaultSql()
public void setDefaultSql(java.lang.String defaultSql)