[jboss-jira] [JBoss JIRA] (DROOLS-31) RowAdapter should not throw Exception when Object not found
Ryan Nideffer (JIRA)
jira-events at lists.jboss.org
Thu Feb 7 14:24:51 EST 2013
Ryan Nideffer created DROOLS-31:
-----------------------------------
Summary: 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
Reporter: Ryan Nideffer
Assignee: Mark Proctor
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
More information about the jboss-jira
mailing list