Search in sources :

Example 21 with Condition

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

the class NotRestriction method interpret.

@Override
public Condition interpret() throws QueryException {
    validateFilter();
    Condition condition = interpretChildFilter();
    return getContext().getHibernateQuery().createNot(condition);
}
Also used : Condition(com.evolveum.midpoint.repo.sql.query2.hqm.condition.Condition)

Example 22 with Condition

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

the class OrRestriction method interpret.

@Override
public Condition interpret() throws QueryException {
    validateFilter();
    OrCondition disjunction = getContext().getHibernateQuery().createOr();
    updateJunction(filter.getConditions(), disjunction);
    return disjunction;
}
Also used : OrCondition(com.evolveum.midpoint.repo.sql.query2.hqm.condition.OrCondition)

Aggregations

Condition (com.evolveum.midpoint.repo.sql.query2.hqm.condition.Condition)12 QueryException (com.evolveum.midpoint.repo.sql.query.QueryException)8 RootHibernateQuery (com.evolveum.midpoint.repo.sql.query2.hqm.RootHibernateQuery)8 AndCondition (com.evolveum.midpoint.repo.sql.query2.hqm.condition.AndCondition)7 QueryInterpreter2 (com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2)5 InterpretationContext (com.evolveum.midpoint.repo.sql.query2.InterpretationContext)4 OrCondition (com.evolveum.midpoint.repo.sql.query2.hqm.condition.OrCondition)4 PolyString (com.evolveum.midpoint.prism.polystring.PolyString)3 HqlDataInstance (com.evolveum.midpoint.repo.sql.query2.resolution.HqlDataInstance)3 IsNotNullCondition (com.evolveum.midpoint.repo.sql.query2.hqm.condition.IsNotNullCondition)2 IsNullCondition (com.evolveum.midpoint.repo.sql.query2.hqm.condition.IsNullCondition)2 RUtil.qnameToString (com.evolveum.midpoint.repo.sql.util.RUtil.qnameToString)2 QName (javax.xml.namespace.QName)2 PrismReferenceValue (com.evolveum.midpoint.prism.PrismReferenceValue)1 ItemPath (com.evolveum.midpoint.prism.path.ItemPath)1 AllFilter (com.evolveum.midpoint.prism.query.AllFilter)1 ComparativeFilter (com.evolveum.midpoint.prism.query.ComparativeFilter)1 EqualFilter (com.evolveum.midpoint.prism.query.EqualFilter)1 ObjectFilter (com.evolveum.midpoint.prism.query.ObjectFilter)1 ObjectPagingAfterOid (com.evolveum.midpoint.repo.sql.ObjectPagingAfterOid)1