org.hibernate.hql.ast.tree

Class InsertStatement

Implemented Interfaces:
DisplayableNode, InitializeableNode, Statement

public class InsertStatement
extends AbstractStatement

Defines a top-level AST node representing an HQL "insert select" statement.
Author:
Steve Ebersole

Method Summary

IntoClause
getIntoClause()
Retreive this insert statement's into-clause.
SelectClause
getSelectClause()
Retreive this insert statement's select-clause.
int
getStatementType()
boolean
needsExecutor()
void
validate()
Performs detailed semantic validation on this insert statement tree.

Methods inherited from class org.hibernate.hql.ast.tree.AbstractStatement

getDisplayText

Methods inherited from class org.hibernate.hql.ast.tree.HqlSqlWalkerNode

getASTFactory, getAliasGenerator, getSessionFactoryHelper, getWalker, initialize

Methods inherited from class org.hibernate.hql.ast.tree.SqlNode

getDataType, getOriginalText, setDataType, setText

Methods inherited from class org.hibernate.hql.ast.tree.Node

getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initialize

Method Details

getIntoClause

public IntoClause getIntoClause()
Retreive this insert statement's into-clause.
Returns:
The into-clause

getSelectClause

public SelectClause getSelectClause()
Retreive this insert statement's select-clause.
Returns:
The select-clause.

getStatementType

public int getStatementType()
Specified by:
getStatementType in interface Statement

needsExecutor

public boolean needsExecutor()
Specified by:
needsExecutor in interface Statement

validate

public void validate()
            throws QueryException
Performs detailed semantic validation on this insert statement tree.
Throws:
QueryException - Indicates validation failure.