[
https://issues.jboss.org/browse/DROOLS-31?page=com.atlassian.jira.plugin....
]
Mario Fusco resolved DROOLS-31.
-------------------------------
Resolution: Won't Fix
You can know the name of the columns from the metadata. Moreover returning null is
semantically wrong because you won't be able to distinguish it from an actual result
returning null.
RowAdapter should not throw Exception when Object not found
-----------------------------------------------------------
Key: DROOLS-31
URL:
https://issues.jboss.org/browse/DROOLS-31
Project: Drools
Issue Type: Enhancement
Security Level: Public(Everyone can see)
Affects Versions: 5.5.0.Final
Reporter: Ryan Nideffer
Assignee: Mario Fusco
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira