public class ParameterTable extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static ResourceBundle |
messages
I18N support
|
| Constructor and Description |
|---|
ParameterTable() |
ParameterTable(ParameterTable other)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(String name,
Type type)
Adds a new query parameter with the specified type to the query
parameter table.
|
void |
checkUnboundParams()
Checks whether all parameters have an actual value.
|
Integer |
getIndexForParamName(String paramName)
Deprecated.
|
String |
getKeyForRetrieveDescCache()
Calculates and returns the key for the RetrieveDesc cache based,
on the actual parameter values.
|
ParameterInfo |
getParameterInfoForParamName(String paramName)
Returns the parameter info for the specified parameter name.
|
ParameterInfo |
getParameterInfoForParamName(String paramName,
String associatedField)
Returns the parameter info for the specified parameter name
and associated field.
|
Object |
getValueByIndex(int index)
Returns the value of the parameter with the specified index.
|
Object |
getValueByName(String name)
Returns the value of the parameter with the specified name.
|
ValueFetcher |
getValueFetcher()
Wraps the actual parameter array into a ValueFetcher instnace.
|
List |
getValues()
Returns the list of parameter values.
|
void |
init()
Initializes the parameter declarations (names and types list).
|
void |
initValueHandling()
Initializes the parameter values.
|
boolean |
inline(String paramName)
Returns true if the parameter with the specified index should be inlined
by the optimizer.
|
void |
setValues(Map actualParams)
Check actual query parameters specified as map and return the
ValueFetcher for the inputparameters.
|
void |
setValues(Object[] actualParams)
Check actual query parameters specified as array and return the
ValueFetcher for the inputparameters.
|
protected static final ResourceBundle messages
public ParameterTable()
public ParameterTable(ParameterTable other)
other - the ParameterTable to be copiedpublic void add(String name, Type type)
public void init()
public void initValueHandling()
public void setValues(Object[] actualParams)
actualParams - public void checkUnboundParams()
public void setValues(Map actualParams)
actualParams - public Object getValueByName(String name)
public Object getValueByIndex(int index)
public List getValues()
public ValueFetcher getValueFetcher()
public String getKeyForRetrieveDescCache()
null return means, the RetrieveDesc should not be
cached.
Note, this method needs to be in sync with method inline.public boolean inline(String paramName)
paramName - the parameterpublic Integer getIndexForParamName(String paramName)
public ParameterInfo getParameterInfoForParamName(String paramName)
paramName - public ParameterInfo getParameterInfoForParamName(String paramName, String associatedField)
paramName - associatedField - Copyright © 2019. All rights reserved.