
public class OBasicCommandContext extends Object implements OCommandContext
OCommandContext.TIMEOUT_STRATEGY| Modifier and Type | Field and Description |
|---|---|
protected Object[] |
args |
protected OCommandContext |
child |
protected ODatabase |
database |
protected Set<String> |
declaredScriptVariables |
static String |
EXECUTION_BEGUN |
protected Map<Object,Object> |
inputParameters |
static String |
INVALID_COMPARE_COUNT |
protected OCommandContext |
parent |
protected boolean |
recordMetrics |
protected AtomicLong |
resultsProcessed |
static String |
TIMEOUT_MS |
static String |
TIMEOUT_STRATEGY |
protected Set<Object> |
uniqueResult |
protected Map<String,Object> |
variables |
| Constructor and Description |
|---|
OBasicCommandContext() |
public static final String EXECUTION_BEGUN
public static final String TIMEOUT_MS
public static final String TIMEOUT_STRATEGY
public static final String INVALID_COMPARE_COUNT
protected ODatabase database
protected Object[] args
protected boolean recordMetrics
protected OCommandContext parent
protected OCommandContext child
protected AtomicLong resultsProcessed
public Object getVariable(String iName)
getVariable in interface OCommandContextpublic Object getVariable(String iName, Object iDefault)
getVariable in interface OCommandContextpublic OCommandContext setVariable(String iName, Object iValue)
setVariable in interface OCommandContextpublic OCommandContext incrementVariable(String iName)
incrementVariable in interface OCommandContextpublic long updateMetric(String iName, long iValue)
OCommandContextupdateMetric in interface OCommandContextiName - Metric's nameiValue - delta to add or subtractpublic Map<String,Object> getVariables()
getVariables in interface OCommandContextpublic OCommandContext setChild(OCommandContext iContext)
setChild in interface OCommandContextpublic OCommandContext getParent()
getParent in interface OCommandContextpublic OCommandContext setParent(OCommandContext iParentContext)
setParent in interface OCommandContextpublic OCommandContext setParentWithoutOverridingChild(OCommandContext iParentContext)
public boolean isRecordingMetrics()
isRecordingMetrics in interface OCommandContextpublic OCommandContext setRecordingMetrics(boolean recordMetrics)
setRecordingMetrics in interface OCommandContextpublic void beginExecution(long iTimeout,
OCommandContext.TIMEOUT_STRATEGY iStrategy)
beginExecution in interface OCommandContextpublic boolean checkTimeout()
OCommandContextcheckTimeout in interface OCommandContextpublic OCommandContext copy()
OCommandContextcopy in interface OCommandContextpublic void merge(OCommandContext iContext)
OCommandContextmerge in interface OCommandContextpublic Map<Object,Object> getInputParameters()
getInputParameters in interface OCommandContextpublic void setInputParameters(Map<Object,Object> inputParameters)
setInputParameters in interface OCommandContextpublic AtomicLong getResultsProcessed()
public boolean addToUniqueResult(Object o)
o - the result item to addpublic ODatabase getDatabase()
getDatabase in interface OCommandContextpublic void setDatabase(ODatabase database)
public void declareScriptVariable(String varName)
declareScriptVariable in interface OCommandContextpublic boolean isScriptVariableDeclared(String varName)
isScriptVariableDeclared in interface OCommandContextCopyright © 2009–2025 OrientDB. All rights reserved.