Class CallableQueryCount<T>

java.lang.Object
io.ebeaninternal.server.query.CallableQueryCount<T>
All Implemented Interfaces:
Callable<Integer>

public final class CallableQueryCount<T> extends Object implements Callable<Integer>
Represent the findCount query as a Callable.
  • Constructor Details

    • CallableQueryCount

      public CallableQueryCount(SpiEbeanServer server, SpiQuery<T> query, boolean createdTransaction)
      Note that the transaction passed in is always a new transaction solely to find the row count so it must be cleaned up by this CallableQueryRowCount.
  • Method Details

    • call

      public Integer call()
      Execute the query returning the row count.
      Specified by:
      call in interface Callable<T>