com.vaadin.addon.jpacontainer.filter
Class JoinFilter

java.lang.Object
  extended by com.vaadin.data.util.filter.AbstractJunctionFilter
      extended by 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

Field Summary
 
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.
 
Method Summary
 String getJoinProperty()
           
 boolean passesFilter(Object itemId, com.vaadin.data.Item item)
           
 
Methods inherited from class com.vaadin.data.util.filter.AbstractJunctionFilter
appliesToProperty, equals, getFilters, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoinFilter

public JoinFilter(String joinProperty,
                  com.vaadin.data.Container.Filter... filters)
Constructs a HibernateJoin filter.

Parameters:
joinProperty - the property that should be joined
filters - a set of filters filtering on the joined property. By default all filters much pass for the item to be matched.
Method Detail

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.