Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IResultSetExtractor(T) Interface

Callback interface to process all results sets and rows in an AdoTemplate query method.

For a list of all members of this type, see IResultSetExtractor(T) Members .

[Visual Basic]
Public Interface IResultSetExtractor(Of T)
public interface IResultSetExtractor<T>

Types that implement IResultSetExtractor(T)

Type Description
RowMapperResultSetExtractor(T) Adapter implementation of the ResultSetExtractor interface that delegates to a RowMapper which is supposed to create an object for each row. Each object is added to the results List of this ResultSetExtractor.


Implementations of this interface perform the work of extracting results but don't need worry about managing ADO.NET resources, such as closing the reader.

This interface is mainly used within the ADO.NET framework. An IResultSetExtractor is usually a simpler choice for result set (DataReader) processing, in particular a RowMapperResultSetExtractor in combination with a IRowMapper.

Note: in contracts to a IRowCallbackHandler, a ResultSetExtractor is usually stateless and thus reusable, as long as it doesn't access stateful resources or keep result state within the object.


Namespace: Spring.Data.Generic

Assembly: Spring.Data (in Spring.Data.dll)

See Also

IResultSetExtractor(T) Members | Spring.Data.Generic Namespace