Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Convenience API missing: DSRequest.addToCriteria() with OperatorBase as parameter

    Hi Isomorphic,

    it would be great if you could add 3-param and 5-param versions of http://www.smartclient.com/smartgwte...lang.Object%29 using "OperatorBase operator" instead of "java.lang.String operator".

    It is easy to get the strings wrong, which does not lead to an run time error (e.g. "equal" vs. "equals"), so it is always good to have the compile-time check via (in this case) DefaultOperators.Equals.

    Thank you & best regards,
    Blama

    #2
    Hi Isomorphic,

    is it safe to use "DefaultOperators.XXX.getID()" if a method like DSRequest.addToCriteria(...) requests a String as operator instead of a OperatorBase?

    This is my workaround in order not write e.g. "equals" in the code.

    Best regards,
    Blama

    Comment

    Working...
    X