RESOLVED - issue BATCH-1340: Add Support for Native Queries to Jpa/Hibernate readers

Resolve cycle by adding new package
This commit is contained in:
dsyer
2010-01-14 11:02:53 +00:00
parent 3553cb24f5
commit c0384da608
16 changed files with 18 additions and 13 deletions

View File

@@ -25,6 +25,7 @@ import org.springframework.batch.item.ExecutionContext;
import org.springframework.batch.item.ItemReader;
import org.springframework.batch.item.ItemStream;
import org.springframework.batch.item.ItemStreamException;
import org.springframework.batch.item.database.orm.HibernateQueryProvider;
import org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.util.Assert;

View File

@@ -25,7 +25,8 @@ import org.hibernate.ScrollableResults;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.StatelessSession;
import org.springframework.batch.item.database.support.AbstractHibernateQueryProvider;
import org.springframework.batch.item.database.orm.AbstractHibernateQueryProvider;
import org.springframework.batch.item.database.orm.HibernateQueryProvider;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;
@@ -37,7 +38,7 @@ import org.springframework.util.StringUtils;
* @author Dave Syer
*
*/
class HibernateItemReaderHelper<T> implements InitializingBean {
public class HibernateItemReaderHelper<T> implements InitializingBean {
private SessionFactory sessionFactory;

View File

@@ -24,6 +24,7 @@ import org.hibernate.StatelessSession;
import org.springframework.batch.item.ExecutionContext;
import org.springframework.batch.item.ItemReader;
import org.springframework.batch.item.ItemStream;
import org.springframework.batch.item.database.orm.HibernateQueryProvider;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.util.ClassUtils;

View File

@@ -26,6 +26,7 @@ import javax.persistence.EntityTransaction;
import javax.persistence.Query;
import org.springframework.batch.item.ExecutionContext;
import org.springframework.batch.item.database.orm.JpaQueryProvider;
import org.springframework.dao.DataAccessResourceFailureException;
import org.springframework.util.Assert;
import org.springframework.util.ClassUtils;

View File

@@ -14,12 +14,11 @@
* limitations under the License.
*/
package org.springframework.batch.item.database.support;
package org.springframework.batch.item.database.orm;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.StatelessSession;
import org.springframework.batch.item.database.HibernateQueryProvider;
/**
* <p>Abstract Hibernate Query Provider to serve as a base class for all

View File

@@ -14,13 +14,11 @@
* limitations under the License.
*/
package org.springframework.batch.item.database.support;
package org.springframework.batch.item.database.orm;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import org.springframework.batch.item.database.JpaQueryProvider;
import org.springframework.batch.item.database.HibernateQueryProvider;
import org.springframework.beans.factory.InitializingBean;
/**

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.item.database.support;
package org.springframework.batch.item.database.orm;
import org.hibernate.Query;
import org.hibernate.SQLQuery;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.item.database;
package org.springframework.batch.item.database.orm;
import org.hibernate.Query;
import org.hibernate.Session;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.item.database.support;
package org.springframework.batch.item.database.orm;
import javax.persistence.Query;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.item.database;
package org.springframework.batch.item.database.orm;
import javax.persistence.EntityManager;
import javax.persistence.Query;