I would absolutely love to have methods in Fields like:
public T getValueFor(final Record record) {
return record.getValue(this);
}
It'd be really neat to have, along with all the other *Java8* lambdas, so
it could be used like follows:
final Result<Record> res = //...
res.stream().map(Tables.MY_TABLE.MY_FIELD::getValueFor).forEach(System.out::println);
I do realize my example does obviously not demonstrate the need for such a
feature, 'cause I could have just used
/*...*/.fetch(Tables.MY_TABLE.MY_FIELD);
instead. It's just intended for showing its potential usage.
What do you guys think?
--
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.