db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Bengtson <e...@jpox.org>
Subject getObjectsById
Date Sun, 12 Sep 2010 11:14:30 GMT

I was wondering the behaviour of getObjectsById operatiob upon
different argument values.

1st) getObjectsById(Collections.EMPTY_SET),  the user has not done any
invalid operation on the interface, thus it should just return another
empty collection. Currently, Datanucleus raises an exception.

2nd) when getObjectsById(null) is invoked, it raises a JDOUserException.

3rd) getObjectsById(Object... oids) where oids == null, it raises a

4th) getObjectsById(Object... oids) or
getObjectsById(Collections.EMPTY_SET), where one of the id elements is
null, it raises a JDOUserException.

Any thoughts?


View raw message