|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.jaxrs.ext.search.AbstractComplexCondition<T>
public abstract class AbstractComplexCondition<T>
| Field Summary | |
|---|---|
protected java.util.List<SearchCondition<T>> |
conditions
|
| Constructor Summary | |
|---|---|
protected |
AbstractComplexCondition(ConditionType cType)
|
protected |
AbstractComplexCondition(java.util.List<SearchCondition<T>> conditions,
ConditionType cType)
|
| Method Summary | |
|---|---|
java.util.List<T> |
findAll(java.util.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()
Type of condition this SearchCondition represents |
java.util.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(java.util.List<SearchCondition<T>> conditions)
|
java.lang.String |
toSQL(java.lang.String table,
java.lang.String... columns)
Utility method for converting this condition into an SQL expression |
| 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.SearchCondition |
|---|
isMet |
| Field Detail |
|---|
protected java.util.List<SearchCondition<T>> conditions
| Constructor Detail |
|---|
protected AbstractComplexCondition(ConditionType cType)
protected AbstractComplexCondition(java.util.List<SearchCondition<T>> conditions,
ConditionType cType)
| Method Detail |
|---|
public void setConditions(java.util.List<SearchCondition<T>> conditions)
public java.util.List<T> findAll(java.util.Collection<T> pojos)
SearchCondition
findAll in interface SearchCondition<T>pojos - list of pojos
public T getCondition()
SearchCondition
getCondition in interface SearchCondition<T>public ConditionType getConditionType()
SearchCondition
getConditionType in interface SearchCondition<T>public java.util.List<SearchCondition<T>> getSearchConditions()
SearchCondition
getSearchConditions in interface SearchCondition<T>public PrimitiveStatement getStatement()
SearchCondition
getStatement in interface SearchCondition<T>
public java.lang.String toSQL(java.lang.String table,
java.lang.String... columns)
SearchCondition
toSQL in interface SearchCondition<T>table - table namecolumns - column names, a wildcard as in 'SELECT * from table' will be used
if names are not provided
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||