/** * Wind forward through the result set to the item requested. Also clears * the session every now and then (if stateful) to avoid memory problems. * The frequency of session clearing is the larger of the fetch size (if * set) and 100. * * @param itemIndex the first item to read * @throws Exception if there is a problem * @see AbstractItemCountingItemStreamItemReader#jumpToItem(int) */ @Override protected void jumpToItem(int itemIndex) throws Exception { int flushSize = Math.max(fetchSize, 100); helper.jumpToItem(cursor, itemIndex, flushSize); }
/** * Wind forward through the result set to the item requested. Also clears * the session every now and then (if stateful) to avoid memory problems. * The frequency of session clearing is the larger of the fetch size (if * set) and 100. * * @param itemIndex the first item to read * @throws Exception if there is a problem * @see AbstractItemCountingItemStreamItemReader#jumpToItem(int) */ @Override protected void jumpToItem(int itemIndex) throws Exception { int flushSize = Math.max(fetchSize, 100); helper.jumpToItem(cursor, itemIndex, flushSize); }