Interface OCommandExecutor
- All Known Implementing Classes:
OCommandExecutorAbstract,OCommandExecutorFunction,OCommandExecutorScript,OCommandExecutorSQLAbstract,OCommandExecutorSQLAlterClass,OCommandExecutorSQLAlterCluster,OCommandExecutorSQLAlterDatabase,OCommandExecutorSQLAlterProperty,OCommandExecutorSQLAlterSequence,OCommandExecutorSQLCreateClass,OCommandExecutorSQLCreateCluster,OCommandExecutorSQLCreateEdge,OCommandExecutorSQLCreateFunction,OCommandExecutorSQLCreateIndex,OCommandExecutorSQLCreateLink,OCommandExecutorSQLCreateProperty,OCommandExecutorSQLCreateSequence,OCommandExecutorSQLCreateUser,OCommandExecutorSQLCreateVertex,OCommandExecutorSQLDelegate,OCommandExecutorSQLDelete,OCommandExecutorSQLDeleteEdge,OCommandExecutorSQLDeleteVertex,OCommandExecutorSQLDropClass,OCommandExecutorSQLDropCluster,OCommandExecutorSQLDropIndex,OCommandExecutorSQLDropProperty,OCommandExecutorSQLDropSequence,OCommandExecutorSQLDropUser,OCommandExecutorSQLEarlyResultsetAbstract,OCommandExecutorSQLExplain,OCommandExecutorSQLFindReferences,OCommandExecutorSQLGrant,OCommandExecutorSQLHARemoveServer,OCommandExecutorSQLHAStatus,OCommandExecutorSQLHASyncCluster,OCommandExecutorSQLHASyncDatabase,OCommandExecutorSQLInsert,OCommandExecutorSQLLiveSelect,OCommandExecutorSQLLiveUnsubscribe,OCommandExecutorSQLMoveVertex,OCommandExecutorSQLOptimizeDatabase,OCommandExecutorSQLPermissionAbstract,OCommandExecutorSQLRebuildIndex,OCommandExecutorSQLResultsetAbstract,OCommandExecutorSQLResultsetDelegate,OCommandExecutorSQLRetryAbstract,OCommandExecutorSQLRevoke,OCommandExecutorSQLSelect,OCommandExecutorSQLSetAware,OCommandExecutorSQLTransactional,OCommandExecutorSQLTraverse,OCommandExecutorSQLTruncateClass,OCommandExecutorSQLTruncateCluster,OCommandExecutorSQLTruncateRecord,OCommandExecutorSQLUpdate,OCommandExecutorToOStatementWrapper,OCommandGremlinExecutor,OMatchStatement
public interface OCommandExecutor
Generic GOF command pattern implementation.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Method Summary
Modifier and TypeMethodDescriptionExecute the requested command parsed previously.longReturns 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) <RET extends OCommandExecutor>
RETparse(OCommandRequest iRequest) 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.
-
Method Details
-
parse
Parse the request. Once parsed the command can be executed multiple times by using the execute() method.- Parameters:
iRequest- Command request implementation.- Returns:
- See Also:
-
#execute(Map<Object, Object>...)
-
execute
Execute the requested command parsed previously.- Parameters:
iArgs- Optional variable arguments to pass to the command.- Returns:
- See Also:
-
setProgressListener
Set the listener invoked while the command is executing.- Parameters:
progressListener- OProgressListener implementation- Returns:
-
setLimit
-
getFetchPlan
String getFetchPlan() -
getParameters
-
getContext
OCommandContext getContext() -
setContext
-
isIdempotent
boolean isIdempotent()Returns true if the command doesn't change the database, otherwise false. -
getInvolvedClusters
Returns the involved clusters. -
getSecurityOperationType
int getSecurityOperationType()Returns the security operation type use to check about security.- Returns:
- See Also:
-
involveSchema
boolean involveSchema() -
getSyntax
String getSyntax() -
isLocalExecution
boolean isLocalExecution()Returns true if the command must be executed on local node on distributed configuration. -
isCacheable
boolean isCacheable()Returns true if the command results can be cached. -
getDistributedTimeout
long getDistributedTimeout() -
mergeResults
- Throws:
Exception
-