Class JPASearchExecutor

java.lang.Object
com.peterphi.std.guice.hibernate.webquery.impl.jpa.JPASearchExecutor

public class JPASearchExecutor extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static boolean
    If true, will treat all WebQuery instances as if they had set computeSize to true
    This is mainly present to allow unit tests to check that computeSize works with various different WebQuery calls without having to duplicate
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    find(QEntity entity, WebQuery query, JPASearchStrategy strategy, Function<?,?> serialiser)
    Execute a search, returning a ConstrainedResultSet populated with the desired data (ID or Entity) with each piece of data optionally serialised using the supplied serialiser

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ALWAYS_COMPUTE_SIZE

      public static boolean ALWAYS_COMPUTE_SIZE
      If true, will treat all WebQuery instances as if they had set computeSize to true
      This is mainly present to allow unit tests to check that computeSize works with various different WebQuery calls without having to duplicate
  • Constructor Details

    • JPASearchExecutor

      public JPASearchExecutor()
  • Method Details

    • find

      public <T> ConstrainedResultSet<T> find(QEntity entity, WebQuery query, JPASearchStrategy strategy, Function<?,?> serialiser)
      Execute a search, returning a ConstrainedResultSet populated with the desired data (ID or Entity) with each piece of data optionally serialised using the supplied serialiser
      Type Parameters:
      T -
      Parameters:
      query - the query to execute (including options like offset/limit, )
      strategy -
      serialiser -
      Returns: