Summer.Batch.Extra.Delegating.DelegatingConditionalItemWriter< TT > Class Template Reference
This class delegates writing to the inner writer, checking a condition through the supplied ItemCondition for each element to decide if it must be written. More...
Inheritance diagram for Summer.Batch.Extra.Delegating.DelegatingConditionalItemWriter< TT >:
Public Member Functions | |
void | Open (ExecutionContext executionContext) |
Simply delegating to the inner conditioned writer More... | |
void | Update (ExecutionContext executionContext) |
Simply delegating to the inner conditioned writer More... | |
void | Close () |
Simply delegating to the inner conditioned writer More... | |
void | Flush () |
Flushes the delegate writer if it is an instance of IItemStream. More... | |
void | Write (IList< TT > items) |
Writes through the inner writer, effectively writing only if condition is satisfied. More... | |
virtual void | Dispose () |
Releases the resources used by the writer. More... | |
Protected Member Functions | |
void | Dispose (bool disposing) |
Actually disposes the current object. More... | |
Properties | |
IItemWriter< TT > | Delegate [set] |
DElegate property. More... | |
IItemCondition< TT > | Condition [set] |
Condition property. More... | |
Detailed Description
This class delegates writing to the inner writer, checking a condition through the supplied ItemCondition for each element to decide if it must be written.
- Template Parameters
-
TT The type of objects written by the writer
- Type Constraints
-
TT : class
Member Function Documentation
void Summer.Batch.Extra.Delegating.DelegatingConditionalItemWriter< TT >.Close | ( | ) |
Simply delegating to the inner conditioned writer
|
virtual |
Releases the resources used by the writer.
|
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.DelegatingConditionalItemWriter< TT >.Flush | ( | ) |
Flushes the delegate writer if it is an instance of IItemStream.
void Summer.Batch.Extra.Delegating.DelegatingConditionalItemWriter< TT >.Open | ( | ExecutionContext | executionContext | ) |
Simply delegating to the inner conditioned writer
- Parameters
-
executionContext the execution context
void Summer.Batch.Extra.Delegating.DelegatingConditionalItemWriter< TT >.Update | ( | ExecutionContext | executionContext | ) |
Simply delegating to the inner conditioned writer
- Parameters
-
executionContext
void Summer.Batch.Extra.Delegating.DelegatingConditionalItemWriter< TT >.Write | ( | IList< TT > | items | ) |
Writes through the inner writer, effectively writing only if condition is satisfied.
- Parameters
-
items the chunk to write
- Exceptions
-
Exception
Property Documentation
|
set |
Condition property.
|
set |
DElegate property.
The documentation for this class was generated from the following file:
- Summer.Batch.Extra/Delegating/DelegatingConditionalItemWriter.cs