You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Jeremy Bauer (JIRA)" <ji...@apache.org> on 2009/03/05 17:55:56 UTC

[jira] Created: (OPENJPA-957) Support lock timeout hint on applicable methods

Support lock timeout hint on applicable methods
-----------------------------------------------

                 Key: OPENJPA-957
                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
             Project: OpenJPA
          Issue Type: Sub-task
          Components: jpa
    Affects Versions: 2.0.0
            Reporter: Jeremy Bauer


This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Commented: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689140#action_12689140 ] 

Albert Lee commented on OPENJPA-957:
------------------------------------

This is a summary of the design points for the Query/EntityManager hint supports :

- Based on property Map<String,Object> definition, value of appropriate types and corresponding plugin aliases are valid property hint values. (E.g.

	props.put("openjpa.FetchPlan.Isolation", "serializable");
	props.put("openjpa.FetchPlan.Isolation", Connection.TRANSACTION_READ_UNCOMMITTED);
	props.put("openjpa.FetchPlan.Isolation", String.valueOf(Connection.TRANSACTION_READ_UNCOMMITTED));

- Hints specified in Query or EntityManager interface methods become effective when the corresponding functions are applied not when the hint is being set..  This means semantics (e.g. transaction) requirements for a hint to be compliant is verified when the function is applied not when the hint is set.

- FetchPlan processes hints that is specific to FetchPlan interface (E.g. LockMode to LockLevel type conversion) and passes the rest to FetchConfiguration for processing. FetchConfiguration handles type conversion and alias processing.

- Query.setHint() will not throw exception if hint is not recognized and is silently ignored.

- Hints specified in different run-time configuration follow the rules defined in "2.  Runtime Configuration" (http://openjpa.apache.org/builds/latest/docs/manual/ref_guide_conf_specify.html)

- If multiple hints with different prefixes of similar property are specified in the same property map in the Query and EntityManager interface methods (i.e. openjpa.*, openjpa.jdbc.*, openjpa.FetchPlan.* and javax.persistence.* ) the following precedence (from high to low) applies:
1,  javax.persistence.* 
2. openjpa.FetchPlan.* 
3. openjpa.jdbc.* 
4. openjpa.*
        (e.g. javax.persistence.lock.timeout overrides openjpa.FetchPlan.LockTimeout overrides openjpa.LockTimeout)

Albert Lee.

> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>            Assignee: Albert Lee
>         Attachments: OPENJPA_957.patch
>
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Commented: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681331#action_12681331 ] 

Albert Lee commented on OPENJPA-957:
------------------------------------

It would be good to support the lock timeout the way it is supposed to work. To do this properly, it will be db specific and hence DBDictionary needs to reflect this capability, if supported by the db.

Donald, thanks for verifying the timeout feature in 10.2.   We need to update the "Supported Databases"  section in the manual, either: bump up the support level to 10.2 or add a known limitation describe the query timeout will NOT work if 10.1 is used.

Albert Lee.

> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Commented: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680251#action_12680251 ] 

Donald Woods commented on OPENJPA-957:
--------------------------------------

Looks like the existing implementation (not defined in JPA 1.0 Spec and OpenJPA specific) is using setQueryTimeout() in PessimisticLockManager, which is a client side JDBC timeout function, while lock timeouts are implemented in the DB server. See -
DB2 - http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/admin/r0011874.htm
MS SQL - http://msdn.microsoft.com/en-us/library/aa213032(SQL.80).aspx
Derby - config property - http://db.apache.org/derby/docs/dev/devguide/cdevconcepts16400.html
Oracle - LOCKWAIT on the connection or on the DB
Also, the following discussion gives a good overview of the two and why apps should use both to handle unreliable network conditions -
http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/95755534-bbef-4c2c-afa4-b80ca2a2c333/ 

> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Assigned: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Jeremy Bauer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Bauer reassigned OPENJPA-957:
------------------------------------

    Assignee: Albert Lee

> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>            Assignee: Albert Lee
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Commented: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680865#action_12680865 ] 

Donald Woods commented on OPENJPA-957:
--------------------------------------

For Oracle tables/schemas - http://www.oracle.com/technology/pub/articles/oracle-database-11g-top-features/11g-schemamanagement.html

> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Commented: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680866#action_12680866 ] 

Donald Woods commented on OPENJPA-957:
--------------------------------------

DB2 uses "SET CURRENT LOCK TIMEOUT = <secs>" for all statements on the current connection.

> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Updated: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Albert Lee updated OPENJPA-957:
-------------------------------

    Attachment:     (was: OPENJPA_957.patch)

> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>            Assignee: Albert Lee
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Work started: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on OPENJPA-957 started by Albert Lee.

> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>            Assignee: Albert Lee
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Commented: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Pinaki Poddar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681109#action_12681109 ] 

Pinaki Poddar commented on OPENJPA-957:
---------------------------------------

How about refactoring setTimeout() from Select to to DBDictionary?
Then we can add database specific details incremental way as Albert's & Donald's (and others) research solidifies the exact techniques for each database.

> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Commented: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680263#action_12680263 ] 

Donald Woods commented on OPENJPA-957:
--------------------------------------

Do we need to support the old behavior of using setQueryTimeout() for lock timeout as a compatibility option?

> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Updated: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Albert Lee updated OPENJPA-957:
-------------------------------

    Attachment:     (was: OPENJPA_957.patch)

> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>            Assignee: Albert Lee
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Updated: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Albert Lee updated OPENJPA-957:
-------------------------------

    Attachment:     (was: OPENJPA-957.patch)

> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>            Assignee: Albert Lee
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Updated: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Albert Lee updated OPENJPA-957:
-------------------------------

    Attachment: OPENJPA-957.patch

Rework based on code review comments and suggestions.

Albert Lee.

> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>            Assignee: Albert Lee
>         Attachments: OPENJPA-957.patch
>
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Commented: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681143#action_12681143 ] 

Donald Woods commented on OPENJPA-957:
--------------------------------------

Albert, Derby 10.2 has full support for Statement.setQueryTimeout() and I have verified that it is working as part of OPENJPA-878 (can't say the same for DB2 9.5.3a on WinXp....)

> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Commented: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681077#action_12681077 ] 

Albert Lee commented on OPENJPA-957:
------------------------------------

FYI... I find the following in the Derby reference.

http://db.apache.org/derby/docs/10.1/ref/refderby.pdf

SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY
Use the SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY system procedure to set or delete the value of a property of the database on the current connection. If "VALUE" is not null, then the property with key value "KEY" is set to "VALUE". If "VALUE" is null, then the property with key value "KEY" is deleted from the database property set.

Syntax
SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY(IN KEY VARCHAR(128),IN VALUE VARCHAR(32672))
This procedure does not return any results.
JDBC example
Set the derby.locks.deadlockTimeout property to a value of 10:

CallableStatement cs = conn.prepareCall
("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(?, ?)");
cs.setString(1, "derby.locks.deadlockTimeout");
cs.setString(2, "10");
cs.execute();
cs.close();

SQL example
Set the derby.locks.deadlockTimeout property to a value of 10:
CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY
('derby.locks.deadlockTimeout', '10');

java.sql.Statement
Derby does not implement the following JDBC 1.2 methods of java.sql.Statement:
• cancel
• setEscapeProcessing
• setQueryTimeout


> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Updated: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Albert Lee updated OPENJPA-957:
-------------------------------

    Attachment: OPENJPA-957.patch

> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>            Assignee: Albert Lee
>         Attachments: OPENJPA-957.patch
>
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Resolved: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Albert Lee resolved OPENJPA-957.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>            Assignee: Albert Lee
>             Fix For: 2.0.0
>
>         Attachments: OPENJPA-957.patch
>
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Updated: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Albert Lee updated OPENJPA-957:
-------------------------------

    Attachment: OPENJPA_957.patch

Add more clean up, refactoring and test paths.

> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>            Assignee: Albert Lee
>         Attachments: OPENJPA_957.patch
>
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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


[jira] Updated: (OPENJPA-957) Support lock timeout hint on applicable methods

Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Albert Lee updated OPENJPA-957:
-------------------------------

    Attachment: OPENJPA_957.patch

Initial code drop to support hints in FetchConfiguration and FetchPlan, which are used by em interface methods that take a Map of hints/properties apply only to the the method invocation.

> Support lock timeout hint on applicable methods
> -----------------------------------------------
>
>                 Key: OPENJPA-957
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-957
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>            Assignee: Albert Lee
>         Attachments: OPENJPA_957.patch
>
>
> This task is to provide support for the lock timeout hint on applicable interface methods.  OpenJPA currently supports the openjpa.LockTimeout property.  This support will be extended to allow more granular configuration at the method level, where applicable.  The pattern used for specifying lock modes at a method level should be considered for extension or as a guide.

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