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 >:
Summer.Batch.Infrastructure.Item.IItemStreamWriter< 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

Simply delegating to the inner conditioned writer

virtual void Summer.Batch.Extra.Delegating.DelegatingConditionalItemWriter< TT >.Dispose ( )
virtual

Releases the resources used by the writer.

void Summer.Batch.Extra.Delegating.DelegatingConditionalItemWriter< TT >.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 conditioned writer

Parameters
executionContextthe execution context

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
itemsthe chunk to write
Exceptions
Exception 

Property Documentation


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