Class ItemValueRestriction<T extends ValueFilter>
- java.lang.Object
-
- com.evolveum.midpoint.repo.sql.query2.restriction.Restriction<T>
-
- com.evolveum.midpoint.repo.sql.query2.restriction.ItemRestriction<T>
-
- com.evolveum.midpoint.repo.sql.query2.restriction.ItemValueRestriction<T>
-
- Direct Known Subclasses:
PropertyRestriction
,ReferenceRestriction
public abstract class ItemValueRestriction<T extends ValueFilter> extends ItemRestriction<T>
Abstract superclass for all value-related filters. There are two major problems solved: 1) mapping from ItemPath to HQL property paths 2) adding joined entities to the query, along with necessary conditions After the necessary entity is available, the fine work (creating one or more conditions to execute the filtering) is done by subclasses of this path in the interpretInternal(..) method.- Author:
- lazyman, mederly
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.repo.sql.query2.restriction.ItemRestriction
hqlDataInstance, itemDefinition, itemPath
-
Fields inherited from class com.evolveum.midpoint.repo.sql.query2.restriction.Restriction
context, filter, parent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Object
getValue(PropertyValueFilter filter)
Condition
interpret()
abstract Condition
interpretInternal()
-
Methods inherited from class com.evolveum.midpoint.repo.sql.query2.restriction.ItemRestriction
getHqlDataInstance, getItemPath, setHqlDataInstance
-
Methods inherited from class com.evolveum.midpoint.repo.sql.query2.restriction.Restriction
getBaseHqlEntity, getBaseHqlEntityForChildren, getContext, getFilter, getItemPathResolver, getParent, isNegated, nameOf
-
-
-
-
Method Detail
-
interpret
public Condition interpret() throws QueryException
- Specified by:
interpret
in classRestriction<T extends ValueFilter>
- Throws:
QueryException
-
interpretInternal
public abstract Condition interpretInternal() throws QueryException
- Throws:
QueryException
-
getValue
protected Object getValue(PropertyValueFilter filter) throws QueryException
- Throws:
QueryException
-
-