Package ch.tocco.nice2.security.spi.util
Class SubqueryTranslator
java.lang.Object
ch.tocco.nice2.conditionals.api.tree.processing.BaseNodeVisitor
ch.tocco.nice2.security.spi.util.SubqueryTranslator
- All Implemented Interfaces:
NodeVisitor
Translates the subquery keywords from ACL to another language.
The function call paths in ACL and PersistQL use different keywords because they're
actually two separate languages with separate parsers. For example, the keyword for
`exists` in ACL is indicated by
SubqueryKeywords.EXISTS
in ACL, but
QueryCompiler.Subqueries.EXISTS
in PersistQL, even though the syntax is actually the same. This class translates the
keywords from one language to another.-
Constructor Summary
-
Method Summary
Methods inherited from class ch.tocco.nice2.conditionals.api.tree.processing.BaseNodeVisitor
beginTree, changed, endTree, hasChanged, visit, visitAnd, visitCondition, visitEquation, visitFactor, visitIdentifier, visitIntegration, visitIsTrue, visitLiteral, visitLogical, visitNot, visitOr, visitParameter, visitPath
-
Constructor Details
-
SubqueryTranslator
public SubqueryTranslator()
-
-
Method Details
-
visitFuncall
- Specified by:
visitFuncall
in interfaceNodeVisitor
- Overrides:
visitFuncall
in classBaseNodeVisitor
-
exists
-
exists
-
exists
-
count
-
count
-
count
-
where
-
where
-
where
-