public abstract class ItemRestriction<T extends ValueFilter> extends Restriction<T>
context, filter, parent
Constructor and Description |
---|
ItemRestriction() |
Modifier and Type | Method and Description |
---|---|
protected void |
addNewCriteriaToContext(ItemPath path,
Definition def,
String realName) |
boolean |
canHandle(ObjectFilter filter) |
protected org.hibernate.criterion.Criterion |
createCriterion(String propertyName,
Object value,
ValueFilter filter) |
protected List<Definition> |
createDefinitionPath(ItemPath path) |
protected String |
createPropertyOrReferenceNamePrefix(ItemPath path) |
protected <T extends Definition> |
findProperDefinition(ItemPath path,
Class<T> clazz) |
protected EntityDefinition |
findProperEntityDefinition(ItemPath path) |
protected Object |
getValue(List<? extends PrismValue> values) |
protected Object |
getValueFromFilter(ValueFilter filter,
PropertyDefinition def) |
org.hibernate.criterion.Criterion |
interpret() |
abstract org.hibernate.criterion.Criterion |
interpretInternal(T filter) |
addIsNotNullIfNecessary, getContext, getFilter, getParent, isNegated, newInstance, setContext, setFilter, setParent
public boolean canHandle(ObjectFilter filter) throws QueryException
canHandle
in class Restriction<T extends ValueFilter>
QueryException
public org.hibernate.criterion.Criterion interpret() throws QueryException
interpret
in class Restriction<T extends ValueFilter>
QueryException
public abstract org.hibernate.criterion.Criterion interpretInternal(T filter) throws QueryException
QueryException
protected <T extends Definition> T findProperDefinition(ItemPath path, Class<T> clazz)
protected EntityDefinition findProperEntityDefinition(ItemPath path)
protected void addNewCriteriaToContext(ItemPath path, Definition def, String realName)
protected org.hibernate.criterion.Criterion createCriterion(String propertyName, Object value, ValueFilter filter) throws QueryException
QueryException
protected List<Definition> createDefinitionPath(ItemPath path) throws QueryException
QueryException
protected Object getValue(List<? extends PrismValue> values)
protected Object getValueFromFilter(ValueFilter filter, PropertyDefinition def) throws QueryException
QueryException
protected String createPropertyOrReferenceNamePrefix(ItemPath path) throws QueryException
QueryException
Copyright © 2016 evolveum. All rights reserved.