Interface JpaQueryProvider
- All Known Implementing Classes:
AbstractJpaQueryProvider,JpaNativeQueryProvider
public interface JpaQueryProviderInterface defining the functionality to be provided for generating queries for use with JPA
ItemReaders or other custom built artifacts.- Since:
- 2.1
- Author:
- Anatoly Polinsky, Dave Syer
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.persistence.QuerycreateQuery()Create the query object.voidsetEntityManager(javax.persistence.EntityManager entityManager)Provide anEntityManagerfor the query to be built.
Method Detail
createQuery
javax.persistence.Query createQuery()
Create the query object.
- Returns:
- created query
setEntityManager
void setEntityManager(javax.persistence.EntityManager entityManager)
Provide anEntityManagerfor the query to be built.- Parameters:
entityManager- to be used by theJpaQueryProvider.