Class OCommandExecutorToOStatementWrapper
java.lang.Object
com.orientechnologies.orient.core.sql.OCommandExecutorToOStatementWrapper
- All Implemented Interfaces:
OCommandExecutor
Wrapper for OPrifileStorageStatement command (for compatibility with the old executor
architecture, this component should be removed)
- Author:
- Luigi Dell'Aquila (l.dellaquila-(at)-orientdb.com)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecute the requested command parsed previously.static ODatabaseDocumentInternallongReturns the involved clusters.intReturns the security operation type use to check about security.booleanbooleanReturns true if the command results can be cached.booleanReturns true if the command doesn't change the database, otherwise false.booleanReturns true if the command must be executed on local node on distributed configuration.mergeResults(Map<String, Object> results) parse(OCommandRequest iCommand) Parse the request.voidsetContext(OCommandContext context) <RET extends OCommandExecutor>
RETsetLimit(int iLimit) <RET extends OCommandExecutor>
RETsetProgressListener(OProgressListener progressListener) Set the listener invoked while the command is executing.
-
Field Details
-
request
-
statement
-
-
Constructor Details
-
OCommandExecutorToOStatementWrapper
public OCommandExecutorToOStatementWrapper()
-
-
Method Details
-
parse
Description copied from interface:OCommandExecutorParse the request. Once parsed the command can be executed multiple times by using the execute() method.- Specified by:
parsein interfaceOCommandExecutor- Parameters:
iCommand- Command request implementation.- Returns:
- See Also:
-
#execute(Map<Object, Object>...)
-
getDatabase
-
execute
Description copied from interface:OCommandExecutorExecute the requested command parsed previously.- Specified by:
executein interfaceOCommandExecutor- Parameters:
iArgs- Optional variable arguments to pass to the command.- Returns:
- See Also:
-
setProgressListener
Description copied from interface:OCommandExecutorSet the listener invoked while the command is executing.- Specified by:
setProgressListenerin interfaceOCommandExecutor- Parameters:
progressListener- OProgressListener implementation- Returns:
-
setLimit
- Specified by:
setLimitin interfaceOCommandExecutor
-
getFetchPlan
- Specified by:
getFetchPlanin interfaceOCommandExecutor
-
getParameters
- Specified by:
getParametersin interfaceOCommandExecutor
-
getContext
- Specified by:
getContextin interfaceOCommandExecutor
-
setContext
- Specified by:
setContextin interfaceOCommandExecutor
-
isIdempotent
public boolean isIdempotent()Description copied from interface:OCommandExecutorReturns true if the command doesn't change the database, otherwise false.- Specified by:
isIdempotentin interfaceOCommandExecutor
-
getInvolvedClusters
Description copied from interface:OCommandExecutorReturns the involved clusters.- Specified by:
getInvolvedClustersin interfaceOCommandExecutor
-
getSecurityOperationType
public int getSecurityOperationType()Description copied from interface:OCommandExecutorReturns the security operation type use to check about security.- Specified by:
getSecurityOperationTypein interfaceOCommandExecutor- Returns:
- See Also:
-
involveSchema
public boolean involveSchema()- Specified by:
involveSchemain interfaceOCommandExecutor
-
getSyntax
- Specified by:
getSyntaxin interfaceOCommandExecutor
-
isLocalExecution
public boolean isLocalExecution()Description copied from interface:OCommandExecutorReturns true if the command must be executed on local node on distributed configuration.- Specified by:
isLocalExecutionin interfaceOCommandExecutor
-
isCacheable
public boolean isCacheable()Description copied from interface:OCommandExecutorReturns true if the command results can be cached.- Specified by:
isCacheablein interfaceOCommandExecutor
-
getDistributedTimeout
public long getDistributedTimeout()- Specified by:
getDistributedTimeoutin interfaceOCommandExecutor
-
mergeResults
- Specified by:
mergeResultsin interfaceOCommandExecutor- Throws:
Exception
-