org.hibernate.hql.ast
Class QueryNode

java.lang.Object
  extended byantlr.BaseAST
      extended byantlr.CommonAST
          extended byorg.hibernate.hql.ast.SqlNode
              extended byorg.hibernate.hql.ast.QueryNode
All Implemented Interfaces:
antlr.collections.AST, DisplayableNode, org.hibernate.hql.ast.InitializeableNode, Serializable

public class QueryNode
extends org.hibernate.hql.ast.SqlNode
implements org.hibernate.hql.ast.InitializeableNode, DisplayableNode

Defines a top-level AST node representing the notion of a query.

Author:
Joshua Davis
See Also:
Serialized Form

Field Summary
 
Fields inherited from class antlr.BaseAST
down, right
 
Constructor Summary
QueryNode()
           
 
Method Summary
 Type getDataType()
           
 String getDisplayText()
          Returns additional display text for the AST node.
 org.hibernate.hql.ast.FromClause getFromClause()
           
 OrderByClause getOrderByClause()
           
 antlr.collections.AST getWhereClause()
           
 void initialize(Object param)
          Initializes the node with the parameter.
 boolean isDML()
           
 void setText(String s)
           
 
Methods inherited from class antlr.CommonAST
getText, getType, initialize, initialize, initialize, setType
 
Methods inherited from class antlr.BaseAST
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getColumn, getFirstChild, getLine, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryNode

public QueryNode()
Method Detail

initialize

public void initialize(Object param)
Description copied from interface: org.hibernate.hql.ast.InitializeableNode
Initializes the node with the parameter.

Specified by:
initialize in interface org.hibernate.hql.ast.InitializeableNode
Parameters:
param - the initialization parameter.

isDML

public boolean isDML()

getWhereClause

public final antlr.collections.AST getWhereClause()

getFromClause

public final org.hibernate.hql.ast.FromClause getFromClause()

getOrderByClause

public final OrderByClause getOrderByClause()

getDisplayText

public String getDisplayText()
Returns additional display text for the AST node.

Specified by:
getDisplayText in interface DisplayableNode
Returns:
String - The additional display text.

setText

public void setText(String s)

getDataType

public Type getDataType()