Class Filters
java.lang.Object
com.vaadin.featurepack.data.jpacontainer.filter.Filters
Utility class for creating filter instances.
- Since:
- 1.0
- Author:
- Petter Holmström (Vaadin Ltd)
-
Method Summary
Modifier and TypeMethodDescriptionstatic Andand(Container.Filter... filters) Creates a filter that groupsfilterstogether in a single conjunction.static Andand(List<Container.Filter> filters) Creates a filter that groupsfilterstogether in a single conjunction.static Container.Filterbetween(Object propertyId, Comparable<?> startingPoint, Comparable<?> endingPoint) Creates a new filter that accepts all items whose value ofpropertyIdis betweenstartingPointandendingPoint.static Container.Filterbetween(Object propertyId, Object startingPoint, Object endingPoint, boolean includeStartingPoint, boolean includeEndingPoint) static Container.FilterbetweenExlusive(Object propertyId, Object startingPoint, Object endingPoint) Creates a new filter that accepts all items whose value ofpropertyIdis betweenstartingPoint(exclusive) andendingPoint(exclusive).static Container.FilterbetweenInclusive(Object propertyId, Object startingPoint, Object endingPoint) Creates a new filter that accepts all items whose value ofpropertyIdis betweenstartingPoint(inclusive) andendingPoint(inclusive).static Container.FilterCreates a new filter that accepts all items whose value ofpropertyIdis equal tovalue.static Container.FilterCreates a new filter that accepts all items whose value ofpropertyIdis equal tovalue.static Container.FilterCreates a new filter that accepts all items whose value ofpropertyIdis greater thanvalue.static Container.FilterCreates a new filter that accepts all items whose value ofpropertyIdis greater than or equal tovalue.static Container.FilterCreates a new filter that accepts all items whose value ofpropertyIdis empty.static Container.FilterisNotEmpty(Object propertyId) Creates a new filter that accepts all items whose value ofpropertyIdis not empty.static Container.FilterCreates a new filter that accepts all items whose value ofpropertyIdis not null.static Container.FilterCreates a new filter that accepts all items whose value ofpropertyIdis null.static JoinFilterjoinFilter(String joinProperty, Container.Filter... filters) Creates a filter that appliesfilters(as a conjunction) to the joined propertyjoinProperty.static Container.FilterCreates a new filter that accepts all items whose value ofpropertyIdmatchesvalue.static Container.FilterCreates a new filter that accepts all items whose value ofpropertyIdis less thanvalue.static Container.FilterCreates a new filter that accepts all items whose value ofpropertyIdis less than or equal tovalue.static Container.Filternot(Container.Filter filter) Creates a filter that negatesfilter.static Oror(Container.Filter... filters) Creates a filter that groupsfilterstogether in a single disjunction.static Oror(List<Container.Filter> filters) Creates a filter that groupsfilterstogether in a single disjunction.static Container.Filteroutside(Object propertyId, Object startingPoint, Object endingPoint, boolean includeStartingPoint, boolean includeEndingPoint) Creates a new filter that accepts all items whose value ofpropertyIdis outsidestartingPointandendingPoint.static Container.FilteroutsideExclusive(Object propertyId, Object startingPoint, Object endingPoint) Creates a new filter that accepts all items whose value ofpropertyIdis outsidestartingPoint(exclusive) andendingPoint(exclusive).static Container.FilteroutsideInclusive(Object propertyId, Object startingPoint, Object endingPoint) Creates a new filter that accepts all items whose value ofpropertyIdis outsidestartingPoint(inclusive) andendingPoint(inclusive).
-
Method Details
-
isNull
Creates a new filter that accepts all items whose value ofpropertyIdis null. -
isNotNull
Creates a new filter that accepts all items whose value ofpropertyIdis not null. -
isEmpty
Creates a new filter that accepts all items whose value ofpropertyIdis empty. -
isNotEmpty
Creates a new filter that accepts all items whose value ofpropertyIdis not empty. -
eq
Creates a new filter that accepts all items whose value ofpropertyIdis equal tovalue. -
like
Creates a new filter that accepts all items whose value ofpropertyIdmatchesvalue. The precent-sign (%) may be used as wildcard. -
eq
Creates a new filter that accepts all items whose value ofpropertyIdis equal tovalue. -
gteq
Creates a new filter that accepts all items whose value ofpropertyIdis greater than or equal tovalue. -
gt
Creates a new filter that accepts all items whose value ofpropertyIdis greater thanvalue. -
lteq
Creates a new filter that accepts all items whose value ofpropertyIdis less than or equal tovalue. -
lt
Creates a new filter that accepts all items whose value ofpropertyIdis less thanvalue. -
between
public static Container.Filter between(Object propertyId, Comparable<?> startingPoint, Comparable<?> endingPoint) Creates a new filter that accepts all items whose value ofpropertyIdis betweenstartingPointandendingPoint. -
between
public static Container.Filter between(Object propertyId, Object startingPoint, Object endingPoint, boolean includeStartingPoint, boolean includeEndingPoint) -
betweenInclusive
public static Container.Filter betweenInclusive(Object propertyId, Object startingPoint, Object endingPoint) Creates a new filter that accepts all items whose value ofpropertyIdis betweenstartingPoint(inclusive) andendingPoint(inclusive). -
betweenExlusive
public static Container.Filter betweenExlusive(Object propertyId, Object startingPoint, Object endingPoint) Creates a new filter that accepts all items whose value ofpropertyIdis betweenstartingPoint(exclusive) andendingPoint(exclusive). -
outside
public static Container.Filter outside(Object propertyId, Object startingPoint, Object endingPoint, boolean includeStartingPoint, boolean includeEndingPoint) Creates a new filter that accepts all items whose value ofpropertyIdis outsidestartingPointandendingPoint. -
outsideInclusive
public static Container.Filter outsideInclusive(Object propertyId, Object startingPoint, Object endingPoint) Creates a new filter that accepts all items whose value ofpropertyIdis outsidestartingPoint(inclusive) andendingPoint(inclusive). -
outsideExclusive
public static Container.Filter outsideExclusive(Object propertyId, Object startingPoint, Object endingPoint) Creates a new filter that accepts all items whose value ofpropertyIdis outsidestartingPoint(exclusive) andendingPoint(exclusive). -
not
Creates a filter that negatesfilter. -
and
Creates a filter that groupsfilterstogether in a single conjunction. -
and
Creates a filter that groupsfilterstogether in a single conjunction. -
or
Creates a filter that groupsfilterstogether in a single disjunction. -
or
Creates a filter that groupsfilterstogether in a single disjunction. -
joinFilter
Creates a filter that appliesfilters(as a conjunction) to the joined propertyjoinProperty. This is only needed for Hibernate, as EclipseLink implicitly joins on nested properties.
-