Class OServerStatement
java.lang.Object
com.orientechnologies.orient.core.sql.parser.SimpleNode
com.orientechnologies.orient.core.sql.parser.OServerStatement
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
OSimpleExecServerStatement
-
Field Summary
Fields 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 TypeMethodDescriptioncopy()creates an execution plan for current statement, with profiling disabledcreateExecutionPlan(OServerCommandContext ctx, boolean profile) creates an execution plan for current statementcreateExecutionPlanNoCache(OServerCommandContext ctx, boolean profile) voiddeserialize(OResult fromResult) static OStatementexecute(OrientDBInternal db, Object[] args) execute(OrientDBInternal db, Object[] args, boolean usePlanCache) execute(OrientDBInternal db, Object[] args, OServerCommandContext parentContext) execute(OrientDBInternal db, Object[] args, OServerCommandContext parentContext, boolean usePlanCache) execute(OrientDBInternal db, Map args) execute(OrientDBInternal db, Map args, boolean usePlanCache) execute(OrientDBInternal db, Map args, OServerCommandContext parentContext) execute(OrientDBInternal db, Map args, OServerCommandContext parentContext, boolean usePlanCache) execute(OSQLAsynchQuery<ODocument> request, OServerCommandContext context, OProgressListener progressListener) booleanbooleanbooleanvoidtoGenericStatement(StringBuilder builder) voidtoString(Map<Object, Object> params, StringBuilder builder) voidvalidate()Methods 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
-
OServerStatement
public OServerStatement(int id) -
OServerStatement
-
-
Method Details
-
toString
- Specified by:
toStringin classSimpleNode
-
toGenericStatement
- Specified by:
toGenericStatementin classSimpleNode
-
validate
- Throws:
OCommandSQLParsingException
-
toString
- Overrides:
toStringin classSimpleNode
-
execute
public Object execute(OSQLAsynchQuery<ODocument> request, OServerCommandContext context, OProgressListener progressListener) -
execute
-
execute
-
execute
-
execute
-
execute
-
execute
public OResultSet execute(OrientDBInternal db, Object[] args, OServerCommandContext parentContext, boolean usePlanCache) -
execute
-
execute
public OResultSet execute(OrientDBInternal db, Map args, OServerCommandContext parentContext, boolean usePlanCache) -
createExecutionPlan
creates an execution plan for current statement, with profiling disabled- Parameters:
ctx- the context that will be used to execute the statement- Returns:
- an execution plan
-
createExecutionPlan
creates an execution plan for current statement- Parameters:
ctx- the context that will be used to execute the statementprofile- true to enable profiling, false to disable it- Returns:
- an execution plan
-
createExecutionPlanNoCache
public OInternalExecutionPlan createExecutionPlanNoCache(OServerCommandContext ctx, boolean profile) -
copy
- Overrides:
copyin classSimpleNode
-
refersToParent
public boolean refersToParent() -
isIdempotent
public boolean isIdempotent() -
deserializeFromOResult
-
serialize
-
deserialize
-
executinPlanCanBeCached
public boolean executinPlanCanBeCached()
-