Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » hql » ast » [javadoc | source]
org.hibernate.hql.ast
public class: HqlSqlWalker [javadoc | source]
java.lang.Object
   org.hibernate.hql.antlr.HqlSqlBaseWalker
      org.hibernate.hql.ast.HqlSqlWalker

All Implemented Interfaces:
    ErrorReporter, NamedParameterSource

Implements methods used by the HQL->SQL tree transform grammar (a.k.a. the second phase).
Constructor:
 public HqlSqlWalker(QueryTranslatorImpl qti,
    SessionFactoryImplementor sfi,
    HqlParser parser,
    Map tokenReplacements,
    String collectionRole) 
    Create a new tree transformer.
    Parameters:
    qti - Back pointer to the query translator implementation that is using this tree transform.
    sfi - The session factory implementor where the Hibernate mappings can be found.
    parser - A reference to the phase-1 parser
    tokenReplacements - Registers the token replacement map with the walker. This map will be used to substitute function names and constants.
    collectionRole - The collection role name of the collection used as the basis for the filter, NULL if this is not a collection filter compilation.
Method from org.hibernate.hql.ast.HqlSqlWalker Summary:
addQuerySpaces,   beforeSelectClause,   createFromElement,   createFromFilterElement,   createFromJoinElement,   createIntoClause,   evaluateAssignment,   generateNamedParameter,   generatePositionalParameter,   getASTPrinter,   getAliasGenerator,   getAssignmentSpecifications,   getCurrentFromClause,   getEnabledFilters,   getFinalFromClause,   getImpliedJoinType,   getLiteralProcessor,   getNamedParameterLocations,   getNumberOfParametersInSetClause,   getParameters,   getParseErrorHandler,   getQuerySpaces,   getReturnAliases,   getReturnTypes,   getSelectClause,   getSessionFactoryHelper,   getTokenReplacements,   isFilter,   isNonQualifiedPropertyRef,   isShallowQuery,   lookupAlias,   lookupNonQualifiedProperty,   lookupProperty,   panic,   postProcessDML,   postProcessDelete,   postProcessInsert,   postProcessUpdate,   prepareArithmeticOperator,   prepareFromClauseInputTree,   prepareLogicOperator,   prepareVersioned,   processBoolean,   processConstant,   processConstructor,   processFunction,   processIndex,   processNumericLiteral,   processQuery,   pushFromClause,   reportError,   reportError,   reportWarning,   resolve,   resolveSelectExpression,   setAlias,   setImpliedJoinType,   supportsIdGenWithBulkInsertion
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.hql.ast.HqlSqlWalker Detail:
 public  void addQuerySpaces(Serializable[] spaces) 
 protected  void beforeSelectClause() throws SemanticException 
 protected AST createFromElement(String path,
    AST alias,
    AST propertyFetch) throws SemanticException 
 protected AST createFromFilterElement(AST filterEntity,
    AST alias) throws SemanticException 
 protected  void createFromJoinElement(AST path,
    AST alias,
    int joinType,
    AST fetchNode,
    AST propertyFetch,
    AST with) throws SemanticException 
 protected AST createIntoClause(String path,
    AST propertySpec) throws SemanticException 
 protected  void evaluateAssignment(AST eq) throws SemanticException 
 protected AST generateNamedParameter(AST delimiterNode,
    AST nameNode) throws SemanticException 
 protected AST generatePositionalParameter(AST inputNode) throws SemanticException 
 public ASTPrinter getASTPrinter() 
 public AliasGenerator getAliasGenerator() 
 public ArrayList getAssignmentSpecifications() 
 public FromClause getCurrentFromClause() 
 public Map getEnabledFilters() 
 public FromClause getFinalFromClause() 
 public int getImpliedJoinType() 
 public LiteralProcessor getLiteralProcessor() 
 public int[] getNamedParameterLocations(String name) throws QueryException 
    Returns the locations of all occurrences of the named parameter.
 public int getNumberOfParametersInSetClause() 
 public ArrayList getParameters() 
 public ParseErrorHandler getParseErrorHandler() 
 public Set getQuerySpaces() 
    Returns the set of unique query spaces (a.k.a. table names) that occurred in the query.
 public String[] getReturnAliases() 
 public Type[] getReturnTypes() 
 public SelectClause getSelectClause() 
 public SessionFactoryHelper getSessionFactoryHelper() 
 public Map getTokenReplacements() 
 public boolean isFilter() 
 protected boolean isNonQualifiedPropertyRef(AST ident) 
 public boolean isShallowQuery() 
 protected  void lookupAlias(AST aliasRef) throws SemanticException 
 protected AST lookupNonQualifiedProperty(AST property) throws SemanticException 
 protected AST lookupProperty(AST dot,
    boolean root,
    boolean inSelect) throws SemanticException 
 public static  void panic() 
 protected  void postProcessDML(RestrictableStatement statement) throws SemanticException 
 protected  void postProcessDelete(AST delete) throws SemanticException 
 protected  void postProcessInsert(AST insert) throws SemanticException, QueryException 
 protected  void postProcessUpdate(AST update) throws SemanticException 
 protected  void prepareArithmeticOperator(AST operator) throws SemanticException 
 protected  void prepareFromClauseInputTree(AST fromClauseInput) 
 protected  void prepareLogicOperator(AST operator) throws SemanticException 
 protected  void prepareVersioned(AST updateNode,
    AST versioned) throws SemanticException 
 protected  void processBoolean(AST constant) throws SemanticException 
 protected  void processConstant(AST constant) throws SemanticException 
 protected  void processConstructor(AST constructor) throws SemanticException 
 protected  void processFunction(AST functionCall,
    boolean inSelect) throws SemanticException 
 protected  void processIndex(AST indexOp) throws SemanticException 
 protected  void processNumericLiteral(AST literal) 
 protected  void processQuery(AST select,
    AST query) throws SemanticException 
 protected  void pushFromClause(AST fromNode,
    AST inputFromNode) 
    Sets the current 'FROM' context.
 public  void reportError(RecognitionException e) 
 public  void reportError(String s) 
 public  void reportWarning(String s) 
 protected  void resolve(AST node) throws SemanticException 
 protected  void resolveSelectExpression(AST node) throws SemanticException 
 protected  void setAlias(AST selectExpr,
    AST ident) 
 protected  void setImpliedJoinType(int joinType) 
 public static boolean supportsIdGenWithBulkInsertion(IdentifierGenerator generator)