public abstract class BaseEvalContext extends Object implements EvalContext
Modifier | Constructor and Description |
---|---|
protected |
BaseEvalContext(DBEvalContext dbCtx) |
Modifier and Type | Method and Description |
---|---|
void |
collectIdentifiers(Collection<Identifier> identifiers) |
SimpleDateFormat |
createDateFormat(String formatStr) |
Object |
eval() |
Object |
get(String key) |
Bindings |
getBindings() |
protected DatabaseImpl |
getDatabase() |
Value |
getIdentifierValue(Identifier identifier) |
float |
getRandom(Integer seed) |
Value.Type |
getResultType() |
TemporalConfig |
getTemporalConfig() |
Value |
getThisColumnValue() |
void |
put(String key,
Object value)
Sets the value of the given key to the given value in the currently
configured
Bindings . |
String |
toString() |
protected Value |
toValue(Object val,
DataType dType) |
static Value.Type |
toValueType(DataType dType) |
protected abstract String |
withErrorContext(String msg) |
protected BaseEvalContext(DBEvalContext dbCtx)
protected DatabaseImpl getDatabase()
public TemporalConfig getTemporalConfig()
getTemporalConfig
in interface EvalContext
EvalConfig
)public SimpleDateFormat createDateFormat(String formatStr)
createDateFormat
in interface EvalContext
public float getRandom(Integer seed)
getRandom
in interface EvalContext
seed
- the seed for the random value, following the rules for the
"Rnd" functionpublic Value.Type getResultType()
getResultType
in interface EvalContext
public Value getThisColumnValue()
getThisColumnValue
in interface EvalContext
public Value getIdentifierValue(Identifier identifier)
getIdentifierValue
in interface EvalContext
public Bindings getBindings()
getBindings
in interface EvalContext
EvalConfig
)public Object get(String key)
get
in interface EvalContext
Bindings
public void put(String key, Object value)
EvalContext
Bindings
.put
in interface EvalContext
public Object eval() throws IOException
IOException
public void collectIdentifiers(Collection<Identifier> identifiers)
public static Value.Type toValueType(DataType dType)
Copyright © 2005–2018. All rights reserved.