Mapper

Maps parameters, and results to a class specified by T.

Constructors

this
this(ResultSet resultSet)
Undocumented in source.
this
this(PreparedStatement statement)
Undocumented in source.

Members

Functions

getBindName
string getBindName(T model)
Undocumented in source. Be warned that the author may not have intended to support it.
map
T map()

Maps each property of T to a column in a ResultSet. If T is a class, it will new it up and map all of the public fields. If T is a primitive type it will assume the result of the query boils down to a single value and returns that.

map
void map(T model, string[] map)

Maps a class into a PreparedStatement

mapArray
T[] mapArray()

Maps an array of models where the ResultSet is expected to have multiple rows

mapOne
T mapOne()

Maps a single T where the ResultSet is expected to have only one row.

Inherited Members

From MapperBase

resultSet
ResultSet resultSet;
Undocumented in source.
statement
PreparedStatement statement;
Undocumented in source.
findColumn
int findColumn(string name)

Finds the index of a column.

Meta