openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donald Woods (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OPENJPA-878) Support default query hint for query timeout
Date Mon, 09 Feb 2009 16:12:59 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671906#action_12671906
] 

Donald Woods commented on OPENJPA-878:
--------------------------------------

A new hint can be supplied -
    javax.persistence.query.timeout     // time in seconds
Can be used in the following:
    Methods - Query.setHint()
    Annotations - 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.


> Support default query hint for query timeout
> --------------------------------------------
>
>                 Key: OPENJPA-878
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-878
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: query
>    Affects Versions: 2.0.0
>            Reporter: Donald Woods
>            Assignee: Donald Woods
>             Fix For: 2.0.0
>
>
> Support default query hint for query timeout as defined in section 3.6.4 of the spec.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message