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

public Class UpdateStatement

extends AbstractRestrictableStatement
Class Inheritance
Imports
org.hibernate.hql.antlr.HqlSqlTokenTypes, .SqlTokenTypes, org.hibernate.hql.ast.util.ASTUtil, antlr.collections.AST, org.slf4j.Logger, .LoggerFactory

Defines a top-level AST node representing an HQL update statement.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Logger
public AST
public int
getStatementType()

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

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

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

Does this statement require the StatementExecutor?
Inherited from org.hibernate.hql.ast.tree.AbstractRestrictableStatement:
getFromClausegetWhereClausehasWhereClauselocateWhereClause

Field Detail

logback to summary
private static final Logger log

Constructor Detail

UpdateStatementback to summary
public UpdateStatement()

Method Detail

getLogback to summary
protected Logger getLog()

Implements abstract org.hibernate.hql.ast.tree.AbstractRestrictableStatement.getLog.

getSetClauseback to summary
public AST getSetClause()
getStatementTypeback to summary
public int getStatementType()

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

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

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

Returns:int

The corresponding token type.

See Also
org.hibernate.hql.ast.tree.Statement#getStatementType()
getWhereClauseParentTokenTypeback to summary
protected int getWhereClauseParentTokenType()

Implements abstract org.hibernate.hql.ast.tree.AbstractRestrictableStatement.getWhereClauseParentTokenType.

needsExecutorback to summary
public boolean needsExecutor()

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

Doc from org.hibernate.hql.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.

See Also
org.hibernate.hql.ast.tree.Statement#needsExecutor()