|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RemoteParamInfo
Interface RemoteParamInfo contains the description of parameters in a report.
This is an RMI-based interface and invoking the methods of this interface
will make an RMI call to the associated JReport Server
jet.server.api.ParamInfo}.,
ParamInfo| Method Summary | |
|---|---|
void |
check(java.lang.String value)
Checks whether the value is valid for the parameter based on locale of this object set by setLocale(Locale). |
java.lang.String[] |
detectInvalidValues(java.lang.String[] values)
Detects whether values are out of range(value list of parameter). |
java.lang.String[][] |
getBooleanLiteral()
For Boolean type parameter, returns boolean literals. |
java.lang.String |
getBoundSQL()
Returns the parameter bound SQL. |
java.lang.String |
getDefaultDateFormat()
Returns the default date format of the parameter. |
long |
getDefaultDateValue()
Returns the value of the date/datetime/time parameter as a long type. |
java.lang.String |
getDefaultValue()
Returns the default value of the parameter. |
java.util.Vector |
getDisplayValues()
Returns 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()
Returns the locale of the Parameter. |
java.lang.String |
getMaxLimit()
Returns the maximum limit of the parameter value. |
java.lang.String |
getMaxLimit(java.util.Locale locale)
Deprecated. use setLocale(Locale) and getMaxLimit() instead. |
java.lang.String |
getMinLimit()
Returns the minimum limit of the parameter value. |
java.lang.String |
getMinLimit(java.util.Locale locale)
Deprecated. use setLocale(Locale) and getMinLimit() instead. |
java.lang.String |
getName()
Returns the name of the parameter. |
java.lang.String |
getNextLevel()
For cascading parameter, returns the next lower level parameter name. |
java.lang.String |
getPreviousLevel()
For cascading parameter, returns the next higher level parameter name. |
java.lang.String |
getPrompt()
Returns the prompt message of the parameter. |
java.util.Vector |
getReferedBy()
Returns a Vector containing the list of parameters that refer to this parameter. |
java.lang.String |
getType()
Returns the type of the parameter. |
java.lang.String |
getUserFormat()
Returns the user defined format of the parameter. |
java.util.Vector<java.lang.String[]> |
getValueList()
Gets the parameter value, show value, display value and NLS value |
java.util.Vector |
getValueOptions()
Returns the options of the parameter value. |
java.util.Vector |
getValueOptions(java.util.Locale locale)
Deprecated. use setLocale(Locale) and getValueOptions() instead. |
int |
getWhenOutOfRange()
Returns the processing method when a typed value is out of range. |
boolean |
isAllowAll()
Returns true if the parameter allows typing in values directly. If it is true, typing in values directly should be allowed on UI regardless of whether the parameter is bound with column. |
boolean |
isAllowTypeIn()
Returns true if the parameter allows typing in values directly. If it is true, typing in values directly should be allowed on UI regardless of whether the parameter is bound with column. |
boolean |
isCascading()
Returns true when the parameter is a member of a group of cascading parameters. |
boolean |
isColumn()
Returns true if the parameter only accepts a column name as its value. |
boolean |
isDistinct()
Returns true if the parameter is distinct. |
boolean |
isDynamicDateParameter()
Indicates whether the parameter is a dynamic parameter. |
boolean |
isGetValueFromAPI()
Check whether the parameter is API level parameter. |
boolean |
isHideParameterWhenSingleValueReturn()
For bind with column parameter, isColumn() is true. |
boolean |
isMultiple()
Determines whether the parameter allows multiple values to be specified. |
boolean |
isParameters()
Returns true if the values are parameters. |
boolean |
isReferedBy()
Returns true if the parameter is referred to by other parameters. |
boolean |
isReferOther()
Returns true if the parameter refers to other parameters. |
boolean |
isRequired()
Returns true if the parameter is required. |
boolean |
isSetAsParameter()
For cascading parameter, returns true if the parameter is set as an independent parameter that can be used separately. |
boolean |
needNLSDisplayValue()
Check whether the display value need nls |
void |
setEncoding(java.lang.String encoding)
Sets the encoding. |
void |
setLocale(java.util.Locale locale)
Sets the locale of the Parameter. Default is system default locale. |
void |
setValue(java.lang.String value)
Sets the parameter value. |
void |
setValue(java.lang.String[] value)
Sets the parameter values. |
java.lang.String |
validateValue(java.lang.String paramValue)
Checks whether a value is valid for the parameter, based on the Locale of this object set by setLocale(Locale). |
| Method Detail |
|---|
java.lang.String getName()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
java.lang.String getType()
throws java.rmi.RemoteException
"String", "Number", "Currency", "Boolean", "Date", "Time", "DateTime".
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
java.lang.String getPrompt()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
void setLocale(java.util.Locale locale)
throws java.rmi.RemoteException
locale - The locale of the parameter.
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
java.util.Locale getLocale()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
java.lang.String getDefaultValue()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.setLocale(Locale)
long getDefaultDateValue()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.setLocale(Locale)
boolean isColumn()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
boolean isDistinct()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
boolean isRequired()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
java.util.Vector getValueOptions(java.util.Locale locale)
throws java.rmi.RemoteException
setLocale(Locale) and getValueOptions() instead.
locale - The locale will be ignored.
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.setLocale(Locale)
java.util.Vector getValueOptions()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.setLocale(Locale)
java.util.Vector getDisplayValues(java.util.Locale locale)
throws java.rmi.RemoteException
setLocale(Locale) and getDisplayValues() instead.
locale - The locale will be ignored.
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.setLocale(Locale)
java.util.Vector getDisplayValues()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.setLocale(Locale)
void setEncoding(java.lang.String encoding)
throws java.rmi.RemoteException
encoding - The encoding.
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
void setValue(java.lang.String value)
throws java.rmi.RemoteException
value - The parameter value.
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
void setValue(java.lang.String[] value)
throws java.rmi.RemoteException
value - The parameter values.
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
java.lang.String getMaxLimit(java.util.Locale locale)
throws java.rmi.RemoteException
setLocale(Locale) and getMaxLimit() instead.
locale - The locale will be ignored.
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.setLocale(Locale)
java.lang.String getMaxLimit()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
java.lang.String getMinLimit(java.util.Locale locale)
throws java.rmi.RemoteException
setLocale(Locale) and getMinLimit() instead.
locale - The locale will be ignored.
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.setLocale(Locale)
java.lang.String getMinLimit()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.setLocale(Locale)
java.lang.String getUserFormat()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
java.lang.String getDefaultDateFormat()
throws java.rmi.RemoteException
type is not
"Date", "DateTime", or "Time", returns null.
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
boolean isParameters()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
boolean isReferedBy()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
java.util.Vector getReferedBy()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
boolean isReferOther()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
java.lang.String getBoundSQL()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
boolean isDynamicDateParameter()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
java.lang.String getDynamicDisplayValue(long currTime,
java.util.Locale local)
throws java.rmi.RemoteException
setLocale(Locale) and getDynamicDisplayValue(long) instead.
currTime - The local current system time in milliseconds.locale - The locale will be ignored.
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.setLocale(Locale)
java.lang.String getDynamicDisplayValue(long currTime)
throws java.rmi.RemoteException
currTime - The local current system time in milliseconds.
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.setLocale(Locale)
boolean isHideParameterWhenSingleValueReturn()
throws java.rmi.RemoteException
isColumn() is true.
Returns true if the parameter is hidden when a single value is returned.
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.isColumn()
java.lang.String[][] getBooleanLiteral()
throws java.rmi.RemoteException
true, String[1][] are literals for false.
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
boolean isMultiple()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
boolean isAllowAll()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
boolean isCascading()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
java.lang.String getPreviousLevel()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
java.lang.String getNextLevel()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
boolean isSetAsParameter()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
boolean isAllowTypeIn()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
int getWhenOutOfRange()
throws java.rmi.RemoteException
ParamDesc.ADOPT_DIRECTLY
or ParamDesc.USE_DEFAULT
or ParamDesc.WARN
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
java.lang.String[] detectInvalidValues(java.lang.String[] values)
throws java.rmi.RemoteException
values - The values to be detected.
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
void check(java.lang.String value)
throws RptServerException,
java.rmi.RemoteException
setLocale(Locale).
value - The value to be checked.
RptServerException - If the value is invalid for the parameter.
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
java.lang.String validateValue(java.lang.String paramValue)
throws RptServerException,
java.rmi.RemoteException
setLocale(Locale).
paramValue - the value to be checked.
RptServerException
java.rmi.RemoteException
boolean isGetValueFromAPI()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
java.util.Vector<java.lang.String[]> getValueList()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
boolean needNLSDisplayValue()
throws java.rmi.RemoteException
java.rmi.RemoteException - If communication-related error occurs during RMI call execution or not.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||