Interface EvalContext
-
- All Superinterfaces:
LocaleContext
- All Known Implementing Classes:
BaseEvalContext,CalcColEvalContext,ColDefaultValueEvalContext,ColEvalContext,ColValidatorEvalContext,RowEvalContext,RowValidatorEvalContext
public interface EvalContext extends LocaleContext
EvalContext encapsulates all shared state for expression parsing and evaluation. It provides a bridge between the expression execution engine and the current Database.- Author:
- James Ahlborn
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectget(String key)BindingsgetBindings()ValuegetIdentifierValue(Identifier identifier)floatgetRandom(Integer seed)Value.TypegetResultType()ValuegetThisColumnValue()voidput(String key, Object value)Sets the value of the given key to the given value in the currently configuredBindings.-
Methods inherited from interface com.healthmarketscience.jackcess.expr.LocaleContext
createDateFormatter, createDecimalFormat, getLocale, getNumericConfig, getTemporalConfig, getZoneId
-
-
-
-
Method Detail
-
getRandom
float getRandom(Integer seed)
- Parameters:
seed- the seed for the random value, following the rules for the "Rnd" function- Returns:
- a random value for the given seed following the statefulness rules for the "Rnd" function
-
getResultType
Value.Type getResultType()
- Returns:
- the expected type of the result value for the current expression evaluation (for "default value" and "calculated" expressions)
-
getThisColumnValue
Value getThisColumnValue()
- Returns:
- the value of the "current" column (for "field validator" expressions)
-
getIdentifierValue
Value getIdentifierValue(Identifier identifier)
- Returns:
- the value of the entity identified by the given identifier (for "calculated" and "row validator" expressions)
-
getBindings
Bindings getBindings()
- Returns:
- the currently configured Bindings (from the
EvalConfig)
-
get
Object get(String key)
- Returns:
- the value of the current key from the currently configured
Bindings
-
-