当前页面:
在线文档首页 >
Hibernate 3.2.4 正式版 API 英文文档
AbstractRestrictableStatement (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档
org.hibernate.hql.ast.tree
Class AbstractRestrictableStatement
java.lang.Object
antlr.BaseAST
antlr.CommonAST
org.hibernate.hql.ast.tree.Node
org.hibernate.hql.ast.tree.SqlNode
org.hibernate.hql.ast.tree.HqlSqlWalkerNode
org.hibernate.hql.ast.tree.AbstractStatement
org.hibernate.hql.ast.tree.AbstractRestrictableStatement
- All Implemented Interfaces:
- antlr.collections.AST, DisplayableNode, InitializeableNode, RestrictableStatement, Serializable, Statement
- Direct Known Subclasses:
- DeleteStatement, QueryNode, UpdateStatement
- public abstract class AbstractRestrictableStatement
- extends AbstractStatement
- implements RestrictableStatement
Convenience implementation of RestrictableStatement to centralize common functionality.
- Author:
- Steve Ebersole
- See Also:
- Serialized Form
Fields inherited from class antlr.BaseAST |
down, right |
Methods inherited from class antlr.CommonAST |
getText, getType, initialize, setType |
Methods inherited from class antlr.BaseAST |
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen |
AbstractRestrictableStatement
public AbstractRestrictableStatement()
getWhereClauseParentTokenType
protected abstract int getWhereClauseParentTokenType()
getLog
protected abstract org.apache.commons.logging.Log getLog()
getFromClause
public final FromClause getFromClause()
- Description copied from interface:
RestrictableStatement
- Retreives the from-clause in effect for this statement.
- Specified by:
getFromClause
in interface RestrictableStatement
- Returns:
- The from-clause for this statement; could be null if the from-clause
has not yet been parsed/generated.
- See Also:
RestrictableStatement.getFromClause()
hasWhereClause
public final boolean hasWhereClause()
- Description copied from interface:
RestrictableStatement
- Does this statement tree currently contain a where clause?
- Specified by:
hasWhereClause
in interface RestrictableStatement
- Returns:
- True if a where-clause is found in the statement tree and
that where clause actually defines restrictions; false otherwise.
- See Also:
RestrictableStatement.hasWhereClause()
getWhereClause
public final antlr.collections.AST getWhereClause()
- Description copied from interface:
RestrictableStatement
- Retreives the where-clause defining the restriction(s) in effect for
this statement.
Note that this will generate a where-clause if one was not found, so caution
needs to taken prior to calling this that restrictions will actually exist
in the resulting statement tree (otherwise "unexpected end of subtree" errors
might occur during rendering).
- Specified by:
getWhereClause
in interface RestrictableStatement
- Returns:
- The where clause.
- See Also:
RestrictableStatement.getWhereClause()
locateWhereClause
protected antlr.collections.AST locateWhereClause()