站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.4 正式版 API 英文文档

Statement (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


org.hibernate.hql.ast.tree
Interface Statement

All Known Subinterfaces:
RestrictableStatement
All Known Implementing Classes:
AbstractRestrictableStatement, AbstractStatement

public interface Statement

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

Author:
Steve Ebersole

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

Method Detail

getWalker

public HqlSqlWalker getWalker()
Retreive the "phase 2" walker which generated this statement tree.

Returns:
The HqlSqlWalker instance which generated this statement tree.

getStatementType

public int getStatementType()
Return the main token type representing the type of this statement.

Returns:
The corresponding token type.

needsExecutor

public 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.