org.nakedobjects.applib
Interface Filter<T>


public interface Filter<T>

For use by repository implementations to allow a set of objects returned by a back-end objectstore to be filtered before being returned to the caller.

Note that this is different from the pattern or criteria object accepted by some repositories' findXxx methods. Such criteria objects are implementation-specific to the configured objectstore and allow it to return an already-filtered set of rows. (For example, a Hibernate-based ObjectStore would accept a representation of a HQL query; an XML-based objectstore might accept an XPath query, etc.)


Method Summary
 boolean accept(T pojo)
          Whether or not the supplied pojo meets this criteria.
 

Method Detail

accept

boolean accept(T pojo)
Whether or not the supplied pojo meets this criteria.

Parameters:
pojo -
Returns:
true if this pojo is acceptable, false otherwise.


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.