public interface OCommandContext
Modifier and Type | Interface and Description |
---|---|
static class |
OCommandContext.TIMEOUT_STRATEGY |
OCommandContext setVariable(String iName, Object iValue)
OCommandContext incrementVariable(String getNeighbors)
OCommandContext getParent()
OCommandContext setParent(OCommandContext iParentContext)
OCommandContext setChild(OCommandContext context)
long updateMetric(String iName, long iValue)
iName
- Metric's nameiValue
- delta to add or subtractboolean isRecordingMetrics()
OCommandContext setRecordingMetrics(boolean recordMetrics)
void beginExecution(long timeoutMs, OCommandContext.TIMEOUT_STRATEGY iStrategy)
boolean checkTimeout()
OTimeoutException
- if the strategy is "exception" (default)OCommandContext copy()
void merge(OCommandContext iContext)
iContext
- ODatabase getDatabase()
void declareScriptVariable(String varName)
boolean isScriptVariableDeclared(String varName)
Copyright © 2009–2020 OrientDB. All rights reserved.