2016-02-03 16:54 GMT+01:00 Marcel Overdijk <[email protected]>:

> One quick question though.
> Is it possible to create an empty condition or something similar?
>

Use DSL.trueCondition() for connecting an "empty" condition with AND, or
DSL.falseCondition() for connecting an "empty" condition with OR.

Alternatively, you can use DSL.condition(Operator, Condition...) or
DSL.condition(Operator, Collection<? extends Condition>). The resulting
condition will also generate trueCondition() or falseCondition(), if empty.

Of course, you can always create your own plain SQL "empty" condition via
DSL.condition("1 = 1") or DSL.condition("1 = 0").

Hope this helps,
Lukas

-- 
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.

Reply via email to