Search in sources :

Example 6 with QueryInterpreter2

use of com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2 in project midpoint by Evolveum.

the class QueryEngine2 method interpret.

public RQuery interpret(ObjectQuery query, Class<? extends Containerable> type, Collection<SelectorOptions<GetOperationOptions>> options, boolean countingObjects, Session session) throws QueryException {
    QueryInterpreter2 interpreter = new QueryInterpreter2(repoConfiguration);
    RootHibernateQuery hibernateQuery = interpreter.interpret(query, type, options, prismContext, countingObjects, session);
    return new RQueryImpl(hibernateQuery.getAsHqlQuery(session), hibernateQuery);
}
Also used : RootHibernateQuery(com.evolveum.midpoint.repo.sql.query2.hqm.RootHibernateQuery)

Aggregations

QueryInterpreter2 (com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2)5 InterpretationContext (com.evolveum.midpoint.repo.sql.query2.InterpretationContext)4 RootHibernateQuery (com.evolveum.midpoint.repo.sql.query2.hqm.RootHibernateQuery)3 Condition (com.evolveum.midpoint.repo.sql.query2.hqm.condition.Condition)2 AllFilter (com.evolveum.midpoint.prism.query.AllFilter)1 ObjectFilter (com.evolveum.midpoint.prism.query.ObjectFilter)1 RObjectType (com.evolveum.midpoint.repo.sql.data.common.other.RObjectType)1 QueryException (com.evolveum.midpoint.repo.sql.query.QueryException)1 JpaDataNodeDefinition (com.evolveum.midpoint.repo.sql.query2.definition.JpaDataNodeDefinition)1 JpaEntityDefinition (com.evolveum.midpoint.repo.sql.query2.definition.JpaEntityDefinition)1 JpaPropertyDefinition (com.evolveum.midpoint.repo.sql.query2.definition.JpaPropertyDefinition)1 JunctionCondition (com.evolveum.midpoint.repo.sql.query2.hqm.condition.JunctionCondition)1 Matcher (com.evolveum.midpoint.repo.sql.query2.matcher.Matcher)1 HqlDataInstance (com.evolveum.midpoint.repo.sql.query2.resolution.HqlDataInstance)1