public class DBEvalContext extends Object implements Expressionator.ParseContext, EvalConfig
| Constructor and Description |
|---|
DBEvalContext(DatabaseImpl db) |
| Modifier and Type | Method and Description |
|---|---|
SimpleDateFormat |
createDateFormat(String formatStr) |
Bindings |
getBindings() |
protected DatabaseImpl |
getDatabase() |
FunctionLookup |
getFunctionLookup() |
float |
getRandom(Integer seed) |
TemporalConfig |
getTemporalConfig() |
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 |
setTemporalConfig(TemporalConfig temporal)
Sets the TemporalConfig for use when evaluating expressions.
|
public DBEvalContext(DatabaseImpl db)
protected DatabaseImpl getDatabase()
public TemporalConfig getTemporalConfig()
getTemporalConfig in interface EvalConfiggetTemporalConfig in interface Expressionator.ParseContextpublic void setTemporalConfig(TemporalConfig temporal)
EvalConfigDatabase instances from other locales.setTemporalConfig 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 SimpleDateFormat createDateFormat(String formatStr)
createDateFormat in interface Expressionator.ParseContextpublic float getRandom(Integer seed)
Copyright © 2005–2018. All rights reserved.