|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ParamInfo
Interface ParamInfo contains description of parameters of a report.
| Method Summary | |
|---|---|
void |
check(java.lang.String value)
check whether value is valid for the parameter. set locale via setLocale first. |
java.lang.String[] |
detectInvalidValues(java.lang.String[] values)
Detect whether values are out of range(value list of parameter) |
java.lang.String[][] |
getBooleanLiteral()
For Boolean type parameter, Return boolean literals |
java.lang.String |
getBoundSQL()
Return the parameter bound SQL. |
java.lang.String |
getDefaultDateFormat()
Return the default date format of the parameter. |
long |
getDefaultDateValue()
Return long value of the date/datetime/time parameter. |
java.lang.String |
getDefaultValue()
Return default value of the parameter. |
java.util.Vector |
getDisplayValues()
Return the parameter value displayed. |
java.util.Vector |
getDisplayValues(java.util.Locale locale)
Deprecated. use setLocale(Locale) and getDisplayValues() instead. |
java.lang.String |
getDynamicDisplayValue(long currTime)
|
java.lang.String |
getDynamicDisplayValue(long currTime,
java.util.Locale local)
Deprecated. use setLocale(Locale) and getDynamicDisplayValue(long) instead. |
java.util.Locale |
getLocale()
Return the Locale of the Parameter. |
java.lang.String |
getMaxLimit()
Return the max limit of the parameter value. |
java.lang.String |
getMaxLimit(java.util.Locale locale)
Deprecated. use setLocale(Locale) and getMaxLimit() instead. |
java.lang.String |
getMinLimit()
Return the max limit of the parameter value. |
java.lang.String |
getMinLimit(java.util.Locale locale)
Deprecated. use setLocale(Locale) and getMinLimit() instead. |
java.lang.String |
getName()
Return the name of the parameter. |
java.lang.String |
getNextLevel()
For cascading parameter, Return the next level parameter name for cascading parameter. |
java.lang.String |
getPreviousLevel()
For cascading parameter, Return the previous level parameter name. |
java.lang.String |
getPrompt()
Return the prompt message of the parameter. |
java.util.Vector |
getReferedBy()
Return the parameter refered by other parameters. |
java.lang.String |
getType()
Return the type of the parameter. |
java.lang.String |
getUserFormat()
Return the user defined format of the parameter. |
java.util.Vector |
getValueOptions()
Return the options of the parameter value. |
java.util.Vector |
getValueOptions(java.util.Locale locale)
Deprecated. use setLocale(Locale) and getValueOptions() instead. |
int |
getWhenOutOfRange()
Return the process method when type value is out of range. |
boolean |
isAllowAll()
Return whether this parameter is allow ALL value or not. |
boolean |
isAllowTypeIn()
Return if the parameter is allow type-in value directly. if it is true, UI should allow type-in value directly regardless whether the parameter is bound with column. |
boolean |
isCascading()
Return whether the parameter is cascading. |
boolean |
isColumn()
Return if the parameter only accepts a column name as its value. |
boolean |
isDistinct()
Returns if the parameter is distinct. |
boolean |
isDynamicDateParameter()
Indicate whether the paramter is dynamic parameter. |
boolean |
isHideParameterWhenSingleValueReturn()
For bound with column parameter, isColumn() is true,
Return if the parameter maybe hidden when single value is returned. |
boolean |
isMultiple()
Return whether the parameter is support multiple choice or not. |
boolean |
isParameters()
Return if the values are parameters. |
boolean |
isReferedBy()
Return if the parameter is refered by other parameters. |
boolean |
isReferOther()
Return if the parameter refer other parameters. |
boolean |
isRequired()
Returns if the parameter is required. |
boolean |
isSetAsParameter()
For cascading parameter, Return whether the parameter is set as parameter. |
void |
setEncoding(java.lang.String encoding)
|
void |
setLocale(java.util.Locale locale)
Set the Locale of the Parameter. Default is system default locale |
void |
setValue(java.lang.String value)
Set the parameter value. |
| Method Detail |
|---|
java.lang.String getName()
java.lang.String getType()
java.lang.String getPrompt()
void setLocale(java.util.Locale locale)
locale - the Locale of the parameter.java.util.Locale getLocale()
java.lang.String getDefaultValue()
setLocale(Locale)long getDefaultDateValue()
setLocale(Locale)boolean isColumn()
boolean isDistinct()
boolean isRequired()
java.util.Vector getValueOptions(java.util.Locale locale)
setLocale(Locale) and getValueOptions() instead.
locale - the Locale will be ignored.
setLocale(Locale)java.util.Vector getValueOptions()
setLocale(Locale)java.util.Vector getDisplayValues(java.util.Locale locale)
setLocale(Locale) and getDisplayValues() instead.
locale - the Locale will be ignored.
setLocale(Locale)java.util.Vector getDisplayValues()
setLocale(Locale)void setEncoding(java.lang.String encoding)
void setValue(java.lang.String value)
value - the parameter value.java.lang.String getMaxLimit(java.util.Locale locale)
setLocale(Locale) and getMaxLimit() instead.
locale - the Locale will be ignored.
setLocale(Locale)java.lang.String getMaxLimit()
setLocale(Locale)java.lang.String getMinLimit(java.util.Locale locale)
setLocale(Locale) and getMinLimit() instead.
locale - the Locale will be ignored.
setLocale(Locale)java.lang.String getMinLimit()
setLocale(Locale)java.lang.String getUserFormat()
java.lang.String getDefaultDateFormat()
type is not
"Date", "DateTime", or "Time", return nullboolean isParameters()
boolean isReferedBy()
java.util.Vector getReferedBy()
boolean isReferOther()
java.lang.String getBoundSQL()
boolean isDynamicDateParameter()
java.lang.String getDynamicDisplayValue(long currTime,
java.util.Locale local)
setLocale(Locale) and getDynamicDisplayValue(long) instead.
currTime - the milliseconds value of local current system time.locale - the Locale will be ignored.
setLocale(Locale)java.lang.String getDynamicDisplayValue(long currTime)
currTime - the milliseconds value of local current system time.
setLocale(Locale)boolean isHideParameterWhenSingleValueReturn()
isColumn() is true,
Return if the parameter maybe hidden when single value is returned.
isColumn()java.lang.String[][] getBooleanLiteral()
true, String[1][] are literals for falseboolean isMultiple()
boolean isAllowAll()
boolean isCascading()
java.lang.String getPreviousLevel()
java.lang.String getNextLevel()
boolean isSetAsParameter()
boolean isAllowTypeIn()
int getWhenOutOfRange()
ParamDesc.ADOPT_DIRECTLY
or ParamDesc.USE_DEFAULT
or ParamDesc.WARNjava.lang.String[] detectInvalidValues(java.lang.String[] values)
values - The values to be detected
void check(java.lang.String value)
throws RptServerException
setLocale first.
value - the value to be checked.
RptServerException - if the value is invalid for the parameter.setLocale(Locale)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||