Class JpaNamedQueryProvider<E>

java.lang.Object
org.springframework.batch.item.database.orm.AbstractJpaQueryProvider
org.springframework.batch.item.database.orm.JpaNamedQueryProvider<E>
Type Parameters:
E - entity returned by executing the query
All Implemented Interfaces:
JpaQueryProvider, org.springframework.beans.factory.InitializingBean

public class JpaNamedQueryProvider<E> extends AbstractJpaQueryProvider

This query provider creates JPA named Querys.

Since:
4.3
Author:
Mahmoud Ben Hassine, Parikshit Dutta
  • Constructor Details

    • JpaNamedQueryProvider

      public JpaNamedQueryProvider()
  • Method Details

    • createQuery

      public jakarta.persistence.Query createQuery()
      Description copied from interface: JpaQueryProvider

      Create the query object.

      Returns:
      created query
    • setNamedQuery

      public void setNamedQuery(String namedQuery)
      Parameters:
      namedQuery - name of a jpa named query
    • setEntityClass

      public void setEntityClass(Class<E> entityClazz)
      Parameters:
      entityClazz - name of a jpa entity class
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Throws:
      Exception