Hi, 

To fetch a query as custom type using RecordMapper, an intermediary Record 
object has to be created and discarded for each row:

ResultSet row -> Record -> mapped to custom type


This adds unnecessary overhead.

Is there a way to map the JDBC ResultSet directly?

fetchResultSet works but I'm looking for something that fits into JOOQ's 
(excellent) fluent API. 

Something like 

List<T> fetch(ResultSetMapper<T>)

Where ResultSetMapper<T> has a single method and can be registered like 
RecordMapper.

T map(ResultSet, Field[] fields) throws SQLException;

Thanks!

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to