Class OSimpleExecStatement
java.lang.Object
com.orientechnologies.orient.core.sql.parser.SimpleNode
com.orientechnologies.orient.core.sql.parser.OStatement
com.orientechnologies.orient.core.sql.parser.OSimpleExecStatement
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
OAlterRoleStatement,OAlterSecurityPolicyStatement,OBeginStatement,OCommitStatement,OConsoleStatement,OCreateFunctionStatement,OCreateLinkStatement,OCreateSecurityPolicyStatement,OCreateSequenceStatement,OCreateUserStatement,ODropUserStatement,OExpressionStatement,OGrantStatement,OHaSetStatement,OHaStatusStatement,OHaSyncClusterStatement,OHaSyncDatabaseStatement,OLetStatement,OOptimizeDatabaseStatement,OProfileStorageStatement,ORebuildIndexStatement,OReturnStatement,ORevokeStatement,ORollbackStatement,OSleepStatement,OTruncateRecordStatement
Superclass for SQL statements that are too simple to deserve an execution planner. All the
execution is delegated to the statement itself, with the execute(ctx) method.
- Author:
- Luigi Dell'Aquila (l.dellaquila-(at)-orientdb.com)
-
Field Summary
Fields inherited from class com.orientechnologies.orient.core.sql.parser.OStatement
CUSTOM_STRICT_SQL, originalStatementFields inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
children, firstToken, id, lastToken, PARAMETER_PLACEHOLDER, parent, parser, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateExecutionPlan(OCommandContext ctx, boolean enableProfiling) creates an execution plan for current statementexecute(ODatabaseSession db, Object[] args, OCommandContext parentContext, boolean usePlanCache) execute(ODatabaseSession db, Map params, OCommandContext parentContext, boolean usePlanCache) abstract OResultSetMethods inherited from class com.orientechnologies.orient.core.sql.parser.OStatement
copy, createExecutionPlan, createExecutionPlanNoCache, deserialize, deserializeFromOResult, execute, execute, execute, execute, execute, execute, execute, executinPlanCanBeCached, getOriginalStatement, isIdempotent, refersToParent, serialize, setOriginalStatement, toGenericStatement, toString, toString, validateMethods inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
dump, getDatabase, getValue, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toGenericStatement, toString
-
Constructor Details
-
OSimpleExecStatement
public OSimpleExecStatement(int id) -
OSimpleExecStatement
-
-
Method Details
-
executeSimple
-
execute
public OResultSet execute(ODatabaseSession db, Object[] args, OCommandContext parentContext, boolean usePlanCache) - Overrides:
executein classOStatement
-
execute
public OResultSet execute(ODatabaseSession db, Map params, OCommandContext parentContext, boolean usePlanCache) - Overrides:
executein classOStatement
-
createExecutionPlan
Description copied from class:OStatementcreates an execution plan for current statement- Overrides:
createExecutionPlanin classOStatement- Parameters:
ctx- the context that will be used to execute the statementenableProfiling- true to enable profiling, false to disable it- Returns:
- an execution plan
-