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
public static class BaseSession.FieldDetector extends DefaultQueryVisitor
Visitor for a query to check if it contains a reference to a given field.- Since:
- 10.3
-
-
Constructor Summary
Constructors Constructor Description FieldDetector(String passwordField)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
field
protected final String field
-
hasField
protected boolean hasField
-
-
Constructor Detail
-
FieldDetector
public FieldDetector(String passwordField)
-
-
Method Detail
-
hasField
public static boolean hasField(MultiExpression predicate, String field)
Checks if the predicate contains the field.
-
visitReference
public void visitReference(Reference node)
- Specified by:
visitReference
in interfaceIVisitor
- Overrides:
visitReference
in classDefaultQueryVisitor
-
-