Class JpaQueryExecution

java.lang.Object
org.springframework.data.jpa.repository.query.JpaQueryExecution

public abstract class JpaQueryExecution extends Object
Set of classes to contain query execution strategies. Depending (mostly) on the return type of a QueryMethod a AbstractStringBasedJpaQuery can be executed in various flavors.
Author:
Oliver Gierke, Thomas Darimont, Mark Paluch, Christoph Strobl, Nicolas Cirigliano, Jens Schauder, Gabriel Basilio, Greg Turnquist
  • Constructor Details

    • JpaQueryExecution

      public JpaQueryExecution()
  • Method Details

    • execute

      public @Nullable Object execute(AbstractJpaQuery query, JpaParametersParameterAccessor accessor)
      Executes the given AbstractStringBasedJpaQuery with the given ParameterBinder.
      Parameters:
      query - must not be null.
      accessor - must not be null.
      Returns:
    • doExecute

      protected abstract @Nullable Object doExecute(AbstractJpaQuery query, JpaParametersParameterAccessor accessor)
      Method to implement AbstractStringBasedJpaQuery executions by single enum values.
      Parameters:
      query - must not be null.
      accessor - must not be null.