org.springframework.batch.item.database
Class HibernateCursorItemReaderIntegrationTests

java.lang.Object
  extended by AbstractTransactionalDataSourceSpringContextTests
      extended by org.springframework.batch.item.database.AbstractDataSourceItemReaderIntegrationTests
          extended by org.springframework.batch.item.database.HibernateCursorItemReaderIntegrationTests
Direct Known Subclasses:
HibernateCursorItemReaderStatefulIntegrationTests

public class HibernateCursorItemReaderIntegrationTests
extends AbstractDataSourceItemReaderIntegrationTests

Tests for HibernateCursorItemReader using StatelessSession.

Author:
Robert Kasanicky

Field Summary
 
Fields inherited from class org.springframework.batch.item.database.AbstractDataSourceItemReaderIntegrationTests
executionContext, reader
 
Constructor Summary
HibernateCursorItemReaderIntegrationTests()
           
 
Method Summary
protected  ItemReader createItemReader()
           
protected  boolean isUseStatelessSession()
           
 void testSetUseStatelessSession()
          Exception scenario.
 
Methods inherited from class org.springframework.batch.item.database.AbstractDataSourceItemReaderIntegrationTests
getConfigLocations, onSetUpInTransaction, onTearDownAfterTransaction, testInvalidRestore, testMultipleRestarts, testNormalProcessing, testRestart, testRestoreFromEmptyData, testRollback, testRollbackAndRestart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateCursorItemReaderIntegrationTests

public HibernateCursorItemReaderIntegrationTests()
Method Detail

createItemReader

protected ItemReader createItemReader()
                               throws Exception
Specified by:
createItemReader in class AbstractDataSourceItemReaderIntegrationTests
Returns:
configured input source ready for use
Throws:
Exception

isUseStatelessSession

protected boolean isUseStatelessSession()

testSetUseStatelessSession

public void testSetUseStatelessSession()
Exception scenario. HibernateCursorItemReader#setUseStatelessSession(boolean) can be called only in uninitialized state.



Copyright © 2008 SpringSource. All Rights Reserved.