Package com.arcadedb.query.sql.parser
Class InsertStatement
- java.lang.Object
-
- com.arcadedb.query.sql.parser.SimpleNode
-
- com.arcadedb.query.sql.parser.Statement
-
- com.arcadedb.query.sql.parser.InsertStatement
-
-
Field Summary
-
Fields inherited from class com.arcadedb.query.sql.parser.Statement
CUSTOM_STRICT_SQL, limit, originalStatement, originalStatementAsString, timeout
-
Fields inherited from class com.arcadedb.query.sql.parser.SimpleNode
cachedStringForm, children, value
-
-
Constructor Summary
Constructors Constructor Description InsertStatement(int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InsertStatement
copy()
InsertExecutionPlan
createExecutionPlan(CommandContext context)
creates an execution plan for current statement, with profiling disabledboolean
equals(Object o)
ResultSet
execute(Database db, Object[] args, CommandContext parentcontext, boolean usePlanCache)
ResultSet
execute(Database db, Map params, CommandContext parentcontext, boolean usePlanCache)
InsertBody
getInsertBody()
Projection
getReturnStatement()
SelectStatement
getSelectStatement()
Bucket
getTargetBucket()
Identifier
getTargetBucketName()
Identifier
getTargetType()
int
hashCode()
boolean
isSelectInParentheses()
boolean
isSelectWithFrom()
boolean
isUnsafe()
void
toString(Map<String,Object> params, StringBuilder builder)
-
Methods inherited from class com.arcadedb.query.sql.parser.Statement
createExecutionPlanNoCache, execute, execute, execute, execute, execute, execute, executionPlanCanBeCached, getLimit, getOriginalStatement, getTimeout, isDDL, isIdempotent, refersToParent, setLimit, setOriginalStatement, setTimeout, toString, validate
-
Methods inherited from class com.arcadedb.query.sql.parser.SimpleNode
getCacheableElements, getIdentityElements, getValue, isCacheable, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toString
-
-
-
-
Method Detail
-
toString
public void toString(Map<String,Object> params, StringBuilder builder)
-
copy
public InsertStatement copy()
-
execute
public ResultSet execute(Database db, Object[] args, CommandContext parentcontext, boolean usePlanCache)
-
execute
public ResultSet execute(Database db, Map params, CommandContext parentcontext, boolean usePlanCache)
-
createExecutionPlan
public InsertExecutionPlan createExecutionPlan(CommandContext context)
Description copied from class:Statement
creates an execution plan for current statement, with profiling disabled- Overrides:
createExecutionPlan
in classStatement
- Parameters:
context
- the context that will be used to execute the statement- Returns:
- an execution plan
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classSimpleNode
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSimpleNode
-
getTargetType
public Identifier getTargetType()
-
getTargetBucketName
public Identifier getTargetBucketName()
-
getTargetBucket
public Bucket getTargetBucket()
-
getInsertBody
public InsertBody getInsertBody()
-
getReturnStatement
public Projection getReturnStatement()
-
getSelectStatement
public SelectStatement getSelectStatement()
-
isSelectInParentheses
public boolean isSelectInParentheses()
-
isSelectWithFrom
public boolean isSelectWithFrom()
-
isUnsafe
public boolean isUnsafe()
-
-