Interface JpaQueryProvider
- All Known Implementing Classes:
AbstractJpaQueryProvider
,JpaNamedQueryProvider
,JpaNativeQueryProvider
public interface JpaQueryProvider
Interface defining the functionality to be provided for generating queries for use with
JPA ItemReader
s or other custom built artifacts.
- Since:
- 2.1
- Author:
- Anatoly Polinsky, Dave Syer, Mahmoud Ben Hassine
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.persistence.Query
Create the query object.void
setEntityManager
(jakarta.persistence.EntityManager entityManager) Provide anEntityManager
for the query to be built.
-
Method Details
-
createQuery
jakarta.persistence.Query createQuery()Create the query object.
- Returns:
- created query
-
setEntityManager
void setEntityManager(jakarta.persistence.EntityManager entityManager) Provide anEntityManager
for the query to be built.- Parameters:
entityManager
- to be used by theJpaQueryProvider
.
-