public interface

Statement

org.hibernate.hql.ast.tree.Statement
Known Indirect Subclasses

Class Overview

Common interface modeling the different HQL statements (i.e., INSERT, UPDATE, DELETE, SELECT).

Summary

Public Methods
abstract int getStatementType()
Return the main token type representing the type of this statement.
abstract HqlSqlWalker getWalker()
Retreive the "phase 2" walker which generated this statement tree.
abstract boolean needsExecutor()
Does this statement require the StatementExecutor?

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

Public Methods

public abstract int getStatementType ()

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

Returns
  • The corresponding token type.

public abstract HqlSqlWalker getWalker ()

Retreive the "phase 2" walker which generated this statement tree.

Returns
  • The HqlSqlWalker instance which generated this statement tree.

public abstract boolean needsExecutor ()

Does this statement require the StatementExecutor?

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

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