Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-956 OpenJPA 2.0 iteration 5 primary task
  3. OPENJPA-878

Support default query hint for query timeout

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-M2
    • 2.0.0-M2
    • query
    • None

    Description

      Support default query hint for query timeout as defined in section 3.6.4 of the spec.
      A new hint can be supplied for Java SE and Java EE environments -
      javax.persistence.query.timeout // query timeout in seconds
      Can be used in the following:
      Methods - Query.setHint()
      Annotations (via QueryHint) - NamedQuery, NativeNamedQuery
      Properties - Persistence.createEntityManagerFactory, persistence.xml
      The following methods can return a javax.persistence.QueryTimeoutException: getResultList(), getSingleResult(), executeUpdate().
      If a QTE is thrown, the current transaction (if active) should not be marked for rollback.
      If the DB query timeout causes a rollback, then a PersistenceException should be thrown instead (see 3.6.1).

      Attachments

        1. OPENJPA-878-20090305-draft.patch
          71 kB
          Donald Woods
        2. OPENJPA-878-20090306.patch
          71 kB
          Donald Woods
        3. OPENJPA-878-20090310.patch
          165 kB
          Donald Woods
        4. OPENJPA-878-20090310-eclipse.patch
          78 kB
          Donald Woods
        5. OPENJPA-878-20090311.patch
          78 kB
          Donald Woods
        6. OPENJPA-878-20090311.patch
          165 kB
          Donald Woods
        7. OPENJPA-878-20090311-eclipse.patch
          163 kB
          Donald Woods
        8. OPENJPA-878-20090312-minimal.patch
          57 kB
          Donald Woods
        9. OPENJPA-878-20090313.patch
          79 kB
          Donald Woods
        10. OpenJPA-878-db2.tgz
          5 kB
          Donald Woods
        11. OpenJPA-878-db2.zip
          4 kB
          Donald Woods
        12. OPENJPA-878-DBDictionary.patch
          2 kB
          Donald Woods
        13. OPENJPA-878-docs-20090311.patch
          1 kB
          Donald Woods
        14. OPENJPA-878-serialVersionUID.patch
          4 kB
          Donald Woods
        15. OPENJPA-878-TestQueryTimeout.patch
          6 kB
          Donald Woods

        Issue Links

          Activity

            People

              drwoods Donald Woods
              drwoods Donald Woods
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: