Map =>{fromDate=>2014-05-10,toDate=>2014-06-10,userId=25,type=>STAFF}
where (fromDate="2014-05-10" and toDate="2014-06-10" and userId=25 and type="STAFF")
public static Condition condition(Map<Field<?>, Object> map) {
Condition result = DSL.trueCondition();
for (Entry<Field<?>, Object> entry : map.entrySet()) {
result = result.and(((Field) entry.getKey()).eq(entry.getValue()));
}
return result;
}
DSL.using(configuration)
.select(...)
.from(...)
.where(condition(map))
.fetch();
--
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 jooq-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.