Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

RowMapperResultSetExtractor(T) Class

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.

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

System.Object
   RowMapperResultSetExtractor(T)

[Visual Basic]
Public Class RowMapperResultSetExtractor(Of T)
    Implements IResultSetExtractor(Of T)
[C#]
public class RowMapperResultSetExtractor<T> : IResultSetExtractor<T>

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Useful for the typical case of one object per row in the database table. The number of entries in the results list will match the number of rows.

Note that a RowMapper object is typically stateless and thus reusable; just the RowMapperResultSetExtractor adapter is stateful.

As an alternative consider subclassing MappingAdoQuery from the Spring.Data.Objects namespace: Instead of working with separate AdoTemplate and IRowMapper objects you can have executable query objects (containing row-mapping logic) there.

Requirements

Namespace: Spring.Data.Generic

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

See Also

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