BATCH-1418: HibernateCursorItemReader now implements jumpToItem

This commit is contained in:
lucasward
2009-10-05 04:10:54 +00:00
parent cf06674008
commit d6d592c36d

View File

@@ -203,7 +203,14 @@ public class HibernateCursorItemReader<T> extends AbstractItemCountingItemStream
initialized = true;
}
@Override
protected void jumpToItem(int itemIndex) throws Exception {
for(int i = 0; i < itemIndex; i++){
cursor.next();
}
}
/**
* Close the cursor and hibernate session.
*/