public abstract class AbstractComplexCondition<T> extends Object implements SearchCondition<T>
Modifier and Type | Field and Description |
---|---|
protected List<SearchCondition<T>> |
conditions |
Modifier | Constructor and Description |
---|---|
protected |
AbstractComplexCondition(ConditionType cType) |
protected |
AbstractComplexCondition(List<SearchCondition<T>> conditions,
ConditionType cType) |
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.
|
void |
setConditions(List<SearchCondition<T>> conditions) |
String |
toSQL(String table,
String... columns) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isMet
protected List<SearchCondition<T>> conditions
protected AbstractComplexCondition(ConditionType cType)
protected AbstractComplexCondition(List<SearchCondition<T>> conditions, ConditionType cType)
public void setConditions(List<SearchCondition<T>> conditions)
public List<T> findAll(Collection<T> pojos)
SearchCondition
findAll
in interface SearchCondition<T>
pojos
- list of pojospublic T getCondition()
SearchCondition
getCondition
in interface SearchCondition<T>
public ConditionType getConditionType()
SearchCondition
getConditionType
in interface SearchCondition<T>
public List<SearchCondition<T>> getSearchConditions()
SearchCondition
getSearchConditions
in interface SearchCondition<T>
public PrimitiveStatement getStatement()
SearchCondition
getStatement
in interface SearchCondition<T>
public void accept(SearchConditionVisitor<T,?> visitor)
SearchCondition
accept
in interface SearchCondition<T>
Apache CXF