On Tue, Feb 18, 2014 at 10:31 AM, Ben Hood <[email protected]> wrote: > Is there a way to have JOOQ do something like > > ctx.select().patch(EXCEL_FIELD, > SOME_OTHER_FIELD).from(ranked).where(RANK.le(10)); > > Such that EXCEL_FIELD and SOME_OTHER_FIELD get reformatted according > to their custom definitions, but all of the other fields stay as is?
I forgot to mention that one of the ways you could emulate this is to programmatically patch the fields from the object in this example called ranked and then supply the patched list back to the fluent API: List<Field> patched = patchRanked(ranked); // custom function to patch a list ctx.select(patched).from(ranked).where(RANK.le(10)); In this light, having some kind of lambda support would make this code less verbose, but the main value add is that you could factor this in Java as well. -- 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/groups/opt_out.
