Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

RowMapperResultSetExtractor 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 Members .


[Visual Basic]
Public Class RowMapperResultSetExtractor
    Implements IResultSetExtractor
public class RowMapperResultSetExtractor : IResultSetExtractor

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.


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.


Namespace: Spring.Data.Core

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

See Also

RowMapperResultSetExtractor Members | Spring.Data.Core Namespace