public class DBEvalContext extends Object implements Expressionator.ParseContext, EvalConfig
| Constructor and Description |
|---|
DBEvalContext(DatabaseImpl db) |
| Modifier and Type | Method and Description |
|---|---|
DateTimeFormatter |
createDateFormatter(String formatStr) |
DecimalFormat |
createDecimalFormat(String formatStr) |
Bindings |
getBindings() |
FunctionLookup |
getFunctionLookup() |
NumericConfig |
getNumericConfig() |
float |
getRandom(Integer seed) |
TemporalConfig |
getTemporalConfig() |
ZoneId |
getZoneId() |
void |
setBindings(Bindings bindings)
Allows for passing custom information into expression evaluation.
|
void |
setFunctionLookup(FunctionLookup lookup)
Sets the
Function provider to use during expression evaluation. |
void |
setNumericConfig(NumericConfig numeric)
Sets the NumericConfig for use when evaluating expressions.
|
void |
setTemporalConfig(TemporalConfig temporal)
Sets the TemporalConfig for use when evaluating expressions.
|
public DBEvalContext(DatabaseImpl db)
public TemporalConfig getTemporalConfig()
getTemporalConfig in interface EvalConfiggetTemporalConfig in interface LocaleContextEvalConfig)public void setTemporalConfig(TemporalConfig temporal)
EvalConfigDatabase instances from other locales.setTemporalConfig in interface EvalConfigpublic ZoneId getZoneId()
getZoneId in interface LocaleContextpublic NumericConfig getNumericConfig()
getNumericConfig in interface EvalConfiggetNumericConfig in interface LocaleContextEvalConfig)public void setNumericConfig(NumericConfig numeric)
EvalConfigDatabase instances from other locales.setNumericConfig in interface EvalConfigpublic FunctionLookup getFunctionLookup()
getFunctionLookup in interface EvalConfiggetFunctionLookup in interface Expressionator.ParseContextpublic void setFunctionLookup(FunctionLookup lookup)
EvalConfigFunction provider to use during expression evaluation.
The Functions supported by the default FunctionLookup are documented in
com.healthmarketscience.jackcess.expr. Custom Functions can be
implemented and provided to the expression evaluation engine by installing
a custom FunctionLookup instance (which would presumably wrap and
delegate to the default FunctionLookup instance for any default
implementations).setFunctionLookup in interface EvalConfigpublic Bindings getBindings()
getBindings in interface EvalConfigpublic void setBindings(Bindings bindings)
EvalConfigsetBindings in interface EvalConfigpublic DateTimeFormatter createDateFormatter(String formatStr)
createDateFormatter in interface LocaleContextpublic DecimalFormat createDecimalFormat(String formatStr)
createDecimalFormat in interface LocaleContextpublic float getRandom(Integer seed)
Copyright © 2005–2025 OpenHMS. All rights reserved.