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
Fields Modifier and Type Field Description List<Join>
ftJoins
joins added by fulltext matchStringBuilder
whereBuf
LinkedList<Serializable>
whereBufParams
-
Constructor Summary
Constructors Constructor Description GeneratingWalker()
-
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)
-
-
-
Field Detail
-
whereBuf
public StringBuilder whereBuf
-
whereBufParams
public LinkedList<Serializable> whereBufParams
-
-
Method Detail
-
walkNot
public Boolean walkNot(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree node)
- 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
public Boolean walkIsNull(org.antlr.runtime.tree.Tree opNode, org.antlr.runtime.tree.Tree colNode)
- 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
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 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
public Object walkList(org.antlr.runtime.tree.Tree node)
- Specified by:
walkList
in interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkList
in classorg.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
-
walkBoolean
public Object walkBoolean(org.antlr.runtime.tree.Tree node)
- Specified by:
walkBoolean
in interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkBoolean
in classorg.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
-
walkNumber
public Object walkNumber(org.antlr.runtime.tree.Tree node)
- Specified by:
walkNumber
in interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkNumber
in classorg.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
-
walkString
public Object walkString(org.antlr.runtime.tree.Tree node)
- Specified by:
walkString
in interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkString
in classorg.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
-
walkTimestamp
public Object walkTimestamp(org.antlr.runtime.tree.Tree node)
- Specified by:
walkTimestamp
in interfaceorg.apache.chemistry.opencmis.server.support.query.PredicateWalker
- Overrides:
walkTimestamp
in classorg.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker
-
walkCol
public Object walkCol(org.antlr.runtime.tree.Tree node)
- 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
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)
-
-