public class PrimitiveSearchCondition<T> extends Object implements SearchCondition<T>
| Constructor and Description | 
|---|
PrimitiveSearchCondition(String propertyName,
                        Object propertyValue,
                        ConditionType ct,
                        T condition)  | 
PrimitiveSearchCondition(String propertyName,
                        Object propertyValue,
                        Type propertyType,
                        ConditionType ct,
                        T condition)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
accept(SearchConditionVisitor<T,?> visitor)
Provides a visitor which will convert this SearchCondition into
 a custom expression, for example, into the SQL statement, etc 
 | 
List<T> | 
findAll(Collection<T> pojos)
Returns a list of pojos matching the condition 
 | 
T | 
getCondition()
Some SearchConditions may use instance of T to capture the actual search criteria
 thus making it simpler to implement isMet(T). 
 | 
ConditionType | 
getConditionType()
Returns the type of the condition this SearchCondition represents 
 | 
protected static Object | 
getPrimitiveValue(String name,
                 Object value)  | 
protected String | 
getPropertyName()  | 
protected Type | 
getPropertyType()  | 
protected Object | 
getPropertyValue()  | 
List<SearchCondition<T>> | 
getSearchConditions()
List of conditions this SearchCondition may represent. 
 | 
PrimitiveStatement | 
getStatement()
Primitive statement such a > b, i < 5, etc
 this condition may represent. 
 | 
boolean | 
isMet(T pojo)
Checks if the given pojo instance meets this search condition 
 | 
String | 
toSQL(String table,
     String... columns)  | 
public PrimitiveSearchCondition(String propertyName, Object propertyValue, ConditionType ct, T condition)
public PrimitiveSearchCondition(String propertyName, Object propertyValue, Type propertyType, ConditionType ct, T condition)
public List<T> findAll(Collection<T> pojos)
SearchConditionfindAll in interface SearchCondition<T>pojos - list of pojospublic T getCondition()
SearchConditiongetCondition in interface SearchCondition<T>public ConditionType getConditionType()
SearchConditiongetConditionType in interface SearchCondition<T>protected String getPropertyName()
protected Object getPropertyValue()
protected Type getPropertyType()
public List<SearchCondition<T>> getSearchConditions()
SearchConditiongetSearchConditions in interface SearchCondition<T>public PrimitiveStatement getStatement()
SearchConditiongetStatement in interface SearchCondition<T>public boolean isMet(T pojo)
SearchConditionisMet in interface SearchCondition<T>pojo - the object which will be checkedpublic void accept(SearchConditionVisitor<T,?> visitor)
SearchConditionaccept in interface SearchCondition<T>Apache CXF