Package org.nuxeo.ecm.directory
Class BaseSession.FieldDetector
java.lang.Object
org.nuxeo.ecm.core.query.sql.model.DefaultQueryVisitor
org.nuxeo.ecm.directory.BaseSession.FieldDetector
- All Implemented Interfaces:
IVisitor
- Enclosing class:
- BaseSession
Visitor for a query to check if it contains a reference to a given field.
- Since:
- 10.3
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
hasField
(MultiExpression predicate, String field) Checks if the predicate contains the field.void
visitReference
(Reference node) Methods inherited from class org.nuxeo.ecm.core.query.sql.model.DefaultQueryVisitor
visitBooleanLiteral, visitDateLiteral, visitDoubleLiteral, visitExpression, visitFromClause, visitFunction, visitGroupByClause, visitHavingClause, visitIntegerLiteral, visitLiteral, visitLiteralList, visitMultiExpression, visitOperandList, visitOperator, visitOrderByClause, visitOrderByExpr, visitOrderByList, visitQuery, visitReferenceList, visitSelectClause, visitStringLiteral, visitWhereClause
-
Field Details
-
field
-
hasField
protected boolean hasField
-
-
Constructor Details
-
FieldDetector
-
-
Method Details
-
hasField
Checks if the predicate contains the field. -
visitReference
- Specified by:
visitReference
in interfaceIVisitor
- Overrides:
visitReference
in classDefaultQueryVisitor
-