|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.jaxrs.ext.search.client.SearchConditionBuilder org.apache.cxf.jaxrs.ext.search.client.FiqlSearchConditionBuilder
public class FiqlSearchConditionBuilder
Builds a FIQL search condition.
Examples:
SearchConditionBuilder b = SearchConditionBuilder.instance("fiql"); b.is("price").equalTo(123.5).query(); // gives "price==123.5" b.is("price").greaterThan(30).and().is("price").lessThan(50).query(); // gives "price=gt=30.0;price=lt=50.0"For very complex junctions nested "and"/"or" are allowed (breaking a bit fluency of interface) and looks like the following example:
SearchConditionBuilder b = SearchConditionBuilder.instance("fiql"); b.is("price").lessThan(100).and().or( b.is("title").equalTo("The lord*"), b.is("author").equalTo("R.R.Tolkien")).query(); // gives "price=lt=100.0;(title==The lord*,author==R.R.Tolkien)"
Field Summary |
---|
Fields inherited from class org.apache.cxf.jaxrs.ext.search.client.SearchConditionBuilder |
---|
DEFAULT_LANGUAGE |
Constructor Summary | |
---|---|
FiqlSearchConditionBuilder()
|
|
FiqlSearchConditionBuilder(Map<String,String> properties)
|
Method Summary | |
---|---|
CompleteCondition |
and(CompleteCondition c1,
CompleteCondition c2,
CompleteCondition... cn)
Conjunct multiple expressions |
Property |
is(String property)
Get property of inspected entity type |
CompleteCondition |
or(CompleteCondition c1,
CompleteCondition c2,
CompleteCondition... cn)
Disjunct multiple expressions |
String |
query()
Finalize condition construction and build search condition query. |
Methods inherited from class org.apache.cxf.jaxrs.ext.search.client.SearchConditionBuilder |
---|
instance, instance, instance, instance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FiqlSearchConditionBuilder()
public FiqlSearchConditionBuilder(Map<String,String> properties)
Method Detail |
---|
public String query()
SearchConditionBuilder
query
in class SearchConditionBuilder
public Property is(String property)
PartialCondition
public CompleteCondition and(CompleteCondition c1, CompleteCondition c2, CompleteCondition... cn)
PartialCondition
public CompleteCondition or(CompleteCondition c1, CompleteCondition c2, CompleteCondition... cn)
PartialCondition
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |