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

From: Mike Kienenberger (mkienen..laska.net)
Date: Wed Aug 04 2004 - 15:37:57 EDT

  • Next message: Todd O'Bryan: "Re: How do you delete a row from the db?"

    Timothy Fisher <trfisherm..ahoo.com> 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?

    DataContext.deleteObject()

            http://www.objectstyle.org/cayenne/userguide/datactxt/statemanagement.html
            
    http://www.objectstyle.org/cayenne/1_0/api/cayenne/org/objectstyle/cayenne/access/DataContext.html

    You'll also want to look at the following modeler url:

            
    http://objectstyle.org/cayenne/modelerguide/modeling-object-layer/delete-rules.html



    This archive was generated by hypermail 2.0.0 : Wed Aug 04 2004 - 15:37:03 EDT