In PostgreSQL you can use an expression which is able to make use of the column values for the given row to define the value in the set statement i.e
UPDATE some_table
SET col_a = (col_b != 1)
WHERE col_c = 'some val'
Is there a way to do this in JOOQ? - I've looked through the JOOQ documentation, but I can't see any reference to it