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

public Class UpdateStatement

extends AbstractRestrictableStatement
Class Inheritance
Imports
org.hibernate.hql.internal.antlr.HqlSqlTokenTypes, .SqlTokenTypes, org.hibernate.hql.internal.ast.util.ASTUtil, org.hibernate.internal.CoreLogging, .CoreMessageLogger, antlr.collections.AST

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

Field Summary

Modifier and TypeField and Description
private static final CoreMessageLogger

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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

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

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

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

Field Detail

LOGback to summary
private static final CoreMessageLogger LOG

Constructor Detail

UpdateStatementback to summary
public UpdateStatement()

Method Detail

getLogback to summary
protected CoreMessageLogger getLog()

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

Annotations
@Override
getSetClauseback to summary
public AST getSetClause()
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
getWhereClauseParentTokenTypeback to summary
protected int getWhereClauseParentTokenType()

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

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