Class CMISQLQueryMaker.GeneratingWalker

  • All Implemented Interfaces:
    org.apache.chemistry.opencmis.server.support.query.PredicateWalker, org.apache.chemistry.opencmis.server.support.query.PredicateWalkerBase
    Enclosing class:
    CMISQLQueryMaker

    public class CMISQLQueryMaker.GeneratingWalker
    extends org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
    Walker of the WHERE clause that generates final SQL.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Column resolveColumn​(org.antlr.runtime.tree.Tree node)  
      org.apache.chemistry.opencmis.server.support.query.ColumnReference resolveColumnReference​(org.antlr.runtime.tree.Tree node)  
      Boolean walkAnd​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree leftNode, org.antlr.runtime.tree.Tree rightNode)  
      protected void walkAny​(org.antlr.runtime.tree.Tree colNode, String op, org.antlr.runtime.tree.Tree exprNode)  
      Object walkBoolean​(org.antlr.runtime.tree.Tree node)  
      Object walkCol​(org.antlr.runtime.tree.Tree node)  
      Boolean walkContains​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree qualNode, org.antlr.runtime.tree.Tree queryNode)  
      Boolean walkEqAny​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree literalNode, org.antlr.runtime.tree.Tree colNode)  
      Boolean walkEquals​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree leftNode, org.antlr.runtime.tree.Tree rightNode)  
      protected void walkFacets​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree colNodel, org.antlr.runtime.tree.Tree literalNode)  
      Boolean walkGreaterOrEquals​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree leftNode, org.antlr.runtime.tree.Tree rightNode)  
      Boolean walkGreaterThan​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree leftNode, org.antlr.runtime.tree.Tree rightNode)  
      Boolean walkIn​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree colNode, org.antlr.runtime.tree.Tree listNode)  
      Boolean walkInAny​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree colNode, org.antlr.runtime.tree.Tree listNode)  
      Boolean walkInFolder​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree qualNode, org.antlr.runtime.tree.Tree paramNode)  
      Boolean walkInTree​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree qualNode, org.antlr.runtime.tree.Tree paramNode)  
      Boolean walkIsNotNull​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree colNode)  
      Boolean walkIsNull​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree colNode)  
      protected void walkIsNullOrFalse​(org.antlr.runtime.tree.Tree leftNode)  
      protected Boolean walkIsNullOrIsNotNull​(org.antlr.runtime.tree.Tree colNode, boolean isNull)  
      Boolean walkLessOrEquals​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree leftNode, org.antlr.runtime.tree.Tree rightNode)  
      Boolean walkLessThan​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree leftNode, org.antlr.runtime.tree.Tree rightNode)  
      Boolean walkLike​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree colNode, org.antlr.runtime.tree.Tree stringNode)  
      Object walkList​(org.antlr.runtime.tree.Tree node)  
      Boolean walkNot​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree node)  
      Boolean walkNotEquals​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree leftNode, org.antlr.runtime.tree.Tree rightNode)  
      Boolean walkNotIn​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree colNode, org.antlr.runtime.tree.Tree listNode)  
      Boolean walkNotInAny​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree colNode, org.antlr.runtime.tree.Tree listNode)  
      Boolean walkNotLike​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree colNode, org.antlr.runtime.tree.Tree stringNode)  
      Object walkNumber​(org.antlr.runtime.tree.Tree node)  
      Boolean walkOr​(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree leftNode, org.antlr.runtime.tree.Tree rightNode)  
      Object walkString​(org.antlr.runtime.tree.Tree node)  
      Object walkTimestamp​(org.antlr.runtime.tree.Tree node)  
      • Methods inherited from class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker

        walkExpr, walkId, walkOtherExpr, walkOtherPredicate, walkPredicate, walkScore, walkSearchExpr, walkTextAnd, walkTextMinus, walkTextOr, walkTextPhrase, walkTextWord
    • Constructor Detail

      • GeneratingWalker

        public GeneratingWalker()
    • Method Detail

      • walkNot

        public Boolean walkNot​(org.antlr.runtime.tree.Tree opNode,
                               org.antlr.runtime.tree.Tree node)
        Specified by:
        walkNot in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkNot in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkAnd

        public Boolean walkAnd​(org.antlr.runtime.tree.Tree opNode,
                               org.antlr.runtime.tree.Tree leftNode,
                               org.antlr.runtime.tree.Tree rightNode)
        Specified by:
        walkAnd in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkAnd in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkOr

        public Boolean walkOr​(org.antlr.runtime.tree.Tree opNode,
                              org.antlr.runtime.tree.Tree leftNode,
                              org.antlr.runtime.tree.Tree rightNode)
        Specified by:
        walkOr in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkOr in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkEquals

        public Boolean walkEquals​(org.antlr.runtime.tree.Tree opNode,
                                  org.antlr.runtime.tree.Tree leftNode,
                                  org.antlr.runtime.tree.Tree rightNode)
        Specified by:
        walkEquals in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkEquals in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkNotEquals

        public Boolean walkNotEquals​(org.antlr.runtime.tree.Tree opNode,
                                     org.antlr.runtime.tree.Tree leftNode,
                                     org.antlr.runtime.tree.Tree rightNode)
        Specified by:
        walkNotEquals in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkNotEquals in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkIsNullOrFalse

        protected void walkIsNullOrFalse​(org.antlr.runtime.tree.Tree leftNode)
      • walkGreaterThan

        public Boolean walkGreaterThan​(org.antlr.runtime.tree.Tree opNode,
                                       org.antlr.runtime.tree.Tree leftNode,
                                       org.antlr.runtime.tree.Tree rightNode)
        Specified by:
        walkGreaterThan in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkGreaterThan in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkGreaterOrEquals

        public Boolean walkGreaterOrEquals​(org.antlr.runtime.tree.Tree opNode,
                                           org.antlr.runtime.tree.Tree leftNode,
                                           org.antlr.runtime.tree.Tree rightNode)
        Specified by:
        walkGreaterOrEquals in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkGreaterOrEquals in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkLessThan

        public Boolean walkLessThan​(org.antlr.runtime.tree.Tree opNode,
                                    org.antlr.runtime.tree.Tree leftNode,
                                    org.antlr.runtime.tree.Tree rightNode)
        Specified by:
        walkLessThan in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkLessThan in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkLessOrEquals

        public Boolean walkLessOrEquals​(org.antlr.runtime.tree.Tree opNode,
                                        org.antlr.runtime.tree.Tree leftNode,
                                        org.antlr.runtime.tree.Tree rightNode)
        Specified by:
        walkLessOrEquals in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkLessOrEquals in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkIn

        public Boolean walkIn​(org.antlr.runtime.tree.Tree opNode,
                              org.antlr.runtime.tree.Tree colNode,
                              org.antlr.runtime.tree.Tree listNode)
        Specified by:
        walkIn in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkIn in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkNotIn

        public Boolean walkNotIn​(org.antlr.runtime.tree.Tree opNode,
                                 org.antlr.runtime.tree.Tree colNode,
                                 org.antlr.runtime.tree.Tree listNode)
        Specified by:
        walkNotIn in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkNotIn in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkInAny

        public Boolean walkInAny​(org.antlr.runtime.tree.Tree opNode,
                                 org.antlr.runtime.tree.Tree colNode,
                                 org.antlr.runtime.tree.Tree listNode)
        Specified by:
        walkInAny in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkInAny in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkNotInAny

        public Boolean walkNotInAny​(org.antlr.runtime.tree.Tree opNode,
                                    org.antlr.runtime.tree.Tree colNode,
                                    org.antlr.runtime.tree.Tree listNode)
        Specified by:
        walkNotInAny in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkNotInAny in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkEqAny

        public Boolean walkEqAny​(org.antlr.runtime.tree.Tree opNode,
                                 org.antlr.runtime.tree.Tree literalNode,
                                 org.antlr.runtime.tree.Tree colNode)
        Specified by:
        walkEqAny in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkEqAny in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkAny

        protected void walkAny​(org.antlr.runtime.tree.Tree colNode,
                               String op,
                               org.antlr.runtime.tree.Tree exprNode)
      • walkIsNull

        public Boolean walkIsNull​(org.antlr.runtime.tree.Tree opNode,
                                  org.antlr.runtime.tree.Tree colNode)
        Specified by:
        walkIsNull in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkIsNull in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkIsNotNull

        public Boolean walkIsNotNull​(org.antlr.runtime.tree.Tree opNode,
                                     org.antlr.runtime.tree.Tree colNode)
        Specified by:
        walkIsNotNull in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkIsNotNull in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkIsNullOrIsNotNull

        protected Boolean walkIsNullOrIsNotNull​(org.antlr.runtime.tree.Tree colNode,
                                                boolean isNull)
      • walkLike

        public Boolean walkLike​(org.antlr.runtime.tree.Tree opNode,
                                org.antlr.runtime.tree.Tree colNode,
                                org.antlr.runtime.tree.Tree stringNode)
        Specified by:
        walkLike in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkLike in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkNotLike

        public Boolean walkNotLike​(org.antlr.runtime.tree.Tree opNode,
                                   org.antlr.runtime.tree.Tree colNode,
                                   org.antlr.runtime.tree.Tree stringNode)
        Specified by:
        walkNotLike in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkNotLike in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkContains

        public Boolean walkContains​(org.antlr.runtime.tree.Tree opNode,
                                    org.antlr.runtime.tree.Tree qualNode,
                                    org.antlr.runtime.tree.Tree queryNode)
        Specified by:
        walkContains in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkContains in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkInFolder

        public Boolean walkInFolder​(org.antlr.runtime.tree.Tree opNode,
                                    org.antlr.runtime.tree.Tree qualNode,
                                    org.antlr.runtime.tree.Tree paramNode)
        Specified by:
        walkInFolder in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkInFolder in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkInTree

        public Boolean walkInTree​(org.antlr.runtime.tree.Tree opNode,
                                  org.antlr.runtime.tree.Tree qualNode,
                                  org.antlr.runtime.tree.Tree paramNode)
        Specified by:
        walkInTree in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkInTree in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkList

        public Object walkList​(org.antlr.runtime.tree.Tree node)
        Specified by:
        walkList in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkList in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkBoolean

        public Object walkBoolean​(org.antlr.runtime.tree.Tree node)
        Specified by:
        walkBoolean in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkBoolean in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkNumber

        public Object walkNumber​(org.antlr.runtime.tree.Tree node)
        Specified by:
        walkNumber in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkNumber in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkString

        public Object walkString​(org.antlr.runtime.tree.Tree node)
        Specified by:
        walkString in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkString in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkTimestamp

        public Object walkTimestamp​(org.antlr.runtime.tree.Tree node)
        Specified by:
        walkTimestamp in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkTimestamp in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • walkCol

        public Object walkCol​(org.antlr.runtime.tree.Tree node)
        Specified by:
        walkCol in interface org.apache.chemistry.opencmis.server.support.query.PredicateWalker
        Overrides:
        walkCol in class org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
      • resolveColumnReference

        public org.apache.chemistry.opencmis.server.support.query.ColumnReference resolveColumnReference​(org.antlr.runtime.tree.Tree node)
      • resolveColumn

        public Column resolveColumn​(org.antlr.runtime.tree.Tree node)
      • walkFacets

        protected void walkFacets​(org.antlr.runtime.tree.Tree opNode,
                                  org.antlr.runtime.tree.Tree colNodel,
                                  org.antlr.runtime.tree.Tree literalNode)