This ticket is implemented on GitHub master, and will be included in jOOQ 3.0
Cheers Lukas 2012/11/26 Lukas Eder <[email protected]>: > Yes, why not. That would make the API a bit more consistent. There are > already similar methods around: > http://www.jooq.org/javadoc/latest/org/jooq/Cursor.html#fetchOneInto(java.lang.Class) > > Registered as #1984: > https://github.com/jOOQ/jOOQ/issues/1984 > > 2012/11/26 Ryan How <[email protected]>: >> Hi, >> >> I'd probably just implement this myself, but it means setting up the jooq >> project so I can hack the source... >> >> Anyway, I reckon .fetchOneInto() to match the fetchInto() would be really >> handy. I find myself either calling fetchOne(), then checking for null, then >> calling .into() or calling fetchInto(), then if size > 0 .get(0). Hope that >> makes sense :). >> >> What you do think? >> >> Thanks, Ryan >>
