Apache CXF API

org.apache.cxf.jaxrs.ext.search.visitor
Class AbstractSearchConditionVisitor<T,E>

java.lang.Object
  extended by org.apache.cxf.jaxrs.ext.search.visitor.AbstractSearchConditionVisitor<T,E>
All Implemented Interfaces:
SearchConditionVisitor<T,E>
Direct Known Subclasses:
AbstractJPATypedQueryVisitor, AbstractUntypedSearchConditionVisitor, LuceneQueryVisitor

public abstract class AbstractSearchConditionVisitor<T,E>
extends Object
implements SearchConditionVisitor<T,E>


Nested Class Summary
protected  class AbstractSearchConditionVisitor.ClassValue
           
 
Constructor Summary
protected AbstractSearchConditionVisitor(Map<String,String> fieldMap)
           
 
Method Summary
protected  AbstractSearchConditionVisitor.ClassValue getPrimitiveFieldClass(PrimitiveStatement ps, String name, Class<?> valueCls, Type type, Object value)
           
protected  Class<?> getPrimitiveFieldClass(String name, Class<?> valueCls)
           
protected  AbstractSearchConditionVisitor.ClassValue getPrimitiveFieldClass(String name, Class<?> valueCls, Object value)
           
protected  String getRealPropertyName(String name)
           
 boolean isWildcardStringMatch()
           
 void setPrimitiveFieldTypeMap(Map<String,Class<?>> primitiveFieldTypeMap)
           
 void setValidator(PropertyValidator<Object> validator)
           
 void setWildcardStringMatch(boolean wildcardStringMatch)
           
protected  void validatePropertyValue(String name, Object value)
           
 SearchConditionVisitor<T,E> visitor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.jaxrs.ext.search.SearchConditionVisitor
getQuery, visit
 

Constructor Detail

AbstractSearchConditionVisitor

protected AbstractSearchConditionVisitor(Map<String,String> fieldMap)
Method Detail

getRealPropertyName

protected String getRealPropertyName(String name)

getPrimitiveFieldClass

protected Class<?> getPrimitiveFieldClass(String name,
                                          Class<?> valueCls)

getPrimitiveFieldClass

protected AbstractSearchConditionVisitor.ClassValue getPrimitiveFieldClass(String name,
                                                                           Class<?> valueCls,
                                                                           Object value)

getPrimitiveFieldClass

protected AbstractSearchConditionVisitor.ClassValue getPrimitiveFieldClass(PrimitiveStatement ps,
                                                                           String name,
                                                                           Class<?> valueCls,
                                                                           Type type,
                                                                           Object value)

setPrimitiveFieldTypeMap

public void setPrimitiveFieldTypeMap(Map<String,Class<?>> primitiveFieldTypeMap)

visitor

public SearchConditionVisitor<T,E> visitor()

validatePropertyValue

protected void validatePropertyValue(String name,
                                     Object value)

setValidator

public void setValidator(PropertyValidator<Object> validator)

isWildcardStringMatch

public boolean isWildcardStringMatch()

setWildcardStringMatch

public void setWildcardStringMatch(boolean wildcardStringMatch)

Apache CXF API

Apache CXF