|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jet.formula.ParamDesc
public class ParamDesc
Field Summary | |
---|---|
static int |
ADOPT_DIRECTLY
|
static int |
AUTO
|
static java.lang.String |
DATEFMT
|
static int |
dateStyle
The default style of the date & time format of the Date type parameter and the DateTime type parameter. |
static java.lang.String |
DATETIMEFMT
|
jet.parameter.definition.Definition |
def
|
static java.util.Locale |
defaultLocale
The default locale. |
static int |
GROUPSORT
This type indicates that the current parameter is used with Dynamic Group/Sort feature. |
static int |
IMPORT
|
boolean |
isStringNull
|
java.lang.String |
name
The name of a parameter. |
static int |
NORMAL
This type indicates that the current parameter does not associate with a column list. |
java.lang.String |
promptText
The prompt of a parameter. |
static int |
PSEUDO
This type indicates that the current parameter is used with BindParameter feature. |
jet.parameter.runtime.ParameterRuntime |
rt
|
static int |
SORTORDER
This type indicates that the current parameter is used with SortOrderByParameter feature. |
java.lang.String |
stringFormat
|
static int |
timeStyle
|
java.lang.String |
type
The data type of a parameter. |
static java.lang.String |
TYPE_BOOLEAN
|
static java.lang.String |
TYPE_CURRENCY
|
static java.lang.String |
TYPE_DATE
|
static java.lang.String |
TYPE_DATETIME
|
static java.lang.String |
TYPE_INTEGER
The data type constants of parameter. |
static java.lang.String |
TYPE_NUMBER
|
static java.lang.String |
TYPE_PARAMETER
The constant of a parameter's data type supports nested parameter. |
static java.lang.String |
TYPE_PARAMETER_SEPARATOR1
|
static java.lang.String |
TYPE_PARAMETER_SEPARATOR2
|
static java.lang.String |
TYPE_STRING
|
static java.lang.String |
TYPE_TIME
|
static int |
USE_DEFAULT
|
static int |
WARN
|
Constructor Summary | |
---|---|
ParamDesc()
|
|
ParamDesc(java.lang.String name,
java.lang.String type,
java.lang.String prompt,
java.util.Vector vStrLimit,
java.util.Vector vStrValue,
java.lang.String strFormat,
int operator,
int index)
Creates a parameter. |
|
ParamDesc(java.lang.String name,
java.lang.String type,
java.lang.String prompt,
java.util.Vector vStrLimit,
java.util.Vector vStrValue,
java.lang.String strFormat,
int operator,
int index,
boolean isMultipleValue)
Creates a parameter. |
|
ParamDesc(java.lang.String strName,
java.lang.String strType,
java.lang.String prompt,
java.util.Vector vStrLimit,
java.util.Vector vStrValue,
java.lang.String strFormat,
int operator,
int intdex,
int isColumn)
Constructs a ParamDesc which will not be parsed. |
|
ParamDesc(java.lang.String strName,
java.lang.String strType,
java.lang.String prompt,
java.util.Vector vStrLimit,
java.util.Vector vStrValue,
java.lang.String strFormat,
int operator,
int intdex,
int isColumn,
boolean isMultipleValue)
Constructs a ParamDesc which will not be parsed. |
|
ParamDesc(java.lang.String strName,
java.lang.String strType,
java.lang.String prompt,
java.util.Vector vStrLimit,
java.util.Vector vStrValue,
java.lang.String strFormat,
int operator,
int intdex,
int isColumn,
java.lang.String column,
java.util.Vector columns,
java.util.Vector vShowValue,
java.lang.String binding)
Constructs a ParamDesc which will not be parsed. |
|
ParamDesc(java.lang.String strName,
java.lang.String strType,
java.lang.String prompt,
java.util.Vector vStrLimit,
java.util.Vector vStrValue,
java.lang.String strFormat,
int operator,
int intdex,
int isColumn,
java.lang.String column,
java.util.Vector columns,
java.util.Vector vShowValue,
java.lang.String binding,
boolean isMultipleValue)
Constructs a ParamDesc which will not be parsed. |
|
ParamDesc(java.lang.String strName,
java.lang.String strType,
java.lang.String prompt,
java.util.Vector vStrLimit,
java.util.Vector vStrValue,
java.lang.String strFormat,
int operator,
int intdex,
int isColumn,
java.lang.String column,
java.util.Vector columns,
java.util.Vector vShowValue,
java.lang.String binding,
boolean isDis,
boolean isReq)
Construcing column, t a ParamDesc which not be parsed. |
|
ParamDesc(java.lang.String strName,
java.lang.String strType,
java.lang.String prompt,
java.util.Vector vStrLimit,
java.util.Vector vStrValue,
java.lang.String strFormat,
int operator,
int intdex,
int isColumn,
java.lang.String column,
java.util.Vector columns,
java.util.Vector vShowValue,
java.lang.String binding,
boolean isDis,
boolean isReq,
boolean isMultipleValue)
Construcing column, t a ParamDesc which not be parsed. |
|
ParamDesc(java.lang.String strName,
java.lang.String strType,
java.lang.String prompt,
java.util.Vector vStrLimit,
java.util.Vector vStrValue,
java.lang.String strFormat,
int operator,
int intdex,
java.lang.String binding)
Constructs a ParamDesc which will not be parsed. |
|
ParamDesc(java.lang.String strName,
java.lang.String strType,
java.lang.String prompt,
java.util.Vector vStrLimit,
java.util.Vector vStrValue,
java.lang.String strFormat,
int operator,
int intdex,
java.lang.String binding,
boolean isMultipleValue)
Constructs a ParamDesc which will not be parsed. |
Method Summary | |
---|---|
void |
addReferParamToVsortParams(java.util.Hashtable allParam,
java.util.Hashtable curParamDescs,
java.util.Vector sortParam)
|
boolean |
allowUseExpression()
|
static java.util.Vector |
changedHashToVector(java.util.Hashtable hash)
|
static java.util.Hashtable |
changedVectorToHash(java.util.Vector v)
|
void |
check(java.lang.String value,
java.util.Locale locale)
Checks the value validation. |
void |
clearMem()
|
void |
clearReferedBy()
|
java.lang.Object |
clone()
|
java.lang.String[] |
detectInvalidValues(java.lang.String[] target,
java.util.Locale locale)
Deprecated. setValue method will do the outOfRange check, this method is useless now |
boolean |
equals(ParamDesc param)
Does not compare name. |
static void |
getAllRelatedParamByValue(java.util.Hashtable allPara,
java.util.Vector referPara,
ParamDesc param,
java.lang.Object value)
If a parameter's type is parameters, gets all related parameters according to the value. |
int |
getBeColumn()
|
java.lang.String |
getBinding()
This method is associated with DynamicSortOrder feature. |
java.lang.String[][] |
getBooleanLiteral()
|
java.lang.String |
getChainID()
|
DbColDesc |
getColDesc()
|
java.lang.String |
getColumn()
This method is associated with BindParameter feature. |
java.util.Vector |
getColumns()
This method is associated with BindParameter feature. |
java.lang.String |
getDataSource()
|
java.lang.String |
getDefaultDateFormat(java.util.Locale loc)
This method can only be called when no user format is defined. |
int |
getDefaultIndex()
Returns the index of the current value in the value list. |
java.lang.String |
getDefaultValue()
Returns the nth item in the value list which corresponds to the current value of this parameter. |
java.util.Vector |
getDefaultValues()
Gets all the default values' strings which do not caring format and locale. |
jet.parameter.definition.Definition |
getDefinition()
returns the Definition object of the parameter |
java.util.Vector |
getDisplayLimit(java.util.Locale locale)
Returns the limit values, caring the format. |
java.lang.String |
getDisplayValue(DbValue paramvalue,
java.util.Locale locale)
Gets the display string based on the locale of the string saved in the catalog. |
java.util.Vector |
getDisplayValues(java.util.Locale locale)
Formats all the values in the value list. |
java.lang.String |
getDynamicTemplate()
|
DbValue |
getDynamicValue(long dynamicValue,
java.util.Locale local)
Gets a dynamic value[Date, Time, DateTime] base on a dynamic template and input the long time, and the local. |
static void |
getFirstLevelParam(java.util.Hashtable allPara)
|
static java.util.Vector |
getFirstLevelRelatedParamByValue(java.util.Hashtable allPara,
ParamDesc param,
java.lang.Object value)
This meyhod is for server, which gets the related paramDesc according to the parameter's value, and only one level. |
static void |
getFirstShowParamDescs(java.util.Hashtable allPara,
java.util.Vector referPara,
ParamDesc param,
java.lang.Object value)
If a parameter's type is parameters, If this value's corresponding parameter type is parameters, gets the corresponding parameter of this parameter default value. |
java.lang.String |
getFormat()
Returns the format. |
java.util.Vector |
getImportParams()
|
java.lang.String |
getImportSql()
|
jet.formula.SymbolInfo |
getInfo()
|
java.lang.String |
getInternalValue()
|
java.util.Vector |
getLimit()
Returns the limit values, not caring the format. |
java.lang.String |
getLocalizedUserFormat(java.util.Locale locale)
|
java.lang.String[] |
getMultiDisplayValue(fArray paramvalue,
java.util.Locale locale)
|
java.lang.String[] |
getMultiStrValue()
|
java.lang.String |
getName()
Returns the parameter name. |
java.lang.String |
getNextLevel()
|
int |
getOperation()
Returns the operation used in the limitation. |
jet.parameter.runtime.ParameterRuntime |
getParameterRuntime()
Returns the runtime object of the parameter. |
java.lang.String |
getPreviousLevel()
|
java.lang.String |
getPrompt()
Returns the prompt of the parameter. |
java.util.Vector |
getReferedBy()
|
static java.util.Vector |
getReferPara(java.util.Hashtable allPara)
Gets all parameters which is referenced by other parameters. |
static void |
getRelatedParamDescsByParam(java.util.Hashtable allPara,
java.util.Vector referPara,
ParamDesc param)
If a parameter's type is Parameters, this method can be used to get all related parameter desc. |
java.lang.String |
getSecurityEntry()
|
java.util.Vector |
getSelectedValues()
|
java.util.Vector |
getShowValues()
Gets the value list of a bind type parameter. |
java.lang.String |
getStrValue()
|
java.lang.String |
getType()
Gets the parameter type |
DbValue |
getValue()
Returns the current value of the parameter. |
java.util.Vector[] |
getValueList()
|
java.lang.String |
getValueMeaning()
Gets the current string value meaning of the parameter based on the current locale and format. |
java.util.Vector |
getValues()
Gets all the values, not caring the format. |
java.util.Vector |
getValues(java.util.Locale loc)
Returns the value list of a parameter. |
int |
getWhenOutOfRange()
|
static boolean |
hasImportParam(java.util.Vector allPara)
If a parameter has import SQL and uses other parameters, returns true, else returns false. |
static boolean |
hasNestedPara(java.util.Hashtable allPara)
This method checks whether the parameter's type is parameters or not for all parameters. |
void |
initParam(java.util.Locale locale)
Initializes the defalut value, and parse it. |
boolean |
isAllowAll()
|
boolean |
isAllowTypeIn()
|
boolean |
isAllSelected()
|
boolean |
isBindColumn()
|
boolean |
isCascading()
This flag must be set by calling setBeColumn(ParamDesc.CASCADING). |
boolean |
isColumn()
Checks whether the parameter is bound with a column. |
boolean |
isColumnCal()
|
boolean |
isDistinct()
|
boolean |
isGetValueFromAPI()
|
boolean |
isHideParameterWhenSingleValueReturn()
|
static boolean |
isImportByPara(ParamDesc param,
ParamDesc curParam,
java.util.Vector paramDescs)
|
boolean |
isMultipleValue()
|
boolean |
IsParameters()
|
boolean |
isReferedBy()
Checks whether this paramDesc refers to by other paramDesc no matter through old(or new)cascading or by query. |
boolean |
isReferOther()
Checks whether this paramDesc refers to other paramDesc no matter through old(or new)cascading or by query. |
boolean |
isRequired()
Whether this parameter is required or can be ignored. |
boolean |
isSetAsParameter()
|
boolean |
isSimilar(ParamDesc param)
Judges whether the parameter specified is similar to this one. |
boolean |
isUseCurrentDate()
If returnS true, the parameter is a dynamic date parameter. |
boolean |
isUseCurrentDateWhenBlank()
If returns true, the parameter will return the current date when the parameter is blank. |
boolean |
isValuesNotEmpty()
|
boolean |
needLoadValueList()
|
DbValue |
parseInternalValue(java.lang.String inValue)
Checks whether the internal string (saved in the catalog) is OK. |
DbValue |
parseValue(java.lang.String val,
java.util.Locale locale,
boolean isExternal)
|
void |
resetTimeBaseLine(java.sql.Timestamp timeBaseLine)
|
void |
set(DbValue v)
|
void |
setAllowAll(boolean allow)
|
void |
setAllowTypeIn(boolean allowTypeIn)
|
void |
setAllowUseExpression(boolean allowUseExpression)
|
void |
setAllSelected(boolean isAllSelected)
|
void |
setBeColumn(int b)
|
void |
setBinding(java.lang.String binding)
|
void |
setCascadingInfo(java.lang.String chainID,
java.lang.String previousLevel,
java.lang.String nextLevel,
boolean isSetAsParameter)
|
void |
setColumn(java.lang.String column)
|
void |
setColumns(java.util.Vector v)
|
void |
setDataSource(java.lang.String sourceName)
|
void |
setDefaultIndex(int i)
Selects the nth value in the value list as the current value. |
void |
setDefaultValue(int index)
|
void |
setDistinct(boolean isDis)
|
boolean |
setDynamicTemplate(java.lang.String dynamicTemplate)
If the set dynamicTemplate is legal, replaces previous the dynamicTemplate with the currently set dynamicTemplate, and returns true. |
void |
setEncoding(java.lang.String encoding)
|
void |
setFormat(java.lang.String str)
Sets the format or sets the encoding of a string type parameter. |
void |
setGetValueFromAPI(boolean b)
|
void |
setHideParameterWhenSingleValueReturn(boolean isHideParameterWhenSingleValueReturn)
|
void |
setImportParams(java.util.Vector importParams)
|
void |
setImportSql(java.lang.String importSql)
|
void |
setIsCascading(boolean isCascading)
|
void |
setIsMultipleValue(boolean isMultipleValue)
|
void |
setLimit(java.lang.String lim,
java.util.Locale locale,
int indexLimit)
Sets one limination value, and the indexLimit is from 0 to the vDbLimit.size() - 1. |
void |
setLimit(java.util.Vector vStrLimit,
java.util.Locale locale)
Sets the limination, and does not recheck whether all the values in the value list are valid based on the new limination. |
void |
setPrompt(java.lang.String str)
|
void |
setRequired(boolean isReq)
|
void |
setSecurityEntry(java.lang.String entry)
|
void |
setSelectedValues(java.util.Vector selectedValues)
|
void |
setShowValues(java.util.Vector values)
|
boolean |
setUseCurrentDate(boolean useCurrentDate)
Sets the parameter whether it is a dynamic date parameter or not. |
boolean |
setUseCurrentDateWhenBlank(boolean useCurrentDateWhenBlank)
Sets the parameter if the parameter will return the current date when the parameter is blank. |
java.lang.String |
setValue(DbValue val,
java.util.Locale locale)
Sets the user input value, and returns the display value based on the locale. |
java.lang.String[] |
setValue(fArray val,
java.util.Locale locale)
|
java.lang.String[] |
setValue(java.lang.String[] inputValues,
java.util.Locale locale)
Deprecated. Replaced by setValue(UserInput[], Timestamp, Locale) |
java.lang.String |
setValue(java.lang.String outVal,
java.util.Locale locale)
Deprecated. Replaced by setValue(UserInput, Timestamp, Locale) |
void |
setValue(jet.parameter.UserInput[] input,
java.sql.Timestamp timeBaseLine,
java.util.Locale locale)
Set the user inputs to parameter when parameter is multiple value. |
void |
setValue(jet.parameter.UserInput input,
java.sql.Timestamp timeBaseLine,
java.util.Locale locale)
Set the user input to parameter. |
void |
setValueList(java.util.Vector values)
Deprecated. |
void |
setValueList(java.util.Vector values,
java.util.Vector showValues)
|
void |
setValues(java.util.Vector vStrValue,
java.util.Locale locale)
Sets(or changes) the value list of this parameter. |
void |
setValues(java.util.Vector vStrValue,
java.util.Locale locale,
DbValue currentValue)
|
void |
setWhenOutOfRange(int whenOutOfRange)
|
static java.lang.String[] |
splitValue(java.lang.String value)
|
java.lang.String |
toString()
|
void |
transferValues(ParamDesc param)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TYPE_INTEGER
public static final java.lang.String TYPE_NUMBER
public static final java.lang.String TYPE_STRING
public static final java.lang.String TYPE_CURRENCY
public static final java.lang.String TYPE_BOOLEAN
public static final java.lang.String TYPE_DATE
public static final java.lang.String TYPE_TIME
public static final java.lang.String TYPE_DATETIME
public static final java.lang.String TYPE_PARAMETER
public static final java.lang.String TYPE_PARAMETER_SEPARATOR1
public static final java.lang.String TYPE_PARAMETER_SEPARATOR2
public java.lang.String type
public static final java.util.Locale defaultLocale
public static final int dateStyle
java.text.DateFormat.LONG
,
Constant Field Valuespublic static final int timeStyle
public static final java.lang.String DATETIMEFMT
public static final java.lang.String DATEFMT
public static final int NORMAL
public static final int GROUPSORT
public static final int AUTO
public static final int IMPORT
public static final int PSEUDO
public static final int SORTORDER
public java.lang.String name
public java.lang.String promptText
public boolean isStringNull
public java.lang.String stringFormat
public final jet.parameter.definition.Definition def
public final jet.parameter.runtime.ParameterRuntime rt
public static final int ADOPT_DIRECTLY
public static final int USE_DEFAULT
public static final int WARN
Constructor Detail |
---|
public ParamDesc()
public ParamDesc(java.lang.String name, java.lang.String type, java.lang.String prompt, java.util.Vector vStrLimit, java.util.Vector vStrValue, java.lang.String strFormat, int operator, int index)
name
- The name of the parameter.type
- The type of the parameter.prompt
- The prompt string of the parameter.vStrLimit
- The value limitation vector of the parameter, not caring display format.vStrValue
- The initial value vector of the parameter, not caring display format.strFormat
- The format which is used to display the parameter's value.operator
- Now the value is jet.api.ParameterInfo.BETWEEN or jet.api.ParameterInfo.UNKNOWN.index
- The default value index in the vStrValue.public ParamDesc(java.lang.String strName, java.lang.String strType, java.lang.String prompt, java.util.Vector vStrLimit, java.util.Vector vStrValue, java.lang.String strFormat, int operator, int intdex, java.lang.String binding)
public ParamDesc(java.lang.String strName, java.lang.String strType, java.lang.String prompt, java.util.Vector vStrLimit, java.util.Vector vStrValue, java.lang.String strFormat, int operator, int intdex, int isColumn)
public ParamDesc(java.lang.String strName, java.lang.String strType, java.lang.String prompt, java.util.Vector vStrLimit, java.util.Vector vStrValue, java.lang.String strFormat, int operator, int intdex, int isColumn, java.lang.String column, java.util.Vector columns, java.util.Vector vShowValue, java.lang.String binding)
public ParamDesc(java.lang.String strName, java.lang.String strType, java.lang.String prompt, java.util.Vector vStrLimit, java.util.Vector vStrValue, java.lang.String strFormat, int operator, int intdex, int isColumn, java.lang.String column, java.util.Vector columns, java.util.Vector vShowValue, java.lang.String binding, boolean isDis, boolean isReq)
public ParamDesc(java.lang.String name, java.lang.String type, java.lang.String prompt, java.util.Vector vStrLimit, java.util.Vector vStrValue, java.lang.String strFormat, int operator, int index, boolean isMultipleValue)
name
- The name of the parameter.type
- The type of the parameter.prompt
- The prompt string of the parameter.vStrLimit
- The value limitation vector of pthe arameter, not caring display format.vStrValue
- The initial value vector of the parameter, not carinf display format.strFormat
- The format which is used to display the parameter's value.operator
- Now the value is jet.api.ParameterInfo.BETWEEN or jet.api.ParameterInfo.UNKNOWN.index
- The default value index in the vStrValue.public ParamDesc(java.lang.String strName, java.lang.String strType, java.lang.String prompt, java.util.Vector vStrLimit, java.util.Vector vStrValue, java.lang.String strFormat, int operator, int intdex, java.lang.String binding, boolean isMultipleValue)
public ParamDesc(java.lang.String strName, java.lang.String strType, java.lang.String prompt, java.util.Vector vStrLimit, java.util.Vector vStrValue, java.lang.String strFormat, int operator, int intdex, int isColumn, boolean isMultipleValue)
public ParamDesc(java.lang.String strName, java.lang.String strType, java.lang.String prompt, java.util.Vector vStrLimit, java.util.Vector vStrValue, java.lang.String strFormat, int operator, int intdex, int isColumn, java.lang.String column, java.util.Vector columns, java.util.Vector vShowValue, java.lang.String binding, boolean isMultipleValue)
public ParamDesc(java.lang.String strName, java.lang.String strType, java.lang.String prompt, java.util.Vector vStrLimit, java.util.Vector vStrValue, java.lang.String strFormat, int operator, int intdex, int isColumn, java.lang.String column, java.util.Vector columns, java.util.Vector vShowValue, java.lang.String binding, boolean isDis, boolean isReq, boolean isMultipleValue)
Method Detail |
---|
public java.lang.String getInternalValue()
public void setSecurityEntry(java.lang.String entry)
public java.lang.String getSecurityEntry()
public jet.parameter.definition.Definition getDefinition()
public jet.parameter.runtime.ParameterRuntime getParameterRuntime()
public java.util.Vector getDefaultValues()
public jet.formula.SymbolInfo getInfo()
public DbValue getValue()
public java.lang.String getStrValue()
public void set(DbValue v) throws jet.exception.InvalidParameterException
jet.exception.InvalidParameterException
public java.lang.String getValueMeaning()
If no value, returns null string.
public DbColDesc getColDesc()
public void initParam(java.util.Locale locale) throws jet.exception.InvalidParameterException
jet.exception.InvalidParameterException
public void setBeColumn(int b)
public int getBeColumn()
public boolean isColumn()
public boolean isColumnCal()
public void setLimit(java.util.Vector vStrLimit, java.util.Locale locale) throws jet.exception.InvalidParameterException
jet.exception.InvalidParameterException
public void setLimit(java.lang.String lim, java.util.Locale locale, int indexLimit) throws jet.exception.InvalidParameterException
jet.exception.InvalidParameterException
public java.lang.String[][] getBooleanLiteral()
public void clearMem()
public DbValue parseValue(java.lang.String val, java.util.Locale locale, boolean isExternal) throws jet.exception.InvalidParameterException
jet.exception.InvalidParameterException
public java.lang.String getDefaultValue()
public java.lang.String getDisplayValue(DbValue paramvalue, java.util.Locale locale)
If no value, returns null string.
public java.util.Vector getDisplayValues(java.util.Locale locale)
public boolean needLoadValueList()
public boolean isBindColumn()
public java.util.Vector getValues()
getShowValues
.
NOTE: the values are formatted by "yyyy-MM-dd HH:mm:ss.SSS" and timezone "GMT".
It's highly recommanded to call getDisplayValues(Locale) instead.
getShowValues
public java.util.Vector getValues(java.util.Locale loc)
UserInput
object.
If an element is not an expression, its getUserInput()
method will
return a same string as getDisplayValue(Locale)
.
But if the loc is null, these non-expression elements will be same as getValues().
loc
-
public boolean isValuesNotEmpty()
public java.lang.String getType()
public java.lang.String getName()
public java.lang.String getPrompt()
public java.util.Vector getLimit()
public java.util.Vector getDisplayLimit(java.util.Locale locale)
public java.lang.String getFormat()
public java.lang.String getDefaultDateFormat(java.util.Locale loc)
loc
-
public int getDefaultIndex()
public int getOperation()
jet.api.ParameterInfo.#UNKNOWN
,
jet.api.ParameterInfo.#BETWEEN
public void setFormat(java.lang.String str)
public void setPrompt(java.lang.String str)
public void setValues(java.util.Vector vStrValue, java.util.Locale locale) throws jet.exception.InvalidParameterException
vStrValue
- The value list to be set for the parameter.
Elements are strings or UserInput
.locale
- The locale used to parse the non-expression elements.
If the locale is null, default locale is used.
jet.exception.InvalidParameterException
public void setValues(java.util.Vector vStrValue, java.util.Locale locale, DbValue currentValue) throws jet.exception.InvalidParameterException
jet.exception.InvalidParameterException
public void setDefaultValue(int index)
public void setShowValues(java.util.Vector values)
public java.util.Vector getShowValues()
public java.lang.Object clone()
clone
in class java.lang.Object
public void setDefaultIndex(int i)
public boolean equals(ParamDesc param)
public DbValue parseInternalValue(java.lang.String inValue) throws jet.exception.InvalidParameterException
jet.exception.InvalidParameterException
public java.lang.String setValue(java.lang.String outVal, java.util.Locale locale) throws jet.exception.InvalidParameterException
setValue(UserInput, Timestamp, Locale)
jet.exception.InvalidParameterException
public java.lang.String setValue(DbValue val, java.util.Locale locale) throws jet.exception.InvalidParameterException
jet.exception.InvalidParameterException
public void resetTimeBaseLine(java.sql.Timestamp timeBaseLine)
public void setValue(jet.parameter.UserInput input, java.sql.Timestamp timeBaseLine, java.util.Locale locale) throws jet.exception.InvalidParameterException
UserInput
object whose isExpression()
will indicate
it's a constant string or a expression.
input
- timeBaseLine
- expressions such as currentTime() will use this value as return valuelocale
-
jet.formula.formulaExecutor.ExecFormulaFailedException
jet.exception.ParseFormulaFailedException
jet.exception.InvalidParameterException
public void setValue(jet.parameter.UserInput[] input, java.sql.Timestamp timeBaseLine, java.util.Locale locale) throws jet.exception.InvalidParameterException
UserInput
object whose isExpression()
will indicate
it's a constant string or a expression.
inputs
- timeBaseLine
- expressions such as currentTime() will use this value as return valuelocale
-
jet.exception.InvalidParameterException
public void check(java.lang.String value, java.util.Locale locale) throws jet.exception.InvalidParameterException
jet.exception.InvalidParameterException
public boolean isSimilar(ParamDesc param)
public java.lang.String getBinding()
public void setBinding(java.lang.String binding)
public java.lang.String getColumn()
public java.util.Vector getColumns()
public void setColumn(java.lang.String column)
public void setColumns(java.util.Vector v)
public void setDistinct(boolean isDis)
public boolean isDistinct()
public void setEncoding(java.lang.String encoding)
public void setRequired(boolean isReq)
public boolean isRequired()
public void setDataSource(java.lang.String sourceName)
public java.lang.String getDataSource()
public java.lang.String getImportSql()
public void setImportSql(java.lang.String importSql)
importSql
- The importSql to be set.public static void getRelatedParamDescsByParam(java.util.Hashtable allPara, java.util.Vector referPara, ParamDesc param)
referPara:
- ParamDesc collection.para:
- current parameter desc.public static java.util.Vector getFirstLevelRelatedParamByValue(java.util.Hashtable allPara, ParamDesc param, java.lang.Object value)
allPara
- param
- value
-
public static void getFirstShowParamDescs(java.util.Hashtable allPara, java.util.Vector referPara, ParamDesc param, java.lang.Object value)
referPara
- : paraDesc collection.para
- : current para.public static void getFirstLevelParam(java.util.Hashtable allPara)
public static void getAllRelatedParamByValue(java.util.Hashtable allPara, java.util.Vector referPara, ParamDesc param, java.lang.Object value)
referPara
- : ParamDesc collection.param
- : current parameter.value:
- current parameter's value.public static boolean hasNestedPara(java.util.Hashtable allPara)
allPara
-
public static java.util.Vector getReferPara(java.util.Hashtable allPara)
public static java.lang.String[] splitValue(java.lang.String value)
public boolean IsParameters()
public java.util.Vector getImportParams()
public void setImportParams(java.util.Vector importParams)
importParams
- The importParams to be set.public static boolean hasImportParam(java.util.Vector allPara)
allPara
-
public static boolean isImportByPara(ParamDesc param, ParamDesc curParam, java.util.Vector paramDescs)
public java.util.Vector getReferedBy()
public boolean isReferedBy()
public void clearReferedBy()
public boolean isReferOther()
public void addReferParamToVsortParams(java.util.Hashtable allParam, java.util.Hashtable curParamDescs, java.util.Vector sortParam)
public static java.util.Vector changedHashToVector(java.util.Hashtable hash)
public static java.util.Hashtable changedVectorToHash(java.util.Vector v)
public void transferValues(ParamDesc param)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isUseCurrentDate()
public boolean setUseCurrentDate(boolean useCurrentDate)
useCurrentDate.
-
public boolean isUseCurrentDateWhenBlank()
public boolean setUseCurrentDateWhenBlank(boolean useCurrentDateWhenBlank)
useCurrentDateWhenBlank.
-
public DbValue getDynamicValue(long dynamicValue, java.util.Locale local)
dynamicValue.
- local.
-
public boolean setDynamicTemplate(java.lang.String dynamicTemplate)
dynamicTemplate.
-
public java.lang.String getDynamicTemplate()
public void setHideParameterWhenSingleValueReturn(boolean isHideParameterWhenSingleValueReturn)
isHideParameterWhenSingleValueReturn
- is a boolean value.
If the parameter value is true, the parameter maybe be hidden when a single
value is returned, else doesn't hide the parameter.public boolean isHideParameterWhenSingleValueReturn()
public void setIsMultipleValue(boolean isMultipleValue)
isMultipleValue
- public boolean isMultipleValue()
public java.lang.String[] getMultiDisplayValue(fArray paramvalue, java.util.Locale locale)
paramvalue
- locale
-
public java.lang.String[] setValue(java.lang.String[] inputValues, java.util.Locale locale) throws jet.exception.InvalidParameterException
setValue(UserInput[], Timestamp, Locale)
inputValues
- locale
-
jet.exception.InvalidParameterException
public java.lang.String[] setValue(fArray val, java.util.Locale locale) throws jet.exception.InvalidParameterException
val
- locale
-
jet.exception.InvalidParameterException
public java.lang.String[] getMultiStrValue()
public void setSelectedValues(java.util.Vector selectedValues)
public java.util.Vector getSelectedValues()
public boolean isCascading()
public void setIsCascading(boolean isCascading)
public void setCascadingInfo(java.lang.String chainID, java.lang.String previousLevel, java.lang.String nextLevel, boolean isSetAsParameter)
public java.lang.String getChainID()
public java.lang.String getPreviousLevel()
public java.lang.String getNextLevel()
public boolean isSetAsParameter()
public void setAllSelected(boolean isAllSelected)
public boolean isAllSelected()
public void setAllowAll(boolean allow)
public boolean isAllowAll()
public void setAllowTypeIn(boolean allowTypeIn)
public boolean isAllowTypeIn()
public void setWhenOutOfRange(int whenOutOfRange)
public int getWhenOutOfRange()
public void setValueList(java.util.Vector values) throws jet.exception.InvalidParameterException
jet.exception.InvalidParameterException
public void setValueList(java.util.Vector values, java.util.Vector showValues)
public java.lang.String[] detectInvalidValues(java.lang.String[] target, java.util.Locale locale) throws jet.exception.InvalidParameterException
setValue
method will do the outOfRange check, this method is useless now
jet.exception.InvalidParameterException
public void setAllowUseExpression(boolean allowUseExpression)
public boolean allowUseExpression()
public java.lang.String getLocalizedUserFormat(java.util.Locale locale)
public java.util.Vector[] getValueList()
public boolean isGetValueFromAPI()
public void setGetValueFromAPI(boolean b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |