类 FromClause

    • 字段详细资料

      • ROOT_LEVEL

        public static final int ROOT_LEVEL
        另请参阅:
        常量字段值
    • 构造器详细资料

      • FromClause

        public FromClause()
    • 方法详细资料

      • addFromElement

        public FromElement addFromElement​(String path,
                                          antlr.collections.AST alias)
                                   throws antlr.SemanticException
        Adds a new from element to the from node.
        参数:
        path - The reference to the class.
        alias - The alias AST.
        返回:
        FromElement - The new FROM element.
        抛出:
        antlr.SemanticException
      • finishInit

        public void finishInit()
      • getFromElement

        public FromElement getFromElement​(String aliasOrClassName)
        Retrieve the from-element represented by the given alias.
        参数:
        aliasOrClassName - The alias by which to locate the from-element.
        返回:
        The from-element assigned the given alias, or null if none.
      • findFromElementBySqlAlias

        public FromElement findFromElementBySqlAlias​(String sqlAlias)
      • findFromElementByUserOrSqlAlias

        public FromElement findFromElementByUserOrSqlAlias​(String userAlias,
                                                           String sqlAlias)
      • isFromElementAlias

        public boolean isFromElementAlias​(String possibleAlias)
        Convenience method to check whether a given token represents a from-element alias.
        参数:
        possibleAlias - The potential from-element alias to check.
        返回:
        True if the possibleAlias is an alias to a from-element visible from this point in the query graph.
      • getFromElements

        public List getFromElements()
        Returns the list of from elements in order.
        返回:
        the list of from elements (instances of FromElement).
      • getProjectionList

        public List getProjectionList()
        Returns the list of from elements that will be part of the result set.
        返回:
        the list of from elements that will be part of the result set.
      • getCollectionFetches

        public List getCollectionFetches()
      • hasCollectionFecthes

        public boolean hasCollectionFecthes()
      • getExplicitFromElements

        public List getExplicitFromElements()
      • containsClassAlias

        public boolean containsClassAlias​(String alias)
        Returns true if the from node contains the class alias name.
        参数:
        alias - The HQL class alias name.
        返回:
        true if the from node contains the class alias name.
      • containsTableAlias

        public boolean containsTableAlias​(String alias)
        Returns true if the from node contains the table alias name.
        参数:
        alias - The SQL table alias name.
        返回:
        true if the from node contains the table alias name.
      • setParentFromClause

        public void setParentFromClause​(FromClause parentFromClause)
      • locateChildFromClauseWithJoinByPath

        public FromClause locateChildFromClauseWithJoinByPath​(String path)
      • promoteJoin

        public void promoteJoin​(FromElement elem)
      • isSubQuery

        public boolean isSubQuery()
      • getParentFromClause

        public FromClause getParentFromClause()
      • getLevel

        public int getLevel()
      • nextFromElementCounter

        public int nextFromElementCounter()
      • resolve

        public void resolve()
      • addImpliedFromElement

        public void addImpliedFromElement​(FromElement element)
      • toString

        public String toString()
        指定者:
        toString 在接口中 antlr.collections.AST
        覆盖:
        toString 在类中 antlr.BaseAST