Summer.Batch.Extra.Ebcdic.EbcdicFileWriter< T > Class Template Reference

A Spring Batch writer for a EBCDIC files. It writes business object as EBCDIC records, according to a copybook and a mapper. More...

Inheritance diagram for Summer.Batch.Extra.Ebcdic.EbcdicFileWriter< T >:
Summer.Batch.Infrastructure.Item.Support.AbstractItemStreamItemWriter< T > Summer.Batch.Extra.Ebcdic.ICopybookIo Summer.Batch.Infrastructure.Item.File.IResourceAwareItemWriterItemStream< T > Summer.Batch.Common.Factory.IInitializationPostOperations Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport Summer.Batch.Infrastructure.Item.IItemStreamWriter< T > Summer.Batch.Infrastructure.Item.IItemStreamWriter< T > Summer.Batch.Infrastructure.Item.IItemStream Summer.Batch.Infrastructure.Item.IItemStream Summer.Batch.Infrastructure.Item.IItemWriter< T > Summer.Batch.Infrastructure.Item.IItemStream Summer.Batch.Infrastructure.Item.IItemWriter< T >

Public Member Functions

 EbcdicFileWriter ()
 Default constructor More...
 
override void Open (ExecutionContext executionContext)
 
override void Update (ExecutionContext executionContext)
 
override void Close ()
 
override void Flush ()
 Flushes the underlying stream. More...
 
override void Write (IList< T > items)
 
void ChangeCopyBook (string copybook)
 Changes the current copybook More...
 
void AfterPropertiesSet ()
 
- Public Member Functions inherited from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport
string GetExecutionContextKey (string key)
 Transform the given key to use the name of this instance as prefix. More...
 
virtual void Dispose ()
 

Properties

IResource Resource [set]
 Resource property. More...
 
IList< IResourceCopybooks [get, set]
 List of copybooks property. More...
 
EbcdicWriterMapper EbcdicWriterMapper [set]
 EbcdicWriterMapper property. More...
 
bool AppendAllowed [set]
 Indicates that the target resource should be appended if it already exists. Default is false. More...
 
bool DeleteIfExist [set]
 Indicates that the target resource should be deleted if it exists. Ignored if P:AppendAllowed is true. Default is false. More...
 
bool DeleteIfEmpty [set]
 Indicates that the target resource should be deleted if no lines were written. Default is false. More...
 
bool SaveState [set]
 Indicates that the state of the item writer should be savec in the execution context when M:Update is called. More...
 
bool WriteRdw [set]
 Whether to write a Record descriptor word or not. More...
 
EbcdicEncoder.DefaultValue DefaultValue [set]
 Default value for encoder. More...
 
- Properties inherited from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport
string Name [set]
 The name of the component that will be used as prefix for keys in the execution context. More...
 
- Properties inherited from Summer.Batch.Infrastructure.Item.File.IResourceAwareItemWriterItemStream< T >
IResource Resource [set]
 The T:Summer.Batch.Common.IO.IResource to write to. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport
virtual void Dispose (bool disposing)
 Does the actual dipose, delegating to Close(); More...
 

Detailed Description

A Spring Batch writer for a EBCDIC files. It writes business object as EBCDIC records, according to a copybook and a mapper.

Template Parameters
T the type of the business objects to read
Type Constraints
T :class 

Constructor & Destructor Documentation

Member Function Documentation

void Summer.Batch.Extra.Ebcdic.EbcdicFileWriter< T >.AfterPropertiesSet ( )

See also
IInitializationPostOperations::AfterPropertiesSet

Implements Summer.Batch.Common.Factory.IInitializationPostOperations.

void Summer.Batch.Extra.Ebcdic.EbcdicFileWriter< T >.ChangeCopyBook ( string  copybook)

Changes the current copybook

See also
ICopybookIo::ChangeCopyBook
Parameters
copybookthe simple name (without the extension) of the copybook to use

Implements Summer.Batch.Extra.Ebcdic.ICopybookIo.

override void Summer.Batch.Extra.Ebcdic.EbcdicFileWriter< T >.Close ( )
virtual

See also
ItemStream::Close

Reimplemented from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport.

override void Summer.Batch.Extra.Ebcdic.EbcdicFileWriter< T >.Flush ( )
virtual

Flushes the underlying stream.

Reimplemented from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport.

override void Summer.Batch.Extra.Ebcdic.EbcdicFileWriter< T >.Open ( ExecutionContext  executionContext)
virtual

See also
ItemStream::Open
Parameters
executionContext

Reimplemented from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport.

override void Summer.Batch.Extra.Ebcdic.EbcdicFileWriter< T >.Update ( ExecutionContext  executionContext)
virtual

See also
ItemStream::Update
Parameters
executionContext

Reimplemented from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport.

override void Summer.Batch.Extra.Ebcdic.EbcdicFileWriter< T >.Write ( IList< T >  items)
virtual

See also
AbstractItemStreamItemWriter::Write
Parameters
items

Implements Summer.Batch.Infrastructure.Item.Support.AbstractItemStreamItemWriter< T >.

Property Documentation

bool Summer.Batch.Extra.Ebcdic.EbcdicFileWriter< T >.AppendAllowed
set

Indicates that the target resource should be appended if it already exists. Default is false.

List of copybooks property.

Default value for encoder.

bool Summer.Batch.Extra.Ebcdic.EbcdicFileWriter< T >.DeleteIfEmpty
set

Indicates that the target resource should be deleted if no lines were written. Default is false.

bool Summer.Batch.Extra.Ebcdic.EbcdicFileWriter< T >.DeleteIfExist
set

Indicates that the target resource should be deleted if it exists. Ignored if P:AppendAllowed is true. Default is false.

Resource property.

Indicates that the state of the item writer should be savec in the execution context when M:Update is called.

Whether to write a Record descriptor word or not.


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