Top Description Constructors Methods
org.hibernate.hql.internal.ast.tree

public Class InsertStatement

extends AbstractStatement
Class Inheritance
Imports
org.hibernate.QueryException, org.hibernate.hql.internal.antlr.HqlSqlTokenTypes

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public IntoClause

Returns:

The into-clause
getIntoClause
()

Retrieve this insert statement's into-clause.

public SelectClause

Returns:

The select-clause.
getSelectClause
()

Retrieve this insert statement's select-clause.

public int
getStatementType()

Implements org.hibernate.hql.internal.ast.tree.Statement.getStatementType.

Return the main token type representing the type of this statement.
public boolean
needsExecutor()

Implements org.hibernate.hql.internal.ast.tree.Statement.needsExecutor.

Does this statement require the StatementExecutor?
public void
validate()

Performs detailed semantic validation on this insert statement tree.

Inherited from org.hibernate.hql.internal.ast.tree.AbstractStatement:
getDisplayText

Constructor Detail

InsertStatementback to summary
public InsertStatement()

Method Detail

getIntoClauseback to summary
public IntoClause getIntoClause()

Retrieve this insert statement's into-clause.

Returns:IntoClause

The into-clause

getSelectClauseback to summary
public SelectClause getSelectClause()

Retrieve this insert statement's select-clause.

Returns:SelectClause

The select-clause.

getStatementTypeback to summary
public int getStatementType()

Implements org.hibernate.hql.internal.ast.tree.Statement.getStatementType.

Doc from org.hibernate.hql.internal.ast.tree.Statement.getStatementType.

Return the main token type representing the type of this statement.

Returns:int

The corresponding token type.

Annotations
@Override
needsExecutorback to summary
public boolean needsExecutor()

Implements org.hibernate.hql.internal.ast.tree.Statement.needsExecutor.

Doc from org.hibernate.hql.internal.ast.tree.Statement.needsExecutor.

Does this statement require the StatementExecutor?

Essentially, at the JDBC level, does this require an executeUpdate()?
Returns:boolean

True if this statement should be handed off to the StatementExecutor to be executed; false otherwise.

Annotations
@Override
validateback to summary
public void validate() throws QueryException

Performs detailed semantic validation on this insert statement tree.

Exceptions
QueryException:
Indicates validation failure.