public class OCommandScript extends OCommandRequestTextAbstract
OCommandExecutorScript
text
cacheableResult, context, fetchPlan, limit, onAsyncReplicationError, onAsyncReplicationOk, parameters, progressListener, resultListener, timeoutMs, timeoutStrategy, useCache
Constructor and Description |
---|
OCommandScript() |
OCommandScript(String iText) |
OCommandScript(String iLanguage,
String iText) |
Modifier and Type | Method and Description |
---|---|
OCommandRequestText |
fromStream(byte[] iStream,
ORecordSerializer serializer) |
CompiledScript |
getCompiledScript() |
OCommandDistributedReplicateRequest.DISTRIBUTED_EXECUTION_MODE |
getExecutionMode() |
String |
getLanguage() |
boolean |
isIdempotent()
Returns true if the command doesn't change the database, otherwise false.
|
void |
setCompiledScript(CompiledScript script) |
OCommandScript |
setExecutionMode(OCommandDistributedReplicateRequest.DISTRIBUTED_EXECUTION_MODE executionMode) |
OCommandScript |
setLanguage(String language) |
byte[] |
toStream() |
String |
toString() |
execute, fromStream, getText, setText, toStream
addExcludedNode, convertToParameters, getContext, getFetchPlan, getLimit, getOnAsyncReplicationError, getOnAsyncReplicationOk, getParameters, getProgressListener, getResultListener, getTimeoutStrategy, getTimeoutTime, isCacheableResult, isRecordResultSet, isUseCache, nodesToExclude, onAsyncReplicationError, onAsyncReplicationOk, removeExcludedNode, reset, setCacheableResult, setContext, setFetchPlan, setLimit, setParameters, setProgressListener, setRecordResultSet, setResultListener, setTimeout, setUseCache
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParameters, getProgressListener, getResultListener, isCacheableResult, isRecordResultSet, reset, setCacheableResult, setProgressListener, setRecordResultSet, setResultListener
getContext, getFetchPlan, getLimit, getTimeoutStrategy, getTimeoutTime, setContext, setFetchPlan, setLimit, setTimeout, setUseCache
public OCommandScript()
public OCommandScript(String iText)
public boolean isIdempotent()
OCommandRequest
public String getLanguage()
public OCommandScript setLanguage(String language)
public OCommandRequestText fromStream(byte[] iStream, ORecordSerializer serializer) throws OSerializationException
fromStream
in interface OCommandRequestText
fromStream
in class OCommandRequestTextAbstract
OSerializationException
public byte[] toStream() throws OSerializationException
toStream
in interface OCommandRequestText
toStream
in class OCommandRequestTextAbstract
OSerializationException
public CompiledScript getCompiledScript()
public void setCompiledScript(CompiledScript script)
public String toString()
toString
in class OCommandRequestTextAbstract
public OCommandDistributedReplicateRequest.DISTRIBUTED_EXECUTION_MODE getExecutionMode()
public OCommandScript setExecutionMode(OCommandDistributedReplicateRequest.DISTRIBUTED_EXECUTION_MODE executionMode)
Copyright © 2009–2020 OrientDB. All rights reserved.