On 6/20/19 6:56 AM, Lukas Eder wrote:
The way to go here in jOOQ is to write the following jOOQ logic:
SYS.ALL_OBJECTS.TYPE.in(inline("S"), inline("U"), inline("v"))
Since I write 80% kotlin these days when I’m using the JVM, this is how
I would solve it:
SYS.ALL_OBJECTS.TYPE
.in(*listOf(“S”, “U”, "v”).map(::inline).toTypedArray())
The leading * is the spread operator:
https://kotlinlang.org/docs/reference/functions.html#variable-number-of-arguments-varargs
More typing than `inlineAll`, but close enough that if it was me (and
Kotlin was available) I probably wouldn’t feel the need to add a special
purpose library function. The equivalent in Java is pretty long though,
and that probably is past the “ugh, we need a function to do this”
threshold...
--
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/d796a91b-1c38-7182-9fe1-5c27c08fd1c9%40mpierce.org.
For more options, visit https://groups.google.com/d/optout.