protected static class FiqlSearchConditionBuilder.Builder extends Object implements Property, CompleteCondition, PartialCondition
| Modifier and Type | Field and Description |
|---|---|
protected String |
currentCompositeOp |
protected DateFormat |
df |
protected FiqlSearchConditionBuilder.Builder |
parent |
protected String |
result |
protected boolean |
timeZoneSupported |
| Constructor and Description |
|---|
Builder(FiqlSearchConditionBuilder.Builder parent) |
Builder(Map<String,String> properties) |
| Modifier and Type | Method and Description |
|---|---|
CompleteCondition |
after(Date date)
Is date property after (greater than) given date?
|
CompleteCondition |
after(Duration distanceFromNow)
Is date property after (greater than) date distant from now by given period of time?
|
PartialCondition |
and()
Conjunct current expression with another
|
CompleteCondition |
and(CompleteCondition c1,
CompleteCondition c2,
CompleteCondition... cn)
Conjunct multiple expressions
|
CompleteCondition |
and(List<CompleteCondition> conditions)
Conjunct multiple expressions
|
Property |
and(String name)
shortcut for and().is()
|
CompleteCondition |
before(Date date)
Is date property before (less than) given date?
|
CompleteCondition |
before(Duration distanceFromNow)
Is date property before (less than) date distant from now by given period of time?
|
protected String |
buildPartial(FiqlSearchConditionBuilder.Builder exclude) |
CompleteCondition |
comparesTo(ConditionType type,
Date value)
Generic
|
CompleteCondition |
comparesTo(ConditionType type,
Double value)
Generic
|
CompleteCondition |
comparesTo(ConditionType type,
Duration value)
Generic
|
CompleteCondition |
comparesTo(ConditionType type,
Integer value)
Generic
|
CompleteCondition |
comparesTo(ConditionType type,
Long value)
Generic
|
CompleteCondition |
comparesTo(ConditionType type,
String value)
Generic
|
protected CompleteCondition |
condition(String operator,
Object value,
Object... moreValues) |
protected CompleteCondition |
conditionsList(String op,
List<CompleteCondition> conditions) |
CompleteCondition |
equalTo(Date date,
Date... moreValues)
Is date property same as given date?
|
CompleteCondition |
equalTo(Double number,
Double... moreValues)
Is numeric property equal to given double number?
|
CompleteCondition |
equalTo(Duration distanceFromNow,
Duration... moreValues)
Is date property same as date distant from now by given period of time?
|
CompleteCondition |
equalTo(Integer number,
Integer... moreValues)
Is numeric property equal to given long number?
|
CompleteCondition |
equalTo(Long number,
Long... moreValues)
Is numeric property equal to given long number?
|
CompleteCondition |
equalTo(String value,
String... moreValues)
Is textual property equal to given literal or matching given pattern?
|
protected DateFormat |
getDateFormat() |
CompleteCondition |
greaterOrEqualTo(Double number)
Is numeric property greater or equal to given number?
|
CompleteCondition |
greaterOrEqualTo(Integer number)
Is numeric property greater or equal to given number?
|
CompleteCondition |
greaterOrEqualTo(Long number)
Is numeric property greater or equal to given number?
|
CompleteCondition |
greaterThan(Double number)
Is numeric property greater than given number?
|
CompleteCondition |
greaterThan(Integer number)
Is numeric property greater than given number?
|
CompleteCondition |
greaterThan(Long number)
Is numeric property greater than given number?
|
Property |
is(String property)
Get property of inspected entity type
|
protected boolean |
isTimeZoneSupported() |
CompleteCondition |
lessOrEqualTo(Double number)
Is numeric property less or equal to given number?
|
CompleteCondition |
lessOrEqualTo(Integer number)
Is numeric property less or equal to given number?
|
CompleteCondition |
lessOrEqualTo(Long number)
Is numeric property less or equal to given number?
|
CompleteCondition |
lessThan(Double number)
Is numeric property less than given number?
|
CompleteCondition |
lessThan(Integer number)
Is numeric property less than given number?
|
CompleteCondition |
lessThan(Long number)
Is numeric property less than given number?
|
CompleteCondition |
lexicalAfter(String literal)
Is textual property lexically after (greater than) given literal?
|
CompleteCondition |
lexicalBefore(String literal)
Is textual property lexically before (less than) given literal?
|
CompleteCondition |
lexicalNotAfter(String literal)
Is textual property lexically not after (less or equal to) given literal?
|
CompleteCondition |
lexicalNotBefore(String literal)
Is textual property lexically not before (greater or equal to) given literal?
|
CompleteCondition |
notAfter(Date date)
Is date property not after (less or equal to) given date?
|
CompleteCondition |
notAfter(Duration distanceFromNow)
Is date property not after (less or equal to) date distant from now by given period of time?
|
CompleteCondition |
notBefore(Date date)
Is date property not before (greater or equal to) given date?
|
CompleteCondition |
notBefore(Duration distanceFromNow)
Is date property not before (greater or equal to) date distant from now by given period of time?
|
CompleteCondition |
notEqualTo(Date date)
Is date property different than given date?
|
CompleteCondition |
notEqualTo(Double number)
Is numeric property different than given double number?
|
CompleteCondition |
notEqualTo(Duration distanceFromNow)
Is date property different than date distant from now by given period of time?
|
CompleteCondition |
notEqualTo(Integer number)
Is numeric property different than given int number?
|
CompleteCondition |
notEqualTo(Long number)
Is numeric property different than given long number?
|
CompleteCondition |
notEqualTo(String literalOrPattern)
Is textual property different than given literal or not matching given pattern?
|
PartialCondition |
or()
Disjunct current expression with another
|
CompleteCondition |
or(CompleteCondition c1,
CompleteCondition c2,
CompleteCondition... cn)
Disjunct multiple expressions
|
CompleteCondition |
or(List<CompleteCondition> conditions)
Disjunct multiple expressions
|
Property |
or(String name)
shortcut for or().is()
|
String |
query()
Finalize condition construction and build search condition query.
|
protected String |
toFiqlPrimitiveCondition(ConditionType type) |
protected String |
toString(Object value) |
CompleteCondition |
wrap()
Wraps the current expression in ()
|
protected String result
protected FiqlSearchConditionBuilder.Builder parent
protected DateFormat df
protected boolean timeZoneSupported
protected String currentCompositeOp
public Builder(FiqlSearchConditionBuilder.Builder parent)
public String query()
CompleteConditionquery in interface CompleteConditionprotected DateFormat getDateFormat()
protected boolean isTimeZoneSupported()
protected String buildPartial(FiqlSearchConditionBuilder.Builder exclude)
public CompleteCondition after(Date date)
Propertypublic CompleteCondition before(Date date)
Propertypublic CompleteCondition comparesTo(ConditionType type, String value)
PropertycomparesTo in interface Propertypublic CompleteCondition comparesTo(ConditionType type, Double value)
PropertycomparesTo in interface Propertypublic CompleteCondition comparesTo(ConditionType type, Integer value)
PropertycomparesTo in interface Propertypublic CompleteCondition comparesTo(ConditionType type, Long value)
PropertycomparesTo in interface Propertypublic CompleteCondition comparesTo(ConditionType type, Date value)
PropertycomparesTo in interface Propertypublic CompleteCondition comparesTo(ConditionType type, Duration value)
PropertycomparesTo in interface Propertypublic CompleteCondition equalTo(String value, String... moreValues)
Propertypublic CompleteCondition equalTo(Double number, Double... moreValues)
Propertypublic CompleteCondition equalTo(Long number, Long... moreValues)
Propertypublic CompleteCondition equalTo(Integer number, Integer... moreValues)
Propertypublic CompleteCondition equalTo(Date date, Date... moreValues)
Propertypublic CompleteCondition equalTo(Duration distanceFromNow, Duration... moreValues)
Propertypublic CompleteCondition greaterOrEqualTo(Double number)
PropertygreaterOrEqualTo in interface Propertypublic CompleteCondition greaterOrEqualTo(Long number)
PropertygreaterOrEqualTo in interface Propertypublic CompleteCondition greaterOrEqualTo(Integer number)
PropertygreaterOrEqualTo in interface Propertypublic CompleteCondition greaterThan(Double number)
PropertygreaterThan in interface Propertypublic CompleteCondition greaterThan(Long number)
PropertygreaterThan in interface Propertypublic CompleteCondition greaterThan(Integer number)
PropertygreaterThan in interface Propertypublic CompleteCondition lessOrEqualTo(Double number)
PropertylessOrEqualTo in interface Propertypublic CompleteCondition lessOrEqualTo(Long number)
PropertylessOrEqualTo in interface Propertypublic CompleteCondition lessOrEqualTo(Integer number)
PropertylessOrEqualTo in interface Propertypublic CompleteCondition lessThan(Double number)
Propertypublic CompleteCondition lessThan(Long number)
Propertypublic CompleteCondition lessThan(Integer number)
Propertypublic CompleteCondition lexicalAfter(String literal)
PropertylexicalAfter in interface Propertypublic CompleteCondition lexicalBefore(String literal)
PropertylexicalBefore in interface Propertypublic CompleteCondition lexicalNotAfter(String literal)
PropertylexicalNotAfter in interface Propertypublic CompleteCondition lexicalNotBefore(String literal)
PropertylexicalNotBefore in interface Propertypublic CompleteCondition notAfter(Date date)
Propertypublic CompleteCondition notBefore(Date date)
Propertypublic CompleteCondition notEqualTo(String literalOrPattern)
PropertynotEqualTo in interface Propertypublic CompleteCondition notEqualTo(Double number)
PropertynotEqualTo in interface Propertypublic CompleteCondition notEqualTo(Long number)
PropertynotEqualTo in interface Propertypublic CompleteCondition notEqualTo(Integer number)
PropertynotEqualTo in interface Propertypublic CompleteCondition notEqualTo(Date date)
PropertynotEqualTo in interface Propertypublic CompleteCondition after(Duration distanceFromNow)
Propertypublic CompleteCondition before(Duration distanceFromNow)
Propertypublic CompleteCondition notAfter(Duration distanceFromNow)
Propertypublic CompleteCondition notBefore(Duration distanceFromNow)
Propertypublic CompleteCondition notEqualTo(Duration distanceFromNow)
PropertynotEqualTo in interface Propertyprotected CompleteCondition condition(String operator, Object value, Object... moreValues)
public PartialCondition and()
CompleteConditionand in interface CompleteConditionpublic Property and(String name)
CompleteConditionand in interface CompleteConditionpublic PartialCondition or()
CompleteConditionor in interface CompleteConditionpublic Property or(String name)
CompleteConditionor in interface CompleteConditionpublic CompleteCondition wrap()
CompleteConditionwrap in interface CompleteConditionpublic CompleteCondition and(CompleteCondition c1, CompleteCondition c2, CompleteCondition... cn)
PartialConditionand in interface PartialConditionpublic CompleteCondition or(CompleteCondition c1, CompleteCondition c2, CompleteCondition... cn)
PartialConditionor in interface PartialConditionpublic CompleteCondition and(List<CompleteCondition> conditions)
PartialConditionand in interface PartialConditionpublic CompleteCondition or(List<CompleteCondition> conditions)
PartialConditionor in interface PartialConditionprotected CompleteCondition conditionsList(String op, List<CompleteCondition> conditions)
public Property is(String property)
PartialConditionis in interface PartialConditionprotected String toFiqlPrimitiveCondition(ConditionType type)
Apache CXF