Feature ideaGenerate a method like
public Condition getPrimaryKeyCondition(String strongly, Integer typed, LocalDateTime parameters) {
return FOO.STRONGLY.eq(strongly).and(FOO.TYPED.eq(typed)).and(FOO.PARAMETERS.eq(parameters));
}
on each implementation of the Table interface.
Benefits
This method would allow to write type safe and compile time safe statements that deal with the primary key, for example:
int numberOfDeletedRecords = dsl.delete(FOO).where(FOO.getPrimaryKeyCondition(strongly, typed, parameters)).execute();
Also, it gets rid of the boilerplate code of creating the combined where condition, which might be hard to read but easy to mess up for a human developer.