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
ConstructorsConstructorDescriptionCompoundFilter(Junction.Type type, EntityFilter... filters) CompoundFilter(Junction.Type type, Collection<EntityFilter> filters) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFilter(EntityFilter filter) static CompoundFilterand(EntityFilter... filters) static CompoundFilterand(Collection<EntityFilter> filters) final ConditionappendQuery(String entityModel) Append to the partial query and return the "next query step".booleanisEmpty()static CompoundFilteror(EntityFilter... filters) static CompoundFilteror(Collection<EntityFilter> filters) voidremoveFilter(EntityFilter filter) Methods inherited from class AbstractEntityFilter
and, orMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:EntityFilterAppend 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:
appendQueryin interfaceEntityFilter- Parameters:
entityModel- the entity model the query is for- Throws:
PersistException
-