public abstract class Restriction<T extends ObjectFilter> extends Object
Modifier and Type | Field and Description |
---|---|
protected QueryContext |
context |
protected T |
filter |
protected Restriction |
parent |
Constructor and Description |
---|
Restriction() |
Modifier and Type | Method and Description |
---|---|
protected org.hibernate.criterion.Criterion |
addIsNotNullIfNecessary(org.hibernate.criterion.Criterion criterion,
String propertyPath)
Filter of type NOT(PROPERTY=VALUE) causes problems when there are entities with PROPERTY set to NULL.
|
abstract boolean |
canHandle(ObjectFilter filter) |
QueryContext |
getContext() |
T |
getFilter() |
Restriction |
getParent() |
abstract org.hibernate.criterion.Criterion |
interpret() |
protected boolean |
isNegated() |
abstract Restriction |
newInstance() |
void |
setContext(QueryContext context) |
void |
setFilter(T filter) |
void |
setParent(Restriction parent) |
protected QueryContext context
protected Restriction parent
protected T extends ObjectFilter filter
public T getFilter()
public void setFilter(T filter)
public QueryContext getContext()
public void setContext(QueryContext context)
public Restriction getParent()
public void setParent(Restriction parent)
public abstract org.hibernate.criterion.Criterion interpret() throws QueryException
QueryException
public abstract boolean canHandle(ObjectFilter filter) throws QueryException
QueryException
public abstract Restriction newInstance()
protected boolean isNegated()
protected org.hibernate.criterion.Criterion addIsNotNullIfNecessary(org.hibernate.criterion.Criterion criterion, String propertyPath)
Copyright © 2016 evolveum. All rights reserved.