Class CompoundFilter
java.lang.Object
ch.tocco.nice2.optional.calendar.api.util.persist.AbstractEntityFilter
ch.tocco.nice2.optional.calendar.api.util.persist.CompoundFilter
- All Implemented Interfaces:
EntityFilter
- Direct Known Subclasses:
RangeAlldayFilter
,RangeCalendarEventFilter
,RecurringEventFilter
,RelatedEntitiesCalendarEventFilter
A compound filter that appends all contained filters to the query by using a
"concatenation type" of either "and" or "or".
-
Constructor Summary
ConstructorDescriptionCompoundFilter
(Junction.Type type, EntityFilter... filters) CompoundFilter
(Junction.Type type, Collection<EntityFilter> filters) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFilter
(EntityFilter filter) static CompoundFilter
and
(EntityFilter... filters) static CompoundFilter
and
(Collection<EntityFilter> filters) final Condition
appendQuery
(String entityModel) Append to the partial query and return the "next query step".boolean
isEmpty()
static CompoundFilter
or
(EntityFilter... filters) static CompoundFilter
or
(Collection<EntityFilter> filters) void
removeFilter
(EntityFilter filter) Methods inherited from class ch.tocco.nice2.optional.calendar.api.util.persist.AbstractEntityFilter
and, or
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.optional.calendar.api.util.persist.EntityFilter
and, or
-
Constructor Details
-
CompoundFilter
-
CompoundFilter
-
-
Method Details
-
and
-
and
-
or
-
or
-
addFilter
-
removeFilter
-
isEmpty
public boolean isEmpty() -
getFilters
-
appendQuery
Description copied from interface:EntityFilter
Append to the partial query and return the "next query step". Return null, to not contribute to the query. This filter is then discarded.- Specified by:
appendQuery
in interfaceEntityFilter
- Parameters:
entityModel
- the entity model the query is for- Throws:
PersistException
-