SQL Update case clause support by jOOQ

Viewed 185

Please advise if there is a support for case clause in SQL update statement by jOOQ library? https://www.jooq.org/ I mean what would be the equivalent for

UPDATE TABLE1 SET status = case 
            when status = 'status1' then 'status2'
            when status = 'status2' then 'status3'
            end

I saw examples for select statement in their tutorial but non for update unfortunately. Could it be something like?

DSL.update(DSL.table("table1")).set(DSL.field("status"), DSL.case(...))
1 Answers
Related