If you're really updating a single value for a single ID, you shouldn't use jOOQ's UpdatableRecord
for the task to avoid issuing two queries. The simplest solution is this:
create.update(USER_FACTORS)
.set(USER_FACTORS.VALUE, value)
.where(USER_FACTORS.FACTOR_ID.eq(factorId))
.execute();
See the manual's section about the UPDATE
statement. If you're planning on doing more sophisticated updates, you can also try using jOOQ's MERGE
statement support, although in this example, I don't think you'll need MERGE