Summer.Batch.Data Namespace Reference

Namespaces

Classes

class  ConnectionProvider
 Implementation of IConnectionProvider that relies on ConnectionUtil to manager connections. More...
 
class  Converter
 Utility class for converting data to unify the type of the values read from the database providers. More...
 
class  DatabaseExtensionManager
 Static class to manage support to different databases. More...
 
class  DataRecordWrapper
 Utility class to handle data conversion from a IDataRecord. More...
 
class  Db2Extension
 Extension for DB2 support (provider name "IBM.Data.DB2"). More...
 
class  DbOperator
 Dedicated database operations. Most services that need to interact with a database should be using the methods exposed by this operator. More...
 
interface  IConnectionProvider
 Interface to provide a connection. The Connection property is expected to return an open connection, but implementatons have complete control over the lifetime of the connection. More...
 
interface  IDatabaseExtension
 Interface to add support for a database. Implementations should have a parameter-less constructor so they can be automatically registered by DatabaseExtensionManager. More...
 
class  OracleExtension
 Extension for Oracle support. More...
 
class  ParsedQuery
 A class for parsing parameters of an SQL query. Parameters are expected to be named and have '@' or ':' as a prefix. The specified IPlaceholderGetter is used to replace the parameters in the substituted query. More...
 
class  SqlServerExtension
 Extension for SQL Server support (provider name "System.Data.SqlClient"). More...
 

Functions

delegate void RowHandler (IDataRecord dataRecord)
 An action executed on each data record in a query. More...
 
delegate T RowMapper< out T > (IDataRecord dataRecord, int rowNumber)
 A function for mapping a row to an element. More...
 
delegate T DataReaderExtractor< out T > (IDataReader dataReader)
 A function that extracts an element from a data reader. More...
 

Function Documentation

delegate T Summer.Batch.Data.DataReaderExtractor< out T > ( IDataReader  dataReader)

A function that extracts an element from a data reader.

Template Parameters
T the type of the extracted element
Parameters
dataReadera datareader to extract the element from
Returns
the extracted element
delegate void Summer.Batch.Data.RowHandler ( IDataRecord  dataRecord)

An action executed on each data record in a query.

Parameters
dataRecorda data record representing a row
delegate T Summer.Batch.Data.RowMapper< out T > ( IDataRecord  dataRecord,
int  rowNumber 
)

A function for mapping a row to an element.

Template Parameters
T The type of the mapped element
Parameters
dataRecorda data record representing a row
rowNumberthe current row number
Returns
the mapped element