Package io.objectbox.query
Class PropertyQueryConditionImpl<T>
- java.lang.Object
-
- io.objectbox.query.PropertyQueryConditionImpl<T>
-
- All Implemented Interfaces:
PropertyQueryCondition<T>
,QueryCondition<T>
- Direct Known Subclasses:
PropertyQueryConditionImpl.ByteArrayCondition
,PropertyQueryConditionImpl.DoubleCondition
,PropertyQueryConditionImpl.DoubleDoubleCondition
,PropertyQueryConditionImpl.IntArrayCondition
,PropertyQueryConditionImpl.LongArrayCondition
,PropertyQueryConditionImpl.LongCondition
,PropertyQueryConditionImpl.LongLongCondition
,PropertyQueryConditionImpl.NearestNeighborCondition
,PropertyQueryConditionImpl.NullCondition
,PropertyQueryConditionImpl.StringArrayCondition
,PropertyQueryConditionImpl.StringCondition
,PropertyQueryConditionImpl.StringStringCondition
public abstract class PropertyQueryConditionImpl<T> extends java.lang.Object implements PropertyQueryCondition<T>
Property
based query conditions with implementations split by number and type of values, such asLongCondition
,LongLongCondition
,LongArrayCondition
and the generalNullCondition
.Each condition implementation has a set of operation enums, e.g. EQUAL/NOT_EQUAL/..., which represent the actual query condition passed to the native query builder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PropertyQueryConditionImpl.ByteArrayCondition<T>
static class
PropertyQueryConditionImpl.DoubleCondition<T>
static class
PropertyQueryConditionImpl.DoubleDoubleCondition<T>
static class
PropertyQueryConditionImpl.IntArrayCondition<T>
static class
PropertyQueryConditionImpl.LongArrayCondition<T>
static class
PropertyQueryConditionImpl.LongCondition<T>
static class
PropertyQueryConditionImpl.LongLongCondition<T>
static class
PropertyQueryConditionImpl.NearestNeighborCondition<T>
Conditions for properties with anHnswIndex
.static class
PropertyQueryConditionImpl.NullCondition<T>
static class
PropertyQueryConditionImpl.StringArrayCondition<T>
static class
PropertyQueryConditionImpl.StringCondition<T>
static class
PropertyQueryConditionImpl.StringStringCondition<T>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryCondition<T>
alias(java.lang.String name)
Assigns an alias to this condition that can later be used with theQuery
setParameter methods.QueryCondition<T>
and(QueryCondition<T> queryCondition)
Combines this condition using AND with the given condition.void
apply(QueryBuilder<T> builder)
QueryCondition<T>
or(QueryCondition<T> queryCondition)
Combines this condition using OR with the given condition.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.objectbox.query.QueryCondition
and, or
-
-
-
-
Method Detail
-
alias
public QueryCondition<T> alias(java.lang.String name)
Description copied from interface:PropertyQueryCondition
Assigns an alias to this condition that can later be used with theQuery
setParameter methods.- Specified by:
alias
in interfacePropertyQueryCondition<T>
-
apply
public void apply(QueryBuilder<T> builder)
-
and
public QueryCondition<T> and(QueryCondition<T> queryCondition)
Description copied from interface:QueryCondition
Combines this condition using AND with the given condition.- Specified by:
and
in interfaceQueryCondition<T>
- See Also:
QueryCondition.or(QueryCondition)
-
or
public QueryCondition<T> or(QueryCondition<T> queryCondition)
Description copied from interface:QueryCondition
Combines this condition using OR with the given condition.- Specified by:
or
in interfaceQueryCondition<T>
- See Also:
QueryCondition.and(QueryCondition)
-
-