java.lang.Object
software.xdev.spring.data.eclipse.store.repository.query.executors.CountQueryExecutor<T>
All Implemented Interfaces:
QueryExecutor<T>

public class CountQueryExecutor<T> extends Object implements QueryExecutor<T>
Executes queries that are optionally sorted and paged in collections.
  • Constructor Details

    • CountQueryExecutor

      public CountQueryExecutor(Criteria<T> criteria)
  • Method Details

    • execute

      public Long execute(Class<T> clazz, @Nullable EntityProvider<T,?> entities, Object[] values)
      Executes the created query over entities.

      The result is always a working copy of the entities.

      Specified by:
      execute in interface QueryExecutor<T>
      Parameters:
      clazz - of the entities
      entities - where the query is executed on
      values - for the query. These are values that might be compared to entities.
      Returns:
      a list of the found/sorted/paged entities