Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-617

JDOQL : Bulk Update and Delete Operations

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • JDO 3.1
    • None
    • None

    Description

      It would be usefull that the JDO Query Langage could do some UPDATE and DELETE on Persistent Object like this :

      UPDATE [<candidate-class>] SET item1=<newValue>, item2=<newValue> [WHERE <filter>]

      The new_value specified for an update operation must be compatible in type with the state-field to
      which it is assigned.
      Bulk Update must modify the value of the version column and refresh Level1 and Level2 cache.

      DELETE FROM [<candidate-class>] [WHERE <filter>]
      By default Bulk Delete is appy on the specified class and its subclasses and doesn't do cascade delete.
      A keyword like CASCADE must be set if we want to does a cascade delete :
      DELETE CASCADE FROM [<candidate-class>] [WHERE <filter>]

      Attachments

        Issue Links

          Activity

            People

              clr Craig L Russell
              esultan Eric SULTAN
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: