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 EvalContextEvalConfig)public SimpleDateFormat createDateFormat(String formatStr)
createDateFormat in interface EvalContextpublic float getRandom(Integer seed)
getRandom in interface EvalContextseed - the seed for the random value, following the rules for the
"Rnd" functionpublic Value.Type getResultType()
getResultType in interface EvalContextpublic Value getThisColumnValue()
getThisColumnValue in interface EvalContextpublic Value getIdentifierValue(Identifier identifier)
getIdentifierValue in interface EvalContextpublic Bindings getBindings()
getBindings in interface EvalContextEvalConfig)public Object get(String key)
get in interface EvalContextBindingspublic void put(String key, Object value)
EvalContextBindings.put in interface EvalContextpublic Object eval() throws IOException
IOExceptionpublic void collectIdentifiers(Collection<Identifier> identifiers)
public static Value.Type toValueType(DataType dType)
Copyright © 2005–2018. All rights reserved.