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

Change Query API to make use of generics to avoid casting execute() results

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • JDO 3.2
    • api, specification, tck
    • None

    Description

      The query API is dated, requiring casting of results to the required type.
      Let's make use of generics etc and remove the pain. This will mean changing
      the API so that the resultClass (and possibly more) will need passing into the
      execute() method(s). Could also specify parameters via setter rather than just on the execute.

      See JDO-652 also, we need to have a consistent way of executing queries whether created using strings or typesafe, so that no casting of results is needed with either

      Attachments

        1. JDO-736.patch
          2 kB
          Andy Jefferson

        Activity

          People

            mbo Michael Bouschen
            andyj Andy Jefferson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: