Summer.Batch.Infrastructure.Item.Database.DatabaseBatchItemWriter< T > Class Template Reference

Implementation of T:IItemWriter that writes items in a database using a T:IQueryParameterSourceProvider to retrieve the parameter values for each update/insert. More...

Inheritance diagram for Summer.Batch.Infrastructure.Item.Database.DatabaseBatchItemWriter< T >:
Summer.Batch.Infrastructure.Item.IItemWriter< T > Summer.Batch.Common.Factory.IInitializationPostOperations

Public Member Functions

 DatabaseBatchItemWriter ()
 Default constructor. More...
 
void AfterPropertiesSet ()
 Checks that the required properties are correctly set. More...
 
void Write (IList< T > items)
 Writes the items in the database More...
 

Properties

ConnectionStringSettings ConnectionString [set]
 The ConnectionStringSettings used to connect to the database on which the query will executed. More...
 
string Query [get, set]
 The sql query. It is expected to be a insert or update query. More...
 
IQueryParameterSourceProvider< T > DbParameterSourceProvider [get, set]
 The T:IQueryParameterSourceProvider that will provide a IQueryParameterSource for each item to write. More...
 
bool AssertUpdates [get, set]
 Whether to check if rows have actually been updated. Defaults to true (see default constructor). More...
 

Detailed Description

Implementation of T:IItemWriter that writes items in a database using a T:IQueryParameterSourceProvider to retrieve the parameter values for each update/insert.

Template Parameters
T 
Type Constraints
T :class 

Constructor & Destructor Documentation

Member Function Documentation

Checks that the required properties are correctly set.

Implements Summer.Batch.Common.Factory.IInitializationPostOperations.

Writes the items in the database

Parameters
itemsthe items to write

Implements Summer.Batch.Infrastructure.Item.IItemWriter< T >.

Property Documentation

Whether to check if rows have actually been updated. Defaults to true (see default constructor).

ConnectionStringSettings Summer.Batch.Infrastructure.Item.Database.DatabaseBatchItemWriter< T >.ConnectionString
set

The ConnectionStringSettings used to connect to the database on which the query will executed.

The T:IQueryParameterSourceProvider that will provide a IQueryParameterSource for each item to write.

The sql query. It is expected to be a insert or update query.


The documentation for this class was generated from the following file:
  • Summer.Batch.Infrastructure/Item/Database/DatabaseBatchItemWriter.cs