Package 

Interface JPAFilter

  • All Implemented Interfaces:
    java.io.Serializable

    
    public interface JPAFilter
     implements Serializable
                        

    A JPA filter. See concrete implementation classes for further information.

    • Method Summary

      Modifier and Type Method Description
      abstract Predicate toPredicate(CriteriaBuilder cb, Root<?> root) Converts this filter to a JPA Criteria API Predicate.
      JPAFilter not() Negates this filter.
      JPAFilter and(JPAFilter other) Produces a filter which only matches rows which are matched both by this and the other filter.
      JPAFilter or(JPAFilter other) Produces a filter which matches rows which are matched by either this or the other filter.
      • Methods inherited from class java.io.Serializable

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toPredicate

         abstract Predicate toPredicate(CriteriaBuilder cb, Root<?> root)

        Converts this filter to a JPA Criteria API Predicate.

        Parameters:
        cb - the criteria builder which contains factory methods for various Predicates.
        root - creates Expressions for fields
      • and

         JPAFilter and(JPAFilter other)

        Produces a filter which only matches rows which are matched both by this and the other filter.

        Parameters:
        other - rows must match also this filter.
      • or

         JPAFilter or(JPAFilter other)

        Produces a filter which matches rows which are matched by either this or the other filter.

        Parameters:
        other - rows may match also this filter.