Search in sources :

Example 1 with JunctionCondition

use of com.evolveum.midpoint.repo.sql.query2.hqm.condition.JunctionCondition in project midpoint by Evolveum.

the class NaryLogicalRestriction method updateJunction.

protected void updateJunction(List<? extends ObjectFilter> subfilters, JunctionCondition junction) throws QueryException {
    InterpretationContext context = getContext();
    QueryInterpreter2 interpreter = context.getInterpreter();
    for (ObjectFilter subfilter : subfilters) {
        Condition condition = interpreter.interpretFilter(context, subfilter, this);
        junction.add(condition);
    }
}
Also used : Condition(com.evolveum.midpoint.repo.sql.query2.hqm.condition.Condition) JunctionCondition(com.evolveum.midpoint.repo.sql.query2.hqm.condition.JunctionCondition) InterpretationContext(com.evolveum.midpoint.repo.sql.query2.InterpretationContext) ObjectFilter(com.evolveum.midpoint.prism.query.ObjectFilter) QueryInterpreter2(com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2)

Aggregations

ObjectFilter (com.evolveum.midpoint.prism.query.ObjectFilter)1 InterpretationContext (com.evolveum.midpoint.repo.sql.query2.InterpretationContext)1 QueryInterpreter2 (com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2)1 Condition (com.evolveum.midpoint.repo.sql.query2.hqm.condition.Condition)1 JunctionCondition (com.evolveum.midpoint.repo.sql.query2.hqm.condition.JunctionCondition)1