Re: How do you delete a row from the db?

From: Todd O'Bryan (toddobrya..ac.com)
Date: Wed Aug 04 2004 - 15:39:34 EDT

  • Next message: Jonathan Carlson: "Cloudscape going Open Source"

    I did screw it up...

    That's WRONG, WRONG, WRONG!!!!

    Robert's method is right. I knew I should have checked my code...

    Todd

    On Aug 4, 2004, at 3:30 PM, Timothy Fisher wrote:

    > Thanks for the quick replies.
    > I ended up using the method suggested by Robert (simply because his
    > reply came first  :) )  It worked well.
    > Do you know if there is any advantage to using one of these methods
    > over the other?
    >  
    > His method was to call the deleteObject method on DataContext, passing
    > in the object to be deleted.
    >  
    > Thanks,
    > Tim
    >
    > Todd O'Bryan <toddobrya..ac.com> wrote:
    > Yay!!! I get to answer my first Cayenne question...
    >
    > If the object whose row you want to delete is obj and dc is its
    > DataContext,
    >
    > obj.delete();
    > dc.commitChanges();
    >
    > (Now watch me have screwed something up.)
    >
    > Todd
    >
    > On Aug 4, 2004, at 3:12 PM, Timothy Fisher wrote:
    >
    > > I have a relatively simple question that I can't seem to find any
    > > answer for in the Cayenne documentation.
    > >  
    > > How do I execute the equivalent of a sql delete operation through
    > > cayenne.  In other words, I want to delete a row from the database. 
    > > How do I do this?
    > >  
    > > Thanks,
    > > Tim
    > >
    > > Do you Yahoo!?
    > > New and Improved Yahoo! Mail - Send 10MB messages!
    >
    > Do you Yahoo!?
    > New and Improved Yahoo! Mail - Send 10MB messages!



    This archive was generated by hypermail 2.0.0 : Wed Aug 04 2004 - 15:39:41 EDT