T
- Type of the object which will be checked by SearchCondition instancepublic interface SearchCondition<T>
Google Collections Predicate might've been used instead, but it is too generic and its apply method is not quite needed here
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
|
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
|
boolean isMet(T pojo)
pojo
- the object which will be checkedList<T> findAll(Collection<T> pojos)
pojos
- list of pojosT getCondition()
PrimitiveStatement getStatement()
List<SearchCondition<T>> getSearchConditions()
ConditionType getConditionType()
void accept(SearchConditionVisitor<T,?> visitor)
visitor
- Apache CXF