Class CMISQLQueryMaker.GeneratingWalker
java.lang.Object
org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
org.nuxeo.ecm.core.opencmis.impl.server.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.
-
Field Summary
Modifier and TypeFieldDescriptionjoins added by fulltext match -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionresolveColumn
(org.antlr.runtime.tree.Tree node) org.apache.chemistry.opencmis.server.support.query.ColumnReference
resolveColumnReference
(org.antlr.runtime.tree.Tree node) walkAnd
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree leftNode, org.antlr.runtime.tree.Tree rightNode) protected void
walkBoolean
(org.antlr.runtime.tree.Tree node) walkCol
(org.antlr.runtime.tree.Tree node) walkContains
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree qualNode, org.antlr.runtime.tree.Tree queryNode) walkEqAny
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree literalNode, org.antlr.runtime.tree.Tree colNode) 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) walkGreaterOrEquals
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree leftNode, org.antlr.runtime.tree.Tree rightNode) walkGreaterThan
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree leftNode, org.antlr.runtime.tree.Tree rightNode) walkIn
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree colNode, org.antlr.runtime.tree.Tree listNode) walkInAny
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree colNode, org.antlr.runtime.tree.Tree listNode) walkInFolder
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree qualNode, org.antlr.runtime.tree.Tree paramNode) walkInTree
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree qualNode, org.antlr.runtime.tree.Tree paramNode) walkIsNotNull
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree colNode) 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) walkLessOrEquals
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree leftNode, org.antlr.runtime.tree.Tree rightNode) walkLessThan
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree leftNode, org.antlr.runtime.tree.Tree rightNode) walkLike
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree colNode, org.antlr.runtime.tree.Tree stringNode) walkList
(org.antlr.runtime.tree.Tree node) walkNot
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree node) walkNotEquals
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree leftNode, org.antlr.runtime.tree.Tree rightNode) walkNotIn
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree colNode, org.antlr.runtime.tree.Tree listNode) walkNotInAny
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree colNode, org.antlr.runtime.tree.Tree listNode) walkNotLike
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree colNode, org.antlr.runtime.tree.Tree stringNode) walkNumber
(org.antlr.runtime.tree.Tree node) walkOr
(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree leftNode, org.antlr.runtime.tree.Tree rightNode) walkString
(org.antlr.runtime.tree.Tree node) 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
-
Field Details
-
whereBuf
-
whereBufParams
-
ftJoins
joins added by fulltext match
-
-
Constructor Details
-
GeneratingWalker
public GeneratingWalker()
-
-
Method Details
-
walkNot
- Specified by:
walkNot
in interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkNot
in classorg.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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkAnd
in classorg.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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkOr
in classorg.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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkEquals
in classorg.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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkNotEquals
in classorg.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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkGreaterThan
in classorg.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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkGreaterOrEquals
in classorg.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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkLessThan
in classorg.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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkLessOrEquals
in classorg.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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkIn
in classorg.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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkNotIn
in classorg.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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkInAny
in classorg.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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkNotInAny
in classorg.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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkEqAny
in classorg.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
- Specified by:
walkIsNull
in interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkIsNull
in classorg.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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkIsNotNull
in classorg.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
-
walkIsNullOrIsNotNull
-
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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkLike
in classorg.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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkNotLike
in classorg.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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkContains
in classorg.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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkInFolder
in classorg.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 interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkInTree
in classorg.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
-
walkList
- Specified by:
walkList
in interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkList
in classorg.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
-
walkBoolean
- Specified by:
walkBoolean
in interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkBoolean
in classorg.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
-
walkNumber
- Specified by:
walkNumber
in interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkNumber
in classorg.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
-
walkString
- Specified by:
walkString
in interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkString
in classorg.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
-
walkTimestamp
- Specified by:
walkTimestamp
in interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkTimestamp
in classorg.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
-
walkCol
- Specified by:
walkCol
in interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkCol
in classorg.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
-
walkFacets
protected void walkFacets(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree colNodel, org.antlr.runtime.tree.Tree literalNode)
-