Class CriteriaBuilderSearchVisitor<T,​Q>

  • Type Parameters:
    T - Entity object type (eg. OnmsNode)
    Q - Query bean type. In some cases, this will be the same as the entity object type but for complex objects, a specific query bean or the CXF SearchBean may be used instead.
    All Implemented Interfaces:
    org.apache.cxf.jaxrs.ext.search.SearchConditionVisitor<Q,​CriteriaBuilder>

    public class CriteriaBuilderSearchVisitor<T,​Q>
    extends org.apache.cxf.jaxrs.ext.search.visitor.AbstractSearchConditionVisitor<Q,​CriteriaBuilder>
    This SearchConditionVisitor will convert CXF SearchCondition instances into a Criteria that is suitable for querying one of our DAO interfaces.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.cxf.jaxrs.ext.search.visitor.AbstractSearchConditionVisitor

        org.apache.cxf.jaxrs.ext.search.visitor.AbstractSearchConditionVisitor.ClassValue
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.Date NULL_DATE_VALUE
      Use this value to represent null Date values.
      static java.lang.String NULL_VALUE
      Use this value to represent null values.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CriteriaBuilder getQuery()  
      void visit​(org.apache.cxf.jaxrs.ext.search.SearchCondition<Q> sc)  
      • Methods inherited from class org.apache.cxf.jaxrs.ext.search.visitor.AbstractSearchConditionVisitor

        getFieldTypeConverter, getPrimitiveFieldClass, getPrimitiveFieldClass, getPrimitiveFieldClass, getRealPropertyName, isWildcardStringMatch, setFieldTypeConverter, setPrimitiveFieldTypeMap, setValidator, setWildcardStringMatch, validatePropertyValue, visitor
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CriteriaBuilderSearchVisitor

        public CriteriaBuilderSearchVisitor​(CriteriaBuilder criteriaBuilder,
                                            java.lang.Class<T> clazz)
        Constructor that just specifies the target class.
      • CriteriaBuilderSearchVisitor

        public CriteriaBuilderSearchVisitor​(CriteriaBuilder criteriaBuilder,
                                            java.lang.Class<T> clazz,
                                            java.util.Map<java.lang.String,​CriteriaBehavior<?>> behaviors)
        Constructor that specifies the target class and a list of field aliases.
    • Method Detail

      • visit

        public void visit​(org.apache.cxf.jaxrs.ext.search.SearchCondition<Q> sc)