Search in sources :

Example 1 with JunctionCondition

use of com.evolveum.midpoint.repo.sql.query.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();
    QueryInterpreter interpreter = context.getInterpreter();
    for (ObjectFilter subfilter : subfilters) {
        Condition condition = interpreter.interpretFilter(context, subfilter, this);
        junction.add(condition);
    }
}
Also used : JunctionCondition(com.evolveum.midpoint.repo.sql.query.hqm.condition.JunctionCondition) Condition(com.evolveum.midpoint.repo.sql.query.hqm.condition.Condition) InterpretationContext(com.evolveum.midpoint.repo.sql.query.InterpretationContext) QueryInterpreter(com.evolveum.midpoint.repo.sql.query.QueryInterpreter) ObjectFilter(com.evolveum.midpoint.prism.query.ObjectFilter)

Aggregations

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