org.springframework.batch.item.database.orm
Class JpaNativeQueryProvider<E>
java.lang.Object
org.springframework.batch.item.database.orm.AbstractJpaQueryProvider
org.springframework.batch.item.database.orm.JpaNativeQueryProvider<E>
- Type Parameters:
E
- entity returned by executing the query
- All Implemented Interfaces:
- JpaQueryProvider, InitializingBean
public class JpaNativeQueryProvider<E>
- extends AbstractJpaQueryProvider
This query provider creates JPA Query
s from injected native SQL
queries. This is useful if there is a need to utilize database-specific
features such as query hints, the CONNECT keyword in Oracle, etc.
- Author:
- Anatoly Polinsky
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JpaNativeQueryProvider
public JpaNativeQueryProvider()
createQuery
public Query createQuery()
- Description copied from interface:
JpaQueryProvider
Create the query object.
- Returns:
- created query
setSqlQuery
public void setSqlQuery(String sqlQuery)
setEntityClass
public void setEntityClass(Class<E> entityClazz)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Throws:
Exception
Copyright © 2013 SpringSource. All Rights Reserved.