EJS
02-26-2008, 09:43 AM
Hi,
Currently working with the AdoSupport and the AdoTemplate, I could not really find out when to use a RowMapper and when to use a ResultSetExtractor.
Is this choice only based on preference, or is there any difference in e.g. performance.
Further, the RowMapper and ResultSetExtractor samples show getting column values from the IDataReader by column ordinal, and not by column name. Is there a performance penalty when using the column name? This does allow for a more flexible design that is a little bit less dependent on the order specified in the select statement.
Thanks in advance,
EJ
Currently working with the AdoSupport and the AdoTemplate, I could not really find out when to use a RowMapper and when to use a ResultSetExtractor.
Is this choice only based on preference, or is there any difference in e.g. performance.
Further, the RowMapper and ResultSetExtractor samples show getting column values from the IDataReader by column ordinal, and not by column name. Is there a performance penalty when using the column name? This does allow for a more flexible design that is a little bit less dependent on the order specified in the select statement.
Thanks in advance,
EJ