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.public class CriteriaBuilderSearchVisitor<T,Q> extends org.apache.cxf.jaxrs.ext.search.visitor.AbstractSearchConditionVisitor<Q,CriteriaBuilder>
SearchConditionVisitor will convert CXF SearchCondition
 instances into a Criteria that is suitable for querying one of our
 DAO interfaces.| Modifier and Type | Field and Description | 
|---|---|
static Date | 
NULL_DATE_VALUE
Use this value to represent null  
Date values. | 
static String | 
NULL_VALUE
Use this value to represent null values. 
 | 
| Constructor and Description | 
|---|
CriteriaBuilderSearchVisitor(CriteriaBuilder criteriaBuilder,
                            Class<T> clazz)
Constructor that just specifies the target class. 
 | 
CriteriaBuilderSearchVisitor(CriteriaBuilder criteriaBuilder,
                            Class<T> clazz,
                            Map<String,CriteriaBehavior<?>> behaviors)
Constructor that specifies the target class and a list of field aliases. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
CriteriaBuilder | 
getQuery()  | 
void | 
visit(org.apache.cxf.jaxrs.ext.search.SearchCondition<Q> sc)  | 
getFieldTypeConverter, getPrimitiveFieldClass, getPrimitiveFieldClass, getPrimitiveFieldClass, getRealPropertyName, isWildcardStringMatch, setFieldTypeConverter, setPrimitiveFieldTypeMap, setValidator, setWildcardStringMatch, validatePropertyValue, visitorpublic static final String NULL_VALUE
CriteriaBuilder.isNull(String) or CriteriaBuilder.isNotNull(String)
 call (depending on the operator).public static final Date NULL_DATE_VALUE
Date values. This will translate into a 
 CriteriaBuilder.isNull(String) or CriteriaBuilder.isNotNull(String)
 call (depending on the operator).public CriteriaBuilderSearchVisitor(CriteriaBuilder criteriaBuilder, Class<T> clazz)
public CriteriaBuilderSearchVisitor(CriteriaBuilder criteriaBuilder, Class<T> clazz, Map<String,CriteriaBehavior<?>> behaviors)
public void visit(org.apache.cxf.jaxrs.ext.search.SearchCondition<Q> sc)
public CriteriaBuilder getQuery()
Copyright © 2021. All rights reserved.