org.springframework.batch.item.database.orm
Class AbstractJpaQueryProvider
java.lang.Object
org.springframework.batch.item.database.orm.AbstractJpaQueryProvider
- All Implemented Interfaces:
- JpaQueryProvider, InitializingBean
- Direct Known Subclasses:
- JpaNativeQueryProvider
public abstract class AbstractJpaQueryProvider
- extends Object
- implements JpaQueryProvider, InitializingBean
Abstract JPA Query Provider to serve as a base class for all JPA
Query
providers.
- Since:
- 2.1
- Author:
- Anatoly Polinsky, Dave Syer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractJpaQueryProvider
public AbstractJpaQueryProvider()
setEntityManager
public void setEntityManager(EntityManager entityManager)
Public setter to override the entityManager that was created by this
HibernateQueryProvider
. This is currently needed to allow
HibernateQueryProvider
to participate in a user's managed transaction.
- Specified by:
setEntityManager
in interface JpaQueryProvider
- Parameters:
entityManager
-
getEntityManager
protected EntityManager getEntityManager()
Getter for EntityManager
- Returns:
- entityManager the injected
EntityManager
Copyright © 2013 SpringSource. All Rights Reserved.