Re: persistent.delete() ?

Michael Nash <[email protected]> Tue, 24 Aug 2004 14:06:33 -0400
Newsgroups gmane.comp.java.keel.user
Organization JGlobal Limited
Message-ID <[email protected]>
Steve:

> If DefaultPersistence has no delete criteria, what should the behaviour be?

Currently, delete should only happen if the record has a key - e.g. it
should only delete the "current" instance of the record. If a "retrieve"
or "find" has not been done (and there is no key), IMO it should throw
an exception.

In other words, delete is a "delete *THIS* record" method, not a "delete
*THESE* records" so to speak.

Mike
> 
> Regards,
> Steve
>