com.evolveum.midpoint.repo.sql.query2.restriction
Class ItemRestriction<T extends ValueFilter>

java.lang.Object
  extended by com.evolveum.midpoint.repo.sql.query2.restriction.Restriction<T>
      extended by com.evolveum.midpoint.repo.sql.query2.restriction.ItemRestriction<T>
Direct Known Subclasses:
AnyPropertyRestriction, PropertyRestriction, ReferenceRestriction

public class ItemRestriction<T extends ValueFilter>
extends Restriction<T>

Author:
lazyman

Constructor Summary
ItemRestriction(QueryContext context, ObjectQuery query, T filter)
           
ItemRestriction(Restriction parent, QueryContext context, ObjectQuery query, T filter)
           
 
Method Summary
 boolean canHandle(ObjectFilter filter)
           
protected  Object createComparableRealValue()
           
protected  org.hibernate.criterion.Criterion createCriterion(RestrictionOperation operation)
           
protected  String createPropertyName()
           
 org.hibernate.criterion.Criterion interpret()
           
 
Methods inherited from class com.evolveum.midpoint.repo.sql.query2.restriction.Restriction
getContext, getFilter, getInterpreter, getParent, getQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemRestriction

public ItemRestriction(QueryContext context,
                       ObjectQuery query,
                       T filter)

ItemRestriction

public ItemRestriction(Restriction parent,
                       QueryContext context,
                       ObjectQuery query,
                       T filter)
Method Detail

createPropertyName

protected String createPropertyName()

createComparableRealValue

protected Object createComparableRealValue()

interpret

public org.hibernate.criterion.Criterion interpret()
Specified by:
interpret in class Restriction<T extends ValueFilter>

canHandle

public boolean canHandle(ObjectFilter filter)
Specified by:
canHandle in class Restriction<T extends ValueFilter>

createCriterion

protected org.hibernate.criterion.Criterion createCriterion(RestrictionOperation operation)
                                                     throws QueryException
Throws:
QueryException


Copyright © 2013 evolveum. All Rights Reserved.