Implementation of T:IItemWriter that writes items in a database using a T:IQueryParameterSourceProvider to retrieve the parameter values for each update/insert. More...
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
Default constructor.
Member Function Documentation
void Summer.Batch.Infrastructure.Item.Database.DatabaseBatchItemWriter< T >.AfterPropertiesSet | ( | ) |
Checks that the required properties are correctly set.
Implements Summer.Batch.Common.Factory.IInitializationPostOperations.
void Summer.Batch.Infrastructure.Item.Database.DatabaseBatchItemWriter< T >.Write | ( | IList< T > | items | ) |
Writes the items in the database
- Parameters
-
items the items to write
Implements Summer.Batch.Infrastructure.Item.IItemWriter< T >.
Property Documentation
|
getset |
Whether to check if rows have actually been updated. Defaults to true (see default constructor).
|
set |
The ConnectionStringSettings used to connect to the database on which the query will executed.
|
getset |
The T:IQueryParameterSourceProvider that will provide a IQueryParameterSource for each item to write.
|
getset |
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