Class FiqlSearchConditionBuilder.Builder
- java.lang.Object
-
- org.apache.cxf.jaxrs.ext.search.client.FiqlSearchConditionBuilder.Builder
-
- All Implemented Interfaces:
CompleteCondition,PartialCondition,Property
- Enclosing class:
- FiqlSearchConditionBuilder
protected static class FiqlSearchConditionBuilder.Builder extends Object implements Property, CompleteCondition, PartialCondition
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcurrentCompositeOpprotected DateFormatdfprotected FiqlSearchConditionBuilder.Builderparentprotected Stringresultprotected booleantimeZoneSupported
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompleteConditionafter(Date date)Is date property after (greater than) given date?CompleteConditionafter(Duration distanceFromNow)Is date property after (greater than) date distant from now by given period of time?PartialConditionand()Conjunct current expression with anotherPropertyand(String name)shortcut for and().is()CompleteConditionand(List<CompleteCondition> conditions)Conjunct multiple expressionsCompleteConditionand(CompleteCondition c1, CompleteCondition c2, CompleteCondition... cn)Conjunct multiple expressionsCompleteConditionbefore(Date date)Is date property before (less than) given date?CompleteConditionbefore(Duration distanceFromNow)Is date property before (less than) date distant from now by given period of time?protected StringbuildPartial(FiqlSearchConditionBuilder.Builder exclude)CompleteConditioncomparesTo(ConditionType type, Double value)GenericCompleteConditioncomparesTo(ConditionType type, Integer value)GenericCompleteConditioncomparesTo(ConditionType type, Long value)GenericCompleteConditioncomparesTo(ConditionType type, String value)GenericCompleteConditioncomparesTo(ConditionType type, Date value)GenericCompleteConditioncomparesTo(ConditionType type, Duration value)Genericprotected CompleteConditioncondition(String operator, Object value, Object... moreValues)protected CompleteConditionconditionsList(String op, List<CompleteCondition> conditions)CompleteConditionequalTo(Double number, Double... moreValues)Is numeric property equal to given double number?CompleteConditionequalTo(Integer number, Integer... moreValues)Is numeric property equal to given long number?CompleteConditionequalTo(Long number, Long... moreValues)Is numeric property equal to given long number?CompleteConditionequalTo(String value, String... moreValues)Is textual property equal to given literal or matching given pattern?CompleteConditionequalTo(Date date, Date... moreValues)Is date property same as given date?CompleteConditionequalTo(Duration distanceFromNow, Duration... moreValues)Is date property same as date distant from now by given period of time?protected DateFormatgetDateFormat()CompleteConditiongreaterOrEqualTo(Double number)Is numeric property greater or equal to given number?CompleteConditiongreaterOrEqualTo(Integer number)Is numeric property greater or equal to given number?CompleteConditiongreaterOrEqualTo(Long number)Is numeric property greater or equal to given number?CompleteConditiongreaterThan(Double number)Is numeric property greater than given number?CompleteConditiongreaterThan(Integer number)Is numeric property greater than given number?CompleteConditiongreaterThan(Long number)Is numeric property greater than given number?Propertyis(String property)Get property of inspected entity typeprotected booleanisTimeZoneSupported()CompleteConditionlessOrEqualTo(Double number)Is numeric property less or equal to given number?CompleteConditionlessOrEqualTo(Integer number)Is numeric property less or equal to given number?CompleteConditionlessOrEqualTo(Long number)Is numeric property less or equal to given number?CompleteConditionlessThan(Double number)Is numeric property less than given number?CompleteConditionlessThan(Integer number)Is numeric property less than given number?CompleteConditionlessThan(Long number)Is numeric property less than given number?CompleteConditionlexicalAfter(String literal)Is textual property lexically after (greater than) given literal?CompleteConditionlexicalBefore(String literal)Is textual property lexically before (less than) given literal?CompleteConditionlexicalNotAfter(String literal)Is textual property lexically not after (less or equal to) given literal?CompleteConditionlexicalNotBefore(String literal)Is textual property lexically not before (greater or equal to) given literal?CompleteConditionnotAfter(Date date)Is date property not after (less or equal to) given date?CompleteConditionnotAfter(Duration distanceFromNow)Is date property not after (less or equal to) date distant from now by given period of time?CompleteConditionnotBefore(Date date)Is date property not before (greater or equal to) given date?CompleteConditionnotBefore(Duration distanceFromNow)Is date property not before (greater or equal to) date distant from now by given period of time?CompleteConditionnotEqualTo(Double number)Is numeric property different than given double number?CompleteConditionnotEqualTo(Integer number)Is numeric property different than given int number?CompleteConditionnotEqualTo(Long number)Is numeric property different than given long number?CompleteConditionnotEqualTo(String literalOrPattern)Is textual property different than given literal or not matching given pattern?CompleteConditionnotEqualTo(Date date)Is date property different than given date?CompleteConditionnotEqualTo(Duration distanceFromNow)Is date property different than date distant from now by given period of time?PartialConditionor()Disjunct current expression with anotherPropertyor(String name)shortcut for or().is()CompleteConditionor(List<CompleteCondition> conditions)Disjunct multiple expressionsCompleteConditionor(CompleteCondition c1, CompleteCondition c2, CompleteCondition... cn)Disjunct multiple expressionsStringquery()Finalize condition construction and build search condition query.protected StringtoFiqlPrimitiveCondition(ConditionType type)protected StringtoString(Object value)CompleteConditionwrap()Wraps the current expression in ()
-
-
-
Field Detail
-
result
protected String result
-
parent
protected FiqlSearchConditionBuilder.Builder parent
-
df
protected DateFormat df
-
timeZoneSupported
protected boolean timeZoneSupported
-
currentCompositeOp
protected String currentCompositeOp
-
-
Constructor Detail
-
Builder
public Builder(FiqlSearchConditionBuilder.Builder parent)
-
-
Method Detail
-
query
public String query()
Description copied from interface:CompleteConditionFinalize condition construction and build search condition query.- Specified by:
queryin interfaceCompleteCondition
-
getDateFormat
protected DateFormat getDateFormat()
-
isTimeZoneSupported
protected boolean isTimeZoneSupported()
-
buildPartial
protected String buildPartial(FiqlSearchConditionBuilder.Builder exclude)
-
after
public CompleteCondition after(Date date)
Description copied from interface:PropertyIs date property after (greater than) given date?
-
before
public CompleteCondition before(Date date)
Description copied from interface:PropertyIs date property before (less than) given date?
-
comparesTo
public CompleteCondition comparesTo(ConditionType type, String value)
Description copied from interface:PropertyGeneric- Specified by:
comparesToin interfaceProperty
-
comparesTo
public CompleteCondition comparesTo(ConditionType type, Double value)
Description copied from interface:PropertyGeneric- Specified by:
comparesToin interfaceProperty
-
comparesTo
public CompleteCondition comparesTo(ConditionType type, Integer value)
Description copied from interface:PropertyGeneric- Specified by:
comparesToin interfaceProperty
-
comparesTo
public CompleteCondition comparesTo(ConditionType type, Long value)
Description copied from interface:PropertyGeneric- Specified by:
comparesToin interfaceProperty
-
comparesTo
public CompleteCondition comparesTo(ConditionType type, Date value)
Description copied from interface:PropertyGeneric- Specified by:
comparesToin interfaceProperty
-
comparesTo
public CompleteCondition comparesTo(ConditionType type, Duration value)
Description copied from interface:PropertyGeneric- Specified by:
comparesToin interfaceProperty
-
equalTo
public CompleteCondition equalTo(String value, String... moreValues)
Description copied from interface:PropertyIs textual property equal to given literal or matching given pattern?
-
equalTo
public CompleteCondition equalTo(Double number, Double... moreValues)
Description copied from interface:PropertyIs numeric property equal to given double number?
-
equalTo
public CompleteCondition equalTo(Long number, Long... moreValues)
Description copied from interface:PropertyIs numeric property equal to given long number?
-
equalTo
public CompleteCondition equalTo(Integer number, Integer... moreValues)
Description copied from interface:PropertyIs numeric property equal to given long number?
-
equalTo
public CompleteCondition equalTo(Date date, Date... moreValues)
Description copied from interface:PropertyIs date property same as given date?
-
equalTo
public CompleteCondition equalTo(Duration distanceFromNow, Duration... moreValues)
Description copied from interface:PropertyIs date property same as date distant from now by given period of time?
-
greaterOrEqualTo
public CompleteCondition greaterOrEqualTo(Double number)
Description copied from interface:PropertyIs numeric property greater or equal to given number?- Specified by:
greaterOrEqualToin interfaceProperty
-
greaterOrEqualTo
public CompleteCondition greaterOrEqualTo(Long number)
Description copied from interface:PropertyIs numeric property greater or equal to given number?- Specified by:
greaterOrEqualToin interfaceProperty
-
greaterOrEqualTo
public CompleteCondition greaterOrEqualTo(Integer number)
Description copied from interface:PropertyIs numeric property greater or equal to given number?- Specified by:
greaterOrEqualToin interfaceProperty
-
greaterThan
public CompleteCondition greaterThan(Double number)
Description copied from interface:PropertyIs numeric property greater than given number?- Specified by:
greaterThanin interfaceProperty
-
greaterThan
public CompleteCondition greaterThan(Long number)
Description copied from interface:PropertyIs numeric property greater than given number?- Specified by:
greaterThanin interfaceProperty
-
greaterThan
public CompleteCondition greaterThan(Integer number)
Description copied from interface:PropertyIs numeric property greater than given number?- Specified by:
greaterThanin interfaceProperty
-
lessOrEqualTo
public CompleteCondition lessOrEqualTo(Double number)
Description copied from interface:PropertyIs numeric property less or equal to given number?- Specified by:
lessOrEqualToin interfaceProperty
-
lessOrEqualTo
public CompleteCondition lessOrEqualTo(Long number)
Description copied from interface:PropertyIs numeric property less or equal to given number?- Specified by:
lessOrEqualToin interfaceProperty
-
lessOrEqualTo
public CompleteCondition lessOrEqualTo(Integer number)
Description copied from interface:PropertyIs numeric property less or equal to given number?- Specified by:
lessOrEqualToin interfaceProperty
-
lessThan
public CompleteCondition lessThan(Double number)
Description copied from interface:PropertyIs numeric property less than given number?
-
lessThan
public CompleteCondition lessThan(Long number)
Description copied from interface:PropertyIs numeric property less than given number?
-
lessThan
public CompleteCondition lessThan(Integer number)
Description copied from interface:PropertyIs numeric property less than given number?
-
lexicalAfter
public CompleteCondition lexicalAfter(String literal)
Description copied from interface:PropertyIs textual property lexically after (greater than) given literal?- Specified by:
lexicalAfterin interfaceProperty
-
lexicalBefore
public CompleteCondition lexicalBefore(String literal)
Description copied from interface:PropertyIs textual property lexically before (less than) given literal?- Specified by:
lexicalBeforein interfaceProperty
-
lexicalNotAfter
public CompleteCondition lexicalNotAfter(String literal)
Description copied from interface:PropertyIs textual property lexically not after (less or equal to) given literal?- Specified by:
lexicalNotAfterin interfaceProperty
-
lexicalNotBefore
public CompleteCondition lexicalNotBefore(String literal)
Description copied from interface:PropertyIs textual property lexically not before (greater or equal to) given literal?- Specified by:
lexicalNotBeforein interfaceProperty
-
notAfter
public CompleteCondition notAfter(Date date)
Description copied from interface:PropertyIs date property not after (less or equal to) given date?
-
notBefore
public CompleteCondition notBefore(Date date)
Description copied from interface:PropertyIs date property not before (greater or equal to) given date?
-
notEqualTo
public CompleteCondition notEqualTo(String literalOrPattern)
Description copied from interface:PropertyIs textual property different than given literal or not matching given pattern?- Specified by:
notEqualToin interfaceProperty
-
notEqualTo
public CompleteCondition notEqualTo(Double number)
Description copied from interface:PropertyIs numeric property different than given double number?- Specified by:
notEqualToin interfaceProperty
-
notEqualTo
public CompleteCondition notEqualTo(Long number)
Description copied from interface:PropertyIs numeric property different than given long number?- Specified by:
notEqualToin interfaceProperty
-
notEqualTo
public CompleteCondition notEqualTo(Integer number)
Description copied from interface:PropertyIs numeric property different than given int number?- Specified by:
notEqualToin interfaceProperty
-
notEqualTo
public CompleteCondition notEqualTo(Date date)
Description copied from interface:PropertyIs date property different than given date?- Specified by:
notEqualToin interfaceProperty
-
after
public CompleteCondition after(Duration distanceFromNow)
Description copied from interface:PropertyIs date property after (greater than) date distant from now by given period of time?
-
before
public CompleteCondition before(Duration distanceFromNow)
Description copied from interface:PropertyIs date property before (less than) date distant from now by given period of time?
-
notAfter
public CompleteCondition notAfter(Duration distanceFromNow)
Description copied from interface:PropertyIs date property not after (less or equal to) date distant from now by given period of time?
-
notBefore
public CompleteCondition notBefore(Duration distanceFromNow)
Description copied from interface:PropertyIs date property not before (greater or equal to) date distant from now by given period of time?
-
notEqualTo
public CompleteCondition notEqualTo(Duration distanceFromNow)
Description copied from interface:PropertyIs date property different than date distant from now by given period of time?- Specified by:
notEqualToin interfaceProperty
-
condition
protected CompleteCondition condition(String operator, Object value, Object... moreValues)
-
and
public PartialCondition and()
Description copied from interface:CompleteConditionConjunct current expression with another- Specified by:
andin interfaceCompleteCondition
-
and
public Property and(String name)
Description copied from interface:CompleteConditionshortcut for and().is()- Specified by:
andin interfaceCompleteCondition
-
or
public PartialCondition or()
Description copied from interface:CompleteConditionDisjunct current expression with another- Specified by:
orin interfaceCompleteCondition
-
or
public Property or(String name)
Description copied from interface:CompleteConditionshortcut for or().is()- Specified by:
orin interfaceCompleteCondition
-
wrap
public CompleteCondition wrap()
Description copied from interface:CompleteConditionWraps the current expression in ()- Specified by:
wrapin interfaceCompleteCondition
-
and
public CompleteCondition and(CompleteCondition c1, CompleteCondition c2, CompleteCondition... cn)
Description copied from interface:PartialConditionConjunct multiple expressions- Specified by:
andin interfacePartialCondition
-
or
public CompleteCondition or(CompleteCondition c1, CompleteCondition c2, CompleteCondition... cn)
Description copied from interface:PartialConditionDisjunct multiple expressions- Specified by:
orin interfacePartialCondition
-
and
public CompleteCondition and(List<CompleteCondition> conditions)
Description copied from interface:PartialConditionConjunct multiple expressions- Specified by:
andin interfacePartialCondition
-
or
public CompleteCondition or(List<CompleteCondition> conditions)
Description copied from interface:PartialConditionDisjunct multiple expressions- Specified by:
orin interfacePartialCondition
-
conditionsList
protected CompleteCondition conditionsList(String op, List<CompleteCondition> conditions)
-
is
public Property is(String property)
Description copied from interface:PartialConditionGet property of inspected entity type- Specified by:
isin interfacePartialCondition
-
toFiqlPrimitiveCondition
protected String toFiqlPrimitiveCondition(ConditionType type)
-
-