Hi Lukas,

but how would such an API be configured? How would it detect what kind of 
> predicate you want to have expressed given only an input record?
>
The current idea was to keep it as simple as possible and to provide a 
company object for each condition type ("like", ">", and so on). The 
subject is to implement a filter mechanism of a table, in each column you 
have one filter input as String. I'm building everything from scratch, thus 
I'm free how to implement it.

the obvious solution is to write your own QBE API
>
I have started to prototype such a function by my own, but I struggle to 
build the condition based on the sniped below, connected by "and".

public static Condition likeCondition(Record record) {
    Field<?>[] fields = record.fields();
    
    for(int i = 0; i < fields.length; ++i) {
        fields[i].like(record.get(i).toString());
    }
    return null;
}

Do you have any suggestions? ( I can't create a Condition object, thats the 
problem thus far)

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jooq-user/6d0b6777-df48-478e-a97f-7673fed97fe7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to