Re: Passing null to makePersistent, detachCopy, makeTransient etc

2006-10-04 Thread Craig L Russell
Hi Andy, On Oct 4, 2006, at 6:30 AM, Andy Jefferson wrote: Hi, Basic stuff here ;-) ... what is the expected behaviour when calling PM.detachCopy(null); ? is it to return a null, or throw a JDOUserException ? Same applies to any of the basic PM persistence methods (makePersistent, deletePe

Re: Passing null to makePersistent, detachCopy, makeTransient etc

2006-10-04 Thread Andy Jefferson
> I would expect they return null. I found the following in the spec, > section "12.6 Interface PersistenceManager" on page 110": Thanks Michael! That's what they do but just couldn't find that section to make my mind up :-) -- Andy

Re: Passing null to makePersistent, detachCopy, makeTransient etc

2006-10-04 Thread Michael Bouschen
Hi Andy, I would expect they return null. I found the following in the spec, section "12.6 Interface PersistenceManager" on page 110": Null management In the APIs that follow, Object[] and Collection are permitted parameter types. As these may contain nulls, the following rules apply. Null ar

Passing null to makePersistent, detachCopy, makeTransient etc

2006-10-04 Thread Andy Jefferson
Hi, Basic stuff here ;-) ... what is the expected behaviour when calling PM.detachCopy(null); ? is it to return a null, or throw a JDOUserException ? Same applies to any of the basic PM persistence methods (makePersistent, deletePersistent, etc). Can't find an explicit statement in the spec for