Hi Daniele, Thanks for your message.
>From an API design perspective, I'm not convinced we need this overload. Think of the implications this would have on API surface, because we would have to add similar overloads everywhere for consistency reasons. Having said so, you could use a converter on your NAME column, to make that column of type Field<SystemPlugin>. Or you use the existing getValues(?, Converter) methods. Or you could use fetch(r -> new SystemPlugin(r.get(SYSTEM_PLUGIN.name))); I hope this helps, Lukas On Wed, Feb 12, 2020 at 12:45 PM Daniele Antonini < [email protected]> wrote: > Hi, > > not real problem, just a "Hey I was expeecting this method here but I > haven't found", so is there any reason why jooq Result.getValues() do not > accept a Functional interface? > > Now I have to write: > > dsl.select(SYSTEM_PLUGIN.NAME)// > .from(SYSTEM_PLUGIN) // > .join(WORKGROUP_SYSTEM_PLUGIN)// > .on(SYSTEM_PLUGIN.ID.eq(WORKGROUP_SYSTEM_PLUGIN.SYSTEM_PLUGIN_ID)) > // > .where(WORKGROUP_SYSTEM_PLUGIN.WORKGROUP_ID.eq(workgroupId)) > .fetch() // > .getValues(SYSTEM_PLUGIN.NAME) > .stream() > .map(name -> new SystemPlugin(name)) > .collect(toList()) > > Instead of: > > dsl.select(SYSTEM_PLUGIN.NAME)// > .from(SYSTEM_PLUGIN) // > .join(WORKGROUP_SYSTEM_PLUGIN)// > .on(SYSTEM_PLUGIN.ID.eq(WORKGROUP_SYSTEM_PLUGIN.SYSTEM_PLUGIN_ID)) > // > .where(WORKGROUP_SYSTEM_PLUGIN.WORKGROUP_ID.eq(workgroupId)) > .fetch() // > .getValues(SYSTEM_PLUGIN.NAME, name -> new SystemPlugin(name)) > > Am I asking too much ? > > Cheers > -- > Daniele > > -- > 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]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jooq-user/CAA1VVpGWStBoD%2BEdhyDWJGZU5xw7z6WZUvDP%3DC15u9HPph3dyg%40mail.gmail.com > <https://groups.google.com/d/msgid/jooq-user/CAA1VVpGWStBoD%2BEdhyDWJGZU5xw7z6WZUvDP%3DC15u9HPph3dyg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/CAB4ELO71g-H5ftia1z7fsrSV2D3X4OvpMP8LbZc8JiUcBFhD6g%40mail.gmail.com.
