Package org.hibernate.hql.ast.tree
Class InsertStatement
java.lang.Object
antlr.BaseAST
antlr.CommonAST
org.hibernate.hql.ast.tree.Node
org.hibernate.hql.ast.tree.SqlNode
org.hibernate.hql.ast.tree.HqlSqlWalkerNode
org.hibernate.hql.ast.tree.AbstractStatement
org.hibernate.hql.ast.tree.InsertStatement
- All Implemented Interfaces:
antlr.collections.AST,Serializable,DisplayableNode,InitializeableNode,Statement
Defines a top-level AST node representing an HQL "insert select" statement.
- See Also:
-
Field Summary
Fields inherited from class antlr.BaseAST
down, right -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetreive this insert statement's into-clause.Retreive this insert statement's select-clause.intReturn the main token type representing the type of this statement.booleanDoes this statement require the StatementExecutor?voidvalidate()Performs detailed semantic validation on this insert statement tree.Methods inherited from class org.hibernate.hql.ast.tree.AbstractStatement
getDisplayTextMethods inherited from class org.hibernate.hql.ast.tree.HqlSqlWalkerNode
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initializeMethods inherited from class org.hibernate.hql.ast.tree.SqlNode
getDataType, getOriginalText, setDataType, setTextMethods inherited from class org.hibernate.hql.ast.tree.Node
getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initializeMethods inherited from class antlr.CommonAST
getText, getType, initialize, setTypeMethods inherited from class antlr.BaseAST
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
-
Constructor Details
-
InsertStatement
public InsertStatement()
-
-
Method Details
-
getStatementType
public int getStatementType()Description copied from interface:StatementReturn the main token type representing the type of this statement.- Returns:
- The corresponding token type.
- See Also:
-
needsExecutor
public boolean needsExecutor()Description copied from interface:StatementDoes this statement require the StatementExecutor? Essentially, at the JDBC level, does this require an executeUpdate()?- Returns:
- True if this statement should be handed off to the StatementExecutor to be executed; false otherwise.
- See Also:
-
validate
Performs detailed semantic validation on this insert statement tree.- Throws:
QueryException- Indicates validation failure.
-
getIntoClause
Retreive this insert statement's into-clause.- Returns:
- The into-clause
-
getSelectClause
Retreive this insert statement's select-clause.- Returns:
- The select-clause.
-