FileDocCategorySizeDatePackage
InsertStatement.javaAPI DocHibernate 3.2.51233Tue Jul 12 15:27:30 BST 2005org.hibernate.hql.ast.tree

InsertStatement

public class InsertStatement extends AbstractStatement
Defines a top-level AST node representing an HQL "insert select" statement.
author
Steve Ebersole

Fields Summary
Constructors Summary
Methods Summary
public IntoClausegetIntoClause()
Retreive this insert statement's into-clause.

return
The into-clause

		return ( IntoClause ) getFirstChild();
	
public SelectClausegetSelectClause()
Retreive this insert statement's select-clause.

return
The select-clause.

		return ( ( QueryNode ) getIntoClause().getNextSibling() ).getSelectClause();
	
public intgetStatementType()

see
Statement#getStatementType()

		return HqlSqlTokenTypes.INSERT;
	
public booleanneedsExecutor()

see
Statement#needsExecutor()

		return true;
	
public voidvalidate()
Performs detailed semantic validation on this insert statement tree.

throws
QueryException Indicates validation failure.

		getIntoClause().validateTypes( getSelectClause() );