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...
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... | |
T | 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
void Summer.Batch.Extra.Delegating.DelegatingBufferingItemReader< T >.Close | ( | ) |
Simply delegating to the inner buffered reader.
- Exceptions
-
ItemStreamException
|
virtual |
Releases the resources used by the reader.
|
protected |
Actually disposes the current object.
- Parameters
-
disposing Indicates whether the method was invoked from the IDisposable.Dispose implementation or from the finalizer
void Summer.Batch.Extra.Delegating.DelegatingBufferingItemReader< T >.Flush | ( | ) |
Flushes the delegate writer if it is an instance of IItemStream.
void Summer.Batch.Extra.Delegating.DelegatingBufferingItemReader< T >.Open | ( | ExecutionContext | executionContext | ) |
Simply delegating to the inner buffered reader.
- Parameters
-
executionContext the execution context
- Exceptions
-
ItemStreamException
T Summer.Batch.Extra.Delegating.DelegatingBufferingItemReader< T >.Read | ( | ) |
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
void Summer.Batch.Extra.Delegating.DelegatingBufferingItemReader< T >.Update | ( | ExecutionContext | executionContext | ) |
Simply delegating to the inner buffered reader.
- Parameters
-
executionContext
- Exceptions
-
ItemStreamException
Property Documentation
|
set |
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