Should an exception be thrown when a delete is
requested on an object that doesn't exist in the
database?  I think so, but the code currently does
nothing.  Ideas and comments?

I see the following in JdbcAccessImpl.executeDelete():

// @todo: clearify semantics
            // thma: the following check is not
secure. The object could be deleted *or* changed.
            // if it was deleted it makes no sense to
throw an OL exception.
            // does is make sense to throw an OL
exception if the object was changed?
            if (stmt.executeUpdate() == 0 &&
cld.isLocking()) //BRJ
            {
                //throw new
OptimisticLockException("Object has been modified by
someone else", obj);
            }

Thanks, Gary


        
                
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to