Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-31

RowAdapter should not throw Exception when Object not found

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 5.5.0.Final
    • None
    • None

      RowAdapter throws an undocumented, unchecked exception if an identifier passed to get() does not exist as a row in the returned query.

      This pattern is not ideal, and instead should simply return null, thereby allowing clients to easily skip non-existent objects much more cleanly and more lightweight than exception handling.

      Additionally, the ViewChangedEventListener interface does not provide a way to know which query was invoked for the callback. It is cumbersome to create per-query ViewChangedEventListener objects which allows you to avoid querying identifiers that you know exist in the query result callback.

            mfusco@redhat.com Mario Fusco
            purecharger Ryan Nideffer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: