
public abstract class OCommandRequestAbstract extends Object implements OCommandRequestInternal, ODistributedCommand
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cacheableResult |
protected OCommandContext |
context |
protected String |
fetchPlan |
protected int |
limit |
protected OAsyncReplicationError |
onAsyncReplicationError |
protected OAsyncReplicationOk |
onAsyncReplicationOk |
protected Map<Object,Object> |
parameters |
protected OProgressListener |
progressListener |
protected OCommandResultListener |
resultListener |
protected long |
timeoutMs |
protected OCommandContext.TIMEOUT_STRATEGY |
timeoutStrategy |
protected boolean |
useCache |
| Modifier | Constructor and Description |
|---|---|
protected |
OCommandRequestAbstract() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExcludedNode(String node) |
protected Map<Object,Object> |
convertToParameters(Object... iArgs) |
OCommandContext |
getContext() |
String |
getFetchPlan()
This api is deprecated use sql keyword "FETCHPLAN" instead
Returns the fetch plan if any
|
int |
getLimit()
This api is deprecated use sql keyword "LIMIT" instead
Returns the limit of result set.
|
OAsyncReplicationError |
getOnAsyncReplicationError() |
OAsyncReplicationOk |
getOnAsyncReplicationOk() |
Map<Object,Object> |
getParameters() |
OProgressListener |
getProgressListener() |
OCommandResultListener |
getResultListener() |
OCommandContext.TIMEOUT_STRATEGY |
getTimeoutStrategy()
This api is deprecated use sql keyword "TIMEOUT" instead
Returns the command timeout strategy between the defined ones.
|
long |
getTimeoutTime()
This api is deprecated use sql keyword "TIMEOUT" instead
Returns the command timeout.
|
boolean |
isCacheableResult() |
boolean |
isRecordResultSet() |
boolean |
isUseCache() |
Set<String> |
nodesToExclude() |
OCommandRequestAbstract |
onAsyncReplicationError(OAsyncReplicationError iCallback)
Defines a callback to call in case of error during the asynchronous replication.
|
OCommandRequestAbstract |
onAsyncReplicationOk(OAsyncReplicationOk iCallback)
Defines a callback to call in case of the asynchronous replication succeed.
|
void |
removeExcludedNode(String node) |
void |
reset() |
void |
setCacheableResult(boolean iValue) |
OCommandRequestAbstract |
setContext(OCommandContext iContext) |
<RET extends OCommandRequest> |
setFetchPlan(String fetchPlan)
This api is deprecated use sql keyword "FETCHPLAN" instead
Set the fetch plan.
|
OCommandRequestAbstract |
setLimit(int limit)
This api is deprecated use sql keyword "LIMIT" instead
Sets the maximum items the command can returns.
|
protected void |
setParameters(Object... iArgs) |
OCommandRequestAbstract |
setProgressListener(OProgressListener progressListener) |
void |
setRecordResultSet(boolean recordResultSet)
Communicate to a listener if the result set is an record based or anything else
|
void |
setResultListener(OCommandResultListener iListener) |
void |
setTimeout(long timeout,
OCommandContext.TIMEOUT_STRATEGY strategy)
This api is deprecated use sql keyword "TIMEOUT" instead
Sets the command timeout.
|
void |
setUseCache(boolean useCache) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, isIdempotentfromStream, toStreamprotected OCommandResultListener resultListener
protected OProgressListener progressListener
protected int limit
protected long timeoutMs
protected OCommandContext.TIMEOUT_STRATEGY timeoutStrategy
protected String fetchPlan
protected boolean useCache
protected boolean cacheableResult
protected OCommandContext context
protected OAsyncReplicationOk onAsyncReplicationOk
protected OAsyncReplicationError onAsyncReplicationError
public OCommandResultListener getResultListener()
getResultListener in interface OCommandRequestInternalpublic void setResultListener(OCommandResultListener iListener)
setResultListener in interface OCommandRequestInternalpublic Map<Object,Object> getParameters()
getParameters in interface OCommandRequestInternalprotected void setParameters(Object... iArgs)
public OCommandRequestAbstract onAsyncReplicationOk(OAsyncReplicationOk iCallback)
onAsyncReplicationOk in interface ODistributedCommandpublic OCommandRequestAbstract onAsyncReplicationError(OAsyncReplicationError iCallback)
onAsyncReplicationError in interface ODistributedCommandpublic OProgressListener getProgressListener()
getProgressListener in interface OCommandRequestInternalpublic OCommandRequestAbstract setProgressListener(OProgressListener progressListener)
setProgressListener in interface OCommandRequestInternalpublic void reset()
reset in interface OCommandRequestInternalpublic int getLimit()
OCommandRequestgetLimit in interface OCommandRequestpublic OCommandRequestAbstract setLimit(int limit)
OCommandRequestsetLimit in interface OCommandRequestlimit - -1 = no limit. 1 to N to limit the result set.public String getFetchPlan()
OCommandRequestgetFetchPlan in interface OCommandRequestpublic <RET extends OCommandRequest> RET setFetchPlan(String fetchPlan)
OCommandRequest<field>:<depth-level>*Where:
children:-1 parent:0 sibling:3 *:0
setFetchPlan in interface OCommandRequestpublic boolean isUseCache()
public void setUseCache(boolean useCache)
setUseCache in interface OCommandRequestpublic boolean isCacheableResult()
isCacheableResult in interface OCommandRequestInternalpublic void setCacheableResult(boolean iValue)
setCacheableResult in interface OCommandRequestInternalpublic OCommandContext getContext()
getContext in interface OCommandRequestpublic OCommandRequestAbstract setContext(OCommandContext iContext)
setContext in interface OCommandRequestpublic long getTimeoutTime()
OCommandRequestgetTimeoutTime in interface OCommandRequestpublic void setTimeout(long timeout,
OCommandContext.TIMEOUT_STRATEGY strategy)
OCommandRequestsetTimeout in interface OCommandRequestpublic OCommandContext.TIMEOUT_STRATEGY getTimeoutStrategy()
OCommandRequestgetTimeoutStrategy in interface OCommandRequestpublic Set<String> nodesToExclude()
nodesToExclude in interface ODistributedCommandpublic void addExcludedNode(String node)
public void removeExcludedNode(String node)
public OAsyncReplicationOk getOnAsyncReplicationOk()
public OAsyncReplicationError getOnAsyncReplicationError()
public void setRecordResultSet(boolean recordResultSet)
OCommandRequestInternalsetRecordResultSet in interface OCommandRequestInternalpublic boolean isRecordResultSet()
isRecordResultSet in interface OCommandRequestInternalCopyright © 2009–2025 OrientDB. All rights reserved.