com.vaadin.addon.jpacontainer.filter
Class JoinFilter
java.lang.Object
com.vaadin.data.util.filter.AbstractJunctionFilter
com.vaadin.addon.jpacontainer.filter.JoinFilter
- All Implemented Interfaces:
- com.vaadin.data.Container.Filter, Serializable
public class JoinFilter
- extends com.vaadin.data.util.filter.AbstractJunctionFilter
This filter allows you to implement filtering on joined tables using
Hibernate, which lacks support for automatic joins. EclipseLink supports
automatic joins, which allows you to filter by e.g.
new Equal("skills.skill", s), while Hibernate requires you to do
the same using this filter e.g.
new JoinFilter("skills", new Equal("skill", s))
- See Also:
- Serialized Form
| Fields inherited from class com.vaadin.data.util.filter.AbstractJunctionFilter |
filters |
|
Constructor Summary |
JoinFilter(String joinProperty,
com.vaadin.data.Container.Filter... filters)
Constructs a HibernateJoin filter. |
| Methods inherited from class com.vaadin.data.util.filter.AbstractJunctionFilter |
appliesToProperty, equals, getFilters, hashCode |
JoinFilter
public JoinFilter(String joinProperty,
com.vaadin.data.Container.Filter... filters)
- Constructs a HibernateJoin filter.
- Parameters:
joinProperty - the property that should be joinedfilters - a set of filters filtering on the joined property. By default
all filters much pass for the item to be matched.
getJoinProperty
public String getJoinProperty()
- Returns:
- the property that is joined on
passesFilter
public boolean passesFilter(Object itemId,
com.vaadin.data.Item item)
throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
Copyright © 2013 Vaadin Ltd. All rights reserved.