APIdia Launch Partner
Top Description Methods
io.github.spannm.jackcess.expr

public Interface EvalContext

extends LocaleContext
Known Direct Implementers
io.github.spannm.jackcess.impl.BaseEvalContext
Imports
javax.script.Bindings

EvalContext encapsulates all shared state for expression parsing and evaluation. It provides a bridge between the expression execution engine and the current Database.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the value of the current key from the currently configured Bindings
get
(String key)

Returns the value of the current key from the currently configured Bindings.

public Bindings

Returns:

the currently configured Bindings (from the EvalConfig)
getBindings
()

Returns the currently configured Bindings (from the EvalConfig).

public Value

Returns:

the value of the entity identified by the given identifier (for "calculated" and "row validator" expressions)
getIdentifierValue
(Identifier identifier)

Returns the value of the entity identified by the given identifier (for "calculated" and "row validator" expressions).

public float

Returns:

a random value for the given seed following the statefulness rules for the "Rnd" function
getRandom
(Integer
the seed for the random value, following the rules for the "Rnd" function
seed
)

Returns a random value for the given seed following the statefulness rules for the "Rnd" function.

public Value.Type

Returns:

the expected type of the result value for the current expression evaluation (for "default value" and "calculated" expressions)
getResultType
()

Returns the expected type of the result value for the current expression evaluation (for "default value" and "calculated" expressions).

public Value

Returns:

the value of the "current" column (for "field validator" expressions)
getThisColumnValue
()

Returns the value of the "current" column (for "field validator" expressions).

public void
put(String key, Object value)

Sets the value of the given key to the given value in the currently configured Bindings.

Inherited from io.github.spannm.jackcess.expr.LocaleContext:
createDateFormattercreateDecimalFormatgetLocalegetNumericConfiggetTemporalConfiggetZoneId

Method Detail

getback to summary
public Object get(String key)

Returns the value of the current key from the currently configured Bindings.

Returns:Object

the value of the current key from the currently configured Bindings

getBindingsback to summary
public Bindings getBindings()

Returns the currently configured Bindings (from the EvalConfig).

Returns:Bindings

the currently configured Bindings (from the EvalConfig)

getIdentifierValueback to summary
public Value getIdentifierValue(Identifier identifier)

Returns the value of the entity identified by the given identifier (for "calculated" and "row validator" expressions).

Returns:Value

the value of the entity identified by the given identifier (for "calculated" and "row validator" expressions)

getRandomback to summary
public float getRandom(Integer seed)

Returns a random value for the given seed following the statefulness rules for the "Rnd" function.

Parameters
seed:Integer

the seed for the random value, following the rules for the "Rnd" function

Returns:float

a random value for the given seed following the statefulness rules for the "Rnd" function

getResultTypeback to summary
public Value.Type getResultType()

Returns the expected type of the result value for the current expression evaluation (for "default value" and "calculated" expressions).

Returns:Value.Type

the expected type of the result value for the current expression evaluation (for "default value" and "calculated" expressions)

getThisColumnValueback to summary
public Value getThisColumnValue()

Returns the value of the "current" column (for "field validator" expressions).

Returns:Value

the value of the "current" column (for "field validator" expressions)

putback to summary
public void put(String key, Object value)

Sets the value of the given key to the given value in the currently configured Bindings.