Summer.Batch.Extra.Delegating.DelegatingBufferingItemReader< T > Class Template Reference

This class delegates reading to the inner reader and keeps track of the next record to read, in order to know if the current one is the last one The next record to read is then buffered to be returned next time. The "last one" information is saved in the step context. More...

Inheritance diagram for Summer.Batch.Extra.Delegating.DelegatingBufferingItemReader< T >:
Summer.Batch.Infrastructure.Item.IItemStreamReader< T >

Public Member Functions

void Open (ExecutionContext executionContext)
 Simply delegating to the inner buffered reader. More...
 
void Update (ExecutionContext executionContext)
 Simply delegating to the inner buffered reader. More...
 
void Close ()
 Simply delegating to the inner buffered reader. More...
 
void Flush ()
 Flushes the delegate writer if it is an instance of IItemStream. More...
 
Read ()
 Read through delegate, buffering records to always have on more and be able to indicate if current one is the last one. More...
 
virtual void Dispose ()
 Releases the resources used by the reader. More...
 

Protected Member Functions

void Dispose (bool disposing)
 Actually disposes the current object. More...
 

Properties

IItemReader< T > Delegate [set]
 The delegate, i.e. the real reader that is buffered. More...
 

Detailed Description

This class delegates reading to the inner reader and keeps track of the next record to read, in order to know if the current one is the last one The next record to read is then buffered to be returned next time. The "last one" information is saved in the step context.

Template Parameters
T The type of objects read by the reader
Type Constraints
T :class 

Member Function Documentation

Simply delegating to the inner buffered reader.

Exceptions
ItemStreamException 
virtual void Summer.Batch.Extra.Delegating.DelegatingBufferingItemReader< T >.Dispose ( )
virtual

Releases the resources used by the reader.

void Summer.Batch.Extra.Delegating.DelegatingBufferingItemReader< T >.Dispose ( bool  disposing)
protected

Actually disposes the current object.

Parameters
disposingIndicates whether the method was invoked from the IDisposable.Dispose implementation or from the finalizer

Flushes the delegate writer if it is an instance of IItemStream.

Simply delegating to the inner buffered reader.

Parameters
executionContextthe execution context
Exceptions
ItemStreamException 

Read through delegate, buffering records to always have on more and be able to indicate if current one is the last one.

Returns
the read record

Simply delegating to the inner buffered reader.

Parameters
executionContext
Exceptions
ItemStreamException 

Property Documentation

The delegate, i.e. the real reader that is buffered.


The documentation for this class was generated from the following file:
  • Summer.Batch.Extra/Delegating/DelegatingBufferingItemReader.cs