Class OCommandScript
java.lang.Object
com.orientechnologies.orient.core.command.OCommandRequestAbstract
com.orientechnologies.orient.core.command.OCommandRequestTextAbstract
com.orientechnologies.orient.core.command.script.OCommandScript
- All Implemented Interfaces:
OCommandRequest,OCommandRequestInternal,OCommandRequestText
Script command request implementation. It just stores the request and delegated the execution to
the configured OCommandExecutor.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
- See Also:
-
Field Summary
Fields inherited from class com.orientechnologies.orient.core.command.OCommandRequestTextAbstract
textFields inherited from class com.orientechnologies.orient.core.command.OCommandRequestAbstract
cacheableResult, context, fetchPlan, limit, parameters, progressListener, resultListener, timeoutMs, timeoutStrategy, useCache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromStream(byte[] iStream, ORecordSerializer serializer) booleanReturns true if the command doesn't change the database, otherwise false.voidsetCompiledScript(CompiledScript script) setLanguage(String language) byte[]toStream()toString()Methods inherited from class com.orientechnologies.orient.core.command.OCommandRequestTextAbstract
execute, fromStream, getText, setText, toStreamMethods inherited from class com.orientechnologies.orient.core.command.OCommandRequestAbstract
addExcludedNode, convertToParameters, getContext, getFetchPlan, getLimit, getParameters, getProgressListener, getResultListener, getTimeoutStrategy, getTimeoutTime, isCacheableResult, isRecordResultSet, isUseCache, removeExcludedNode, reset, setCacheableResult, setContext, setFetchPlan, setLimit, setParameters, setProgressListener, setRecordResultSet, setResultListener, setTimeout, setUseCacheMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.command.OCommandRequest
getContext, getFetchPlan, getLimit, getTimeoutStrategy, getTimeoutTime, setContext, setFetchPlan, setLimit, setTimeout, setUseCacheMethods inherited from interface com.orientechnologies.orient.core.command.OCommandRequestInternal
getParameters, getProgressListener, getResultListener, isCacheableResult, isRecordResultSet, reset, setCacheableResult, setProgressListener, setRecordResultSet, setResultListener
-
Constructor Details
-
OCommandScript
public OCommandScript() -
OCommandScript
-
OCommandScript
-
-
Method Details
-
isIdempotent
public boolean isIdempotent()Description copied from interface:OCommandRequestReturns true if the command doesn't change the database, otherwise false. -
getLanguage
-
setLanguage
-
fromStream
public OCommandRequestText fromStream(byte[] iStream, ORecordSerializer serializer) throws OSerializationException - Specified by:
fromStreamin interfaceOCommandRequestText- Overrides:
fromStreamin classOCommandRequestTextAbstract- Throws:
OSerializationException
-
toStream
- Specified by:
toStreamin interfaceOCommandRequestText- Overrides:
toStreamin classOCommandRequestTextAbstract- Throws:
OSerializationException
-
getCompiledScript
-
setCompiledScript
-
toString
- Overrides:
toStringin classOCommandRequestTextAbstract
-
getExecutionMode
-
setExecutionMode
public OCommandScript setExecutionMode(OCommandDistributedReplicateRequest.DISTRIBUTED_EXECUTION_MODE executionMode)
-