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 EvalConfig
getTemporalConfig
in interface Expressionator.ParseContext
public void setTemporalConfig(TemporalConfig temporal)
EvalConfig
Database
instances from other locales.setTemporalConfig
in interface EvalConfig
public FunctionLookup getFunctionLookup()
getFunctionLookup
in interface EvalConfig
getFunctionLookup
in interface Expressionator.ParseContext
public void setFunctionLookup(FunctionLookup lookup)
EvalConfig
Function
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 EvalConfig
public Bindings getBindings()
getBindings
in interface EvalConfig
public void setBindings(Bindings bindings)
EvalConfig
setBindings
in interface EvalConfig
public SimpleDateFormat createDateFormat(String formatStr)
createDateFormat
in interface Expressionator.ParseContext
public float getRandom(Integer seed)
Copyright © 2005–2018. All rights reserved.