Package 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,Serializable,DisplayableNode,InitializeableNode,RestrictableStatement,Statement
- Direct Known Subclasses:
DeleteStatement,QueryNode,UpdateStatement
public abstract class AbstractRestrictableStatement
extends AbstractStatement
implements RestrictableStatement
Convenience implementation of
RestrictableStatement
to centralize common functionality.- See Also:
-
Field Summary
Fields inherited from class antlr.BaseAST
down, right -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal FromClauseRetreives the from-clause in effect for this statement.protected abstract LoggergetLog()final antlr.collections.ASTRetreives the where-clause defining the restriction(s) in effect for this statement.protected abstract intfinal booleanDoes this statement tree currently contain a where clause?protected antlr.collections.ASTMethods inherited from class org.hibernate.hql.ast.tree.AbstractStatement
getDisplayTextMethods inherited from class org.hibernate.hql.ast.tree.HqlSqlWalkerNode
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initializeMethods inherited from class org.hibernate.hql.ast.tree.SqlNode
getDataType, getOriginalText, setDataType, setTextMethods inherited from class org.hibernate.hql.ast.tree.Node
getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initializeMethods inherited from class antlr.CommonAST
getText, getType, initialize, setTypeMethods 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, xmlSerializeRootOpenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.hql.ast.tree.Statement
getStatementType, getWalker, needsExecutor
-
Constructor Details
-
AbstractRestrictableStatement
public AbstractRestrictableStatement()
-
-
Method Details
-
getWhereClauseParentTokenType
protected abstract int getWhereClauseParentTokenType() -
getLog
-
getFromClause
Description copied from interface:RestrictableStatementRetreives the from-clause in effect for this statement.- Specified by:
getFromClausein interfaceRestrictableStatement- Returns:
- The from-clause for this statement; could be null if the from-clause has not yet been parsed/generated.
- See Also:
-
hasWhereClause
public final boolean hasWhereClause()Description copied from interface:RestrictableStatementDoes this statement tree currently contain a where clause?- Specified by:
hasWhereClausein interfaceRestrictableStatement- Returns:
- True if a where-clause is found in the statement tree and that where clause actually defines restrictions; false otherwise.
- See Also:
-
getWhereClause
Description copied from interface:RestrictableStatementRetreives 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:
getWhereClausein interfaceRestrictableStatement- Returns:
- The where clause.
- See Also:
-
locateWhereClause
-