Package com.arcadedb.query.sql.parser
Class DeleteStatement
- java.lang.Object
-
- com.arcadedb.query.sql.parser.SimpleNode
-
- com.arcadedb.query.sql.parser.Statement
-
- com.arcadedb.query.sql.parser.DeleteStatement
-
-
Field Summary
Fields Modifier and Type Field Description FromClause
fromClause
protected boolean
returnBefore
protected boolean
unsafe
protected WhereClause
whereClause
-
Fields inherited from class com.arcadedb.query.sql.parser.Statement
CUSTOM_STRICT_SQL, limit, originalStatement, timeout
-
Fields inherited from class com.arcadedb.query.sql.parser.SimpleNode
children, firstToken, id, lastToken, parent, parser, value
-
-
Constructor Summary
Constructors Constructor Description DeleteStatement(int id)
DeleteStatement(SqlParser p, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteStatement
copy()
DeleteExecutionPlan
createExecutionPlan(CommandContext ctx, boolean enableProfiling)
creates an execution plan for current statementboolean
equals(Object o)
ResultSet
execute(Database db, Object[] args, CommandContext parentCtx, boolean usePlanCache)
ResultSet
execute(Database db, Map params, CommandContext parentCtx, boolean usePlanCache)
FromClause
getFromClause()
WhereClause
getWhereClause()
int
hashCode()
boolean
isReturnBefore()
boolean
isUnsafe()
void
toString(Map<String,Object> params, StringBuilder builder)
-
Methods inherited from class com.arcadedb.query.sql.parser.Statement
createExecutionPlan, createExecutionPlanNoCache, deserialize, deserializeFromOResult, execute, execute, execute, execute, execute, execute, executionPlanCanBeCached, getLimit, getOriginalStatement, getTimeout, isDDL, isIdempotent, refersToParent, serialize, setLimit, setOriginalStatement, setTimeout, toString, validate
-
Methods inherited from class com.arcadedb.query.sql.parser.SimpleNode
childrenAccept, dump, getValue, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toString
-
-
-
-
Field Detail
-
fromClause
public FromClause fromClause
-
whereClause
protected WhereClause whereClause
-
returnBefore
protected boolean returnBefore
-
unsafe
protected boolean unsafe
-
-
Constructor Detail
-
DeleteStatement
public DeleteStatement(int id)
-
DeleteStatement
public DeleteStatement(SqlParser p, int id)
-
-
Method Detail
-
toString
public void toString(Map<String,Object> params, StringBuilder builder)
-
copy
public DeleteStatement copy()
-
execute
public ResultSet execute(Database db, Map params, CommandContext parentCtx, boolean usePlanCache)
-
execute
public ResultSet execute(Database db, Object[] args, CommandContext parentCtx, boolean usePlanCache)
-
createExecutionPlan
public DeleteExecutionPlan createExecutionPlan(CommandContext ctx, boolean enableProfiling)
Description copied from class:Statement
creates an execution plan for current statement- Overrides:
createExecutionPlan
in classStatement
- Parameters:
ctx
- the context that will be used to execute the statementenableProfiling
- true to enable profiling, false to disable it- Returns:
- an execution plan
-
getFromClause
public FromClause getFromClause()
-
getWhereClause
public WhereClause getWhereClause()
-
isReturnBefore
public boolean isReturnBefore()
-
isUnsafe
public boolean isUnsafe()
-
-